A model read from a .ebg file and the files it includes: its object, the names of its regions, materials and labels, its materials, domains, couplings and params, and the files it read.
More...
|
| const Expr< T > & | object () const noexcept |
| | The object, to compile into a tape.
|
| |
| const ExprIndex< T > & | index () const noexcept |
| | The object's index: its regions, region groups, materials and surface labels by name.
|
| |
| uint32_t | getNumMaterials () const noexcept |
| | How many materials: every name a region uses, numbered as the index numbers them (MaterialLabelId).
|
| |
| const Properties & | materialProperties (uint32_t a_material) const |
| | A material's properties (none for a material no material statement declares).
|
| |
| uint32_t | getNumDomains () const noexcept |
| | How many domains.
|
| |
| const ModelDomain & | domain (uint32_t a_domain) const |
| | A domain by number, in the order written.
|
| |
| const ModelDomain & | domain (std::string_view a_name) const |
| | A domain by name.
|
| |
| const std::vector< Coupling > & | couplings () const noexcept |
| | The couplings.
|
| |
| const std::vector< Param > & | params () const noexcept |
| | The params, in the order written.
|
| |
| const std::vector< Diagnostic > & | warnings () const noexcept |
| | The warnings found reading it.
|
| |
| const std::vector< std::string > & | files () const noexcept |
| | Every file read, the model's own and the meshes: what a viewer watches to reload.
|
| |
| const Properties & | view () const noexcept |
| | The view block's properties (camera, colors): for viewers; programs ignore them.
|
| |
| const std::vector< ShapeSite > & | shapes () const noexcept |
| | The shapes the text builds, in the order built.
|
| |
| const ShapeSite * | siteOfLeaf (const uint32_t a_leaf) const noexcept |
| | The shape call a leaf of the object comes from: what a viewer names a picked surface by.
|
| |
| const NodeSite * | siteOfNode (const uint32_t a_node) const noexcept |
| | The shape value that makes a node of the object: its names, where its call is written, how many places of the object use it. A value covering the same shapes as the node is taken to make it (a translated box makes both the box's node and the translation's).
|
| |
| uint32_t | siteIndexOfLeaf (const uint32_t a_leaf) const noexcept |
| | The index among shapes() of the shape call a leaf comes from.
|
| |
| const std::vector< Syntax::File > & | sources () const noexcept |
| | The parsed files, the model's first.
|
| |
| RegionNames | names () const |
| | The model's names for a viewer: regions, materials and labels, every domain's setup with the names of its subdomains and surface groups, and the colors of the view block.
|
| |
| DomainObject< T > | domainObject (std::string_view a_domain) const |
| | A domain's own object: the regions its subdomains compute in, and their neighbors (see regionNeighborhood(): regions whose bounding boxes meet theirs), with the domain's setup and the names translated.
|
| |
| template<class S , class F > |
| Table< S > | regions (Pool &a_pool, F &&a_fill) const |
| | A table with one row per region of the object (region 0, outside, first), each filled from its material's properties: what a kernel indexes with Tape::region(). A region without a material, outside included, gets empty properties, so the function should give fallbacks.
|
| |
template<class T>
class EBGeometry::Language::Model< T >
A model read from a .ebg file and the files it includes: its object, the names of its regions, materials and labels, its materials, domains, couplings and params, and the files it read.
The caller compiles the object into a tape, Tape<T, UserPrimitives...>(pool, model.object()), picking the tape's features; and builds a domain for that tape from a ModelDomain's setup, Domain(pool, tape, model.domain("cfd").setup()). Meshes the model reads are built into the pool given to read(). The model keeps the parsed files, so that it can be printed (print()) and a viewer can edit them.
- Template Parameters
-
| T | Precision; numbers are read as double and converted. |
template<class T >
template<class S , class F >
A table with one row per region of the object (region 0, outside, first), each filled from its material's properties: what a kernel indexes with Tape::region(). A region without a material, outside included, gets empty properties, so the function should give fallbacks.
- Template Parameters
-
| S | The row type: trivially copyable. |
| F | A function S(const Properties&). |
- Parameters
-
| [in,out] | a_pool | The pool the table is put in. |
| [in] | a_fill | The function filling a row. |
- Returns
- The table.