https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TagAuxBase< T > Class Template Reference

The value of a tagged vector for a given node and a given variable is coupled to the current AuxVariable. More...

#include <TagAuxBase.h>

Inheritance diagram for TagAuxBase< T >:
[legend]

Public Member Functions

 TagAuxBase (const InputParameters &parameters)
 

Static Public Member Functions

static InputParameters validParams ()
 

Protected Member Functions

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 variable
 

Protected Attributes

const bool _scaled
 

Detailed Description

template<class T>
class TagAuxBase< T >

The value of a tagged vector for a given node and a given variable is coupled to the current AuxVariable.

TagVectorAux returns the coupled nodal value.

Definition at line 21 of file TagAuxBase.h.

Constructor & Destructor Documentation

◆ TagAuxBase()

template<class T >
TagAuxBase< T >::TagAuxBase ( const InputParameters parameters)

Definition at line 63 of file TagAuxBase.h.

64 : T(parameters), _scaled(this->template getParam<bool>("scaled"))
65{
66}
const bool _scaled
Definition TagAuxBase.h:29

Member Function Documentation

◆ checkCoupledVariable()

template<class T >
void TagAuxBase< T >::checkCoupledVariable ( const MooseVariableBase input_var,
const MooseVariableFieldBase aux_var 
)
protected

check the aux variable acting on this auxkernl has the consistent properties with the input coupled variable

Parameters
input_varInput coupled variable
aux_varAux variable

Definition at line 70 of file TagAuxBase.h.

72{
73 if (input_var->feType() != aux_var->feType())
74 paramError("variable",
75 "The AuxVariable this AuxKernel is acting on has to have the same order and family "
76 "as the variable 'v'");
77 if (input_var->count() != aux_var->count())
78 paramError("variable",
79 "The AuxVariable this AuxKernel is acting on has to have the same number of "
80 "components as the variable 'v'");
81}
const libMesh::FEType & feType() const
Get the type of finite element object.
unsigned int count() const
Get the number of components Note: For standard and vector variables, the number is one.

◆ validParams()

template<class T >
InputParameters TagAuxBase< T >::validParams ( )
static

Definition at line 45 of file TagAuxBase.h.

46{
47 InputParameters params = T::validParams();
48
49 params.addRequiredCoupledVar("v",
50 "The coupled variable whose components are coupled to AuxVariable");
51 params.set<ExecFlagEnum>("execute_on", true) = {EXEC_TIMESTEP_END};
52 params.suppressParameter<ExecFlagEnum>("execute_on");
53 params.addDeprecatedParam<bool>(
54 "scaled",
55 true,
56 "Return value depending on the variable scaling/autoscaling. Set this to "
57 "false to obtain unscaled physical reaction forces.",
58 "This parameter has been deprecated.");
59 return params;
60}
const ExecFlagType EXEC_TIMESTEP_END
Definition Moose.C:36
A MultiMooseEnum object to hold "execute_on" flags.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
void suppressParameter(const std::string &name)
This method suppresses an inherited parameter so that it isn't required or valid in the derived class...
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
This method adds a coupled variable name pair.
void addDeprecatedParam(const std::string &name, const T &value, const std::string &doc_string, const std::string &deprecation_message)
T & set(const std::string &name, bool quiet_mode=false)
Returns a writable reference to the named parameters.

Referenced by TagMatrixAux::validParams(), TagVectorArrayVariableAux::validParams(), TagVectorArrayVariableValueAux::validParams(), TagVectorAux::validParams(), ScalarTagMatrixAux::validParams(), and ScalarTagVectorAux::validParams().

Member Data Documentation

◆ _scaled

template<class T >
const bool TagAuxBase< T >::_scaled
protected

Definition at line 29 of file TagAuxBase.h.


The documentation for this class was generated from the following file: