AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
Classes | |
struct | SingleOperatorData |
class | GeometryOperatorData |
struct | NamedOperatorData |
struct | NamedOperatorMapData |
Typedefs | |
using | NamedOperatorMap = std::unordered_map< std::string, std::shared_ptr< const GeometryOperator > > |
Functions | |
std::vector< double > | toDoubleVector (inlet::Proxy const &field, Dimensions expectedDims, char const *fieldName) |
primal::Point3D | toPoint (inlet::Container const &parent, char const *fieldName, Dimensions expectedDims) |
primal::Point3D | toPoint (inlet::Container const &parent, char const *fieldName, Dimensions expectedDims, const primal::Point3D &defaultValue) |
primal::Vector3D | toVector (inlet::Container const &parent, char const *fieldName, Dimensions expectedDims) |
primal::Vector3D | toVector (inlet::Container const &parent, char const *fieldName, Dimensions expectedDims, const primal::Vector3D &defaultValue) |
std::tuple< LengthUnit, LengthUnit > | getOptionalStartAndEndUnits (const inlet::Container &container) |
std::tuple< LengthUnit, LengthUnit > | getStartAndEndUnits (const inlet::Container &container) |
void | defineUnitsSchema (inlet::Container &container, const char *unitsDescription="", const char *startUnitsDescription="", const char *endUnitsDescription="") |
inlet::VerifiableScalar & | defineDimensionsField (inlet::Container &parent, const char *name, const char *description="") |
Dimensions | toDimensions (const inlet::Proxy &dimProxy) |
using axom::klee::internal::NamedOperatorMap = typedef std::unordered_map<std::string, std::shared_ptr<const GeometryOperator> > |
std::vector<double> axom::klee::internal::toDoubleVector | ( | inlet::Proxy const & | field, |
Dimensions | expectedDims, | ||
char const * | fieldName | ||
) |
Convert the given field to a std::vector<double>, ensuring that it has the expected number of entries.
field | the field to convert |
expectedDims | the expected dimensionality of the array |
fieldName | the name of the field (used for error reporting) |
primal::Point3D axom::klee::internal::toPoint | ( | inlet::Container const & | parent, |
char const * | fieldName, | ||
Dimensions | expectedDims | ||
) |
Convert the specified field to a Point3D, ensuring that it has the expected number of entries.
parent | the parent of the field |
fieldName | the name of the field |
expectedDims | the expected dimensionality of the point |
primal::Point3D axom::klee::internal::toPoint | ( | inlet::Container const & | parent, |
char const * | fieldName, | ||
Dimensions | expectedDims, | ||
const primal::Point3D & | defaultValue | ||
) |
Convert the specified field to a Point3D, ensuring that it has the expected number of entries. If the field is not present, the default value is used.
parent | the parent of the field |
fieldName | the name of the field |
expectedDims | the expected dimensionality of the point |
defaultValue | the default value of the field if it is not present |
primal::Vector3D axom::klee::internal::toVector | ( | inlet::Container const & | parent, |
char const * | fieldName, | ||
Dimensions | expectedDims | ||
) |
Convert the specified field to a Vector3D, ensuring that it has the expected number of entries.
parent | the parent of the field |
fieldName | the name of the field |
expectedDims | the expected dimensionality of the vector |
primal::Vector3D axom::klee::internal::toVector | ( | inlet::Container const & | parent, |
char const * | fieldName, | ||
Dimensions | expectedDims, | ||
const primal::Vector3D & | defaultValue | ||
) |
Convert the specified field to a Vector3D, ensuring that it has the expected number of entries. If the field is not present, the default value is used.
parent | the parent of the field |
fieldName | the name of the field |
expectedDims | the expected dimensionality of the vector |
defaultValue | the default value of the field if it is not present |
std::tuple<LengthUnit, LengthUnit> axom::klee::internal::getOptionalStartAndEndUnits | ( | const inlet::Container & | container | ) |
Get the start and end units in a Container.
The Container may either have a "units" field, or a "start_units" and "end_units". In the first case, "units" will be used for both the start and end. In the second, both must be present. In the case where no units are present at all, both returned units will be LengthUnit::unspecified.
container | the Container from which to get the units |
KleeError | if an invalid combination of fields is specified |
std::tuple<LengthUnit, LengthUnit> axom::klee::internal::getStartAndEndUnits | ( | const inlet::Container & | container | ) |
Get the start and end units in a Container.
The Container may either have a "units" field, or a "start_units" and "end_units". In the first case, "units" will be used for both the start and end. In the second, both must be present.
container | the Container from which to get the units |
KleeError | if an invalid combination of fields is specified or if no units are specified. |
void axom::klee::internal::defineUnitsSchema | ( | inlet::Container & | container, |
const char * | unitsDescription = "" , |
||
const char * | startUnitsDescription = "" , |
||
const char * | endUnitsDescription = "" |
||
) |
Define the schema for units. This is the schema that will be expected by getOptionalStartAndEndUnits() and getStartAndEndUnits().
container | the container to which to add the expected fields |
unitsDescription | the description of the "units" field |
startUnitsDescription | the description of the "start_units" field |
endUnitsDescription | the description of the "end_units" field |
inlet::VerifiableScalar& axom::klee::internal::defineDimensionsField | ( | inlet::Container & | parent, |
const char * | name, | ||
const char * | description = "" |
||
) |
Define a field which can hold a number of dimensions
parent | the parent Container on which to define the field |
name | the name of the field |
description | and optional description of the field |
Dimensions axom::klee::internal::toDimensions | ( | const inlet::Proxy & | dimProxy | ) |
Convert the given proxy to a Dimensions object. The field should have been created by defineDimensionsField()
dimProxy | the proxy to the dimensions field |