21 "variable",
"The variable this initial condition is supposed to provide values for.");
35 _fe_problem(*getCheckedPointerParam<
FEProblemBase *>(
"_fe_problem_base")),
36 _sys(*getCheckedPointerParam<
SystemBase *>(
"_sys")),
38 _t(_fe_problem.time()),
39 _var(_sys.getScalarVariable(_tid, getParam<VariableName>(
"variable"))),
41 _fe_problem.assembly(_tid, _var.kind() ==
Moose::VAR_SOLVER ? _var.sys().number() : 0))
46 for (
const auto & var : coupled_vars)
52const std::set<std::string> &
58const std::set<std::string> &
Interface for sorting dependent vectors of objects.
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
Interface for objects that need to use functions.
InitialConditionInterface serves as the abstract class for InitialConditions, FVInitialConditions,...
static InputParameters validParams()
Every object that can be built by the factory should be derived from this class.
static InputParameters validParams()
libMesh::Order order() const
Get the order of this variable Note: Order enum can be implicitly converted to unsigned int.
Interface for objects that needs scalar coupling capabilities.
const std::vector< MooseVariableScalar * > & getCoupledMooseScalarVars()
Get the list of coupled scalar variables.
std::set< std::string > _depend_vars
virtual const std::set< std::string > & getRequestedItems()
Return a set containing the names of items requested by the object.
virtual Real value()=0
The value of the variable.
static InputParameters validParams()
virtual const std::set< std::string > & getSuppliedItems()
Return a set containing the names of items owned by the object.
virtual void compute(DenseVector< Number > &vals)
Compute the initial condition.
std::set< std::string > _supplied_vars
MooseVariableScalar & _var
Scalar variable this initial condition works on.
virtual ~ScalarInitialCondition()
ScalarInitialCondition(const InputParameters ¶meters)
Constructor.
Base class for a system (of equations)
Interface for objects that need to use UserObjects.
MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to add...