The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system. More...
#include <InputParameters.h>
Classes | |
struct | Metadata |
Public Member Functions | |
InputParameters (const InputParameters &rhs) | |
InputParameters (const Parameters &rhs) | |
virtual | ~InputParameters ()=default |
virtual void | clear () override |
void | addClassDescription (const std::string &doc_string) |
This method adds a description of the class that will be displayed in the input file syntax dump. More... | |
std::string | getClassDescription () const |
Returns the class description. More... | |
virtual void | set_attributes (const std::string &name, bool inserted_only) override |
Override from libMesh to set user-defined attributes on our parameter. More... | |
template<typename T > | |
void | setHelper (const std::string &name) |
This functions is called in set as a 'callback' to avoid code duplication. More... | |
template<typename T > | |
T & | set (const std::string &name, bool quiet_mode=false) |
Returns a writable reference to the named parameters. More... | |
template<typename T , typename UP_T > | |
void | rangeCheck (const std::string &full_name, const std::string &short_name, InputParameters::Parameter< T > *param, std::ostream &oss=Moose::out) |
Runs a range on the supplied parameter if it exists and throws an error if that check fails. More... | |
template<typename T , typename UP_T > | |
void | rangeCheck (const std::string &full_name, const std::string &short_name, InputParameters::Parameter< std::vector< T >> *param, std::ostream &oss=Moose::out) |
template<typename T > | |
T | getCheckedPointerParam (const std::string &name, const std::string &error_string="") const |
Verifies that the requested parameter exists and is not NULL and returns it to the caller. More... | |
template<typename T > | |
void | addRequiredParam (const std::string &name, const std::string &doc_string) |
This method adds a parameter and documentation string to the InputParameters object that will be extracted from the input file. More... | |
template<typename T > | |
void | addRequiredParam (const std::string &name, const T &moose_enum, const std::string &doc_string) |
This version of addRequiredParam is here for a consistent use with MooseEnums. More... | |
template<typename T > | |
void | addRequiredCustomTypeParam (const std::string &name, const std::string &custom_type, const std::string &doc_string) |
These methods add an option parameter and with a customer type to the InputParameters object. More... | |
template<typename T > | |
void | addCustomTypeParam (const std::string &name, const T &value, const std::string &custom_type, const std::string &doc_string) |
template<typename T > | |
void | addCustomTypeParam (const std::string &name, const std::string &custom_type, const std::string &doc_string) |
template<typename T > | |
void | addPrivateParam (const std::string &name, const T &value) |
These method add a parameter to the InputParameters object which can be retrieved like any other parameter. More... | |
template<typename T > | |
void | addPrivateParam (const std::string &name) |
template<typename T > | |
void | addRequiredCommandLineParam (const std::string &name, const std::string &syntax, const std::string &doc_string) |
Add parameters for retrieval from the command line. More... | |
template<typename T > | |
void | addCommandLineParam (const std::string &name, const std::string &syntax, const std::string &doc_string) |
template<typename T > | |
void | addCommandLineParam (const std::string &name, const std::string &syntax, const T &value, const std::string &doc_string) |
template<typename T > | |
void | addDeprecatedParam (const std::string &name, const T &value, const std::string &doc_string, const std::string &deprecation_message) |
template<typename T > | |
void | addDeprecatedParam (const std::string &name, const std::string &doc_string, const std::string &deprecation_message) |
template<typename T > | |
void | checkConsistentType (const std::string &name) const |
This method checks to make sure that we aren't adding a parameter with the same name but a different type. More... | |
std::vector< std::string > | getSyntax (const std::string &name) |
Get the syntax for a command-line parameter. More... | |
const std::string & | getDescription (const std::string &name) |
Get the documentation string for a parameter. More... | |
void | addParamNamesToGroup (const std::string &space_delim_names, const std::string group_name) |
This method takes a space delimited list of parameter names and adds them to the specified group name. More... | |
std::string | getGroupName (const std::string ¶m_name) const |
This method retrieves the group name for the passed parameter name if one exists. More... | |
template<typename T > | |
void | suppressParameter (const std::string &name) |
This method suppresses an inherited parameter so that it isn't required or valid in the derived class. More... | |
template<typename T > | |
void | makeParamRequired (const std::string &name) |
Changes the parameter to be required. More... | |
template<typename T > | |
void | makeParamNotRequired (const std::string &name) |
Changes the parameter to not be required. More... | |
void | addCoupledVar (const std::string &name, const std::string &doc_string) |
This method adds a coupled variable name pair. More... | |
void | addCoupledVar (const std::string &name, const Real value, const std::string &doc_string) |
This method adds a coupled variable name pair. More... | |
void | addCoupledVar (const std::string &name, const std::vector< Real > &value, const std::string &doc_string) |
This method adds a coupled variable name pair. More... | |
std::string | getMooseType (const std::string &name) const |
Utility functions for retrieving one of the MooseTypes variables into the common "string" base class. More... | |
std::vector< std::string > | getVecMooseType (const std::string &name) const |
void | addRequiredCoupledVar (const std::string &name, const std::string &doc_string) |
This method adds a coupled variable name pair. More... | |
std::string | getDocString (const std::string &name) const |
Returns the documentation string for the specified parameter name. More... | |
void | setDocString (const std::string &name, const std::string &doc) |
Set the doc string of a parameter. More... | |
bool | isParamRequired (const std::string &name) const |
Returns a boolean indicating whether the specified parameter is required or not. More... | |
bool | isParamValid (const std::string &name) const |
This method returns parameters that have been initialized in one fashion or another, i.e. More... | |
bool | isParamSetByAddParam (const std::string &name) const |
Returns whether or not the parameter was set due to addParam. More... | |
bool | isParamDeprecated (const std::string &name) const |
Returns True if the parameters is deprecated. More... | |
bool | areAllRequiredParamsValid () const |
This method returns true if all of the parameters in this object are valid (i.e. More... | |
std::string | type (const std::string &name) |
Prints the type of the requested parameter by name. More... | |
bool | isPrivate (const std::string &name) const |
Returns a Boolean indicating whether the specified parameter is private or not. More... | |
void | declareControllable (const std::string &name, std::set< ExecFlagType > execute_flags={}) |
Declare the given parameters as controllable. More... | |
void | markControlled (const std::string &name) |
Marker a parameter that has been changed by the Control system (this is for output purposes) More... | |
bool | isControllable (const std::string &name) |
Returns a Boolean indicating whether the specified parameter is controllable. More... | |
const std::set< ExecFlagType > & | getControllableExecuteOnTypes (const std::string &name) |
Return the allowed execute flags for a controllable parameter. More... | |
void | registerBase (const std::string &value) |
This method must be called from every base "Moose System" to create linkage with the Action System. More... | |
void | registerBuildableTypes (const std::string &names) |
This method is here to indicate which Moose types a particular Action may build. More... | |
void | addRelationshipManager (const std::string &name, Moose::RelationshipManagerType rm_type, Moose::RelationshipManagerInputParameterCallback input_parameter_callback=nullptr) |
Tells MOOSE about a RelationshipManager that this object needs. More... | |
void | clearRelationshipManagers () |
Clears all currently registered RelationshipManagers. More... | |
const std::vector< std::string > & | getBuildableTypes () const |
Returns the list of buildable types as a std::vector<std::string> More... | |
const std::vector< std::tuple< std::string, Moose::RelationshipManagerType, Moose::RelationshipManagerInputParameterCallback > > & | getBuildableRelationshipManagerTypes () const |
Returns the list of buildable (or required) RelationshipManager object types for this object. More... | |
void | checkParams (const std::string &parsing_syntax) |
This function checks parameters stored in the object to make sure they are in the correct state as the user expects: Required parameters are verified as valid meaning that they were either initialized when they were created, or were read from an input file or some other valid source. More... | |
std::set< std::string >::const_iterator | coupledVarsBegin () const |
Methods returning iterators to the coupled variables names stored in this InputParameters object. More... | |
std::set< std::string >::const_iterator | coupledVarsEnd () const |
const std::set< std::string > & | getCoupledVariableParamNames () const |
Return the coupled variable parameter names. More... | |
bool | hasCoupledValue (const std::string &coupling_name) const |
Return whether or not the coupled variable exists. More... | |
bool | hasDefaultCoupledValue (const std::string &coupling_name) const |
Return whether or not the requested parameter has a default coupled value. More... | |
Real | defaultCoupledValue (const std::string &coupling_name, unsigned int i=0) const |
Get the default value for an optionally coupled variable. More... | |
unsigned int | numberDefaultCoupledValues (const std::string &coupling_name) const |
Get the number of defaulted coupled value entries. More... | |
void | defaultCoupledValue (const std::string &coupling_name, Real value, unsigned int i=0) |
Set the default value for an optionally coupled variable (called by the Parser). More... | |
std::map< std::string, std::pair< std::string, std::string > > | getAutoBuildVectors () const |
Returns the auto build vectors for all parameters. More... | |
const PostprocessorValue & | getDefaultPostprocessorValue (const std::string &name, bool suppress_error=false, unsigned int index=0) const |
Get the default value for a postprocessor added with addPostprocessor. More... | |
void | setDefaultPostprocessorValue (const std::string &name, const PostprocessorValue &value, unsigned int index=0) |
Set the default value for a postprocessor added with addPostprocessor. More... | |
bool | hasDefaultPostprocessorValue (const std::string &name, unsigned int index=0) const |
Returns true if a default PostprocessorValue is defined. More... | |
void | applyParameters (const InputParameters &common, std::vector< std::string > exclude=std::vector< std::string >()) |
Method for applying common parameters. More... | |
void | applySpecificParameters (const InputParameters &common, const std::vector< std::string > &include, bool allow_private=false) |
Method for applying common parameters. More... | |
void | applyParameter (const InputParameters &common, const std::string &common_name, bool allow_private=false) |
Apply values from a single parameter in common, to a single parameter stored in this object. More... | |
void | applyCoupledVar (const InputParameters &common, const std::string &var_name) |
Apply properties of a single coupled variable in common, to a single coupled variable stored in this object. More... | |
bool | paramSetByUser (const std::string &name) const |
Deprecated method. More... | |
bool | isParamSetByUser (const std::string &name) const |
Method returns true if the parameter was by the user. More... | |
std::set< std::string > | getControllableParameters () const |
Return list of controllable parameters. More... | |
void | setReservedValues (const std::string &name, const std::set< std::string > &reserved) |
Provide a set of reserved values for a parameter. More... | |
std::set< std::string > | reservedValues (const std::string &name) const |
Get a set of reserved parameter values. More... | |
std::string & | blockLocation () |
Get/set a string representing the location (i.e. More... | |
std::string & | rawParamVal (const std::string ¶m) |
Get/set a string representing the raw, unmodified token text for the given param. More... | |
template<typename T > | |
void | ignoreParameter (const std::string &name) |
Informs this object that values for this parameter set from the input file or from the command line should be ignored. More... | |
bool | shouldIgnore (const std::string &name) |
Whether to ignore the value of an input parameter set in the input file or from the command line. More... | |
bool | isSinglePostprocessor (const std::string &pp_name) const |
Getter for the _vector_of_postprocessors flag in parameters. More... | |
template<> | |
void | addRequiredParam (const std::string &name, const MooseEnum &moose_enum, const std::string &doc_string) |
template<> | |
void | addRequiredParam (const std::string &name, const MultiMooseEnum &moose_enum, const std::string &doc_string) |
template<> | |
void | addParam (const std::string &, const std::string &) |
template<> | |
void | addParam (const std::string &, const std::string &) |
template<> | |
void | addPrivateParam (const std::string &) |
template<> | |
void | addPrivateParam (const std::string &) |
template<> | |
void | addDeprecatedParam (const std::string &name, const std::string &doc_string, const std::string &deprecation_message) |
template<> | |
void | addDeprecatedParam (const std::string &name, const std::string &doc_string, const std::string &deprecation_message) |
template<> | |
void | addRequiredParam (const std::string &name, const MooseEnum &moose_enum, const std::string &doc_string) |
template<> | |
void | addRequiredParam (const std::string &name, const MultiMooseEnum &moose_enum, const std::string &doc_string) |
template<> | |
void | addParam (const std::string &, const std::string &) |
template<> | |
void | addParam (const std::string &, const std::string &) |
template<> | |
void | addPrivateParam (const std::string &) |
template<> | |
void | addPrivateParam (const std::string &) |
template<> | |
void | addDeprecatedParam (const std::string &, const std::string &, const std::string &) |
template<> | |
void | addDeprecatedParam (const std::string &, const std::string &, const std::string &) |
template<typename T , typename S > | |
void | addParam (const std::string &name, const S &value, const std::string &doc_string) |
These methods add an option parameter and a documentation string to the InputParameters object. More... | |
template<typename T > | |
void | addParam (const std::string &name, const std::string &doc_string) |
template<typename T > | |
void | addRequiredRangeCheckedParam (const std::string &name, const std::string &parsed_function, const std::string &doc_string) |
These methods add an range checked parameters. More... | |
template<typename T > | |
void | addRangeCheckedParam (const std::string &name, const T &value, const std::string &parsed_function, const std::string &doc_string) |
template<typename T > | |
void | addRangeCheckedParam (const std::string &name, const std::string &parsed_function, const std::string &doc_string) |
void | addCoupledVarWithAutoBuild (const std::string &name, const std::string &base_name, const std::string &num_name, const std::string &doc_string) |
These methods add a coupled variable name pair. More... | |
void | addRequiredCoupledVarWithAutoBuild (const std::string &name, const std::string &base_name, const std::string &num_name, const std::string &doc_string) |
void | collapseSyntaxNesting (bool collapse) |
Mutators for controlling whether or not the outermost level of syntax will be collapsed when printed. More... | |
bool | collapseSyntaxNesting () const |
void | mooseObjectSyntaxVisibility (bool visibility) |
Mutators for controlling whether or not the outermost level of syntax will be collapsed when printed. More... | |
bool | mooseObjectSyntaxVisibility () const |
InputParameters & | operator= (const InputParameters &rhs) |
InputParameters & | operator+= (const InputParameters &rhs) |
std::string & | blockFullpath () |
Get/set a string representing the full HIT parameter path from the input file (e.g. More... | |
const std::string & | blockFullpath () const |
const std::string & | inputLocation (const std::string ¶m) const |
Get/set a string representing the location in the input text the parameter originated from (i.e. More... | |
std::string & | inputLocation (const std::string ¶m) |
const std::string & | paramFullpath (const std::string ¶m) const |
Get/set a string representing the full HIT parameter path from the input file (e.g. More... | |
std::string & | paramFullpath (const std::string ¶m) |
Static Public Member Functions | |
template<> | |
const MooseEnum & | getParamHelper (const std::string &name, const InputParameters &pars, const MooseEnum *) |
template<> | |
const MultiMooseEnum & | getParamHelper (const std::string &name, const InputParameters &pars, const MultiMooseEnum *) |
template<> | |
const MooseEnum & | getParamHelper (const std::string &name, const InputParameters &pars, const MooseEnum *) |
template<> | |
const MultiMooseEnum & | getParamHelper (const std::string &name, const InputParameters &pars, const MultiMooseEnum *) |
template<typename T > | |
static const T & | getParamHelper (const std::string &name, const InputParameters &pars, const T *the_type) |
template<typename T > | |
static const std::vector< T > & | getParamHelper (const std::string &name, const InputParameters &pars, const std::vector< T > *the_type) |
Private Member Functions | |
InputParameters () | |
Metadata & | at (const std::string ¶m) |
const Metadata & | at (const std::string ¶m) const |
void | allowCopy (bool status) |
Toggle the availability of the copy constructor. More... | |
void | checkParamName (const std::string &name) const |
Make sure the parameter name doesn't have any invalid characters. More... | |
template<typename T , typename S > | |
void | setParamHelper (const std::string &name, T &l_value, const S &r_value) |
This method is called when adding a Parameter with a default value, can be specialized for non-matching types. More... | |
void | reserveDefaultPostprocessorValueStorage (const std::string &name, unsigned int size) |
Reserve space for default postprocessor values. More... | |
void | setVectorOfPostprocessors (const std::string &pp_name, bool b) |
Setter for the _vector_of_postprocessors flag in parameters. More... | |
template<> | |
void | setParamHelper (const std::string &name, PostprocessorName &l_value, const Real &r_value) |
template<> | |
void | setParamHelper (const std::string &name, PostprocessorName &l_value, const int &r_value) |
template<> | |
void | setParamHelper (const std::string &, FunctionName &l_value, const Real &r_value) |
template<> | |
void | setParamHelper (const std::string &, FunctionName &l_value, const int &r_value) |
template<> | |
void | setParamHelper (const std::string &, MaterialPropertyName &l_value, const Real &r_value) |
template<> | |
void | setParamHelper (const std::string &, MaterialPropertyName &l_value, const int &r_value) |
template<> | |
void | setParamHelper (const std::string &name, PostprocessorName &l_value, const Real &r_value) |
template<> | |
void | setParamHelper (const std::string &name, PostprocessorName &l_value, const int &r_value) |
template<> | |
void | setParamHelper (const std::string &, FunctionName &l_value, const Real &r_value) |
template<> | |
void | setParamHelper (const std::string &, FunctionName &l_value, const int &r_value) |
template<> | |
void | setParamHelper (const std::string &, MaterialPropertyName &l_value, const Real &r_value) |
template<> | |
void | setParamHelper (const std::string &, MaterialPropertyName &l_value, const int &r_value) |
Private Attributes | |
std::string | _block_location |
original location of input block (i.e. filename,linenum) - used for nice error messages. More... | |
std::string | _block_fullpath |
full HIT path of the block from the input file - used for nice error messages. More... | |
std::map< std::string, Metadata > | _params |
The actual parameter data. More... | |
std::set< std::string > | _coupled_vars |
The coupled variables set. More... | |
std::string | _class_description |
The class description for the owning object. More... | |
std::vector< std::string > | _buildable_types |
The parameter is used to restrict types that can be built. More... | |
std::vector< std::tuple< std::string, Moose::RelationshipManagerType, Moose::RelationshipManagerInputParameterCallback > > | _buildable_rm_types |
The RelationshipManagers that this object may either build or require. More... | |
bool | _collapse_nesting |
This parameter collapses one level of nesting in the syntax blocks. More... | |
bool | _moose_object_syntax_visibility |
This parameter hides derived MOOSE object types from appearing in syntax dumps. More... | |
bool | _show_deprecated_message |
Flag for disabling deprecated parameters message, this is used by applyParameters to avoid dumping messages. More... | |
bool | _allow_copy |
A flag for toggling the error message in the copy constructor. More... | |
Friends | |
class | InputParameterWarehouse |
class | Parser |
InputParameters | emptyInputParameters () |
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
Definition at line 53 of file InputParameters.h.
InputParameters::InputParameters | ( | const InputParameters & | rhs | ) |
Definition at line 39 of file InputParameters.C.
InputParameters::InputParameters | ( | const Parameters & | rhs | ) |
Definition at line 46 of file InputParameters.C.
|
virtualdefault |
|
private |
Definition at line 30 of file InputParameters.C.
void InputParameters::addClassDescription | ( | const std::string & | doc_string | ) |
This method adds a description of the class that will be displayed in the input file syntax dump.
Definition at line 70 of file InputParameters.C.
Referenced by AddElementalFieldAction::validParams(), AddIndicatorAction::validParams(), AddTransferAction::validParams(), ArrayDiffusion::validParams(), ArrayReaction::validParams(), MatDiffusion::validParams(), NumElems::validParams(), ErrorFractionMarker::validParams(), NumRelationshipManagers::validParams(), ErrorToleranceMarker::validParams(), UniformMarker::validParams(), ExternalProblem::validParams(), ConstantDT::validParams(), ValueRangeMarker::validParams(), ValueThresholdMarker::validParams(), AddMarkerAction::validParams(), DerivativeSumMaterial::validParams(), DGConvection::validParams(), TiledMesh::validParams(), BreakMeshByBlockGenerator::validParams(), AddMultiAppAction::validParams(), SetAdaptivityOptionsAction::validParams(), ArrayVariableComponent::validParams(), ArrayPenaltyDirichletBC::validParams(), AnalyticalIndicator::validParams(), GradientJumpIndicator::validParams(), ArrayVacuumBC::validParams(), LaplacianJumpIndicator::validParams(), ValueJumpIndicator::validParams(), ArrayTimeDerivative::validParams(), AverageNodalVariableValue::validParams(), MassEigenKernel::validParams(), MassLumpedTimeDerivative::validParams(), NumNodes::validParams(), Reaction::validParams(), TimeDerivative::validParams(), NumVars::validParams(), PerformanceData::validParams(), VectorTimeDerivative::validParams(), TimestepSize::validParams(), VariableResidual::validParams(), ProcessorIDAux::validParams(), GenericConstant2DArray::validParams(), GenericConstantArray::validParams(), FileMesh::validParams(), SidesetInfoVectorPostprocessor::validParams(), InversePowerMethod::validParams(), CartesianMeshGenerator::validParams(), PenaltyDirichletNodalKernel::validParams(), ADVectorDiffusion< compute_stage >::validParams(), PenetrationAux::validParams(), BoxMarker::validParams(), LogConstantDT::validParams(), ElementQualityChecker::validParams(), LineValueSampler::validParams(), MaterialDerivativeTestKernelBase< Real >::validParams(), SetupDebugAction::validParams(), TransformGenerator::validParams(), ArrayFunctionIC::validParams(), ADTimeDerivative< compute_stage >::validParams(), ADVectorTimeDerivative< compute_stage >::validParams(), ElementExtremeValue::validParams(), ElementVectorL2Error::validParams(), FunctionElementIntegral::validParams(), NullKernel::validParams(), MaterialDerivativeTestKernel::validParams(), VectorCoupledTimeDerivative::validParams(), ScalePostprocessor::validParams(), TimeExtremeValue::validParams(), ComboMarker::validParams(), FunctionDT::validParams(), GeometrySphere::validParams(), DistributedGeneratedMesh::validParams(), CSVReader::validParams(), GeneratedMesh::validParams(), AnnularMesh::validParams(), ArrayDGDiffusion::validParams(), SpiralAnnularMesh::validParams(), RinglebMesh::validParams(), GhostingAux::validParams(), ReactionNodalKernel::validParams(), EigenDirichletBC::validParams(), ConstantAux::validParams(), AreaPostprocessor::validParams(), CoupledForce::validParams(), ChangeOverTimePostprocessor::validParams(), ElementAverageSecondTimeDerivative::validParams(), ElementAverageTimeDerivative::validParams(), CoupledTimeDerivative::validParams(), Diffusion::validParams(), DiffusionFluxAux::validParams(), ElementL2Difference::validParams(), MaterialDerivativeRankFourTestKernel::validParams(), MatchedValueBC::validParams(), MaterialDerivativeRankTwoTestKernel::validParams(), NodalSum::validParams(), VectorDiffusion::validParams(), VolumePostprocessor::validParams(), DumpObjectsProblem::validParams(), ReferenceResidualProblem::validParams(), ActuallyExplicitEuler::validParams(), NewmarkBeta::validParams(), ExodusTimeSequenceStepper::validParams(), TimeSequenceStepper::validParams(), MultiAppCopyTransfer::validParams(), MultiAppPostprocessorTransfer::validParams(), ElementsAlongPlane::validParams(), OldEqualValueConstraint::validParams(), GeometryBase::validParams(), InterfaceValueUserObject::validParams(), ConditionalFunctionEnableControl::validParams(), ElementsAlongLine::validParams(), ElementValueSampler::validParams(), ImageMesh::validParams(), ConcentricCircleMesh::validParams(), VectorMagnitudeAux::validParams(), AnnularMeshGenerator::validParams(), BlockDeletionGenerator::validParams(), BreakBoundaryOnSubdomainGenerator::validParams(), BreakMeshByBlockGeneratorBase::validParams(), CylindricalAverage::validParams(), ConcentricCircleMeshGenerator::validParams(), LowerDBlockFromSidesetGenerator::validParams(), MeshSideSetGenerator::validParams(), LinearCombinationFunction::validParams(), RenameBlockGenerator::validParams(), RenameBoundaryGenerator::validParams(), RinglebMeshGenerator::validParams(), SideSetsFromNormalsGenerator::validParams(), SideSetsFromPointsGenerator::validParams(), SpiralAnnularMeshGenerator::validParams(), SmoothMeshGenerator::validParams(), TiledMeshGenerator::validParams(), CentroidMultiApp::validParams(), CoupledForceNodalKernel::validParams(), LowerBoundNodalKernel::validParams(), UpperBoundNodalKernel::validParams(), SetupResidualDebugAction::validParams(), CoupledVarNeumannBC::validParams(), MaterialStdVectorAux::validParams(), WorkBalance::validParams(), VTKOutput::validParams(), MaterialStdVectorRealGradientAux::validParams(), XDA::validParams(), DirichletBC::validParams(), MemoryUsage::validParams(), NearestNodeDistanceAux::validParams(), AxisymmetricCenterlineAverageValue::validParams(), ConservativeAdvection::validParams(), FunctionGradientNeumannBC::validParams(), StatisticsVectorPostprocessor::validParams(), FunctionNeumannBC::validParams(), ParsedAux::validParams(), ParsedODEKernel::validParams(), NumNonlinearIterations::validParams(), TagVectorAux::validParams(), Receiver::validParams(), RelativeSolutionDifferenceNorm::validParams(), SideFluxIntegral::validParams(), EqualValueConstraint< compute_stage >::validParams(), ScalarTagMatrixAux::validParams(), FEProblem::validParams(), VectorDirichletBC::validParams(), MultiAppPostprocessorToAuxScalarTransfer::validParams(), ScalarTagVectorAux::validParams(), EqualGradientConstraint< compute_stage >::validParams(), MultiAppScalarToAuxScalarTransfer::validParams(), InterfaceQpValueUserObject::validParams(), ElementLengthAux::validParams(), TagMatrixAux::validParams(), ControlOutput::validParams(), NodalValueSampler::validParams(), MaxIncrement::validParams(), VariableGradientComponent::validParams(), MaterialDerivativeTestAction::validParams(), VectorFunctionAux::validParams(), GeneratedMeshGenerator::validParams(), FunctionAux::validParams(), VectorPostprocessorVisualizationAux::validParams(), ImageSubdomainGenerator::validParams(), VectorVariableComponentAux::validParams(), CompositeFunction::validParams(), ParsedSubdomainMeshGenerator::validParams(), PiecewiseConstant::validParams(), VectorFunctionDirichletBC::validParams(), HardwareIDAux::validParams(), PiecewiseLinear::validParams(), ADFunctionNeumannBC< compute_stage >::validParams(), ADNeumannBC< compute_stage >::validParams(), ArrayConstantIC::validParams(), InterfaceValueUserObjectAux::validParams(), ADPresetBC< compute_stage >::validParams(), FullSolveMultiApp::validParams(), ArrayDirichletBC::validParams(), MaterialRealAux::validParams(), Console::validParams(), ConvectiveFluxBC::validParams(), InterfaceReaction::validParams(), GMVOutput::validParams(), PerfGraphOutput::validParams(), Tecplot::validParams(), DisplayGhostingAction::validParams(), NearestNodeValueAux::validParams(), FunctionValuePostprocessor::validParams(), InterfaceIntegralPostprocessor::validParams(), FunctionMaterialBase::validParams(), PresetBC::validParams(), MultiAppVariableValueSampleTransfer::validParams(), LineMaterialRealSampler::validParams(), FunctionDirichletBC::validParams(), AnisotropicDiffusion::validParams(), DerivativeParsedMaterial::validParams(), MultiAppVectorPostprocessorTransfer::validParams(), MultiAppVariableValueSamplePostprocessorTransfer::validParams(), LeastSquaresFit::validParams(), ImageMeshGenerator::validParams(), VectorMemoryUsage::validParams(), ElementQualityAux::validParams(), CombinerGenerator::validParams(), FancyExtruderGenerator::validParams(), MeshCollectionGenerator::validParams(), MeshExtruderGenerator::validParams(), SideSetsFromBoundingBoxGenerator::validParams(), ADFunctionDirichletBC< compute_stage >::validParams(), StackGenerator::validParams(), MultiAppPostprocessorInterpolationTransfer::validParams(), ADVectorFunctionDirichletBC< compute_stage >::validParams(), DOFMapOutput::validParams(), ElementLpNormAux::validParams(), EqualValueEmbeddedConstraint::validParams(), PetscExternalPartitioner::validParams(), RandomPartitioner::validParams(), FunctionPresetBC::validParams(), InterfaceAverageVariableValuePostprocessor::validParams(), VectorOfPostprocessors::validParams(), MultiAppInterpolationTransfer::validParams(), SideAverageValue::validParams(), VectorBodyForce::validParams(), QuotientAux::validParams(), LeastSquaresFitHistory::validParams(), MultiAppMeshFunctionTransfer::validParams(), LinearNodalConstraint::validParams(), ParsedMaterial::validParams(), SolutionHistory::validParams(), SolutionScalarAux::validParams(), Gnuplot::validParams(), MultiAppUserObjectTransfer::validParams(), CSV::validParams(), PiecewiseLinearInterpolationMaterial::validParams(), VectorPostprocessorFunction::validParams(), MaterialRankFourTensorAux::validParams(), MaterialRankTwoTensorAux::validParams(), PerfGraphData::validParams(), ElementalVariableValue::validParams(), FindValueOnLine::validParams(), SolutionAux::validParams(), VectorNeumannBC::validParams(), MaterialPropertyDebugOutput::validParams(), NumDOFs::validParams(), NeumannBC::validParams(), ParsedGenerateSideset::validParams(), AddOutputAction::validParams(), InterfacePostprocessor::validParams(), ElementH1ErrorFunctionAux::validParams(), CSVTimeSequenceStepper::validParams(), BlockWeightedPartitioner::validParams(), InterfaceIntegralVariableValuePostprocessor::validParams(), VariableResidualNormsDebugOutput::validParams(), ADPiecewiseLinearInterpolationMaterial< compute_stage >::validParams(), DerivativeParsedMaterialHelper::validParams(), MultiAppProjectionTransfer::validParams(), ElementL2ErrorFunctionAux::validParams(), PlaneDeletionGenerator::validParams(), TransientMultiApp::validParams(), SideSetsAroundSubdomainGenerator::validParams(), ADFunctionPresetBC< compute_stage >::validParams(), ElementIntegralArrayVariablePostprocessor::validParams(), MultiAppNearestNodeTransfer::validParams(), TimePeriod::validParams(), NearestPointIntegralVariablePostprocessor::validParams(), PiecewiseMulticonstant::validParams(), StitchedMesh::validParams(), HistogramVectorPostprocessor::validParams(), BodyForce::validParams(), OrientedBoxMarker::validParams(), ADDirichletBC< compute_stage >::validParams(), RealFunctionControl::validParams(), PiecewiseMultilinear::validParams(), ImageFunction::validParams(), Exodus::validParams(), ADBodyForce< compute_stage >::validParams(), NodalVariableValue::validParams(), Nemesis::validParams(), Eigenvalue::validParams(), EigenExecutionerBase::validParams(), PatternedMeshGenerator::validParams(), SubdomainBoundingBoxGenerator::validParams(), CommonOutputAction::validParams(), NearestPointLayeredSideAverage::validParams(), FunctionIC::validParams(), DiffusionFluxBC::validParams(), SinDirichletBC::validParams(), BoundingBoxIC::validParams(), ADPresetNodalBC< compute_stage >::validParams(), GhostingUserObject::validParams(), SinNeumannBC::validParams(), Axisymmetric2D3DSolutionFunction::validParams(), VectorConstantIC::validParams(), IterationAdaptiveDT::validParams(), WeakGradientBC::validParams(), GridPartitioner::validParams(), VectorFunctionIC::validParams(), BoundingBoxNodeSetGenerator::validParams(), MooseParsedFunction::validParams(), ConstantIC::validParams(), PostprocessorComparison::validParams(), PatternedMesh::validParams(), DerivativeFunctionMaterialBase::validParams(), SolutionUserObject::validParams(), RelativeDifferencePostprocessor::validParams(), ParsedMaterialHelper::validParams(), Transient::validParams(), InterfaceUserObject::validParams(), VectorPostprocessorComparison::validParams(), MooseVariableBase::validParams(), Steady::validParams(), ADMatDiffusionBase< compute_stage, Real >::validParams(), PenaltyDirichletBC::validParams(), RandomIC::validParams(), RandomICBase::validParams(), Checkpoint::validParams(), Sampler::validParams(), PiecewiseBilinear::validParams(), TopResidualDebugOutput::validParams(), validParams< AddAllSideSetsByNormals >(), validParams< AddSideSetsFromBoundingBox >(), validParams< BlockDeleter >(), validParams< BoundingBoxNodeSet >(), validParams< BreakBoundaryOnSubdomain >(), validParams< BreakMeshByBlock >(), validParams< BreakMeshByBlockBase >(), validParams< CoarsenedPiecewiseLinear >(), validParams< ElementIntegerAux >(), validParams< ImageSubdomain >(), validParams< LowerDBlockFromSideset >(), validParams< MeshExtruder >(), validParams< MeshSideSet >(), validParams< ParsedAddSideset >(), validParams< ParsedSubdomainMeshModifier >(), validParams< PiecewiseFunctionTabulate >(), validParams< PiecewiseLinearBase >(), validParams< RenameBlock >(), validParams< SideSetsAroundSubdomain >(), validParams< SideSetsFromNormals >(), validParams< SideSetsFromPoints >(), validParams< SmoothMesh >(), validParams< SubdomainBoundingBox >(), and validParams< Transform >().
void InputParameters::addCommandLineParam | ( | const std::string & | name, |
const std::string & | syntax, | ||
const std::string & | doc_string | ||
) |
void InputParameters::addCommandLineParam | ( | const std::string & | name, |
const std::string & | syntax, | ||
const T & | value, | ||
const std::string & | doc_string | ||
) |
Definition at line 1340 of file InputParameters.h.
void InputParameters::addCoupledVar | ( | const std::string & | name, |
const Real | value, | ||
const std::string & | doc_string | ||
) |
This method adds a coupled variable name pair.
The parser will look for variable name pair in the input file and can return a reference to the storage location for the coupled variable if found
Also - you can provide a default value for this variable in the case that an actual variable is not provided.
Definition at line 162 of file InputParameters.C.
void InputParameters::addCoupledVar | ( | const std::string & | name, |
const std::string & | doc_string | ||
) |
This method adds a coupled variable name pair.
The parser will look for variable name pair in the input file and can return a reference to the storage location for the coupled variable if found
Definition at line 183 of file InputParameters.C.
Referenced by applyCoupledVar(), DerivativeSumMaterial::validParams(), ElementVectorL2Error::validParams(), VectorMagnitudeAux::validParams(), SpatialAverageBase::validParams(), VolumeHistogram::validParams(), ParsedODEKernel::validParams(), QuotientScalarAux::validParams(), ParsedMaterialBase::validParams(), NodalNormalBC::validParams(), ParsedAux::validParams(), InterfaceQpValueUserObject::validParams(), MatDiffusionBase< Real >::validParams(), QuotientAux::validParams(), FindValueOnLine::validParams(), InterfaceIntegralVariableValuePostprocessor::validParams(), ADMatDiffusionBase< compute_stage, Real >::validParams(), and BoundaryCondition::validParams().
void InputParameters::addCoupledVar | ( | const std::string & | name, |
const std::vector< Real > & | value, | ||
const std::string & | doc_string | ||
) |
This method adds a coupled variable name pair.
The parser will look for variable name pair in the input file and can return a reference to the storage location for the coupled variable if found
Also - you can provide a vector of values for this variable in the case that an actual variable is not provided.
Definition at line 171 of file InputParameters.C.
void InputParameters::addCoupledVarWithAutoBuild | ( | const std::string & | name, |
const std::string & | base_name, | ||
const std::string & | num_name, | ||
const std::string & | doc_string | ||
) |
These methods add a coupled variable name pair.
The parser will look for variable name pair in the input file and can return a reference to the storage location for the coupled variable if found.
This version of the method will build a vector if the given the base_name and num_name parameters exist in the input file: e.g. [./foo] ... some_base = base_ some_num = 5 [../]
Definition at line 190 of file InputParameters.C.
Referenced by addRequiredCoupledVarWithAutoBuild().
void InputParameters::addCustomTypeParam | ( | const std::string & | name, |
const std::string & | custom_type, | ||
const std::string & | doc_string | ||
) |
Definition at line 1287 of file InputParameters.h.
void InputParameters::addCustomTypeParam | ( | const std::string & | name, |
const T & | value, | ||
const std::string & | custom_type, | ||
const std::string & | doc_string | ||
) |
Definition at line 1276 of file InputParameters.h.
void InputParameters::addDeprecatedParam | ( | const std::string & | , |
const std::string & | , | ||
const std::string & | |||
) |
Definition at line 936 of file InputParameters.C.
void InputParameters::addDeprecatedParam | ( | const std::string & | , |
const std::string & | , | ||
const std::string & | |||
) |
Definition at line 946 of file InputParameters.C.
void InputParameters::addDeprecatedParam | ( | const std::string & | name, |
const std::string & | doc_string, | ||
const std::string & | deprecation_message | ||
) |
Definition at line 1420 of file InputParameters.h.
void InputParameters::addDeprecatedParam | ( | const std::string & | name, |
const std::string & | doc_string, | ||
const std::string & | deprecation_message | ||
) |
void InputParameters::addDeprecatedParam | ( | const std::string & | name, |
const std::string & | doc_string, | ||
const std::string & | deprecation_message | ||
) |
void InputParameters::addDeprecatedParam | ( | const std::string & | name, |
const T & | value, | ||
const std::string & | doc_string, | ||
const std::string & | deprecation_message | ||
) |
name | The name of the parameter |
value | The default value of this parameter if it requires one |
doc_string | Documentation. This will be shown for –help |
deprecation_message | The message that will will print about why this param was deprecated. It might mention the "new way". |
Definition at line 1406 of file InputParameters.h.
Referenced by AdaptivityAction::validParams(), AnnularMesh::validParams(), AnnularMeshGenerator::validParams(), VectorFunctionDirichletBC::validParams(), Console::validParams(), PetscOutput::validParams(), MatDiffusionBase< Real >::validParams(), DerivativeParsedMaterialHelper::validParams(), GenericFunctionMaterial::validParams(), Exodus::validParams(), CommonOutputAction::validParams(), DerivativeFunctionMaterialBase::validParams(), Transient::validParams(), OversampleOutput::validParams(), and Executioner::validParams().
void InputParameters::addParam | ( | const std::string & | , |
const std::string & | |||
) |
Definition at line 893 of file InputParameters.C.
void InputParameters::addParam | ( | const std::string & | , |
const std::string & | |||
) |
Definition at line 902 of file InputParameters.C.
void InputParameters::addParam | ( | const std::string & | , |
const std::string & | |||
) |
void InputParameters::addParam | ( | const std::string & | , |
const std::string & | |||
) |
void InputParameters::addParam | ( | const std::string & | name, |
const S & | value, | ||
const std::string & | doc_string | ||
) |
These methods add an option parameter and a documentation string to the InputParameters object.
The first version of this function takes a default value which is used if the parameter is not found in the input file. The second method will leave the parameter uninitialized but can be checked with "isParamValid" before use.
Definition at line 1198 of file InputParameters.h.
Referenced by AdvancedOutput::addValidParams(), Moose::PetscSupport::getPetscValidParams(), Moose::SlepcSupport::getSlepcEigenProblemValidParams(), nearestPointBaseValidParams(), ArrayDiffusion::validParams(), ArrayReaction::validParams(), NumElems::validParams(), NumRelationshipManagers::validParams(), ErrorFractionMarker::validParams(), ErrorToleranceMarker::validParams(), CreateExecutionerAction::validParams(), ValueRangeMarker::validParams(), ValueThresholdMarker::validParams(), DerivativeSumMaterial::validParams(), DynamicObjectRegistrationAction::validParams(), EqualValueBoundaryConstraint::validParams(), SetAdaptivityOptionsAction::validParams(), TiledMesh::validParams(), CopyNodalVarsAction::validParams(), ArrayVariableComponent::validParams(), ArrayPenaltyDirichletBC::validParams(), ArrayVacuumBC::validParams(), CreateProblemAction::validParams(), AddFieldSplitAction::validParams(), NumVars::validParams(), PerformanceData::validParams(), Residual::validParams(), ArrayTimeDerivative::validParams(), VectorTimeDerivative::validParams(), TimeDerivative::validParams(), ConstantVectorPostprocessor::validParams(), SidesetInfoVectorPostprocessor::validParams(), CartesianMeshGenerator::validParams(), InversePowerMethod::validParams(), NonlinearEigen::validParams(), ExtraNodesetGenerator::validParams(), PatchMeshGenerator::validParams(), PenaltyDirichletNodalKernel::validParams(), GapValueAux::validParams(), AdaptivityAction::validParams(), ElementQualityChecker::validParams(), PenetrationAux::validParams(), MooseObjectAction::validParams(), SetupDebugAction::validParams(), SetupMeshAction::validParams(), FEProblemSolve::validParams(), MaterialDerivativeTestKernelBase< Real >::validParams(), DirichletBCBase::validParams(), ElementExtremeValue::validParams(), ElementVectorL2Error::validParams(), NodalExtremeValue::validParams(), GhostingAux::validParams(), DeprecatedBlockAction::validParams(), CoefTimeDerivative::validParams(), ScalePostprocessor::validParams(), TimeExtremeValue::validParams(), TotalVariableValue::validParams(), NullKernel::validParams(), SingleMatrixPreconditioner::validParams(), FunctionDT::validParams(), GeometrySphere::validParams(), ConditionalEnableControl::validParams(), AnnularMesh::validParams(), DistributedGeneratedMesh::validParams(), CSVReader::validParams(), GeneratedMesh::validParams(), RinglebMesh::validParams(), SpiralAnnularMesh::validParams(), ArrayDGDiffusion::validParams(), ConstantFunction::validParams(), ReactionNodalKernel::validParams(), CoupledVarNeumannBC::validParams(), ChangeOverTimePostprocessor::validParams(), ConstantAux::validParams(), ScalarVariable::validParams(), FiniteDifferencePreconditioner::validParams(), CoupledForce::validParams(), ReferenceResidualProblem::validParams(), MaterialStdVectorAux::validParams(), ImageMesh::validParams(), PostprocessorDT::validParams(), QuadraturePointMarker::validParams(), MultiAppPostprocessorTransfer::validParams(), GeometryBase::validParams(), InterfaceValueUserObject::validParams(), ConcentricCircleMesh::validParams(), SpatialAverageBase::validParams(), MeshGeneratorMesh::validParams(), AnnularMeshGenerator::validParams(), BreakBoundaryOnSubdomainGenerator::validParams(), BreakMeshByBlockGeneratorBase::validParams(), ConcentricCircleMeshGenerator::validParams(), ElementGenerator::validParams(), ElementSubdomainIDGenerator::validParams(), LowerDBlockFromSidesetGenerator::validParams(), MeshSideSetGenerator::validParams(), RenameBlockGenerator::validParams(), RenameBoundaryGenerator::validParams(), RinglebMeshGenerator::validParams(), SmoothMeshGenerator::validParams(), SpiralAnnularMeshGenerator::validParams(), SetupResidualDebugAction::validParams(), TiledMeshGenerator::validParams(), CoupledForceNodalKernel::validParams(), LowerBoundNodalKernel::validParams(), CreateDisplacedProblemAction::validParams(), SplineFunction::validParams(), UpperBoundNodalKernel::validParams(), SolutionTimeAdaptiveDT::validParams(), PerfGraphOutput::validParams(), PetscOutput::validParams(), Tecplot::validParams(), VTKOutput::validParams(), FunctionGradientNeumannBC::validParams(), FunctionSideIntegral::validParams(), MemoryUsage::validParams(), NumNonlinearIterations::validParams(), Receiver::validParams(), MaterialRealDenseMatrixAux::validParams(), ConservativeAdvection::validParams(), MaterialRealTensorValueAux::validParams(), VectorFunctionDirichletBC::validParams(), ParsedODEKernel::validParams(), MaterialRealVectorValueAux::validParams(), MultiAppConservativeTransfer::validParams(), MaterialStdVectorRealGradientAux::validParams(), ParsedMaterialBase::validParams(), MaterialDerivativeTestAction::validParams(), ParsedAux::validParams(), VolumeHistogram::validParams(), WorkBalance::validParams(), ScalarTagMatrixAux::validParams(), NodalConstraint::validParams(), ScalarTagVectorAux::validParams(), MaxIncrement::validParams(), TagMatrixAux::validParams(), GeneratedMeshGenerator::validParams(), TagVectorAux::validParams(), ParsedSubdomainMeshGenerator::validParams(), VariableGradientComponent::validParams(), VectorPostprocessorVisualizationAux::validParams(), PicardSolve::validParams(), BicubicSplineFunction::validParams(), VectorVariableComponentAux::validParams(), CompositeFunction::validParams(), PiecewiseConstant::validParams(), ADNeumannBC< compute_stage >::validParams(), FullSolveMultiApp::validParams(), Console::validParams(), ControlOutput::validParams(), GMVOutput::validParams(), MaterialStdVectorAuxBase< Real >::validParams(), FunctionValuePostprocessor::validParams(), DisplayGhostingAction::validParams(), CoupledTiedValueConstraint::validParams(), MultiAppPostprocessorInterpolationTransfer::validParams(), EqualValueEmbeddedConstraint::validParams(), FunctionMaterialBase::validParams(), LeastSquaresFit::validParams(), NormalizationAux::validParams(), GreaterThanLessThanPostprocessor::validParams(), TiedValueConstraint::validParams(), VectorMemoryUsage::validParams(), BoundingValueElementDamper::validParams(), BoundingValueNodalDamper::validParams(), CombinerGenerator::validParams(), FancyExtruderGenerator::validParams(), ImageMeshGenerator::validParams(), MeshExtruderGenerator::validParams(), SideSetsFromBoundingBoxGenerator::validParams(), VariableTimeIntegrationAux::validParams(), StackGenerator::validParams(), StitchedMeshGenerator::validParams(), SetupQuadratureAction::validParams(), ADFunctionDirichletBC< compute_stage >::validParams(), ADVectorFunctionDirichletBC< compute_stage >::validParams(), DOFMapOutput::validParams(), PetscExternalPartitioner::validParams(), RandomPartitioner::validParams(), LeastSquaresFitHistory::validParams(), MatDiffusionBase< Real >::validParams(), LinearNodalConstraint::validParams(), EigenProblem::validParams(), NodalScalarKernel::validParams(), VectorBodyForce::validParams(), MultiAppInterpolationTransfer::validParams(), MultiAppMeshFunctionTransfer::validParams(), MultiAppUserObjectTransfer::validParams(), Material::validParams(), TimeStepper::validParams(), ElemElemConstraint::validParams(), PiecewiseLinearInterpolationMaterial::validParams(), SolutionScalarAux::validParams(), OrientedSubdomainBoundingBoxGenerator::validParams(), PiecewiseBase::validParams(), MaterialAuxBase< Real >::validParams(), CSV::validParams(), FileOutput::validParams(), Gnuplot::validParams(), FindValueOnLine::validParams(), NeumannBC::validParams(), NumDOFs::validParams(), PostprocessorNeumannBC::validParams(), VectorNeumannBC::validParams(), PointSamplerBase::validParams(), ElementDeletionGeneratorBase::validParams(), SolutionAux::validParams(), ParsedGenerateSideset::validParams(), BoundsAux::validParams(), ElementIntegralArrayVariablePostprocessor::validParams(), InterfaceIntegralVariableValuePostprocessor::validParams(), CSVTimeSequenceStepper::validParams(), FieldSplitPreconditioner::validParams(), EigenKernel::validParams(), TimePeriod::validParams(), MultiAppProjectionTransfer::validParams(), DerivativeParsedMaterialHelper::validParams(), GenericFunctionMaterial::validParams(), ADPiecewiseLinearInterpolationMaterial< compute_stage >::validParams(), MultiAppNearestNodeTransfer::validParams(), SideSetsAroundSubdomainGenerator::validParams(), TransientMultiApp::validParams(), LinearCombinationPostprocessor::validParams(), NodalNormalsPreprocessor::validParams(), Split::validParams(), ExplicitTimeIntegrator::validParams(), BodyForce::validParams(), ElementVariablesDifferenceMax::validParams(), StitchedMesh::validParams(), AddPeriodicBCAction::validParams(), PiecewiseMulticonstant::validParams(), SolutionFunction::validParams(), FunctionParserUtils::validParams(), LibmeshPartitioner::validParams(), NodalPatchRecovery::validParams(), ADBodyForce< compute_stage >::validParams(), VacuumBC::validParams(), Exodus::validParams(), NodalVariableValue::validParams(), DGDiffusion::validParams(), Eigenvalue::validParams(), SideSetsGeneratorBase::validParams(), MooseParsedVectorFunction::validParams(), AdamsPredictor::validParams(), RelationshipManager::validParams(), SetupInterface::validParams(), ADDGDiffusion< compute_stage >::validParams(), EigenExecutionerBase::validParams(), GhostingUserObject::validParams(), PatternedMeshGenerator::validParams(), CommonOutputAction::validParams(), SubdomainBoundingBoxGenerator::validParams(), BoundingBoxIC::validParams(), AddNodalNormalsAction::validParams(), DT2::validParams(), Damper::validParams(), SinNeumannBC::validParams(), Axisymmetric2D3DSolutionFunction::validParams(), IterationAdaptiveDT::validParams(), VectorConstantIC::validParams(), VectorFunctionIC::validParams(), TableOutput::validParams(), ComparisonPostprocessor::validParams(), ADKernelSUPGTempl< T, compute_stage >::validParams(), PiecewiseMultiInterpolation::validParams(), IntegratedBCBase::validParams(), BoundingBoxNodeSetGenerator::validParams(), Predictor::validParams(), MooseParsedGradFunction::validParams(), NodalBCBase::validParams(), MoosePreconditioner::validParams(), TaggingInterface::validParams(), DGFunctionDiffusionDirichletBC::validParams(), ADDirichletBCBase< compute_stage >::validParams(), ElementIndicator::validParams(), PatternedMesh::validParams(), VectorPostprocessor::validParams(), AB2PredictorCorrector::validParams(), MultiAppTransfer::validParams(), GeneralUserObject::validParams(), TransientInterface::validParams(), SolutionUserObject::validParams(), PhysicsBasedPreconditioner::validParams(), Transient::validParams(), MooseVariableBase::validParams(), ADMatDiffusionBase< compute_stage, Real >::validParams(), Steady::validParams(), FileRangeBuilder::validParams(), PenaltyDirichletBC::validParams(), Indicator::validParams(), InternalSideIndicator::validParams(), RandomInterface::validParams(), NodeFaceConstraint::validParams(), LayeredBase::validParams(), RandomIC::validParams(), NodalUserObject::validParams(), ShapeUserObject< SideUserObject >::validParams(), Action::validParams(), RandomICBase::validParams(), OversampleOutput::validParams(), AuxScalarKernel::validParams(), Transfer::validParams(), ScalarKernel::validParams(), Output::validParams(), MooseParsedFunctionBase::validParams(), UserObject::validParams(), OutputInterface::validParams(), BoundaryRestrictable::validParams(), Checkpoint::validParams(), Sampler::validParams(), MortarConstraintBase::validParams(), Constraint::validParams(), Control::validParams(), InterfaceKernelBase::validParams(), MooseObject::validParams(), ScalarInitialCondition::validParams(), PiecewiseBilinear::validParams(), AStableDirk4::validParams(), DiracKernel::validParams(), MultiApp::validParams(), MeshBaseImageSampler::validParams(), InitialConditionBase::validParams(), ImageSampler::validParams(), MooseApp::validParams(), SubProblem::validParams(), DGKernelBase::validParams(), MaterialBase::validParams(), BoundaryCondition::validParams(), NodalKernel::validParams(), BlockRestrictable::validParams(), AuxKernelTempl< ComputeValueType >::validParams(), TopResidualDebugOutput::validParams(), MooseMesh::validParams(), FEProblemBase::validParams(), validParams< AddExtraNodeset >(), validParams< AddSideSetsBase >(), validParams< AddSideSetsFromBoundingBox >(), validParams< AssignElementSubdomainID >(), validParams< BoundingBoxNodeSet >(), validParams< BreakBoundaryOnSubdomain >(), validParams< BreakMeshByBlockBase >(), validParams< CoarsenedPiecewiseLinear >(), validParams< ElementDeleterBase >(), validParams< ElementIntegerAux >(), validParams< LowerDBlockFromSideset >(), validParams< MeshExtruder >(), validParams< MeshModifier >(), validParams< MeshSideSet >(), validParams< OrientedSubdomainBoundingBox >(), validParams< ParsedAddSideset >(), validParams< ParsedSubdomainMeshModifier >(), validParams< PNGOutput >(), validParams< RenameBlock >(), validParams< SideSetsAroundSubdomain >(), validParams< SmoothMesh >(), and validParams< SubdomainBoundingBox >().
void InputParameters::addParam | ( | const std::string & | name, |
const std::string & | doc_string | ||
) |
Definition at line 1217 of file InputParameters.h.
void InputParameters::addParamNamesToGroup | ( | const std::string & | space_delim_names, |
const std::string | group_name | ||
) |
This method takes a space delimited list of parameter names and adds them to the specified group name.
This information is used in the GUI to group parameters into logical sections.
Definition at line 590 of file InputParameters.C.
Referenced by AdvancedOutput::addValidParams(), CopyNodalVarsAction::validParams(), DerivativeSumMaterial::validParams(), CartesianMeshGenerator::validParams(), SetupMeshAction::validParams(), DistributedGeneratedMesh::validParams(), GeneratedMesh::validParams(), MaterialStdVectorAux::validParams(), GeneratedMeshGenerator::validParams(), PicardSolve::validParams(), Console::validParams(), GMVOutput::validParams(), PetscOutput::validParams(), Tecplot::validParams(), VTKOutput::validParams(), FileOutput::validParams(), LeastSquaresFitHistory::validParams(), Material::validParams(), Postprocessor::validParams(), FunctionParserUtils::validParams(), Exodus::validParams(), NodalPatchRecovery::validParams(), EigenExecutionerBase::validParams(), IntegratedBCBase::validParams(), NodalBCBase::validParams(), TaggingInterface::validParams(), GeneralUserObject::validParams(), VectorPostprocessor::validParams(), Transient::validParams(), TransientInterface::validParams(), MooseVariableBase::validParams(), Indicator::validParams(), RandomInterface::validParams(), ShapeUserObject< SideUserObject >::validParams(), OversampleOutput::validParams(), AuxScalarKernel::validParams(), ScalarKernel::validParams(), Executioner::validParams(), Output::validParams(), Checkpoint::validParams(), UserObject::validParams(), OutputInterface::validParams(), Constraint::validParams(), InterfaceKernelBase::validParams(), MooseObject::validParams(), DiracKernel::validParams(), MultiApp::validParams(), ImageSampler::validParams(), MeshBaseImageSampler::validParams(), InitialConditionBase::validParams(), SubProblem::validParams(), DGKernelBase::validParams(), BoundaryCondition::validParams(), NodalKernel::validParams(), AuxKernelTempl< ComputeValueType >::validParams(), and MooseMesh::validParams().
void InputParameters::addPrivateParam | ( | const std::string & | ) |
Definition at line 920 of file InputParameters.C.
void InputParameters::addPrivateParam | ( | const std::string & | ) |
Definition at line 928 of file InputParameters.C.
void InputParameters::addPrivateParam | ( | const std::string & | ) |
void InputParameters::addPrivateParam | ( | const std::string & | ) |
void InputParameters::addPrivateParam | ( | const std::string & | name | ) |
Definition at line 1297 of file InputParameters.h.
void InputParameters::addPrivateParam | ( | const std::string & | name, |
const T & | value | ||
) |
These method add a parameter to the InputParameters object which can be retrieved like any other parameter.
This parameter however is not printed in the Input file syntax dump or web page dump so does not take a documentation string. The first version of this function takes an optional default value.
Definition at line 1308 of file InputParameters.h.
Referenced by AddControlAction::act(), FEProblemBase::addOutput(), ActionFactory::create(), ActionFactory::getValidParams(), Factory::getValidParams(), GlobalParamsAction::validParams(), CreateProblemDefaultAction::validParams(), XDA::validParams(), MoosePartitioner::validParams(), ExecutionerAttributeReporter::validParams(), BoundaryRestrictableRequired::validParams(), NodalNormalsPreprocessor::validParams(), Eigenvalue::validParams(), EigenExecutionerBase::validParams(), RelationshipManager::validParams(), MoosePreconditioner::validParams(), VectorPostprocessor::validParams(), MooseVariableBase::validParams(), DisplacedProblem::validParams(), InternalSideIndicator::validParams(), Action::validParams(), MaterialPropertyInterface::validParams(), Output::validParams(), BoundaryRestrictable::validParams(), MooseObject::validParams(), MultiApp::validParams(), MooseApp::validParams(), MaterialBase::validParams(), BlockRestrictable::validParams(), AuxKernelTempl< ComputeValueType >::validParams(), MooseMesh::validParams(), FEProblemBase::validParams(), and validParams< MeshModifier >().
void InputParameters::addRangeCheckedParam | ( | const std::string & | name, |
const std::string & | parsed_function, | ||
const std::string & | doc_string | ||
) |
Definition at line 1256 of file InputParameters.h.
void InputParameters::addRangeCheckedParam | ( | const std::string & | name, |
const T & | value, | ||
const std::string & | parsed_function, | ||
const std::string & | doc_string | ||
) |
Definition at line 1245 of file InputParameters.h.
Referenced by SetAdaptivityOptionsAction::validParams(), ErrorFractionMarker::validParams(), ConstantDT::validParams(), AdaptivityAction::validParams(), LogConstantDT::validParams(), DistributedGeneratedMesh::validParams(), GeneratedMesh::validParams(), AnnularMesh::validParams(), ConcentricCircleMesh::validParams(), ImageMesh::validParams(), NewmarkBeta::validParams(), AnnularMeshGenerator::validParams(), ConcentricCircleMeshGenerator::validParams(), PicardSolve::validParams(), GeneratedMeshGenerator::validParams(), ImageMeshGenerator::validParams(), ElementLpNormAux::validParams(), TimeStepper::validParams(), SideSetsAroundSubdomainGenerator::validParams(), ElementSideNeighborLayers::validParams(), ElementPointNeighborLayers::validParams(), PatternedMeshGenerator::validParams(), IterationAdaptiveDT::validParams(), DerivativeFunctionMaterialBase::validParams(), PatternedMesh::validParams(), MooseVariableBase::validParams(), ElementW1pError::validParams(), MultiApp::validParams(), validParams< PNGOutput >(), and validParams< SideSetsAroundSubdomain >().
void InputParameters::addRelationshipManager | ( | const std::string & | name, |
Moose::RelationshipManagerType | rm_type, | ||
Moose::RelationshipManagerInputParameterCallback | input_parameter_callback = nullptr |
||
) |
Tells MOOSE about a RelationshipManager that this object needs.
RelationshipManagers handle element "ghosting", "non-local DOF access" and "sparsity pattern" relationships.
Basically: if this object needs non-local (ie non-current-element) data access then you probably need a relationship manager
name | The name of the RelationshipManager type |
rm_type | The type (GEOMETRIC/ALGEBRAIC) of the RelationshipManger. Note: You can use boolean logic to to "or" RelationshipManagerTypes together to make a RelationshipManager that is multi-typed. |
input_parameter_callback | This is a function pointer that will get called to fill in the RelationShipManager's InputParameters. See MooseTypes.h for the signature of this function. |
Definition at line 344 of file InputParameters.C.
Referenced by GMVOutput::validParams(), Tecplot::validParams(), MultiAppProjectionTransfer::validParams(), InterfaceMaterial::validParams(), Exodus::validParams(), InterfaceUserObject::validParams(), InternalSideUserObject::validParams(), MortarConstraintBase::validParams(), InterfaceKernelBase::validParams(), and DGKernelBase::validParams().
void InputParameters::addRequiredCommandLineParam | ( | const std::string & | name, |
const std::string & | syntax, | ||
const std::string & | doc_string | ||
) |
Add parameters for retrieval from the command line.
NOTE: This ONLY works for App objects! This is not valid for normal MOOSE objects!
name | The name of the parameter |
syntax | Space separated list of command-line switch syntax that can set this option |
doc_string | Documentation. This will be shown for –help |
Definition at line 1320 of file InputParameters.h.
void InputParameters::addRequiredCoupledVar | ( | const std::string & | name, |
const std::string & | doc_string | ||
) |
This method adds a coupled variable name pair.
The parser will look for variable name pair in the input file and can return a reference to the storage location for the coupled variable. If the coupled variable is not supplied in the input file, and error is thrown.
Version 2: An auto built vector will be built from the base_name and num_name param. See addCoupledVar for an example
Definition at line 216 of file InputParameters.C.
Referenced by ArrayVariableComponent::validParams(), DerivativeSumMaterial::validParams(), VariableInnerProduct::validParams(), CoupledODETimeDerivative::validParams(), MaterialDerivativeTestKernelBase< Real >::validParams(), SideValueSampler::validParams(), ElementVectorL2Error::validParams(), ElementVariablePostprocessor::validParams(), ElementVariableVectorPostprocessor::validParams(), VectorCoupledTimeDerivative::validParams(), CoupledForceNodalKernel::validParams(), LowerBoundNodalKernel::validParams(), UpperBoundNodalKernel::validParams(), DiffusionFluxAux::validParams(), ElementL2Difference::validParams(), CoupledVarNeumannBC::validParams(), MatchedValueBC::validParams(), CoupledForce::validParams(), NodalVariableVectorPostprocessor::validParams(), CoupledTimeDerivative::validParams(), VectorMagnitudeAux::validParams(), ScalarTagMatrixAux::validParams(), VectorVariableComponentAux::validParams(), ScalarTagVectorAux::validParams(), TagMatrixAux::validParams(), InterfaceQpValueUserObject::validParams(), VariableGradientComponent::validParams(), TagVectorAux::validParams(), NormalizationAux::validParams(), OneDEqualValueConstraintBC::validParams(), ElementLpNormAux::validParams(), VariableTimeIntegrationAux::validParams(), NearestNodeValueAux::validParams(), PiecewiseLinearInterpolationMaterial::validParams(), NodalVariablePostprocessor::validParams(), PointSamplerBase::validParams(), CompositeTensorBase< T, U >::validParams(), NodalEqualValueConstraint::validParams(), SideIntegralVariableUserObject::validParams(), BoundsAux::validParams(), ElementIntegralVariablePostprocessor::validParams(), ADPiecewiseLinearInterpolationMaterial< compute_stage >::validParams(), InterfaceIntegralVariableValuePostprocessor::validParams(), ElementIntegralVariableUserObject::validParams(), SideIntegralVariablePostprocessor::validParams(), ElementIntegralArrayVariablePostprocessor::validParams(), ElementVariablesDifferenceMax::validParams(), ADKernelSUPGTempl< T, compute_stage >::validParams(), NodeElemConstraint::validParams(), NodeFaceConstraint::validParams(), and InterfaceKernelBase::validParams().
void InputParameters::addRequiredCoupledVarWithAutoBuild | ( | const std::string & | name, |
const std::string & | base_name, | ||
const std::string & | num_name, | ||
const std::string & | doc_string | ||
) |
Definition at line 205 of file InputParameters.C.
void InputParameters::addRequiredCustomTypeParam | ( | const std::string & | name, |
const std::string & | custom_type, | ||
const std::string & | doc_string | ||
) |
These methods add an option parameter and with a customer type to the InputParameters object.
The custom type will be output in YAML dumps and can be used within the GUI application.
Definition at line 1266 of file InputParameters.h.
Referenced by ParsedAux::validParams(), MooseParsedFunction::validParams(), and Terminator::validParams().
void InputParameters::addRequiredParam | ( | const std::string & | name, |
const MooseEnum & | moose_enum, | ||
const std::string & | doc_string | ||
) |
Definition at line 857 of file InputParameters.C.
void InputParameters::addRequiredParam | ( | const std::string & | name, |
const MooseEnum & | moose_enum, | ||
const std::string & | doc_string | ||
) |
void InputParameters::addRequiredParam | ( | const std::string & | name, |
const MultiMooseEnum & | moose_enum, | ||
const std::string & | doc_string | ||
) |
Definition at line 868 of file InputParameters.C.
void InputParameters::addRequiredParam | ( | const std::string & | name, |
const MultiMooseEnum & | moose_enum, | ||
const std::string & | doc_string | ||
) |
void InputParameters::addRequiredParam | ( | const std::string & | name, |
const std::string & | doc_string | ||
) |
This method adds a parameter and documentation string to the InputParameters object that will be extracted from the input file.
If the parameter is missing in the input file, and error will be thrown
Definition at line 1176 of file InputParameters.h.
Referenced by ArrayPenaltyDirichletBC::validParams(), DGConvection::validParams(), BreakMeshByBlockGenerator::validParams(), AnalyticalIndicator::validParams(), EqualValueBoundaryConstraint::validParams(), IndicatorMarker::validParams(), ElementIntegralMaterialProperty::validParams(), UniformMarker::validParams(), ValueRangeMarker::validParams(), TiledMesh::validParams(), ConstantDT::validParams(), CartesianMeshGenerator::validParams(), ConstantVectorPostprocessor::validParams(), ExtraNodesetGenerator::validParams(), PenaltyDirichletNodalKernel::validParams(), PerformanceData::validParams(), GenericConstant2DArray::validParams(), VariableResidual::validParams(), GenericConstantArray::validParams(), FileMesh::validParams(), MaterialDerivativeTestKernelBase< Real >::validParams(), GapValueAux::validParams(), LineValueSampler::validParams(), PointValueSampler::validParams(), FunctionScalarIC::validParams(), TransformGenerator::validParams(), ArrayFunctionIC::validParams(), PenetrationAux::validParams(), BoxMarker::validParams(), MooseObjectAction::validParams(), ElementQualityChecker::validParams(), ArrayDGDiffusion::validParams(), CSVReader::validParams(), LineFunctionSampler::validParams(), FunctionDiracSource::validParams(), DerivativeKernelInterface< T >::validParams(), GhostingAux::validParams(), ConstantScalarAux::validParams(), ScalarComponentIC::validParams(), ElementL2Error::validParams(), ElementVectorL2Error::validParams(), FunctionElementIntegral::validParams(), ComboMarker::validParams(), NodalL2Error::validParams(), DebugResidualAux::validParams(), ScalePostprocessor::validParams(), TimeExtremeValue::validParams(), ExplicitSSPRungeKutta::validParams(), AnnularMesh::validParams(), DistributedGeneratedMesh::validParams(), GeneratedMesh::validParams(), RinglebMesh::validParams(), CylindricalAverage::validParams(), BlockDeletionGenerator::validParams(), ElementsAlongLine::validParams(), BreakBoundaryOnSubdomainGenerator::validParams(), MaterialVectorPostprocessor::validParams(), ConcentricCircleMeshGenerator::validParams(), ElementSubdomainIDGenerator::validParams(), SpatialAverageBase::validParams(), ElementGenerator::validParams(), Distribution::validParams(), FileMeshGenerator::validParams(), LowerDBlockFromSidesetGenerator::validParams(), FunctionScalarAux::validParams(), MeshSideSetGenerator::validParams(), LinearCombinationFunction::validParams(), RenameBlockGenerator::validParams(), RenameBoundaryGenerator::validParams(), RinglebMeshGenerator::validParams(), SplineFunction::validParams(), SideSetsBetweenSubdomainsGenerator::validParams(), SideSetsFromNormalsGenerator::validParams(), SideSetsFromPointsGenerator::validParams(), TimeSequenceStepper::validParams(), SmoothMeshGenerator::validParams(), IntersectionPointsAlongLine::validParams(), TiledMeshGenerator::validParams(), SubdomainIDGenerator::validParams(), MaterialDerivativeRankFourTestKernel::validParams(), ChangeOverTimePostprocessor::validParams(), MaterialDerivativeRankTwoTestKernel::validParams(), DiffusionFluxAux::validParams(), QuadraturePointMarker::validParams(), ElementsAlongPlane::validParams(), ScalarVariable::validParams(), DumpObjectsProblem::validParams(), GenericConstantRankTwoTensor::validParams(), ExodusTimeSequenceStepper::validParams(), ConditionalFunctionEnableControl::validParams(), PostprocessorDT::validParams(), ConcentricCircleMesh::validParams(), MultiAppCopyTransfer::validParams(), MultiAppPostprocessorTransfer::validParams(), AnnularMeshGenerator::validParams(), NodalNormalsCorner::validParams(), SolutionTimeAdaptiveDT::validParams(), ADFunctionNeumannBC< compute_stage >::validParams(), StatisticsVectorPostprocessor::validParams(), ConstantPointSource::validParams(), SideFluxIntegral::validParams(), GeneratedMeshGenerator::validParams(), ImageSubdomainGenerator::validParams(), ADNeumannBC< compute_stage >::validParams(), MultiAppPostprocessorToAuxScalarTransfer::validParams(), ArrayDirichletBC::validParams(), BicubicSplineFunction::validParams(), ParsedSubdomainMeshGenerator::validParams(), FunctionAux::validParams(), ArrayConstantIC::validParams(), MultiAppConservativeTransfer::validParams(), DirichletBC::validParams(), FunctionGradientNeumannBC::validParams(), InterfaceValueUserObjectAux::validParams(), FunctionNeumannBC::validParams(), PostprocessorDirichletBC::validParams(), InterfaceReaction::validParams(), VectorDirichletBC::validParams(), DifferencePostprocessor::validParams(), ConservativeAdvection::validParams(), NearestNodeDistanceAux::validParams(), ParsedODEKernel::validParams(), EqualGradientConstraint< compute_stage >::validParams(), PercentChangePostprocessor::validParams(), NodalConstraint::validParams(), MaterialDerivativeTestAction::validParams(), ParsedMaterialBase::validParams(), SpatialUserObjectAux::validParams(), ElementLengthAux::validParams(), VectorFunctionAux::validParams(), MultiAppScalarToAuxScalarTransfer::validParams(), VectorPostprocessorVisualizationAux::validParams(), VolumeHistogram::validParams(), MultiAppPostprocessorInterpolationTransfer::validParams(), LeastSquaresFit::validParams(), AllSideSetsByNormalsGenerator::validParams(), FancyExtruderGenerator::validParams(), MeshExtruderGenerator::validParams(), MeshCollectionGenerator::validParams(), SideSetsFromBoundingBoxGenerator::validParams(), StackGenerator::validParams(), StitchedMeshGenerator::validParams(), FunctionDirichletBC::validParams(), MultiAppVectorPostprocessorTransfer::validParams(), OneDEqualValueConstraintBC::validParams(), AnisotropicDiffusion::validParams(), CumulativeValuePostprocessor::validParams(), NearestNodeValueAux::validParams(), ElementQualityAux::validParams(), FunctionValuePostprocessor::validParams(), GreaterThanLessThanPostprocessor::validParams(), EqualValueEmbeddedConstraint::validParams(), MultiAppVariableValueSampleTransfer::validParams(), MultiAppVariableValueSamplePostprocessorTransfer::validParams(), CombinerGenerator::validParams(), LayeredSideFluxAverage::validParams(), LeastSquaresFitHistory::validParams(), MaterialAuxBase< Real >::validParams(), OrientedSubdomainBoundingBoxGenerator::validParams(), VectorPostprocessorFunction::validParams(), ConstantDamper::validParams(), MaterialRankFourTensorAux::validParams(), ConstantRate::validParams(), VectorOfPostprocessors::validParams(), FileOutput::validParams(), ElemElemConstraint::validParams(), PiecewiseLinearInterpolationMaterial::validParams(), PointValue::validParams(), LinearNodalConstraint::validParams(), MaterialRankTwoTensorAux::validParams(), SolutionScalarAux::validParams(), MultiAppUserObjectTransfer::validParams(), ElementalVariableValue::validParams(), AuxNodalScalarKernel::validParams(), ParsedGenerateSideset::validParams(), PerfGraphData::validParams(), ElementDeletionGeneratorBase::validParams(), ElementH1SemiError::validParams(), CompositeTensorBase< T, U >::validParams(), ScalarL2Error::validParams(), SolutionAux::validParams(), UserForcingFunctionNodalKernel::validParams(), CSVTimeSequenceStepper::validParams(), PlaneDeletionGenerator::validParams(), SideSetsAroundSubdomainGenerator::validParams(), ADFunctionPresetBC< compute_stage >::validParams(), BlockWeightedPartitioner::validParams(), FieldSplitPreconditioner::validParams(), ADPiecewiseLinearInterpolationMaterial< compute_stage >::validParams(), ElementL2ErrorFunctionAux::validParams(), GenericConstantMaterial::validParams(), NodalNormalsPreprocessor::validParams(), StitchedMesh::validParams(), HistogramVectorPostprocessor::validParams(), ADDirichletBC< compute_stage >::validParams(), LinearCombinationPostprocessor::validParams(), TestSetupPostprocessorDataActionFunction::validParams(), SolutionFunction::validParams(), OrientedBoxMarker::validParams(), RealFunctionControl::validParams(), BoundaryRestrictableRequired::validParams(), DGDiffusion::validParams(), NodalVariableValue::validParams(), LibmeshPartitioner::validParams(), SubdomainBoundingBoxGenerator::validParams(), ADDGDiffusion< compute_stage >::validParams(), BoundingBoxIC::validParams(), FunctionIC::validParams(), FunctionPenaltyDirichletBC::validParams(), EigenExecutionerBase::validParams(), RelationshipManager::validParams(), PatternedMeshGenerator::validParams(), DT2::validParams(), Axisymmetric2D3DSolutionFunction::validParams(), NodalDamper::validParams(), IterationAdaptiveDT::validParams(), VectorConstantIC::validParams(), ProxyRelationshipManager::validParams(), AugmentSparsityOnInterface::validParams(), ElementDamper::validParams(), BoundingBoxNodeSetGenerator::validParams(), Predictor::validParams(), ComparisonPostprocessor::validParams(), DGFunctionDiffusionDirichletBC::validParams(), PatternedMesh::validParams(), AB2PredictorCorrector::validParams(), ConstantIC::validParams(), ElementIndicator::validParams(), MultiAppTransfer::validParams(), PostprocessorComparison::validParams(), VectorPostprocessorComparison::validParams(), NodeElemConstraint::validParams(), PhysicsBasedPreconditioner::validParams(), SolutionUserObject::validParams(), RelativeDifferencePostprocessor::validParams(), ElementW1pError::validParams(), PenaltyDirichletBC::validParams(), SamplerBase::validParams(), InternalSideIndicator::validParams(), LayeredBase::validParams(), NodeFaceConstraint::validParams(), AuxScalarKernel::validParams(), LineMaterialSamplerBase< Real >::validParams(), ScalarKernel::validParams(), OrientedBoxInterface::validParams(), MortarConstraintBase::validParams(), InterfaceKernelBase::validParams(), DiracKernel::validParams(), MultiApp::validParams(), InitialConditionBase::validParams(), DGKernelBase::validParams(), BoundaryCondition::validParams(), NodalKernel::validParams(), AuxKernelTempl< ComputeValueType >::validParams(), validParams< AddExtraNodeset >(), validParams< AddSideSetsFromBoundingBox >(), validParams< AssignElementSubdomainID >(), validParams< AssignSubdomainID >(), validParams< BlockDeleter >(), validParams< BoundingBoxNodeSet >(), validParams< CoarsenedPiecewiseLinear >(), validParams< LowerDBlockFromSideset >(), validParams< MeshExtruder >(), validParams< MeshSideSet >(), validParams< OrientedSubdomainBoundingBox >(), validParams< ParsedAddSideset >(), validParams< ParsedSubdomainMeshModifier >(), validParams< PiecewiseFunctionTabulate >(), validParams< PNGOutput >(), validParams< SideSetsAroundSubdomain >(), validParams< SideSetsBetweenSubdomains >(), validParams< SideSetsFromNormals >(), validParams< SideSetsFromPoints >(), validParams< SubdomainBoundingBox >(), and validParams< Transform >().
void InputParameters::addRequiredParam | ( | const std::string & | name, |
const T & | moose_enum, | ||
const std::string & | doc_string | ||
) |
This version of addRequiredParam is here for a consistent use with MooseEnums.
Use of this function for any other type will throw an error.
Definition at line 1188 of file InputParameters.h.
void InputParameters::addRequiredRangeCheckedParam | ( | const std::string & | name, |
const std::string & | parsed_function, | ||
const std::string & | doc_string | ||
) |
These methods add an range checked parameters.
A lower and upper bound can be supplied and the supplied parameter will be checked to fall within that range.
Definition at line 1235 of file InputParameters.h.
Referenced by LogConstantDT::validParams(), SpiralAnnularMesh::validParams(), AnnularMesh::validParams(), AnnularMeshGenerator::validParams(), SpiralAnnularMeshGenerator::validParams(), MaxIncrement::validParams(), and VectorPostprocessorFunction::validParams().
|
inlineprivate |
Toggle the availability of the copy constructor.
When MooseObject is created via the Factory this flag is set to false, so when a MooseObject is created if the constructor is not a const reference an error is produced. This method allows the InputParameterWarehouse to disable copying.
Definition at line 896 of file InputParameters.h.
void InputParameters::applyCoupledVar | ( | const InputParameters & | common, |
const std::string & | var_name | ||
) |
Apply properties of a single coupled variable in common, to a single coupled variable stored in this object.
common | The set of InputParameters from which to extract the coupled variable's properties |
var_name | The name of the coupled variable whose properties are to be applied |
In order to apply the properties, both the local parameters and the common parameters must have a coupled variable with name var_name
Definition at line 764 of file InputParameters.C.
Referenced by applyParameters(), and applySpecificParameters().
void InputParameters::applyParameter | ( | const InputParameters & | common, |
const std::string & | common_name, | ||
bool | allow_private = false |
||
) |
Apply values from a single parameter in common, to a single parameter stored in this object.
common | The set of InputParameters from which to extract parameters from |
common_name | The name within common from which to get the parameter values |
In order to apply common parameter 4 statements must be satisfied (1) A local parameter must exist with the same name as common parameter (2) Common parameter must valid (3) Local parameter must be invalid OR not have been set from its default (4) Both cannot be private
Definition at line 791 of file InputParameters.C.
Referenced by applyParameters(), and applySpecificParameters().
void InputParameters::applyParameters | ( | const InputParameters & | common, |
std::vector< std::string > | exclude = std::vector<std::string>() |
||
) |
Method for applying common parameters.
common | The set of parameters to apply to the parameters stored in this object |
exclude | A vector of parameters to exclude |
In order to apply common parameter 4 statements must be satisfied (1) A local parameter must exist with the same name as common parameter (2) Common parameter must valid (3) Local parameter must be invalid OR not have been set from its default (4) Both cannot be private
Output objects have a set of common parameters that are passed down to each of the output objects created. This method is used for applying those common parameters.
Definition at line 696 of file InputParameters.C.
Referenced by FEProblemBase::addOutput().
void InputParameters::applySpecificParameters | ( | const InputParameters & | common, |
const std::vector< std::string > & | include, | ||
bool | allow_private = false |
||
) |
Method for applying common parameters.
common | The set of parameters to apply to the parameters stored in this object |
include | A vector of parameters to apply |
In order to apply common parameter 4 statements must be satisfied (1) A local parameter must exist with the same name as common parameter (2) Common parameter must valid (3) Local parameter must be invalid OR not have been set from its default (4) Both cannot be private
Output objects have a set of common parameters that are passed down to each of the output objects created. This method is used for applying those common parameters.
Definition at line 729 of file InputParameters.C.
Referenced by AddVariableAction::init().
bool InputParameters::areAllRequiredParamsValid | ( | ) | const |
This method returns true if all of the parameters in this object are valid (i.e.
isParamValid(name) == true - for all parameters)
Definition at line 282 of file InputParameters.C.
Referenced by ActionWarehouse::buildBuildableActions().
|
inlineprivate |
Definition at line 874 of file InputParameters.h.
Referenced by inputLocation(), and paramFullpath().
|
inlineprivate |
Definition at line 880 of file InputParameters.h.
|
inline |
Get/set a string representing the full HIT parameter path from the input file (e.g.
"Mesh/foo") for the block containing parameters for this object.
Definition at line 764 of file InputParameters.h.
Referenced by AddICAction::act(), checkParams(), MooseObjectAction::MooseObjectAction(), and Parser::walkRaw().
|
inline |
Definition at line 765 of file InputParameters.h.
|
inline |
Get/set a string representing the location (i.e.
filename,linenum) in the input text for the block containing parameters for this object.
Definition at line 757 of file InputParameters.h.
Referenced by checkParams(), and Parser::walkRaw().
void InputParameters::checkConsistentType | ( | const std::string & | name | ) | const |
This method checks to make sure that we aren't adding a parameter with the same name but a different type.
It throws a MooseError if an inconsistent type is detected. While this state is supported by libMesh it brings nothing but blood and tears for those who try ;)
name | the name of the parameter |
Definition at line 1351 of file InputParameters.h.
|
private |
Make sure the parameter name doesn't have any invalid characters.
Definition at line 1094 of file InputParameters.C.
Referenced by addParam(), addPrivateParam(), addRequiredParam(), and set().
void InputParameters::checkParams | ( | const std::string & | parsing_syntax | ) |
This function checks parameters stored in the object to make sure they are in the correct state as the user expects: Required parameters are verified as valid meaning that they were either initialized when they were created, or were read from an input file or some other valid source.
Definition at line 409 of file InputParameters.C.
Referenced by FEProblemBase::addInitialCondition(), ActionFactory::create(), Factory::create(), and AppFactory::createShared().
|
overridevirtual |
Definition at line 56 of file InputParameters.C.
|
inline |
Clears all currently registered RelationshipManagers.
Definition at line 491 of file InputParameters.h.
bool InputParameters::collapseSyntaxNesting | ( | ) | const |
Definition at line 373 of file InputParameters.C.
void InputParameters::collapseSyntaxNesting | ( | bool | collapse | ) |
Mutators for controlling whether or not the outermost level of syntax will be collapsed when printed.
Definition at line 367 of file InputParameters.C.
Referenced by Parser::buildFullTree(), and Parser::buildJsonSyntaxTree().
|
inline |
Methods returning iterators to the coupled variables names stored in this InputParameters object.
Definition at line 546 of file InputParameters.h.
Referenced by Coupleable::Coupleable(), FunctionMaterialBase::FunctionMaterialBase(), LazyCoupleable::LazyCoupleable(), and ScalarCoupleable::ScalarCoupleable().
|
inline |
Definition at line 550 of file InputParameters.h.
Referenced by Coupleable::Coupleable(), FunctionMaterialBase::FunctionMaterialBase(), LazyCoupleable::LazyCoupleable(), and ScalarCoupleable::ScalarCoupleable().
void InputParameters::declareControllable | ( | const std::string & | name, |
std::set< ExecFlagType > | execute_flags = {} |
||
) |
Declare the given parameters as controllable.
Definition at line 297 of file InputParameters.C.
Referenced by GenericConstant2DArray::validParams(), GenericConstantArray::validParams(), PenaltyDirichletNodalKernel::validParams(), ConstantFunction::validParams(), ConstantScalarAux::validParams(), ConstantAux::validParams(), ConstantPointSource::validParams(), DirichletBC::validParams(), ADNeumannBC< compute_stage >::validParams(), VectorDirichletBC::validParams(), ArrayDirichletBC::validParams(), FunctionValuePostprocessor::validParams(), VectorBodyForce::validParams(), ConstantRate::validParams(), NeumannBC::validParams(), GenericConstantMaterial::validParams(), ADDirichletBC< compute_stage >::validParams(), BodyForce::validParams(), ADBodyForce< compute_stage >::validParams(), Damper::validParams(), IterationAdaptiveDT::validParams(), PenaltyDirichletBC::validParams(), AuxScalarKernel::validParams(), ScalarKernel::validParams(), Output::validParams(), UserObject::validParams(), Constraint::validParams(), InterfaceKernelBase::validParams(), MultiApp::validParams(), DiracKernel::validParams(), DGKernelBase::validParams(), BoundaryCondition::validParams(), NodalKernel::validParams(), and AuxKernelTempl< ComputeValueType >::validParams().
void InputParameters::defaultCoupledValue | ( | const std::string & | coupling_name, |
Real | value, | ||
unsigned int | i = 0 |
||
) |
Set the default value for an optionally coupled variable (called by the Parser).
coupling_name | The name of the coupling parameter to get the default value for. |
value | Default value to set. |
i | By default 0, in general the index of the requested coupled default value. |
Definition at line 471 of file InputParameters.C.
Real InputParameters::defaultCoupledValue | ( | const std::string & | coupling_name, |
unsigned int | i = 0 |
||
) | const |
Get the default value for an optionally coupled variable.
coupling_name | The name of the coupling parameter to get the default value for. |
i | By default 0, in general the index of the requested coupled default value. |
Definition at line 479 of file InputParameters.C.
Referenced by applyCoupledVar(), ParsedMaterialHelper::functionParse(), Coupleable::getADDefaultValue(), Coupleable::getADDefaultVectorValue(), Coupleable::getDefaultArrayValue(), ScalarCoupleable::getDefaultValue(), Coupleable::getDefaultValue(), Coupleable::getDefaultVectorValue(), and Parser::setVectorParameter().
std::map< std::string, std::pair< std::string, std::string > > InputParameters::getAutoBuildVectors | ( | ) | const |
Returns the auto build vectors for all parameters.
Definition at line 507 of file InputParameters.C.
const std::vector< std::tuple< std::string, Moose::RelationshipManagerType, Moose::RelationshipManagerInputParameterCallback > > & InputParameters::getBuildableRelationshipManagerTypes | ( | ) | const |
Returns the list of buildable (or required) RelationshipManager object types for this object.
Definition at line 361 of file InputParameters.C.
Referenced by Action::addRelationshipManagers().
const std::vector< std::string > & InputParameters::getBuildableTypes | ( | ) | const |
Returns the list of buildable types as a std::vector<std::string>
Definition at line 353 of file InputParameters.C.
Referenced by Parser::buildFullTree(), and Parser::buildJsonSyntaxTree().
T InputParameters::getCheckedPointerParam | ( | const std::string & | name, |
const std::string & | error_string = "" |
||
) | const |
Verifies that the requested parameter exists and is not NULL and returns it to the caller.
The template parameter must be a pointer or an error will be thrown.
Definition at line 1162 of file InputParameters.h.
Referenced by Coupleable::Coupleable(), MooseObject::getCheckedPointerParam(), Action::getCheckedPointerParam(), ElementIDInterface::getElementID(), MooseVariableInterface< Real >::MooseVariableInterface(), and ScalarCoupleable::ScalarCoupleable().
std::string InputParameters::getClassDescription | ( | ) | const |
Returns the class description.
Definition at line 102 of file InputParameters.C.
Referenced by JsonSyntaxTree::addParameters().
const std::set< ExecFlagType > & InputParameters::getControllableExecuteOnTypes | ( | const std::string & | name | ) |
Return the allowed execute flags for a controllable parameter.
Definition at line 324 of file InputParameters.C.
|
inline |
Return list of controllable parameters.
Definition at line 732 of file InputParameters.h.
Referenced by checkParams().
|
inline |
const PostprocessorValue & InputParameters::getDefaultPostprocessorValue | ( | const std::string & | name, |
bool | suppress_error = false , |
||
unsigned int | index = 0 |
||
) | const |
Get the default value for a postprocessor added with addPostprocessor.
name | The name of the postprocessor |
suppress_error | If true, the error check is suppressed |
index | The index in the default postprocessor vector |
Definition at line 629 of file InputParameters.C.
Referenced by PostprocessorInterface::getDefaultPostprocessorValue(), PostprocessorInterface::getPostprocessorValue(), PostprocessorInterface::getPostprocessorValueOld(), and PostprocessorInterface::getPostprocessorValueOlder().
const std::string & InputParameters::getDescription | ( | const std::string & | name | ) |
std::string InputParameters::getDocString | ( | const std::string & | name | ) | const |
Returns the documentation string for the specified parameter name.
Definition at line 223 of file InputParameters.C.
Referenced by applyCoupledVar(), and checkParams().
std::string InputParameters::getGroupName | ( | const std::string & | param_name | ) | const |
This method retrieves the group name for the passed parameter name if one exists.
Otherwise an empty string is returned.
Definition at line 620 of file InputParameters.C.
std::string InputParameters::getMooseType | ( | const std::string & | name | ) | const |
Utility functions for retrieving one of the MooseTypes variables into the common "string" base class.
Scalar and Vector versions are supplied
Definition at line 529 of file InputParameters.C.
Referenced by MooseObjectWarehouseBase< Indicator >::addObject(), BlockRestrictable::initializeBlockRestrictable(), isValid(), and MooseVariableInterface< Real >::MooseVariableInterface().
|
static |
Definition at line 1062 of file InputParameters.C.
|
static |
|
static |
Definition at line 1071 of file InputParameters.C.
|
static |
|
static |
Definition at line 1540 of file InputParameters.h.
|
static |
Definition at line 1517 of file InputParameters.h.
Referenced by MooseObject::getParamTempl(), MooseApp::getParamTempl(), and Action::getParamTempl().
std::vector< std::string > InputParameters::getSyntax | ( | const std::string & | name | ) |
Get the syntax for a command-line parameter.
Definition at line 614 of file InputParameters.C.
std::vector< std::string > InputParameters::getVecMooseType | ( | const std::string & | name | ) | const |
Definition at line 556 of file InputParameters.C.
Referenced by MooseObjectWarehouseBase< Indicator >::addObject(), Coupleable::Coupleable(), isValid(), MooseVariableInterface< Real >::MooseVariableInterface(), and ScalarCoupleable::ScalarCoupleable().
bool InputParameters::hasCoupledValue | ( | const std::string & | coupling_name | ) | const |
Return whether or not the coupled variable exists.
coupling_name | The name of the coupled variable to test for |
Definition at line 458 of file InputParameters.C.
Referenced by applyCoupledVar(), Coupleable::isCoupled(), and ScalarCoupleable::isCoupledScalar().
bool InputParameters::hasDefaultCoupledValue | ( | const std::string & | coupling_name | ) | const |
Return whether or not the requested parameter has a default coupled value.
coupling_name | The name of the coupling parameter to get the default value for. |
Definition at line 464 of file InputParameters.C.
Referenced by applyCoupledVar(), Coupleable::coupledComponents(), and FunctionMaterialBase::FunctionMaterialBase().
bool InputParameters::hasDefaultPostprocessorValue | ( | const std::string & | name, |
unsigned int | index = 0 |
||
) | const |
Returns true if a default PostprocessorValue is defined.
name | The name of the postprocessor |
index | The index in the default postprocessor vector |
Definition at line 683 of file InputParameters.C.
Referenced by PostprocessorInterface::getPostprocessorValue(), PostprocessorInterface::getPostprocessorValueOld(), and PostprocessorInterface::getPostprocessorValueOlder().
void InputParameters::ignoreParameter | ( | const std::string & | name | ) |
Informs this object that values for this parameter set from the input file or from the command line should be ignored.
Definition at line 1378 of file InputParameters.h.
Referenced by AddElementalFieldAction::validParams().
|
inline |
Definition at line 777 of file InputParameters.h.
|
inline |
Get/set a string representing the location in the input text the parameter originated from (i.e.
filename,linenum) for the given param.
Definition at line 773 of file InputParameters.h.
Referenced by checkParams(), Action::paramError(), paramErrorPrefix(), Action::paramInfo(), and Action::paramWarning().
bool InputParameters::isControllable | ( | const std::string & | name | ) |
Returns a Boolean indicating whether the specified parameter is controllable.
Definition at line 318 of file InputParameters.C.
bool InputParameters::isParamDeprecated | ( | const std::string & | name | ) | const |
Returns True if the parameters is deprecated.
Definition at line 276 of file InputParameters.C.
bool InputParameters::isParamRequired | ( | const std::string & | name | ) | const |
Returns a boolean indicating whether the specified parameter is required or not.
Definition at line 251 of file InputParameters.C.
Referenced by areAllRequiredParamsValid(), and checkParams().
bool InputParameters::isParamSetByAddParam | ( | const std::string & | name | ) | const |
Returns whether or not the parameter was set due to addParam.
If not then it was either set programmatically or was read through the input file.
Definition at line 270 of file InputParameters.C.
Referenced by Transient::init(), MooseApp::MooseApp(), and Transient::Transient().
bool InputParameters::isParamSetByUser | ( | const std::string & | name | ) | const |
Method returns true if the parameter was by the user.
name | The parameter name |
Definition at line 837 of file InputParameters.C.
Referenced by CreateProblemAction::act(), CreateProblemDefaultAction::act(), SetupMeshAction::act(), FEProblemBase::addOutput(), ADVectorFunctionDirichletBC< compute_stage >::ADVectorFunctionDirichletBC(), AnnularMesh::AnnularMesh(), AnnularMeshGenerator::AnnularMeshGenerator(), BreakMeshByBlockGeneratorBase::BreakMeshByBlockGeneratorBase(), PNGOutput::calculateRescalingValues(), BreakMeshByBlockBase::checkInputParameter(), Console::Console(), Eigenvalue::Eigenvalue(), Executioner::Executioner(), Exodus::Exodus(), FEProblemSolve::FEProblemSolve(), AddVariableAction::init(), Console::initialSetup(), InterfaceKernelTempl< T >::InterfaceKernelTempl(), paramSetByUser(), PatchMeshGenerator::PatchMeshGenerator(), RandomIC::RandomIC(), Transient::setupTimeIntegrator(), Transient::Transient(), VectorBodyForce::VectorBodyForce(), VectorFunctionDirichletBC::VectorFunctionDirichletBC(), and VectorFunctionIC::VectorFunctionIC().
bool InputParameters::isParamValid | ( | const std::string & | name | ) | const |
This method returns parameters that have been initialized in one fashion or another, i.e.
The value was supplied as a default argument or read and properly converted from the input file
Definition at line 257 of file InputParameters.C.
Referenced by SetupMeshAction::act(), AddVariableAction::act(), AddPeriodicBCAction::act(), MaterialOutputAction::act(), FEProblem::addLineSearch(), MooseObjectWarehouseBase< Indicator >::addObject(), JsonSyntaxTree::addParameters(), AddVariableAction::addVariable(), ADPiecewiseLinearInterpolationMaterial< compute_stage >::ADPiecewiseLinearInterpolationMaterial(), applyParameter(), areAllRequiredParamsValid(), BoundsAux::BoundsAux(), checkParams(), AppFactory::createShared(), Eigenvalue::Eigenvalue(), FileRangeBuilder::FileRangeBuilder(), GapValueAux::GapValueAux(), ExtraNodesetGenerator::generate(), getParamHelper(), GhostingUserObject::GhostingUserObject(), InterfaceKernelTempl< T >::InterfaceKernelTempl(), isParamSetByUser(), MooseObject::isParamValid(), MooseApp::isParamValid(), Action::isParamValid(), isValid(), LayeredBase::LayeredBase(), LayeredSideIntegral::LayeredSideIntegral(), MaterialPropertyInterface::MaterialPropertyInterface(), AddExtraNodeset::modify(), NodeFaceConstraint::NodeFaceConstraint(), PenetrationAux::PenetrationAux(), PiecewiseBilinear::PiecewiseBilinear(), PiecewiseLinearInterpolationMaterial::PiecewiseLinearInterpolationMaterial(), rangeCheck(), ReferenceResidualProblem::ReferenceResidualProblem(), MooseMesh::setPartitioner(), MeshBaseImageSampler::setupImageSampler(), ImageSampler::setupImageSampler(), SetupMeshAction::setupMesh(), Moose::PetscSupport::storePetscOptions(), Moose::SlepcSupport::storeSlepcOptions(), DumpObjectsProblem::stringifyParameters(), BoundaryRestrictableRequired::validParams(), BoundaryRestrictable::validParams(), MeshBaseImageSampler::vtkMagnitude(), ImageSampler::vtkMagnitude(), MeshBaseImageSampler::vtkThreshold(), and ImageSampler::vtkThreshold().
bool InputParameters::isPrivate | ( | const std::string & | name | ) | const |
Returns a Boolean indicating whether the specified parameter is private or not.
Definition at line 291 of file InputParameters.C.
Referenced by applyParameter(), checkParams(), and DumpObjectsProblem::stringifyParameters().
|
inline |
Getter for the _vector_of_postprocessors flag in parameters.
pp_name | The name of the postprocessor parameter |
Definition at line 816 of file InputParameters.h.
Referenced by GeneralUserObject::getPostprocessorValue(), and PostprocessorInterface::singlePostprocessor().
void InputParameters::makeParamNotRequired | ( | const std::string & | name | ) |
Changes the parameter to not be required.
name | The parameter name |
Definition at line 1396 of file InputParameters.h.
void InputParameters::makeParamRequired | ( | const std::string & | name | ) |
Changes the parameter to be required.
name | The parameter name |
Definition at line 1386 of file InputParameters.h.
void InputParameters::markControlled | ( | const std::string & | name | ) |
bool InputParameters::mooseObjectSyntaxVisibility | ( | ) | const |
Definition at line 385 of file InputParameters.C.
void InputParameters::mooseObjectSyntaxVisibility | ( | bool | visibility | ) |
Mutators for controlling whether or not the outermost level of syntax will be collapsed when printed.
Definition at line 379 of file InputParameters.C.
Referenced by Parser::buildFullTree(), and Parser::buildJsonSyntaxTree().
unsigned int InputParameters::numberDefaultCoupledValues | ( | const std::string & | coupling_name | ) | const |
Get the number of defaulted coupled value entries.
coupling_name | The name of the coupling parameter to get the default value for. |
Definition at line 496 of file InputParameters.C.
Referenced by applyCoupledVar(), Coupleable::Coupleable(), Coupleable::coupledComponents(), Coupleable::getADDefaultVectorValue(), Coupleable::getDefaultArrayValue(), and Coupleable::getDefaultValue().
InputParameters & InputParameters::operator+= | ( | const InputParameters & | rhs | ) |
Definition at line 142 of file InputParameters.C.
InputParameters & InputParameters::operator= | ( | const InputParameters & | rhs | ) |
Definition at line 108 of file InputParameters.C.
|
inline |
Definition at line 789 of file InputParameters.h.
|
inline |
Get/set a string representing the full HIT parameter path from the input file (e.g.
"Mesh/foo/bar" for param "bar") for the given param.
Definition at line 785 of file InputParameters.h.
Referenced by checkParams(), Action::paramError(), paramErrorPrefix(), Action::paramInfo(), and Action::paramWarning().
bool InputParameters::paramSetByUser | ( | const std::string & | name | ) | const |
Deprecated method.
Use isParamSetByUser() instead.
Definition at line 830 of file InputParameters.C.
void InputParameters::rangeCheck | ( | const std::string & | full_name, |
const std::string & | short_name, | ||
InputParameters::Parameter< std::vector< T >> * | param, | ||
std::ostream & | oss = Moose::out |
||
) |
Automatically detect the variables used in the range checking expression. We allow the following variables (where snam is the short_name of the parameter)
snam : tests every component in the vector 'snam > 0' snam_size : the size of the vector 'snam_size = 5' snam_i : where i is a number from 0 to sname_size-1 tests a specific component 'snam_0 > snam_1'
Definition at line 1007 of file InputParameters.h.
void InputParameters::rangeCheck | ( | const std::string & | full_name, |
const std::string & | short_name, | ||
InputParameters::Parameter< T > * | param, | ||
std::ostream & | oss = Moose::out |
||
) |
Runs a range on the supplied parameter if it exists and throws an error if that check fails.
Definition at line 1120 of file InputParameters.h.
Referenced by Parser::setScalarValueTypeParameter().
|
inline |
Get/set a string representing the raw, unmodified token text for the given param.
This is usually only set/useable for file-path type parameters.
Definition at line 796 of file InputParameters.h.
Referenced by Parser::setFilePathParam(), and Parser::setVectorFilePathParam().
void InputParameters::registerBase | ( | const std::string & | value | ) |
This method must be called from every base "Moose System" to create linkage with the Action System.
See "Moose.C" for the registerMooseObjectTask() calls.
Definition at line 330 of file InputParameters.C.
Referenced by Kernel::validParams(), VectorKernel::validParams(), LineSearch::validParams(), ArrayKernel::validParams(), Distribution::validParams(), Problem::validParams(), TimeStepper::validParams(), MoosePartitioner::validParams(), NearestPointIntegralVariablePostprocessor::validParams(), EigenKernel::validParams(), Split::validParams(), Postprocessor::validParams(), RelationshipManager::validParams(), Damper::validParams(), Predictor::validParams(), MoosePreconditioner::validParams(), VectorPostprocessor::validParams(), MooseVariableBase::validParams(), MeshGenerator::validParams(), Indicator::validParams(), InterfaceKernelTempl< T >::validParams(), TimeIntegrator::validParams(), AuxScalarKernel::validParams(), ScalarKernel::validParams(), Output::validParams(), Executioner::validParams(), UserObject::validParams(), Constraint::validParams(), Sampler::validParams(), Control::validParams(), Marker::validParams(), ScalarInitialCondition::validParams(), Function::validParams(), DiracKernel::validParams(), MultiApp::validParams(), InitialConditionBase::validParams(), DGKernelBase::validParams(), BoundaryCondition::validParams(), NodalKernel::validParams(), AuxKernelTempl< ComputeValueType >::validParams(), MooseMesh::validParams(), and validParams< MeshModifier >().
void InputParameters::registerBuildableTypes | ( | const std::string & | names | ) |
This method is here to indicate which Moose types a particular Action may build.
It takes a space delimited list of registered MooseObjects. TODO: For now we aren't actually checking this list when we build objects. Since individual actions can do whatever they want it's not exactly trivial to check this without changing the user API. This function properly restricts the syntax and YAML dumps.
Definition at line 337 of file InputParameters.C.
|
private |
Reserve space for default postprocessor values.
name | The name of the postprocessor |
size | Number of entries required in default p |
Definition at line 652 of file InputParameters.C.
Referenced by Parser::setVectorParameter().
std::set< std::string > InputParameters::reservedValues | ( | const std::string & | name | ) | const |
Get a set of reserved parameter values.
Returns a set by value since we can return an empty set.
Definition at line 1085 of file InputParameters.C.
T & InputParameters::set | ( | const std::string & | name, |
bool | quiet_mode = false |
||
) |
Returns a writable reference to the named parameters.
Note: This is not a virtual function! Use caution when comparing to the parent class implementation
name | The name of the parameter to set |
quiet_mode | When true the parameter is kept with set_by_add_param=true, this is generally not needed. |
"quite_mode" returns a writable reference to the named parameter, without setting set_by_add_param to false. Using this method of set will make the parameter to continue to behave if its value where set ONLY by addParam and not by any other method.
This was added for handling parameters in the Output objects that have behavior dependent on whether the user modified the parameters.
Definition at line 987 of file InputParameters.h.
Referenced by AB2PredictorCorrector::AB2PredictorCorrector(), AddICAction::act(), CreateExecutionerAction::act(), PartitionerAction::act(), SetAdaptivityOptionsAction::act(), CreateProblemAction::act(), AddMeshModifierAction::act(), AdaptivityAction::act(), SetupDebugAction::act(), SetupTimeStepperAction::act(), SetupPredictorAction::act(), SetupResidualDebugAction::act(), CreateDisplacedProblemAction::act(), MaterialDerivativeTestAction::act(), DisplayGhostingAction::act(), AddPeriodicBCAction::act(), MaterialOutputAction::act(), CommonOutputAction::act(), AddNodalNormalsAction::act(), FEProblemBase::addArrayVariable(), Executioner::addAttributeReporter(), FEProblemBase::addAuxArrayVariable(), FEProblemBase::addAuxKernel(), FEProblemBase::addAuxScalarKernel(), FEProblemBase::addAuxScalarVariable(), FEProblemBase::addAuxVariable(), FEProblemBase::addBoundaryCondition(), FEProblemBase::addConstraint(), FEProblemBase::addDamper(), FEProblemBase::addDGKernel(), FEProblemBase::addDiracKernel(), FEProblemBase::addDistribution(), FEProblemBase::addFunction(), FEProblemBase::addIndicator(), FEProblemBase::addInitialCondition(), FEProblemBase::addInterfaceKernel(), MooseEigenSystem::addKernel(), AuxiliarySystem::addKernel(), FEProblemBase::addKernel(), FEProblem::addLineSearch(), FEProblemBase::addMarker(), FEProblemBase::addMaterialHelper(), FEProblemBase::addMultiApp(), FEProblemBase::addNodalKernel(), FEProblemBase::addOutput(), FEProblemBase::addPredictor(), CreateDisplacedProblemAction::addProxyRelationshipManagers(), Action::addRelationshipManager(), FEProblemBase::addScalarKernel(), FEProblemBase::addScalarVariable(), AuxiliarySystem::addTimeIntegrator(), NonlinearSystemBase::addTimeIntegrator(), FEProblemBase::addTimeIntegrator(), FEProblemBase::addTransfer(), FEProblemBase::addUserObject(), SystemBase::addVariable(), FEProblemBase::addVariable(), AStableDirk4::AStableDirk4(), ActionWarehouse::buildBuildableActions(), Parser::buildFullTree(), Parser::buildJsonSyntaxTree(), MooseObjectUnitTest::buildObjects(), OversampleOutput::cloneMesh(), CommonOutputAction::create(), ActionFactory::create(), Factory::create(), MultiApp::createApp(), AppFactory::createAppShared(), AddVariableAction::createInitialConditionAction(), MooseApp::createMinimalApp(), AppFactory::createShared(), FEProblemBase::getFunction(), MaterialOutputAction::getParams(), Moose::SlepcSupport::getSlepcValidParams(), AddElementalFieldAction::init(), Transient::init(), MaterialOutputAction::materialOutputHelper(), SetupMeshAction::modifyParamsForUseSplit(), NearestPointBase< LayeredSideAverage, SideIntegralVariableUserObject >::NearestPointBase(), MultiAppProjectionTransfer::projectSolution(), GlobalParamsAction::setDoubleIndexParam(), FEProblem::setInputParametersFEProblem(), FEProblemBase::setInputParametersFEProblem(), GlobalParamsAction::setScalarParam(), CreateExecutionerAction::setupAutoPreconditioning(), MooseApp::setupOptions(), GlobalParamsAction::setVectorParam(), ADTimeKernelGradTempl< T, compute_stage >::validParams(), ADTimeKernelValueTempl< T, compute_stage >::validParams(), ExternalProblem::validParams(), ADTimeKernelTempl< T, compute_stage >::validParams(), NonlinearEigen::validParams(), InversePowerMethod::validParams(), ElementQualityChecker::validParams(), PenetrationAux::validParams(), DiscreteElementUserObject::validParams(), GapValueAux::validParams(), GhostingAux::validParams(), CSVReader::validParams(), DistributedGeneratedMesh::validParams(), NodalNormalsEvaluator::validParams(), EigenDirichletBC::validParams(), MeshGeneratorMesh::validParams(), NodalSum::validParams(), NodalNormalBC::validParams(), TagVectorAux::validParams(), VectorTimeKernel::validParams(), Console::validParams(), ControlOutput::validParams(), ConvectiveFluxBC::validParams(), PerfGraphOutput::validParams(), VTKOutput::validParams(), ArrayTimeKernel::validParams(), ODETimeKernel::validParams(), NearestNodeDistanceAux::validParams(), TagMatrixAux::validParams(), TimeKernel::validParams(), ADPresetBC< compute_stage >::validParams(), InterfaceTimeKernel::validParams(), EqualValueEmbeddedConstraint::validParams(), TiedValueConstraint::validParams(), PresetBC::validParams(), NearestNodeValueAux::validParams(), DOFMapOutput::validParams(), NodalL2Norm::validParams(), PresetNodalBC::validParams(), CoupledTiedValueConstraint::validParams(), LeastSquaresFitHistory::validParams(), FunctionPresetBC::validParams(), TwoMaterialPropertyInterface::validParams(), VectorOfPostprocessors::validParams(), TimeNodalKernel::validParams(), ScalarConstantIC::validParams(), VariableResidualNormsDebugOutput::validParams(), InterfaceMaterial::validParams(), BlockWeightedPartitioner::validParams(), ADFunctionPresetBC< compute_stage >::validParams(), ElementVariablesDifferenceMax::validParams(), Postprocessor::validParams(), Exodus::validParams(), GhostingUserObject::validParams(), SinDirichletBC::validParams(), ADPresetNodalBC< compute_stage >::validParams(), IntegratedBCBase::validParams(), GridPartitioner::validParams(), NodalBCBase::validParams(), MultiAppTransfer::validParams(), SamplerBase::validParams(), Output::validParams(), UserObject::validParams(), MortarConstraintBase::validParams(), Sampler::validParams(), InterfaceKernelBase::validParams(), Marker::validParams(), Control::validParams(), MultiApp::validParams(), AuxKernelTempl< ComputeValueType >::validParams(), TopResidualDebugOutput::validParams(), Parser::walkRaw(), and RelationshipManager::zeroLayerGhosting().
|
overridevirtual |
Override from libMesh to set user-defined attributes on our parameter.
"._set_by_add_param" and ".deprecated_params" are not populated until after the default value has already been set in libMesh (first callback to this method). Therefore if a variable is in/not in one of these sets, you can be assured it was put there outside of the "addParam*()" calls.
Definition at line 76 of file InputParameters.C.
Referenced by applyParameter(), and set().
void InputParameters::setDefaultPostprocessorValue | ( | const std::string & | name, |
const PostprocessorValue & | value, | ||
unsigned int | index = 0 |
||
) |
Set the default value for a postprocessor added with addPostprocessor.
name | The name of the postprocessor @value value The value of the postprocessor default to set |
index | The index in the default postprocessor vector |
Definition at line 662 of file InputParameters.C.
Referenced by Parser::setScalarParameter(), and Parser::setVectorParameter().
void InputParameters::setDocString | ( | const std::string & | name, |
const std::string & | doc | ||
) |
Set the doc string of a parameter.
This method is generally used from within the validParams function to modify the documentation for an existing parameter, such as a parameter that is supplied from an interface class.
Definition at line 240 of file InputParameters.C.
Referenced by Moose::SlepcSupport::getSlepcValidParams(), MultiAppTransfer::validParams(), Output::validParams(), and AuxKernelTempl< ComputeValueType >::validParams().
void InputParameters::setHelper | ( | const std::string & | name | ) |
This functions is called in set as a 'callback' to avoid code duplication.
Definition at line 980 of file InputParameters.h.
|
private |
Definition at line 1019 of file InputParameters.C.
|
private |
|
private |
Definition at line 1007 of file InputParameters.C.
|
private |
|
private |
Definition at line 1043 of file InputParameters.C.
|
private |
|
private |
Definition at line 1031 of file InputParameters.C.
|
private |
|
private |
Definition at line 987 of file InputParameters.C.
|
private |
|
private |
Definition at line 967 of file InputParameters.C.
|
private |
|
private |
This method is called when adding a Parameter with a default value, can be specialized for non-matching types.
Definition at line 1228 of file InputParameters.h.
Referenced by addParam().
void InputParameters::setReservedValues | ( | const std::string & | name, |
const std::set< std::string > & | reserved | ||
) |
Provide a set of reserved values for a parameter.
These are values that are in addition to the normal set of values the parameter can take.
Definition at line 1079 of file InputParameters.C.
Referenced by OutputInterface::validParams().
|
inlineprivate |
Setter for the _vector_of_postprocessors flag in parameters.
pp_name | The name of the postprocessor parameter |
b | value that _vector_of_postprocessors is set to |
Definition at line 923 of file InputParameters.h.
Referenced by Parser::setVectorParameter().
bool InputParameters::shouldIgnore | ( | const std::string & | name | ) |
Whether to ignore the value of an input parameter set in the input file or from the command line.
Definition at line 1102 of file InputParameters.C.
void InputParameters::suppressParameter | ( | const std::string & | name | ) |
This method suppresses an inherited parameter so that it isn't required or valid in the derived class.
The parameter is added to the private parameter list. Suppressing a parameter can have dire consequences. Use at your own risk!
Definition at line 1367 of file InputParameters.h.
Referenced by DiscreteElementUserObject::validParams(), CentroidMultiApp::validParams(), ADPresetBC< compute_stage >::validParams(), PresetBC::validParams(), PresetNodalBC::validParams(), CSV::validParams(), FunctionPresetBC::validParams(), MultiAppUserObjectTransfer::validParams(), MaterialPropertyDebugOutput::validParams(), ADFunctionPresetBC< compute_stage >::validParams(), VariableResidualNormsDebugOutput::validParams(), ADPresetNodalBC< compute_stage >::validParams(), GridPartitioner::validParams(), and Marker::validParams().
std::string InputParameters::type | ( | const std::string & | name | ) |
Prints the type of the requested parameter by name.
Definition at line 519 of file InputParameters.C.
|
friend |
Definition at line 24 of file InputParameters.C.
|
friend |
Definition at line 974 of file InputParameters.h.
|
friend |
Definition at line 975 of file InputParameters.h.
|
private |
A flag for toggling the error message in the copy constructor.
Definition at line 970 of file InputParameters.h.
Referenced by allowCopy(), clear(), and operator=().
|
private |
full HIT path of the block from the input file - used for nice error messages.
Definition at line 932 of file InputParameters.h.
Referenced by blockFullpath(), clear(), and operator=().
|
private |
original location of input block (i.e. filename,linenum) - used for nice error messages.
Definition at line 929 of file InputParameters.h.
Referenced by blockLocation(), clear(), and operator=().
|
private |
The RelationshipManagers that this object may either build or require.
The optional second argument may be supplied to "downgrade" the functionality of the corresponding relationship manager (e.g. An AlgebraicRelationshipManager could be only used as a GeometricRelationshipManager for a given simulation).
Definition at line 956 of file InputParameters.h.
Referenced by addRelationshipManager(), clearRelationshipManagers(), getBuildableRelationshipManagerTypes(), operator+=(), and operator=().
|
private |
The parameter is used to restrict types that can be built.
Typically this is used for MooseObjectAction derived Actions.
Definition at line 947 of file InputParameters.h.
Referenced by getBuildableTypes(), operator+=(), operator=(), and registerBuildableTypes().
|
private |
The class description for the owning object.
This string is used in many places including mouse-over events, and external documentation produced from the source code.
Definition at line 943 of file InputParameters.h.
Referenced by addClassDescription(), and getClassDescription().
|
private |
This parameter collapses one level of nesting in the syntax blocks.
It is used in conjunction with MooseObjectAction derived Actions.
Definition at line 960 of file InputParameters.h.
Referenced by clear(), collapseSyntaxNesting(), InputParameters(), and operator=().
|
private |
The coupled variables set.
Definition at line 939 of file InputParameters.h.
Referenced by addCoupledVar(), addCoupledVarWithAutoBuild(), addRequiredCoupledVar(), clear(), coupledVarsBegin(), coupledVarsEnd(), getCoupledVariableParamNames(), hasCoupledValue(), hasDefaultCoupledValue(), operator+=(), operator=(), and type().
|
private |
This parameter hides derived MOOSE object types from appearing in syntax dumps.
Definition at line 963 of file InputParameters.h.
Referenced by clear(), InputParameters(), mooseObjectSyntaxVisibility(), and operator=().
|
private |
The actual parameter data.
Each Metadata object contains attributes for the corresponding parameter.
Definition at line 936 of file InputParameters.h.
Referenced by addCommandLineParam(), addCoupledVar(), addCoupledVarWithAutoBuild(), addCustomTypeParam(), addDeprecatedParam(), addParam(), addParamNamesToGroup(), addPrivateParam(), addRangeCheckedParam(), addRequiredCommandLineParam(), addRequiredCustomTypeParam(), addRequiredParam(), addRequiredRangeCheckedParam(), applyParameter(), at(), clear(), declareControllable(), defaultCoupledValue(), getAutoBuildVectors(), getControllableExecuteOnTypes(), getControllableParameters(), getDefaultPostprocessorValue(), getDescription(), getDocString(), getGroupName(), getSyntax(), hasDefaultCoupledValue(), hasDefaultPostprocessorValue(), ignoreParameter(), InputParameters(), isControllable(), isParamDeprecated(), isParamRequired(), isParamSetByAddParam(), isParamSetByUser(), isParamValid(), isPrivate(), isSinglePostprocessor(), makeParamNotRequired(), makeParamRequired(), numberDefaultCoupledValues(), operator+=(), operator=(), rangeCheck(), rawParamVal(), registerBase(), reserveDefaultPostprocessorValueStorage(), reservedValues(), set(), set_attributes(), setDefaultPostprocessorValue(), setDocString(), setParamHelper(), setReservedValues(), setVectorOfPostprocessors(), shouldIgnore(), suppressParameter(), and type().
|
private |
Flag for disabling deprecated parameters message, this is used by applyParameters to avoid dumping messages.
Definition at line 967 of file InputParameters.h.
Referenced by addDeprecatedParam(), applyCoupledVar(), applyParameter(), clear(), and set_attributes().