GRINS-0.8.0
|
ParameterUser base class. Utility methods for subclasses. More...
#include <parameter_user.h>
Public Member Functions | |
ParameterUser (const std::string &user_name) | |
virtual | ~ParameterUser () |
virtual void | set_parameter (libMesh::Number ¶m_variable, const GetPot &input, const std::string ¶m_name, libMesh::Number param_default) |
Each subclass can simultaneously read a parameter value from. More... | |
virtual void | set_parameter (libMesh::ParsedFunction< libMesh::Number, libMesh::Gradient > &func, const GetPot &input, const std::string &func_param_name, const std::string ¶m_default) |
Each subclass can simultaneously read a parsed function from. More... | |
virtual void | set_parameter (libMesh::ParsedFEMFunction< libMesh::Number > &func, const GetPot &input, const std::string &func_param_name, const std::string ¶m_default) |
Each subclass can simultaneously read a parsed function from. More... | |
virtual void | move_parameter (const libMesh::Number &old_parameter, libMesh::Number &new_parameter) |
When cloning an object, we need to update parameter pointers. More... | |
virtual void | move_parameter (const libMesh::ParsedFunction< libMesh::Number, libMesh::Gradient > &old_func, libMesh::ParsedFunction< libMesh::Number, libMesh::Gradient > &new_func) |
When cloning an object, we need to update parameter pointers. More... | |
virtual void | move_parameter (const libMesh::ParsedFEMFunction< libMesh::Number > &old_func, libMesh::ParsedFEMFunction< libMesh::Number > &new_func) |
When cloning an object, we need to update parameter pointers. More... | |
virtual void | register_parameter (const std::string ¶m_name, libMesh::ParameterMultiAccessor< libMesh::Number > ¶m_pointer) const |
Each subclass will register its copy of an independent. More... | |
Static Public Attributes | |
static std::string | zero_vector_function = std::string("{0}") |
A parseable function string with LIBMESH_DIM components, all 0. More... | |
Private Attributes | |
std::map< std::string, libMesh::Number * > | _my_parameters |
std::map< std::string, libMesh::ParsedFunction< libMesh::Number, libMesh::Gradient > * > | _my_parsed_functions |
std::map< std::string, libMesh::ParsedFEMFunction< libMesh::Number > * > | _my_parsed_fem_functions |
std::string | _my_name |
ParameterUser base class. Utility methods for subclasses.
This base class defines utility methods with which a subclass can simultaneously set a parameter from an input file and register that parameter (by input file variable name) for later parameter sensitivity studies.
Definition at line 68 of file parameter_user.h.
|
inline |
Definition at line 73 of file parameter_user.h.
|
inlinevirtual |
Definition at line 74 of file parameter_user.h.
|
virtual |
When cloning an object, we need to update parameter pointers.
Definition at line 113 of file parameter_user.C.
Referenced by GRINS::AverageNusseltNumber::clone(), GRINS::ParsedBoundaryQoI::ParsedBoundaryQoI(), and GRINS::ParsedInteriorQoI::ParsedInteriorQoI().
|
virtual |
When cloning an object, we need to update parameter pointers.
Definition at line 129 of file parameter_user.C.
|
virtual |
When cloning an object, we need to update parameter pointers.
Definition at line 149 of file parameter_user.C.
|
virtual |
Each subclass will register its copy of an independent.
Reimplemented in GRINS::SpalartAllmarasStabilizationHelper, GRINS::SpalartAllmaras< Viscosity >, GRINS::CatalyticWallBase< Chemistry >, GRINS::AntiochMixture< KineticsThermoCurveFit >, GRINS::AntiochMixture< Antioch::CEACurveFit< libMesh::Real > >, GRINS::LowMachNavierStokesBase< Viscosity, SpecificHeat, ThermalConductivity >, GRINS::AxisymmetricHeatTransfer< Conductivity >, GRINS::SpalartAllmarasViscosity< Viscosity >, GRINS::BoussinesqBuoyancySPGSMStabilization< Viscosity >, GRINS::IncompressibleNavierStokesBase< Viscosity >, GRINS::HeatConduction< Conductivity >, GRINS::BoussinesqBuoyancyAdjointStabilization< Viscosity >, GRINS::HeatTransferBase< Conductivity >, GRINS::TurbulenceModelsBase< Viscosity >, GRINS::SpalartAllmarasSPGSMStabilization< Viscosity >, GRINS::ReactingLowMachNavierStokesBase< Mixture >, and GRINS::SpalartAllmarasStabilizationBase< Viscosity >.
Definition at line 170 of file parameter_user.C.
Referenced by GRINS::ReactingLowMachNavierStokesBase< Mixture >::register_parameter(), GRINS::TurbulenceModelsBase< Viscosity >::register_parameter(), GRINS::BoussinesqBuoyancyAdjointStabilization< Viscosity >::register_parameter(), GRINS::HeatTransferBase< Conductivity >::register_parameter(), GRINS::HeatConduction< Conductivity >::register_parameter(), GRINS::IncompressibleNavierStokesBase< Viscosity >::register_parameter(), GRINS::BoussinesqBuoyancySPGSMStabilization< Viscosity >::register_parameter(), GRINS::SpalartAllmarasViscosity< Viscosity >::register_parameter(), GRINS::AxisymmetricHeatTransfer< Conductivity >::register_parameter(), GRINS::LowMachNavierStokesBase< Viscosity, SpecificHeat, ThermalConductivity >::register_parameter(), GRINS::AntiochMixture< KineticsThermoCurveFit >::register_parameter(), GRINS::SpalartAllmaras< Viscosity >::register_parameter(), and GRINS::SpalartAllmarasStabilizationHelper::register_parameter().
|
virtual |
Each subclass can simultaneously read a parameter value from.
Definition at line 50 of file parameter_user.C.
References _my_name, and _my_parameters.
Referenced by GRINS::BoussinesqBuoyancySPGSMStabilization< Viscosity >::BoussinesqBuoyancySPGSMStabilization(), GRINS::ConstantConductivity::ConstantConductivity(), GRINS::ConstantPrandtlConductivity::ConstantPrandtlConductivity(), GRINS::ConstantSourceFunction::ConstantSourceFunction(), GRINS::ConstantSourceTerm::ConstantSourceTerm(), GRINS::ConstantSpecificHeat::ConstantSpecificHeat(), GRINS::ConstantViscosity::ConstantViscosity(), GRINS::ConvectionDiffusion::ConvectionDiffusion(), GRINS::ElasticMembraneConstantPressure::ElasticMembraneConstantPressure(), GRINS::HookesLaw::HookesLaw(), GRINS::HookesLaw1D::HookesLaw1D(), GRINS::ParsedBoundaryQoI::init(), GRINS::MooneyRivlin::MooneyRivlin(), GRINS::AverageNusseltNumber::parse_thermal_conductivity(), GRINS::ParsedConductivity::ParsedConductivity(), GRINS::ParsedSourceTerm::ParsedSourceTerm(), GRINS::ParsedViscosity::ParsedViscosity(), GRINS::ReactingLowMachNavierStokesAbstract::ReactingLowMachNavierStokesAbstract(), GRINS::MaterialsParsing::read_density(), GRINS::HookesLaw1D::read_input_options(), GRINS::HookesLaw::read_input_options(), GRINS::AxisymmetricBoussinesqBuoyancy::read_input_options(), GRINS::BoussinesqBuoyancyBase::read_property(), GRINS::MaterialsParsing::read_property(), GRINS::MaterialsParsing::read_specific_heat(), GRINS::PowerLawCatalycity::set_parameters(), GRINS::ArrheniusCatalycity::set_parameters(), GRINS::ConstantCatalycity::set_parameters(), GRINS::ScalarODE::set_time_evolving_vars(), GRINS::SpalartAllmarasParameters::SpalartAllmarasParameters(), GRINS::SpalartAllmarasStabilizationHelper::SpalartAllmarasStabilizationHelper(), and GRINS::TurbulenceModelsBase< Viscosity >::TurbulenceModelsBase().
|
virtual |
Each subclass can simultaneously read a parsed function from.
Definition at line 65 of file parameter_user.C.
|
virtual |
Each subclass can simultaneously read a parsed function from.
Definition at line 89 of file parameter_user.C.
|
private |
Definition at line 152 of file parameter_user.h.
Referenced by set_parameter().
|
private |
Definition at line 140 of file parameter_user.h.
Referenced by set_parameter().
|
private |
Definition at line 148 of file parameter_user.h.
|
private |
Definition at line 144 of file parameter_user.h.
|
static |
A parseable function string with LIBMESH_DIM components, all 0.
Definition at line 125 of file parameter_user.h.