19 params.
addClassDescription(
"Returns the specified variable as an auxiliary variable with a " 20 "simple copy of the variable values.");
22 MooseEnum stateEnum(
"CURRENT=0 OLD=1 OLDER=2",
"CURRENT");
26 "This parameter specifies the state being copied. CURRENT=0 OLD=1 OLDER=2. Copying an older " 27 "state allows access to previous solution information if necessary.");
34 _v(_state == 0 ? coupledValue(
"source")
35 : _state == 1 ? coupledValueOld(
"source")
36 : coupledValueOlder(
"source")),
37 _source_variable(*getVar(
"source", 0))
43 ") variable have different families. You may use a ProjectionAux " 44 "instead of the CopyValueAux");
49 ") variable are of different orders. You may use a ProjectionAux " 50 "instead of the CopyValueAux");
CopyValueAux(const InputParameters ¶meters)
const libMesh::FEType & feType() const
Get the type of finite element object.
virtual Real computeValue() override
Compute and return the value of the aux variable.
const VariableValue & _v
The variable to project from.
const MooseVariable & _source_variable
A reference to the variable to project from.
registerMooseObject("MooseApp", CopyValueAux)
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
void paramError(const std::string ¶m, Args... args) const
Emits an error prefixed with the file and line number of the given param (from the input file) along ...
std::string stringify(const T &t)
conversion to string
MooseVariableField< Real > & _var
This is a regular kernel so we cast to a regular MooseVariable.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Copies one variable onto an auxiliary variable.
unsigned int _qp
Quadrature point index.
static InputParameters validParams()
Base class for creating new auxiliary kernels and auxiliary boundary conditions.
static InputParameters validParams()