|
string | filename () const |
|
| ~TreeSpatialGrid () |
|
int | cellIndex (Position bfr) const override |
|
Position | centralPositionInCell (int m) const override |
|
std::unique_ptr< PathSegmentGenerator > | createPathSegmentGenerator () const override |
|
double | diagonal (int m) const override |
|
int | numCells () const override |
|
Position | randomPositionInCell (int m) const override |
|
double | volume (int m) const override |
|
void | writeTopology (TextOutFile *outfile) const |
|
Box | boundingBox () const override |
|
int | dimension () const override |
|
double | maxX () const |
|
double | maxY () const |
|
double | maxZ () const |
|
double | minX () const |
|
double | minY () const |
|
double | minZ () const |
|
virtual Box | boundingBox () const =0 |
|
virtual int | cellIndex (Position bfr) const =0 |
|
virtual Position | centralPositionInCell (int m) const =0 |
|
virtual std::unique_ptr< PathSegmentGenerator > | createPathSegmentGenerator () const =0 |
|
virtual double | diagonal (int m) const =0 |
|
virtual int | dimension () const =0 |
|
virtual int | numCells () const =0 |
|
virtual Position | randomPositionInCell (int m) const =0 |
|
virtual double | volume (int m) const =0 |
|
virtual void | writeGridPlotFiles (const SimulationItem *probe) const |
|
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 |
|
| Box () |
|
| Box (double xmin, double ymin, double zmin, double xmax, double ymax, double zmax) |
|
| Box (Vec rmin, Vec rmax) |
|
void | cellIndices (int &i, int &j, int &k, Vec r, int nx, int ny, int nz) const |
|
Vec | center () const |
|
bool | contains (const Box &box) const |
|
bool | contains (double x, double y, double z) const |
|
bool | contains (Vec r) const |
|
double | diagonal () const |
|
const Box & | extent () const |
|
void | extent (double &xmin, double &ymin, double &zmin, double &xmax, double &ymax, double &zmax) const |
|
Vec | fracPos (double xfrac, double yfrac, double zfrac) const |
|
Vec | fracPos (int xd, int yd, int zd, int xn, int yn, int zn) const |
|
bool | intersects (const Box &box) const |
|
bool | intersects (Vec r, const Vec k, double &smin, double &smax) const |
|
bool | intersects (Vec rc, double r) const |
|
Vec | rmax () const |
|
Vec | rmin () const |
|
double | volume () const |
|
Vec | widths () const |
|
double | xmax () const |
|
double | xmin () const |
|
double | xwidth () const |
|
double | ymax () const |
|
double | ymin () const |
|
double | ywidth () const |
|
double | zmax () const |
|
double | zmin () const |
|
double | zwidth () const |
|
FileTreeSpatialGrid is a concrete subclass of the TreeSpatialGrid class that constructs a hierarchical tree grid from the topological description loaded from a data file. In the most common use case, the data file has been created in a previous simulation through the TreeSpatialGridTopologyProbe. The tree grid in the current simulation will then be identical to the one in the previous simulation. This can be useful in situations where multiple simulations are being performed on input models with the same (or a very similar) spatial distribution of the transfer medium. Constructing a tree grid based on the medium density distribution takes time (because of the large number of density samples required), and the tree is likely to differ slightly between various runs (because the density is sampled at random positions, and the random number sequence varies because of parallelization). Loading the tree from the topology data file is much faster and guarantees that all simulations use identical tree grids.
After a brief descriptive header, the input file contains lines with just a single integer number. The first line specifies the number of children for each nonleaf node (2 for a binary tree, 8 for an octtree, or 0 if the root node is not subdivided). The second line contains 1 if the root node is subdivided, or 0 if not. The following lines similarly contain 1 or 0 indicating subdivision for any children of the preceding node, recursively, in a depth-first traversal of the tree.
Note that the topology data stored in the input file is scale-free. When configuring the FileTreeSpatialGrid in the simulation loading the topology, the user must specify the extent of the spatial domain.
This item type is displayed only if the Boolean expression "Level2" evaluates to true after replacing the names by true or false depending on their presence.