|
EBGeometry
Compact, header-only C++ library for fast evaluation of signed distance functions
|
The .ebg language: models read from text files (geometry, regions, materials, domains and couplings), and their properties as tables in a pool. Opt-in: EBGeometry.hpp does not include it. More...
#include <cstdint>#include <functional>#include <map>#include <memory>#include <optional>#include <string>#include <string_view>#include <utility>#include <vector>#include "../EBGeometry.hpp"#include "EBGeometry_LanguageSyntax.hpp"#include "EBGeometry_LanguageImplem.hpp"
Go to the source code of this file.
Classes | |
| class | EBGeometry::Language::Properties |
| The properties a material, subdomain, surface group, coupling or the view block carries: numbers, vectors and strings by key, passed through unread for the program to interpret. More... | |
| struct | EBGeometry::Language::Properties::Value |
| One value, and where it is written. More... | |
| class | EBGeometry::Language::Table< S > |
| A table of a program's own rows in a pool, one per region, subdomain or surface group, read on the host and on a device by the numbers EBGeometry computes there (Tape::region(), Domain::subdomainAt(), Domain::surfaceGroupOf()). More... | |
| struct | EBGeometry::Language::Table< S >::Layout |
| Where the rows are in the pool. More... | |
| struct | EBGeometry::Language::Param |
| A param of a model: its name, its value as text (after overrides), its type, and where it is written. More... | |
| class | EBGeometry::Language::ModelDomain |
| A domain of a model: its name, its setup, and the names and properties of its subdomains and surface groups. More... | |
| struct | EBGeometry::Language::Coupling |
| A coupling of two domains: two subdomains that hold the same regions (volume), or two surface groups that cover the same pieces of surface (surface), with its properties. More... | |
| struct | EBGeometry::Language::ShapeSite |
| A shape the model's text builds, and where: what the inventory lists and a viewer names parts by. More... | |
| struct | EBGeometry::Language::NodeSite |
| A node of the object that a shape value of the text makes: what a selector surfaces(name) names, and what a viewer writes a picked level by. More... | |
| class | EBGeometry::Language::DomainObject< T > |
| A domain's own object: the regions of its subdomains and their neighbors, with the domain's setup and the model's names translated to it (see Model::domainObject()). More... | |
| 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. More... | |
| struct | EBGeometry::Language::Completeness |
| Whether a domain is complete for a solver, and what is missing. More... | |
Namespaces | |
| namespace | EBGeometry |
| Namespace containing all of EBGeometry's functionality. | |
| namespace | EBGeometry::Language |
| The .ebg language: a model (geometry, its regions and materials, and the domains a solver computes in) written in a text file and read at run time, instead of composed in compiled C++. | |
Functions | |
| template<class T > | |
| Model< T > | EBGeometry::Language::read (const std::string &a_path, Pool &a_pool, const Overrides &a_overrides={}) |
| Read a model: a .ebg file, and the files it includes (a setup file includes the geometry it is a setup of). | |
| template<class T > | |
| Model< T > | EBGeometry::Language::parse (std::string_view a_text, const std::string &a_name, Pool &a_pool, const Overrides &a_overrides={}) |
| Read a model from text. | |
| template<class T , class... UserPrimitives> | |
| Completeness | EBGeometry::Language::completeness (const Model< T > &a_model, const Tape< T, UserPrimitives... > &a_tape, std::string_view a_domain) |
| Check that a domain is complete for a solver: every subdomain has properties (its own or its regions' material's), and every piece of surface bounding the domain (a boundary, or an interface between two subdomains) is held by exactly one surface group. Surface couplings are checked too: both groups hold the same pieces. | |
| template<class T , class... UserPrimitives> | |
| Completeness | EBGeometry::Language::completeness (const Model< T > &a_model, const Tape< T, UserPrimitives... > &a_tape, std::string_view a_domain, T a_resolution, uint64_t a_maxCells=ComponentOptions< T >::DefaultMaxCells) |
| Check that a domain is complete (see completeness(model, tape, domain)), and look for the connected components it may not expect, at a resolution (see connectedComponents()): warnings, never errors. | |
| std::vector< std::string > | EBGeometry::Language::partNames (std::string_view a_shape, uint32_t a_sides=0) |
| The part names of a built-in shape, in the order of its parts ("box": xmin, xmax, ymin, ymax, zmin, zmax). | |
| template<class T > | |
| std::string | EBGeometry::Language::inventory (const Model< T > &a_model) |
Every name a model offers, as text: its surface labels, the parts of each shape written (with their labels), its regions and materials, and its domains with their subdomains and groups. What ebgstudio check --inventory prints. | |
| template<class T > | |
| std::string | EBGeometry::Language::print (const Model< T > &a_model, bool a_flatten=false) |
| A model as text in canonical form: one statement per line, the layout a viewer writes, comments kept. | |
The .ebg language: models read from text files (geometry, regions, materials, domains and couplings), and their properties as tables in a pool. Opt-in: EBGeometry.hpp does not include it.