#include <CellGeometry.hpp>
Public Types | |
enum class | MassType : int { MassDensity , Mass , NumberDensity , Number } |
Public Member Functions | |
MassType | massType () const |
![]() | |
double | density (Position bfr) const override |
string | filename () const |
Position | generatePosition () const override |
bool | importMetallicity () const |
bool | importTemperature () const |
double | maxTemperature () const |
int | numSites () const override |
double | SigmaX () const override |
double | SigmaY () const override |
double | SigmaZ () const override |
Position | sitePosition (int index) const override |
string | useColumns () const |
![]() | |
int | dimension () const override |
virtual double | density (Position bfr) const =0 |
virtual int | dimension () const =0 |
virtual Position | generatePosition () const =0 |
virtual double | SigmaX () const =0 |
virtual double | SigmaY () const =0 |
virtual double | SigmaZ () 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 |
![]() | |
virtual | ~SiteListInterface () |
virtual int | numSites () const =0 |
virtual Position | sitePosition (int index) const =0 |
Protected Member Functions | |
CellGeometry () | |
Snapshot * | createAndOpenSnapshot () override |
![]() | |
ImportedGeometry () | |
~ImportedGeometry () | |
virtual Snapshot * | createAndOpenSnapshot ()=0 |
void | setupSelfAfter () override |
![]() | |
GenGeometry () | |
![]() | |
Geometry () | |
Random * | random () const |
void | setupSelfBefore () override |
![]() | |
SimulationItem () | |
virtual bool | offersInterface (const std::type_info &interfaceTypeInfo) const |
virtual void | setupSelfAfter () |
virtual void | setupSelfBefore () |
![]() | |
Item () | |
![]() | |
SiteListInterface () | |
Private Types | |
using | BaseType = ImportedGeometry |
using | ItemType = CellGeometry |
Private Attributes | |
MassType | _massType |
Friends | |
class | ItemRegistry |
A CellGeometry instance represents a 3D geometry with a spatial density distribution described by a list of cuboidal cells lined up with the coordinate axes; refer to the CellSnapshot class for more information. The cell data is usually extracted from a cosmological simulation snapshot, and it must be provided in a column text file formatted as described below. The total mass in the geometry is normalized to unity after importing the data.
Refer to the description of the TextInFile class for information on overall formatting and on how to include header lines specifying the units for each column in the input file. In case the input file has no unit specifications, the default units mentioned below are used instead. The number of columns in the input file depends on the options configured by the user for this CellGeometry instance:
The first six columns specify the coordinates of the lower-left and upper-right corners of the cell. Depending on the value of the massType option, the seventh column lists the average mass density
If the importMetallicity option is enabled, the next column specifies a "metallicity" fraction, which in this context is simply multiplied with the mass/density column to obtain the actual mass/density of the cell. If the importTemperature option is enabled, the next column specifies a temperature. If this temperature is higher than the maximum configured temperature, the mass and density of the cell are set to zero, regardless of the mass or density specified in the seventh column. If the importTemperature option is disabled, or the maximum temperature value is set to zero, such a cutoff is not applied.
|
strong |
The enumeration type indicating the type of mass quantity to be imported.
MassDensity : "mass density" .
Mass : "mass (volume-integrated mass density)" .
NumberDensity : "number density" .
Number : "number (volume-integrated number density)" .
|
inlineprotected |
Default constructor for concrete Item subclass CellGeometry : "a geometry imported from cuboidal cell data" .
|
overrideprotectedvirtual |
This function constructs a new CellSnapshot object, calls its open() function, configures it to import a mass or density column, and finally returns a pointer to the object. Ownership of the Snapshot object is transferred to the caller.
Implements ImportedGeometry.
|
inline |
This function returns the value of the discoverable MassType enumeration property massType : "the type of mass quantity to be imported" .
The default value for this property is given by the conditional value expression "MassDensity" .