#include <KokkosParsedObjectBase.h>
Public Member Functions | |
| ParsedObjectBase (const MooseObject *object) | |
Static Public Member Functions | |
| static InputParameters | validParams () |
Protected Member Functions | |
| template<typename T > | |
| void | checkDuplicateSymbols (const std::vector< T > &symbols, const std::string ¶m) |
| Check if duplicate symbols were added. | |
| void | addConstant (const std::string &name, const Real constant) |
| Add a constant. | |
| void | addScalar (const std::string &name, const Real &scalar) |
| Add a scalar variable. | |
| void | addField (const std::string &name, const VariableValue &field) |
| Add a field variable. | |
| void | addProperty (const std::string &name, const MaterialProperty< Real > &property) |
| Add a material property. | |
| void | addFunction (const std::string &name, const Function &function) |
| Add a function. | |
| template<typename T > | |
| void | initParsed (T *obj, const std::vector< VariableName > &variable_names) |
| Initialize symbols from parsed parameters. | |
Protected Attributes | |
| const std::string & | _expression |
| Parsed expression. | |
| std::shared_ptr< RPNBuilder > | _builder |
| Parsed function builder. | |
| RPNEvaluator | _evaluator |
| Parsed function evaluator. | |
| std::unordered_map< std::string, Real > | _constants |
| Constants used in the parsed expression. | |
| std::unordered_map< std::string, std::reference_wrapper< const Real > > | _scalars |
| Scalar variables used in the parsed expression. | |
| std::unordered_map< std::string, VariableValue > | _fields |
| Field variables used in the parsed expression. | |
| std::unordered_map< std::string, MaterialProperty< Real > > | _properties |
| Material properties used in the parsed expression. | |
| std::unordered_map< std::string, Function > | _functions |
| Functions used in the parsed expression. | |
Private Member Functions | |
| void | finalize () |
| Finalize parsed function. | |
Private Attributes | |
| const MooseObject * | _parsed_object |
| Parsed object. | |
| std::unordered_set< std::string > | _all_symbols |
| All symbols added to the parsed function. | |
Definition at line 19 of file KokkosParsedObjectBase.h.
| Moose::Kokkos::ParsedObjectBase::ParsedObjectBase | ( | const MooseObject * | object | ) |
|
protected |
Add a constant.
| name | The variable name |
| constant | The constant value |
Referenced by initParsed().
|
protected |
Add a field variable.
| name | The variable name |
| field | The coupled field variable |
Referenced by initParsed().
|
protected |
|
protected |
Add a material property.
| name | The variable name |
| property | The material property |
Referenced by initParsed().
|
protected |
Add a scalar variable.
| name | The variable name |
| scalar | The pointer to the scalar variable |
Referenced by initParsed().
|
protected |
Check if duplicate symbols were added.
| symbols | The list of symbols |
| param | The parameter name containing symbols |
Definition at line 124 of file KokkosParsedObjectBase.h.
|
private |
Finalize parsed function.
Referenced by initParsed().
|
protected |
Initialize symbols from parsed parameters.
variable_names must be supplied by the caller because Coupleable::coupledNames() is protected.
Definition at line 137 of file KokkosParsedObjectBase.h.
|
static |
|
private |
All symbols added to the parsed function.
Definition at line 119 of file KokkosParsedObjectBase.h.
Referenced by checkDuplicateSymbols().
|
protected |
Parsed function builder.
Definition at line 80 of file KokkosParsedObjectBase.h.
|
protected |
Constants used in the parsed expression.
Definition at line 88 of file KokkosParsedObjectBase.h.
|
protected |
Parsed function evaluator.
Definition at line 84 of file KokkosParsedObjectBase.h.
Referenced by KokkosParsedMaterial::computeQpProperties(), and KokkosParsedAux::computeValue().
|
protected |
Parsed expression.
Definition at line 76 of file KokkosParsedObjectBase.h.
|
protected |
Field variables used in the parsed expression.
Definition at line 96 of file KokkosParsedObjectBase.h.
|
protected |
Functions used in the parsed expression.
Definition at line 104 of file KokkosParsedObjectBase.h.
|
private |
Parsed object.
Definition at line 115 of file KokkosParsedObjectBase.h.
Referenced by checkDuplicateSymbols().
|
protected |
Material properties used in the parsed expression.
Definition at line 100 of file KokkosParsedObjectBase.h.
|
protected |
Scalar variables used in the parsed expression.
Definition at line 92 of file KokkosParsedObjectBase.h.