#include <GeometricMedium.hpp>
Public Member Functions | |
Geometry * | geometry () const |
VectorField * | magneticFieldDistribution () const |
double | magneticFieldStrength () const |
MaterialMix * | materialMix () const |
MaterialNormalization * | normalization () const |
VectorField * | velocityDistribution () const |
double | velocityMagnitude () const |
virtual Vec | bulkVelocity (Position bfr) const =0 |
virtual int | dimension () const =0 |
virtual Position | generatePosition () const =0 |
virtual bool | hasMagneticField () const =0 |
virtual bool | hasMetallicity () const =0 |
virtual bool | hasParameters () const =0 |
virtual bool | hasTemperature () const =0 |
virtual bool | hasVariableMix () const =0 |
virtual bool | hasVelocity () const =0 |
virtual Vec | magneticField (Position bfr) const =0 |
virtual double | mass () const =0 |
virtual double | massDensity (Position bfr) const =0 |
virtual double | metallicity (Position bfr) const =0 |
virtual const MaterialMix * | mix () const =0 |
virtual const MaterialMix * | mix (Position bfr) const =0 |
virtual double | number () const =0 |
virtual double | numberDensity (Position bfr) const =0 |
virtual double | opticalDepthX (double lambda) const =0 |
virtual double | opticalDepthY (double lambda) const =0 |
virtual double | opticalDepthZ (double lambda) const =0 |
virtual void | parameters (Position bfr, Array ¶ms) const =0 |
virtual double | temperature (Position bfr) const =0 |
![]() | |
template<class T > | |
T * | find (bool setup=true) const |
template<class T > | |
T * | interface (int levels=-999999, bool setup=true) const |
virtual string | itemName () const |
void | setup () |
string | typeAndName () const |
![]() | |
Item (const Item &)=delete | |
virtual | ~Item () |
void | addChild (Item *child) |
const vector< Item * > & | children () const |
virtual void | clearItemListProperty (const PropertyDef *property) |
void | destroyChild (Item *child) |
virtual bool | getBoolProperty (const PropertyDef *property) const |
virtual vector< double > | getDoubleListProperty (const PropertyDef *property) const |
virtual double | getDoubleProperty (const PropertyDef *property) const |
virtual string | getEnumProperty (const PropertyDef *property) const |
virtual int | getIntProperty (const PropertyDef *property) const |
virtual vector< Item * > | getItemListProperty (const PropertyDef *property) const |
virtual Item * | getItemProperty (const PropertyDef *property) const |
virtual string | getStringProperty (const PropertyDef *property) const |
int | getUtilityProperty (string name) const |
virtual void | insertIntoItemListProperty (const PropertyDef *property, int index, Item *item) |
Item & | operator= (const Item &)=delete |
Item * | parent () const |
virtual void | removeFromItemListProperty (const PropertyDef *property, int index) |
virtual void | setBoolProperty (const PropertyDef *property, bool value) |
virtual void | setDoubleListProperty (const PropertyDef *property, vector< double > value) |
virtual void | setDoubleProperty (const PropertyDef *property, double value) |
virtual void | setEnumProperty (const PropertyDef *property, string value) |
virtual void | setIntProperty (const PropertyDef *property, int value) |
virtual void | setItemProperty (const PropertyDef *property, Item *item) |
virtual void | setStringProperty (const PropertyDef *property, string value) |
void | setUtilityProperty (string name, int value) |
virtual string | type () const |
Protected Member Functions | |
GeometricMedium () | |
Vec | bulkVelocity (Position bfr) const override |
int | dimension () const override |
Position | generatePosition () const override |
bool | hasMagneticField () const override |
bool | hasMetallicity () const override |
bool | hasParameters () const override |
bool | hasTemperature () const override |
bool | hasVariableMix () const override |
bool | hasVelocity () const override |
Vec | magneticField (Position bfr) const override |
double | mass () const override |
double | massDensity (Position bfr) const override |
double | metallicity (Position bfr) const override |
const MaterialMix * | mix () const override |
const MaterialMix * | mix (Position bfr) const override |
double | number () const override |
double | numberDensity (Position bfr) const override |
double | opticalDepthX (double lambda) const override |
double | opticalDepthY (double lambda) const override |
double | opticalDepthZ (double lambda) const override |
void | parameters (Position bfr, Array ¶ms) const override |
void | setupSelfAfter () override |
double | temperature (Position bfr) const override |
![]() | |
Medium () | |
![]() | |
SimulationItem () | |
virtual bool | offersInterface (const std::type_info &interfaceTypeInfo) const |
virtual void | setupSelfAfter () |
virtual void | setupSelfBefore () |
![]() | |
Item () | |
Private Types | |
using | BaseType = Medium |
using | ItemType = GeometricMedium |
Private Attributes | |
Geometry * | _geometry |
VectorField * | _magneticFieldDistribution |
double | _magneticFieldStrength |
double | _mass |
MaterialMix * | _materialMix |
MaterialNormalization * | _normalization |
double | _number |
VectorField * | _velocityDistribution |
double | _velocityMagnitude |
Friends | |
class | ItemRegistry |
GeometricMedium represents a transfer medium for which the spatial material density distribution is characterized by a Geometry object. The material properties are characterized by a single MaterialMix object and are thus identical in all locations. The medium can have a single bulk velocity, i.e. the bulk velocity is identical in all locations.
|
inlineprotected |
Default constructor for concrete Item subclass GeometricMedium : "a transfer medium with a built-in geometry" .
This function returns the bulk velocity of the medium. The same velocity is returned regardless of position.
Implements Medium.
|
overrideprotectedvirtual |
This function returns the dimension of the medium, which is determined by the symmetries of the spatial distribution of its density, bulk velocity (if any) and magnetic field (if any).
Implements Medium.
|
overrideprotectedvirtual |
This function generates a random position sampled from the medium's spatial density distribution. Because the conversion from number to mass is the same throughout the medium's spatial domain, there is no difference between sampling from the number density or the mass density.
Implements Medium.
|
inline |
This function returns the value of the discoverable item property geometry : "the geometry of the spatial density distribution for the medium" .
The default value for this property is given by the conditional value expression "PlummerGeometry" .
|
overrideprotectedvirtual |
This function returns true if the medium has a nonempty magneticFieldDistribution and a nonzero magneticFieldStrength.
Implements Medium.
|
overrideprotectedvirtual |
This function returns false because geometric media do not define a metallicity.
Implements Medium.
|
overrideprotectedvirtual |
This function returns false because geometric media do not define custom parameters.
Implements Medium.
|
overrideprotectedvirtual |
This function returns false because geometric media do not define a temperature.
Implements Medium.
|
overrideprotectedvirtual |
This function always returns false because a geometric medium has the same dust mix throughout its spatial domain.
Implements Medium.
|
overrideprotectedvirtual |
This function returns true if the bulk velocity of the medium is nonzero.
Implements Medium.
This function returns the magnetic field vector of the medium at the specified position. If hasMagneticField() returns true, this function returns the product of the configured magnetic field strength and the vector retrieved from the configured normalized vector field for the given position; otherwise it returns a zero magnetic field.
Implements Medium.
|
inline |
This function returns the value of the discoverable item property magneticFieldDistribution : "the spatial distribution of the magnetic field, if any" .
This property is required only if the Boolean expression "false" evaluates to true after replacing the names by true or false depending on their presence.
This property is displayed only if the Boolean expression "Level3" evaluates to true after replacing the names by true or false depending on their presence.
|
inline |
This function returns the value of the discoverable double property magneticFieldStrength : "the strength of the magnetic field (multiplier)" .
This property represents a physical quantity of type "magneticfield" .
The minimum value for this property is "[-1 T" .
The maximum value for this property is "1 T]" .
This property is relevant only if the Boolean expression "magneticFieldDistribution" evaluates to true after replacing the names by true or false depending on their presence.
This property is displayed only if the Boolean expression "Level3" evaluates to true after replacing the names by true or false depending on their presence.
When a value is entered for this property, the names provided by the conditional value expression "magneticFieldDistribution&magneticFieldStrength:MagneticField" are inserted into the name sets used for evaluating Boolean expressions.
|
overrideprotectedvirtual |
This function returns the total mass in the medium.
Implements Medium.
|
overrideprotectedvirtual |
This function returns the mass density of the medium at the specified position.
Implements Medium.
|
inline |
This function returns the value of the discoverable item property materialMix : "the material type and properties throughout the medium" .
The default value for this property is given by the conditional value expression "MeanInterstellarDustMix" .
|
overrideprotectedvirtual |
This function always returns zero because geometric media do not define a metallicity
Implements Medium.
|
overrideprotectedvirtual |
This function returns the MaterialMix object defining the material properties for the medium.
Implements Medium.
|
overrideprotectedvirtual |
This function returns the MaterialMix object defining the material properties for the medium. The same object is returned regardless of position.
Implements Medium.
|
inline |
This function returns the value of the discoverable item property normalization : "the type of normalization for the amount of material" .
The default value for this property is given by the conditional value expression "OpticalDepthMaterialNormalization" .
|
overrideprotectedvirtual |
This function returns the total number of material entities in the medium.
Implements Medium.
|
overrideprotectedvirtual |
This function returns the number density of the medium at the specified position.
Implements Medium.
|
overrideprotectedvirtual |
This function returns the optical depth of the medium at wavelength
Implements Medium.
|
overrideprotectedvirtual |
This function returns the optical depth of the medium at wavelength
Implements Medium.
|
overrideprotectedvirtual |
This function returns the optical depth of the medium at wavelength
Implements Medium.
This function resizes the specified array to zero length because a geometric medium does not provide custom input model parameters.
Implements Medium.
|
overrideprotectedvirtual |
This function determines the normalization for number and mass density in this medium. Given that a geometry has a total mass of one by definition, the normalization factors correspond to the total number and the total mass of the medium.
Reimplemented from SimulationItem.
|
overrideprotectedvirtual |
This function always returns zero because geometric media do not define a temperature.
Implements Medium.
|
inline |
This function returns the value of the discoverable item property velocityDistribution : "the spatial distribution of the velocity, if any" .
This property is required only if the Boolean expression "false" evaluates to true after replacing the names by true or false depending on their presence.
This property is relevant only if the Boolean expression "Panchromatic" evaluates to true after replacing the names by true or false depending on their presence.
This property is displayed only if the Boolean expression "Level2" evaluates to true after replacing the names by true or false depending on their presence.
|
inline |
This function returns the value of the discoverable double property velocityMagnitude : "the magnitude of the velocity (multiplier)" .
This property represents a physical quantity of type "velocity" .
The minimum value for this property is "[-100000 km/s" .
The maximum value for this property is "100000 km/s]" .
This property is relevant only if the Boolean expression "Panchromatic&velocityDistribution" evaluates to true after replacing the names by true or false depending on their presence.
This property is displayed only if the Boolean expression "Level2" evaluates to true after replacing the names by true or false depending on their presence.
When a value is entered for this property, the names provided by the conditional value expression "velocityDistribution&velocityMagnitude:MediumVelocity" are inserted into the name sets used for evaluating Boolean expressions.