19 params.
addRequiredParam<TagName>(
"vector_tag",
"Name of the vector tag to extract values from");
21 "remove_variable_scaling",
23 "Whether to remove variable scaling from DOF value. If false, values are directly extracted " 24 "from the tag vector, and potentially with scaling applied. If true, any scaling of " 25 "variables is undone in the reported values.");
31 _remove_variable_scaling(isParamSetByUser(
"scaled")
32 ? !getParam<bool>(
"scaled")
33 : getParam<bool>(
"remove_variable_scaling")),
34 _v(coupledVectorTagValue(
"v",
"vector_tag")),
35 _v_var(*getFieldVar(
"v", 0))
41 mooseDeprecated(
"The 'scaled' parameter has been deprecated. Please use the " 42 "'remove_variable_scaling' parameter instead.");
44 paramError(
"You cannot set both the 'scaled' and 'remove_variable_scaling' parameters. " 45 "Please use only the 'remove_variable_scaling' parameter.");
54 "The provided vector tag does not correspond to a tagged residual vector, which " 55 "is the only kind of vector tag type for which scaling is applicable, yet " 56 "variable scaling is requested to be removed.");
const bool _remove_variable_scaling
Whether to remove variable scaling from the returned value.
virtual TagID getVectorTagID(const TagName &tag_name) const
Get a TagID from a TagName.
registerMooseObject("MooseApp", TagVectorAux)
virtual Real computeValue() override
Compute and return the value of the aux variable.
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 ...
The value of a tagged vector for a given node and a given variable is coupled to the current AuxVaria...
void checkCoupledVariable(const MooseVariableBase *input_var, const MooseVariableFieldBase *aux_var)
check the aux variable acting on this auxkernl has the consistent properties with the input coupled v...
static InputParameters validParams()
void mooseDeprecated(Args &&... args) const
TagVectorAux returns the coupled DOF value of a tagged vector.
virtual Moose::VectorTagType vectorTagType(const TagID tag_id) const
TagVectorAux(const InputParameters ¶meters)
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
static InputParameters validParams()
const MooseVariableBase & _v_var
SubProblem & _subproblem
Subproblem this kernel is part of.
unsigned int _qp
Quadrature point index.
bool isParamSetByUser(const std::string &name) const
Test if the supplied parameter is set by a user, as opposed to not set or set to default.
void scalingFactor(const std::vector< Real > &factor)
Set the scaling factor for this variable.