https://mooseframework.inl.gov
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 More...
 

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 61 of file TagAuxBase.h.

62  : T(parameters), _scaled(this->template getParam<bool>("scaled"))
63 {
64 }
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 68 of file TagAuxBase.h.

70 {
71  if (input_var->feType() != aux_var->feType())
72  paramError("variable",
73  "The AuxVariable this AuxKernel is acting on has to have the same order and family "
74  "as the variable 'v'");
75  if (input_var->count() != aux_var->count())
76  paramError("variable",
77  "The AuxVariable this AuxKernel is acting on has to have the same number of "
78  "components as the variable 'v'");
79 }
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.

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

46 {
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.addParam<bool>("scaled",
54  true,
55  "Return value depending on the variable scaling/autoscaling. Set this to "
56  "false to obtain unscaled physical reaction forces.");
57  return params;
58 }
A MultiMooseEnum object to hold "execute_on" flags.
Definition: ExecFlagEnum.h:21
T & set(const std::string &name, bool quiet_mode=false)
Returns a writable reference to the named parameters.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
const ExecFlagType EXEC_TIMESTEP_END
Definition: Moose.C:34
InputParameters validParams()
void suppressParameter(const std::string &name)
This method suppresses an inherited parameter so that it isn&#39;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 addParam(const std::string &name, const S &value, const std::string &doc_string)
These methods add an optional parameter and a documentation string to the InputParameters object...

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: