![]() |
OGS
|
|
Classes | |
| struct | ConstantParameter |
| Single, constant value parameter. More... | |
| struct | CoordinateSystem |
| A local coordinate system used for tensor transformations. More... | |
| struct | CurveScaledParameter |
| struct | CurveWrapper |
| class | FunctionEvaluation |
| struct | FunctionParameter |
| struct | GroupBasedParameter |
| struct | MeshElementParameter |
| A parameter represented by a mesh property vector. More... | |
| struct | MeshNodeParameter |
| A parameter represented by a mesh property vector. More... | |
| struct | Parameter |
| struct | ParameterBase |
| struct | RandomFieldMeshElementParameter |
| A parameter represented by a mesh property vector. More... | |
| struct | RasterParameter |
| class | SpatialPosition |
| struct | SymbolTableCache |
| class | TimeDependentHeterogeneousParameter |
Functions | |
| std::unique_ptr< ParameterBase > | createConstantParameter (std::string const &name, BaseLib::ConfigTree const &config) |
| template<int Dim> | |
| static void | checkTransformationIsSON (Eigen::Matrix< double, Dim, Dim, Eigen::ColMajor, Dim, Dim > const &t) |
| template<typename Derived> | |
| static void | checkNormalization (Eigen::MatrixBase< Derived > const &vec, std::string_view const parmeter_name) |
| Eigen::Matrix< double, 2, 2 > | getTransformationFromSingleBase2D (Parameter< double > const &unit_direction, SpatialPosition const &pos) |
| Eigen::Matrix< double, 3, 3 > | getTransformationFromSingleBase3D (Parameter< double > const &unit_direction, SpatialPosition const &pos) |
| Parameter< double > const * | parseBase1OrBase2 (BaseLib::ConfigTree const &config, std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const ¶meters, int const expected_component_number, std::string_view const base_tag_name) |
| void | checkThirdBaseExistanceFor2D (BaseLib::ConfigTree const &config) |
| void | confirmThirdBaseExplicit (BaseLib::ConfigTree const &config) |
| std::optional< ParameterLib::CoordinateSystem > | createCoordinateSystemWithImplicitBase (BaseLib::ConfigTree const &config, std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const ¶meters) |
| std::optional< ParameterLib::CoordinateSystem > | createCoordinateSystem (std::optional< BaseLib::ConfigTree > const &config, std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const ¶meters) |
| std::unique_ptr< ParameterBase > | createCurveScaledParameter (std::string const &name, BaseLib::ConfigTree const &config, std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation > > const &curves) |
| bool | isBuiltinSymbol (std::string_view const name) |
| bool | hasSpatialVariables (std::vector< std::string > const &variables) |
| exprtk::symbol_table< double > | createBaseSymbolTable (bool spatial_position_is_required) |
| void | registerCurveWrappers (exprtk::symbol_table< double > &symbol_table, std::vector< std::string > const &curve_names, std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation > > const &curves, std::map< std::string, CurveWrapper > &curve_wrappers) |
| template std::vector< exprtk::expression< double > > | compileExpressions< double > (exprtk::symbol_table< double > &, std::vector< std::string > const &) |
| std::vector< std::string > | collectVariables (std::vector< std::string > const &expression_strings) |
| std::vector< std::string > | collectUsedCurveNames (std::vector< std::string > const &expression_symbol_names, std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation > > const &curves) |
Returns the subset of expression_symbol_names that are keys in curves. | |
| template<typename T> | |
| std::vector< exprtk::expression< T > > | compileExpressions (exprtk::symbol_table< T > &symbol_table, std::vector< std::string > const &string_expressions) |
| static FunctionEvaluation::SymbolTable | createSymbolTable (std::vector< std::string > const &variables, bool const spatial_position_is_required, std::vector< std::string > const &used_curve_names, std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation > > const &curves, std::map< std::string, CurveWrapper > &curve_wrappers) |
| std::unique_ptr< ParameterBase > | createFunctionParameter (std::string const &name, BaseLib::ConfigTree const &config, std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation > > const &curves) |
| std::unique_ptr< ParameterBase > | createGroupBasedParameter (std::string const &name, BaseLib::ConfigTree const &config, MeshLib::Mesh const &mesh) |
| std::unique_ptr< ParameterBase > | createMeshElementParameter (std::string const &name, BaseLib::ConfigTree const &config, MeshLib::Mesh const &mesh) |
| std::unique_ptr< ParameterBase > | createMeshNodeParameter (std::string const &name, BaseLib::ConfigTree const &config, MeshLib::Mesh const &mesh) |
| std::unique_ptr< ParameterBase > | createParameter (BaseLib::ConfigTree const &config, std::vector< std::unique_ptr< MeshLib::Mesh > > const &meshes, std::vector< GeoLib::NamedRaster > const &named_rasters, std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation > > const &curves) |
| std::optional< std::string > | isDefinedOnSameMesh (ParameterBase const ¶meter, MeshLib::Mesh const &mesh) |
| Parameter< double > & | getNamedOrCreateInlineParameter (std::string const ¶meter_or_value, std::vector< std::unique_ptr< ParameterBase > > ¶meters, std::string const &property_name, std::string const &inline_suffix) |
| std::unique_ptr< ParameterBase > | createRandomFieldMeshElementParameter (std::string const &name, BaseLib::ConfigTree const &config, MeshLib::Mesh &mesh) |
| std::unique_ptr< ParameterBase > | createRasterParameter (std::string const &name, BaseLib::ConfigTree const &config, std::vector< GeoLib::NamedRaster > const &named_rasters) |
| std::ostream & | operator<< (std::ostream &os, SpatialPosition const &pos) |
| std::unique_ptr< ParameterBase > | createTimeDependentHeterogeneousParameter (std::string const &name, BaseLib::ConfigTree const &config) |
| ParameterBase * | findParameterByName (std::string const ¶meter_name, std::vector< std::unique_ptr< ParameterBase > > const ¶meters) |
| template<typename ParameterDataType> | |
| Parameter< ParameterDataType > * | findParameterOptional (std::string const ¶meter_name, std::vector< std::unique_ptr< ParameterBase > > const ¶meters, int const num_components, MeshLib::Mesh const *const mesh=nullptr) |
| template<typename ParameterDataType> | |
| OGS_NO_DANGLING Parameter< ParameterDataType > & | findParameter (std::string const ¶meter_name, std::vector< std::unique_ptr< ParameterBase > > const ¶meters, int const num_components, MeshLib::Mesh const *const mesh=nullptr) |
| template<typename ParameterDataType> | |
| OGS_NO_DANGLING Parameter< ParameterDataType > & | findParameter (BaseLib::ConfigTree const &process_config, std::string const &tag, std::vector< std::unique_ptr< ParameterBase > > const ¶meters, int const num_components, MeshLib::Mesh const *const mesh=nullptr) |
| template<typename ParameterDataType> | |
| Parameter< ParameterDataType > * | findOptionalTagParameter (BaseLib::ConfigTree const &process_config, std::string const &tag, std::vector< std::unique_ptr< ParameterBase > > const ¶meters, int const num_components, MeshLib::Mesh const *const mesh=nullptr) |
Variables | |
| static double const | tolerance = std::numeric_limits<double>::epsilon() |
|
static |
Definition at line 48 of file ParameterLib/CoordinateSystem.cpp.
References OGS_FATAL, and tolerance.
Referenced by ParameterLib::CoordinateSystem::transformation().
| void ParameterLib::checkThirdBaseExistanceFor2D | ( | BaseLib::ConfigTree const & | config | ) |
Definition at line 54 of file CreateCoordinateSystem.cpp.
References BaseLib::ConfigTree::getConfigSubtreeOptional(), and OGS_FATAL.
Referenced by createCoordinateSystem(), and createCoordinateSystemWithImplicitBase().
|
static |
Definition at line 21 of file ParameterLib/CoordinateSystem.cpp.
References OGS_FATAL, and tolerance.
Referenced by ParameterLib::CoordinateSystem::transformation(), and ParameterLib::CoordinateSystem::transformation_3d().
| std::vector< std::string > ParameterLib::collectUsedCurveNames | ( | std::vector< std::string > const & | expression_symbol_names, |
| std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation > > const & | curves ) |
Returns the subset of expression_symbol_names that are keys in curves.
Definition at line 153 of file ExprtkUtils.cpp.
Referenced by ParameterLib::FunctionEvaluation::FunctionEvaluation(), and MaterialPropertyLib::Function::Implementation< D >::Implementation().
| std::vector< std::string > ParameterLib::collectVariables | ( | std::vector< std::string > const & | expression_strings | ) |
Collects and deduplicates all variable/function identifiers appearing in the given expression strings by calling exprtk::collect_variables on each.
Definition at line 126 of file ExprtkUtils.cpp.
References createBaseSymbolTable(), BaseLib::makeVectorUnique(), and OGS_FATAL.
Referenced by MaterialPropertyLib::Function::Function(), and ParameterLib::FunctionEvaluation::FunctionEvaluation().
| std::vector< exprtk::expression< T > > ParameterLib::compileExpressions | ( | exprtk::symbol_table< T > & | symbol_table, |
| std::vector< std::string > const & | string_expressions ) |
Compiles expression strings into exprtk expressions using the given symbol table. Assignment (:=, +=, ...) to user-defined local vars is allowed, but assignment to a symbol that is already registered in symbol_table (the built-in t/x/y/z, MPL variables, curves or constants) is rejected: such a write would corrupt the shared per-thread evaluation scratch. This is enforced by enabling exprtk's dependent-entity collector and checking, after each compile, whether any assignment target resolves to a registered symbol (local var assignments are not reported by the collector).
Definition at line 74 of file ExprtkUtils.h.
References OGS_FATAL.
Referenced by ParameterLib::FunctionEvaluation::PerThreadData::PerThreadData(), and MaterialPropertyLib::PerThreadData::compileExpressions().
| template std::vector< exprtk::expression< double > > ParameterLib::compileExpressions< double > | ( | exprtk::symbol_table< double > & | , |
| std::vector< std::string > const & | ) |
| void ParameterLib::confirmThirdBaseExplicit | ( | BaseLib::ConfigTree const & | config | ) |
Definition at line 67 of file CreateCoordinateSystem.cpp.
References BaseLib::ConfigTree::getConfigAttribute(), and OGS_FATAL.
Referenced by createCoordinateSystem(), and createCoordinateSystemWithImplicitBase().
| exprtk::symbol_table< double > ParameterLib::createBaseSymbolTable | ( | bool | spatial_position_is_required | ) |
Creates a symbol table with time variable ("t") and optionally spatial variables ("x", "y", "z"). Does not add any other variables or curves.
Definition at line 51 of file ExprtkUtils.cpp.
Referenced by collectVariables(), MaterialPropertyLib::createSymbolTable(), and createSymbolTable().
| std::unique_ptr< ParameterBase > ParameterLib::createConstantParameter | ( | std::string const & | name, |
| BaseLib::ConfigTree const & | config ) |
Definition at line 12 of file ConstantParameter.cpp.
References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), BaseLib::ConfigTree::getConfigParameterOptional(), and OGS_FATAL.
Referenced by createParameter().
| std::optional< ParameterLib::CoordinateSystem > ParameterLib::createCoordinateSystem | ( | std::optional< BaseLib::ConfigTree > const & | config, |
| std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const & | parameters ) |
Definition at line 134 of file CreateCoordinateSystem.cpp.
References checkThirdBaseExistanceFor2D(), confirmThirdBaseExplicit(), createCoordinateSystemWithImplicitBase(), findParameter(), OGS_FATAL, and parseBase1OrBase2().
| std::optional< ParameterLib::CoordinateSystem > ParameterLib::createCoordinateSystemWithImplicitBase | ( | BaseLib::ConfigTree const & | config, |
| std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const & | parameters ) |
Definition at line 79 of file CreateCoordinateSystem.cpp.
References checkThirdBaseExistanceFor2D(), confirmThirdBaseExplicit(), BaseLib::ConfigTree::getConfigAttribute(), BaseLib::ConfigTree::getConfigSubtree(), BaseLib::ConfigTree::getConfigSubtreeOptional(), OGS_FATAL, and parseBase1OrBase2().
Referenced by createCoordinateSystem().
| std::unique_ptr< ParameterBase > ParameterLib::createCurveScaledParameter | ( | std::string const & | name, |
| BaseLib::ConfigTree const & | config, | ||
| std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation > > const & | curves ) |
Definition at line 10 of file CurveScaledParameter.cpp.
References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), BaseLib::ConfigTree::getConfigParameter(), and OGS_FATAL.
Referenced by createParameter().
| std::unique_ptr< ParameterBase > ParameterLib::createFunctionParameter | ( | std::string const & | name, |
| BaseLib::ConfigTree const & | config, | ||
| std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation > > const & | curves ) |
Definition at line 10 of file FunctionParameter.cpp.
References BaseLib::ConfigTree::checkConfigParameter(), and BaseLib::ConfigTree::getConfigSubtreeList().
Referenced by createParameter().
| std::unique_ptr< ParameterBase > ParameterLib::createGroupBasedParameter | ( | std::string const & | name, |
| BaseLib::ConfigTree const & | config, | ||
| MeshLib::Mesh const & | mesh ) |
Definition at line 12 of file GroupBasedParameter.cpp.
References MeshLib::Cell, BaseLib::ConfigTree::checkConfigParameter(), DBUG(), BaseLib::ConfigTree::getConfigParameter(), BaseLib::ConfigTree::getConfigSubtreeList(), MeshLib::Mesh::getProperties(), MeshLib::Properties::getPropertyVector(), MeshLib::Node, and OGS_FATAL.
Referenced by createParameter().
| std::unique_ptr< ParameterBase > ParameterLib::createMeshElementParameter | ( | std::string const & | name, |
| BaseLib::ConfigTree const & | config, | ||
| MeshLib::Mesh const & | mesh ) |
Definition at line 11 of file MeshElementParameter.cpp.
References MeshLib::Cell, BaseLib::ConfigTree::checkConfigParameter(), DBUG(), BaseLib::ConfigTree::getConfigParameter(), MeshLib::Mesh::getProperties(), MeshLib::Properties::getPropertyVector(), and OGS_FATAL.
Referenced by createParameter().
| std::unique_ptr< ParameterBase > ParameterLib::createMeshNodeParameter | ( | std::string const & | name, |
| BaseLib::ConfigTree const & | config, | ||
| MeshLib::Mesh const & | mesh ) |
Definition at line 11 of file MeshNodeParameter.cpp.
References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), BaseLib::ConfigTree::getConfigParameter(), MeshLib::Mesh::getProperties(), MeshLib::Properties::getPropertyVector(), MeshLib::Node, and OGS_FATAL.
Referenced by createParameter().
| std::unique_ptr< ParameterBase > ParameterLib::createParameter | ( | BaseLib::ConfigTree const & | config, |
| const std::vector< std::unique_ptr< MeshLib::Mesh > > & | meshes, | ||
| std::vector< GeoLib::NamedRaster > const & | named_rasters, | ||
| std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation > > const & | curves ) |
Constructs a new ParameterBase from the given configuration.
The meshes vector is used to set up parameters from mesh input data. The named_rasters vector is used to set up parameters from raster input data.
Definition at line 21 of file ParameterLib/Parameter.cpp.
References createConstantParameter(), createCurveScaledParameter(), createFunctionParameter(), createGroupBasedParameter(), createMeshElementParameter(), createMeshNodeParameter(), createRandomFieldMeshElementParameter(), createRasterParameter(), createTimeDependentHeterogeneousParameter(), MeshLib::findMeshByName(), BaseLib::ConfigTree::getConfigParameter(), INFO(), OGS_FATAL, BaseLib::ConfigTree::peekConfigParameter(), and WARN().
Referenced by ProjectData::parseParameters().
| std::unique_ptr< ParameterBase > ParameterLib::createRandomFieldMeshElementParameter | ( | std::string const & | name, |
| BaseLib::ConfigTree const & | config, | ||
| MeshLib::Mesh & | mesh ) |
Definition at line 15 of file RandomFieldMeshElementParameter.cpp.
References MeshLib::addPropertyToMesh(), MeshLib::Cell, BaseLib::ConfigTree::checkConfigParameter(), DBUG(), BaseLib::ConfigTree::getConfigParameter(), MeshLib::Mesh::getElements(), MeshLib::Mesh::getProperties(), MeshLib::Properties::getPropertyVector(), and OGS_FATAL.
Referenced by createParameter().
| std::unique_ptr< ParameterBase > ParameterLib::createRasterParameter | ( | std::string const & | name, |
| BaseLib::ConfigTree const & | config, | ||
| std::vector< GeoLib::NamedRaster > const & | named_rasters ) |
Definition at line 12 of file RasterParameter.cpp.
References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), and BaseLib::getIfOrError().
Referenced by createParameter().
|
static |
Definition at line 41 of file FunctionEvaluation.cpp.
References createBaseSymbolTable(), isBuiltinSymbol(), and registerCurveWrappers().
Referenced by ParameterLib::FunctionEvaluation::PerThreadData::PerThreadData().
| std::unique_ptr< ParameterBase > ParameterLib::createTimeDependentHeterogeneousParameter | ( | std::string const & | name, |
| BaseLib::ConfigTree const & | config ) |
Definition at line 106 of file TimeDependentHeterogeneousParameter.cpp.
References BaseLib::ConfigTree::getConfigParameter(), BaseLib::ConfigTree::getConfigSubtree(), and OGS_FATAL.
Referenced by createParameter().
| Parameter< ParameterDataType > * ParameterLib::findOptionalTagParameter | ( | BaseLib::ConfigTree const & | process_config, |
| std::string const & | tag, | ||
| std::vector< std::unique_ptr< ParameterBase > > const & | parameters, | ||
| int const | num_components, | ||
| MeshLib::Mesh const *const | mesh = nullptr ) |
Find a parameter of specific type for a name given in the process configuration under the optional tag. If the tag is not present, a nullptr will be returned. The parameter must have the specified number of components. In the process config a parameter is referenced by a name. For example it will be looking for a parameter named "K" in the list of parameters when the tag is "hydraulic_conductivity":
and return a pointer to that parameter. Additionally it checks for the type of the found parameter.
Definition at line 159 of file ParameterLib/Utils.h.
References findParameter(), and BaseLib::ConfigTree::getConfigParameterOptional().
Referenced by ProcessLib::ComponentTransport::createComponentTransportProcess(), ProcessLib::LargeDeformation::createLargeDeformationProcess(), ProcessLib::SmallDeformation::createSmallDeformationProcess(), and ProcessLib::ThermoMechanics::createThermoMechanicsProcess().
| OGS_NO_DANGLING Parameter< ParameterDataType > & ParameterLib::findParameter | ( | BaseLib::ConfigTree const & | process_config, |
| std::string const & | tag, | ||
| std::vector< std::unique_ptr< ParameterBase > > const & | parameters, | ||
| int const | num_components, | ||
| MeshLib::Mesh const *const | mesh = nullptr ) |
Find a parameter of specific type for a name given in the process configuration under the tag. The parameter must have the specified number of components. In the process config a parameter is referenced by a name. For example it will be looking for a parameter named "K" in the list of parameters when the tag is "hydraulic_conductivity":
and return a reference to that parameter. Additionally it checks for the type of the found parameter.
Definition at line 128 of file ParameterLib/Utils.h.
References findParameter(), BaseLib::ConfigTree::getConfigParameter(), and OGS_NO_DANGLING.
| OGS_NO_DANGLING Parameter< ParameterDataType > & ParameterLib::findParameter | ( | std::string const & | parameter_name, |
| std::vector< std::unique_ptr< ParameterBase > > const & | parameters, | ||
| int const | num_components, | ||
| MeshLib::Mesh const *const | mesh = nullptr ) |
Find a parameter of specific type for a given name.
| ParameterDataType | the data type of the parameter |
| parameter_name | name of the requested parameter |
| parameters | list of parameters in which it will be searched |
| num_components | the number of components of the parameters or zero if any number is acceptable |
| mesh | an optional mesh pointer used for test whether the parameter is defined on the given mesh. No test is performed if the pointer is a nullptr. |
Definition at line 95 of file ParameterLib/Utils.h.
References findParameterOptional(), OGS_FATAL, and OGS_NO_DANGLING.
Referenced by ProcessLib::createAnchorTerm(), ProcessLib::ProcessVariable::createBoundaryConditionsForDeactivatedSubDomains(), MaterialLib::Fracture::CohesiveZoneModeI::createCohesiveZoneModeI(), ProcessLib::ComponentTransport::createComponentTransportProcess(), ProcessLib::createConstraintDirichletBoundaryCondition(), createCoordinateSystem(), MaterialLib::Fracture::createCoulomb(), MaterialLib::Solids::Creep::createCreepBGRa(), MaterialPropertyLib::createCubicLawPermeability(), MaterialLib::Solids::Ehlers::createDamageProperties(), ProcessLib::createDeactivatedSubdomain(), ProcessLib::createDirichletBoundaryCondition(), ProcessLib::createDirichletBoundaryConditionWithinTimeInterval(), MaterialPropertyLib::createDupuitPermeability(), MaterialLib::Solids::Ehlers::createEhlers(), MaterialPropertyLib::createEmbeddedFracturePermeability(), MaterialPropertyLib::createGasPressureDependentPermeability(), ProcessLib::createHCNonAdvectiveFreeComponentFlowBoundaryCondition(), ProcessLib::HMPhaseField::createHMPhaseFieldProcess(), ProcessLib::HT::createHTProcess(), ProcessLib::LIE::HydroMechanics::createHydroMechanicsProcess(), ProcessLib::createInitialStress(), MaterialPropertyLib::createKozenyCarmanModel(), MaterialLib::Fracture::createLinearElasticIsotropic(), MaterialLib::Solids::createLinearElasticIsotropic(), MaterialLib::Solids::createLinearElasticIsotropicSoftening(), MaterialLib::Solids::createLinearElasticOrthotropic(), MaterialLib::Solids::createLinearElasticTransverseIsotropic(), ProcessLib::LiquidFlow::createLiquidFlowProcess(), MaterialLib::Solids::Lubby2::createLubby2(), ProcessLib::createNeumannBoundaryCondition(), ProcessLib::createNodalSourceTerm(), ProcessLib::NormalTractionBoundaryCondition::createNormalTractionBoundaryCondition(), MaterialPropertyLib::createOrthotropicEmbeddedFracturePermeability(), MaterialPropertyLib::createParameterProperty(), MaterialPropertyLib::createPermeabilityMohrCoulombFailureIndexModel(), ProcessLib::PhaseField::createPhaseFieldProcess(), MaterialPropertyLib::createPorosityFromMassBalance(), ProcessLib::createPrimaryVariableConstraintDirichletBoundaryCondition(), ProcessLib::createReleaseNodalForce(), ProcessLib::WellboreSimulator::createReservoirProperties(), ProcessLib::createRobinBoundaryCondition(), ProcessLib::LIE::SmallDeformation::createSmallDeformationProcess(), ProcessLib::createSolutionDependentDirichletBoundaryCondition(), MaterialPropertyLib::createStrainDependentPermeability(), MaterialPropertyLib::createTemperatureDependentDiffusion(), ProcessLib::createTimeDecayDirichletBoundaryCondition(), MaterialPropertyLib::createTransportPorosityFromMassBalance(), ProcessLib::TwoPhaseFlowWithPP::createTwoPhaseFlowWithPPProcess(), ProcessLib::createVariableDependentNeumannBoundaryCondition(), MaterialPropertyLib::createVermaPruessModel(), ProcessLib::createVolumetricSourceTerm(), ProcessLib::WellboreSimulator::createWellboreGeometry(), ProcessLib::WellboreSimulator::createWellboreSimulatorProcess(), findOptionalTagParameter(), findParameter(), getNamedOrCreateInlineParameter(), ParameterLib::CurveScaledParameter< T >::initialize(), ParameterLib::TimeDependentHeterogeneousParameter::initialize(), parseBase1OrBase2(), parseOverwriteMeshData(), anonymous_namespace{CreateMFrontGeneric.cpp}::readMaterialProperties(), and anonymous_namespace{CreateMFrontGeneric.cpp}::readStateVariablesInitialValueProperties().
| ParameterBase * ParameterLib::findParameterByName | ( | std::string const & | parameter_name, |
| std::vector< std::unique_ptr< ParameterBase > > const & | parameters ) |
Find an optional parameter of specific type for a given name.
| ParameterDataType | the data type of the parameter |
| parameter_name | name of the requested parameter |
| parameters | list of parameters in which it will be searched |
Definition at line 8 of file ParameterLib/Utils.cpp.
References DBUG().
Referenced by findParameterOptional().
| Parameter< ParameterDataType > * ParameterLib::findParameterOptional | ( | std::string const & | parameter_name, |
| std::vector< std::unique_ptr< ParameterBase > > const & | parameters, | ||
| int const | num_components, | ||
| MeshLib::Mesh const *const | mesh = nullptr ) |
Find an optional parameter of specific type for a given name.
| ParameterDataType | the data type of the parameter |
| parameter_name | name of the requested parameter |
| parameters | list of parameters in which it will be searched |
| num_components | the number of components of the parameters or zero if any number is acceptable |
| mesh | an optional mesh pointer used for test whether the parameter is defined on the given mesh. No test is performed if the pointer is a nullptr. |
Definition at line 36 of file ParameterLib/Utils.h.
References findParameterByName(), isDefinedOnSameMesh(), and OGS_FATAL.
Referenced by findParameter().
| OGS_NO_DANGLING Parameter< double > & ParameterLib::getNamedOrCreateInlineParameter | ( | std::string const & | parameter_or_value, |
| std::vector< std::unique_ptr< ParameterBase > > & | parameters, | ||
| std::string const & | property_name, | ||
| std::string const & | inline_suffix ) |
Returns a Parameter<double>& based on the value of the given config tag.
If the config entry <tag_name> is a double, creates a ConstantParameter with that value, adds it to parameters, and returns it.
If the entry is a string, interprets it as the name of an existing parameter and returns a reference to that parameter.
| parameter_or_value | The raw string to create parameter or value from. |
| parameters | The parameter storage vector (will be modified if an inline constant is created). |
| property_name | Name of the property (used for auto-generated parameter names in the inline case). |
| inline_suffix | Suffix for auto-generated parameter names. |
Definition at line 126 of file ParameterLib/Parameter.cpp.
References findParameter(), BaseLib::getUniqueName(), OGS_FATAL, and BaseLib::tryParseVector().
Referenced by ProcessLib::HeatTransportBHE::BHE::createBoreholeGeometry(), ProcessLib::HeatTransportBHE::BHE::createCoolingVariant(), ProcessLib::HeatTransportBHE::BHE::createFlowAndTemperatureControl(), ProcessLib::HeatTransportBHE::BHE::createPipe(), ProcessLib::HeatTransportBHE::BHE::createPowerWithCOPStruct(), and MaterialPropertyLib::createSaturationWeightedThermalConductivity().
| Eigen::Matrix< double, 2, 2 > ParameterLib::getTransformationFromSingleBase2D | ( | Parameter< double > const & | unit_direction, |
| SpatialPosition const & | pos ) |
Definition at line 125 of file ParameterLib/CoordinateSystem.cpp.
| Eigen::Matrix< double, 3, 3 > ParameterLib::getTransformationFromSingleBase3D | ( | Parameter< double > const & | unit_direction, |
| SpatialPosition const & | pos ) |
Definition at line 167 of file ParameterLib/CoordinateSystem.cpp.
Referenced by ParameterLib::CoordinateSystem::transformationFromSingleBase_3d().
| bool ParameterLib::hasSpatialVariables | ( | std::vector< std::string > const & | variables | ) |
Returns true if variables contains any of the spatial variable names "x", "y", or "z".
Definition at line 45 of file ExprtkUtils.cpp.
Referenced by ParameterLib::FunctionEvaluation::FunctionEvaluation(), and MaterialPropertyLib::Function::Implementation< D >::Implementation().
| bool ParameterLib::isBuiltinSymbol | ( | std::string_view | name | ) |
Returns true if name is one of the built-in symbol names registered by createBaseSymbolTable ("t", "x", "y", "z").
Definition at line 40 of file ExprtkUtils.cpp.
Referenced by MaterialPropertyLib::Function::Function(), MaterialPropertyLib::createSymbolTable(), and createSymbolTable().
| std::optional< std::string > ParameterLib::isDefinedOnSameMesh | ( | ParameterBase const & | parameter, |
| MeshLib::Mesh const & | mesh ) |
Checks whether the parameter can be used on the given mesh. The parameter's domain of definition can be arbitrary (like for constant parameters), or the parameter is defined on a mesh. In the latter case that mesh must be equal to the given mesh.
Definition at line 101 of file ParameterLib/Parameter.cpp.
References MeshLib::Mesh::getName(), and ParameterLib::ParameterBase::mesh().
Referenced by findParameterOptional().
| std::ostream & ParameterLib::operator<< | ( | std::ostream & | os, |
| SpatialPosition const & | pos ) |
Prints the node id, element id and coordinates carried by pos, using "not set" for any of the three that is not specified.
Definition at line 12 of file SpatialPosition.cpp.
References ParameterLib::SpatialPosition::getCoordinates(), ParameterLib::SpatialPosition::getElementID(), and ParameterLib::SpatialPosition::getNodeID().
| Parameter< double > const * ParameterLib::parseBase1OrBase2 | ( | BaseLib::ConfigTree const & | config, |
| std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const & | parameters, | ||
| int const | expected_component_number, | ||
| std::string_view const | base_tag_name ) |
Definition at line 20 of file CreateCoordinateSystem.cpp.
References findParameter(), BaseLib::ConfigTree::getValue(), and OGS_FATAL.
Referenced by createCoordinateSystem(), and createCoordinateSystemWithImplicitBase().
| void ParameterLib::registerCurveWrappers | ( | exprtk::symbol_table< double > & | symbol_table, |
| std::vector< std::string > const & | curve_names, | ||
| std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation > > const & | curves, | ||
| std::map< std::string, CurveWrapper > & | curve_wrappers ) |
Registers CurveWrapper objects in the symbol table for the given curve names.
| symbol_table | The symbol table to register curves into. |
| curve_names | Names of curves to register. |
| curves | Map of all available curves. |
| curve_wrappers | Is filled with CurveWrapper objects and must outlive the returned symbol table. |
Definition at line 66 of file ExprtkUtils.cpp.
References OGS_FATAL.
Referenced by MaterialPropertyLib::createSymbolTable(), and createSymbolTable().
|
static |
Definition at line 18 of file ParameterLib/CoordinateSystem.cpp.
Referenced by checkNormalization(), checkTransformationIsSON(), and ParameterLib::CoordinateSystem::transformation().