25 "The name of the variable that this kernel operates on");
26 params.
addParam<
bool>(
"use_displaced_mesh",
28 "Whether or not this object should use the " 29 "displaced mesh for computation. Note that " 30 "in the case this is true but no " 31 "displacements are provided in the Mesh block " 32 "the undisplaced mesh will still be used.");
51 _subproblem(*getCheckedPointerParam<
SubProblem *>(
"_subproblem")),
52 _sys(*getCheckedPointerParam<
SystemBase *>(
"_sys")),
54 _assembly(_subproblem.assembly(_tid, 0)),
55 _var(_sys.getScalarVariable(_tid, parameters.
get<AuxVariableName>(
"variable"))),
56 _mesh(_subproblem.
mesh()),
62 for (
const auto & var : coupled_vars)
88 const std::set<std::string> &
94 const std::set<std::string> &
110 mooseError(
"The solution states have already been initialized when calling ",
113 "Make sure to call uOld() within the object constructor.");
MooseVariableScalar & _var
T * get(const std::unique_ptr< T > &u)
The MooseUtils::get() specializations are used to support making forwards-compatible code changes fro...
bool solutionStatesInitialized() const
Whether or not the solution states have been initialized via initSolutionState()
Base class for a system (of equations)
virtual bool isActive()
Use this to enable/disable the constraint.
virtual const std::set< std::string > & getSuppliedItems() override
Return a set containing the names of items owned by the object.
const VariableValue & uOld() const
Retrieves the old value of the variable that this AuxScalarKernel operates on.
const VariableValue & slnOld() const
Interface for objects that needs transient capabilities.
virtual void compute()
Evaluate the kernel.
const std::vector< MooseVariableScalar * > & getCoupledMooseScalarVars()
Get the list of coupled scalar variables.
static InputParameters validParams()
std::set< std::string > _supplied_vars
Interface for notifications that the mesh has changed.
Real value(unsigned n, unsigned alpha, unsigned beta, Real x)
Every object that can be built by the factory should be derived from this class.
void setValue(unsigned int i, Number value)
Set the nodal value for this variable (to keep everything up to date.
virtual const std::vector< dof_id_type > & dofIndices() const
Get local DoF indices.
const std::string & type() const
Get the type of this class.
Interface for objects that need to use UserObjects.
static InputParameters validParams()
const DofMap & dofMap() const
The DofMap associated with the system this variable is in.
OutputTools< Real >::VariableValue VariableValue
Order order() const
Get the order of this variable Note: Order enum can be implicitly converted to unsigned int...
virtual Real computeValue()=0
Compute the value of this kernel.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Generic class for solving transient nonlinear problems.
std::set< std::string > _depend_vars
Depend AuxKernels.
static InputParameters validParams()
Interface for sorting dependent vectors of objects.
Interface for objects that needs scalar coupling capabilities.
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type.
const InputParameters & parameters() const
Get the parameters of the object.
AuxScalarKernel(const InputParameters ¶meters)
static InputParameters validParams()
virtual const std::set< std::string > & getRequestedItems() override
Return a set containing the names of items requested by the object.
Interface for objects that need to use functions.
virtual ~AuxScalarKernel()
Interface class for classes which interact with Postprocessors.