16 ScalarSolutionInitialCondition,
25 "The SolutionUserObject to extract data from.");
27 "from_variable",
"The name of the variable in the file that is to be extracted");
29 "Sets the initial condition from a scalar variable stored in an Exodus file, "
30 "retrieved by a SolutionUserObject");
38 _solution_object_var_name(getParam<VariableName>(
"from_variable"))
registerMooseObjectRenamed("MooseApp", ScalarSolutionInitialCondition, "06/30/2024 24:00", ScalarSolutionIC)
registerMooseObject("MooseApp", ScalarSolutionIC)
InitialConditions are objects that set the initial value of variables.
static InputParameters validParams()
Class for reading an initial condition from a solution user object.
const SolutionUserObjectBase & _solution_object
SolutionUserObject containing the solution of interest.
ScalarSolutionIC(const InputParameters ¶meters)
const VariableName & _solution_object_var_name
The variable name extracted from the SolutionUserObject.
virtual Real value() override
The value of the variable.
static InputParameters validParams()
User object that reads an existing solution from an input file and uses it in the current simulation.
Real scalarValue(Real t, const std::string &var_name) const
Returns a value of a global variable.