www.mooseframework.org
Public Member Functions | Protected Attributes | List of all members
MooseVariableFEBase Class Referenceabstract

#include <MooseVariableFEBase.h>

Inheritance diagram for MooseVariableFEBase:
[legend]

Public Member Functions

 MooseVariableFEBase (unsigned int var_num, const FEType &fe_type, SystemBase &sys, Moose::VarKindType var_kind, THREAD_ID tid)
 
virtual void clearDofIndices ()=0
 Clear out the dof indices. More...
 
virtual void prepare ()=0
 
virtual void prepareNeighbor ()=0
 
virtual void prepareAux ()=0
 
virtual void reinitNode ()=0
 
virtual void reinitAux ()=0
 
virtual void reinitAuxNeighbor ()=0
 
virtual void reinitNodes (const std::vector< dof_id_type > &nodes)=0
 
virtual void reinitNodesNeighbor (const std::vector< dof_id_type > &nodes)=0
 
virtual bool isNodal () const =0
 Is this variable nodal. More...
 
virtual dof_id_type & nodalDofIndex ()=0
 
virtual dof_id_type & nodalDofIndexNeighbor ()=0
 
virtual const Elem *& currentElem () const =0
 Current element this variable is evaluated at. More...
 
virtual const MooseArray< Point > & normals () const =0
 
virtual const std::set< SubdomainID > & activeSubdomains () const =0
 The subdomains the variable is active on. More...
 
virtual bool activeOnSubdomain (SubdomainID subdomain) const =0
 Is the variable active on the subdomain? More...
 
virtual const DenseVector< Number > & solutionDoFs ()=0
 
virtual const DenseVector< Number > & solutionDoFsOld ()=0
 
virtual const DenseVector< Number > & solutionDoFsOlder ()=0
 
virtual const DenseVector< Number > & solutionDoFsNeighbor ()=0
 
virtual const DenseVector< Number > & solutionDoFsOldNeighbor ()=0
 
virtual const DenseVector< Number > & solutionDoFsOlderNeighbor ()=0
 
virtual void prepareIC ()=0
 Prepare the initial condition. More...
 
virtual void computeElemValues ()=0
 Compute values at interior quadrature points. More...
 
virtual void computeElemValuesFace ()=0
 Compute values at facial quadrature points. More...
 
virtual void computeNeighborValuesFace ()=0
 Compute values at facial quadrature points for the neighbor. More...
 
virtual void computeNeighborValues ()=0
 Compute values at quadrature points for the neighbor. More...
 
virtual void computeNodalNeighborValues ()=0
 Compute nodal values of this variable in the neighbor. More...
 
virtual void computeNodalValues ()=0
 Compute nodal values of this variable. More...
 
virtual void setNodalValue (const DenseVector< Number > &value)=0
 Set values for this variable to keep everything up to date. More...
 
virtual Number getNodalValue (const Node &node)=0
 Get the value of this variable at given node. More...
 
virtual Number getNodalValueOld (const Node &node)=0
 Get the old value of this variable at given node. More...
 
virtual Number getNodalValueOlder (const Node &node)=0
 Get the t-2 value of this variable at given node. More...
 
virtual Number getElementalValue (const Elem *elem, unsigned int idx=0) const =0
 Get the current value of this variable on an element. More...
 
virtual Number getElementalValueOld (const Elem *elem, unsigned int idx=0) const =0
 Get the old value of this variable on an element. More...
 
virtual Number getElementalValueOlder (const Elem *elem, unsigned int idx=0) const =0
 Get the older value of this variable on an element. More...
 
virtual void getDofIndices (const Elem *elem, std::vector< dof_id_type > &dof_indices)=0
 
virtual std::vector< dof_id_type > & dofIndicesNeighbor ()=0
 Get neighbor DOF indices for currently selected element. More...
 
virtual unsigned int numberOfDofsNeighbor ()=0
 
virtual void insert (NumericVector< Number > &residual)=0
 
virtual const MooseArray< Number > & dofValue ()=0
 Deprecated method. More...
 
virtual const MooseArray< Number > & dofValues ()=0
 Returns dof solution on element. More...
 
virtual const MooseArray< Number > & dofValuesOld ()=0
 Returns old dof solution on element. More...
 
virtual const MooseArray< Number > & dofValuesOlder ()=0
 Returns older dof solution on element. More...
 
virtual const MooseArray< Number > & dofValuesPreviousNL ()=0
 Returns previous nl solution on element. More...
 
virtual const MooseArray< Number > & dofValuesNeighbor ()=0
 Returns dof solution on neighbor element. More...
 
virtual const MooseArray< Number > & dofValuesOldNeighbor ()=0
 Returns old dof solution on neighbor element. More...
 
virtual const MooseArray< Number > & dofValuesOlderNeighbor ()=0
 Returns older dof solution on neighbor element. More...
 
virtual const MooseArray< Number > & dofValuesPreviousNLNeighbor ()=0
 Returns previous nl solution on neighbor element. More...
 
virtual const MooseArray< Number > & dofValuesDot ()=0
 Returns time derivative of degrees of freedom. More...
 
virtual const MooseArray< Number > & dofValuesDotNeighbor ()=0
 Returns time derivative of neighboring degrees of freedom. More...
 
virtual const MooseArray< Number > & dofValuesDotDot ()=0
 Returns second time derivative of degrees of freedom. More...
 
virtual const MooseArray< Number > & dofValuesDotDotNeighbor ()=0
 Returns second time derivative of neighboring degrees of freedom. More...
 
virtual const MooseArray< Number > & dofValuesDotOld ()=0
 Returns old time derivative of degrees of freedom. More...
 
virtual const MooseArray< Number > & dofValuesDotOldNeighbor ()=0
 Returns old time derivative of neighboring degrees of freedom. More...
 
virtual const MooseArray< Number > & dofValuesDotDotOld ()=0
 Returns old second time derivative of degrees of freedom. More...
 
virtual const MooseArray< Number > & dofValuesDotDotOldNeighbor ()=0
 Returns old second time derivative of neighboring degrees of freedom. More...
 
virtual const MooseArray< Number > & dofValuesDuDotDu ()=0
 Returns derivative of time derivative of degrees of freedom. More...
 
virtual const MooseArray< Number > & dofValuesDuDotDuNeighbor ()=0
 Returns derivative of time derivative of neighboring degrees of freedom. More...
 
virtual const MooseArray< Number > & dofValuesDuDotDotDu ()=0
 Returns derivative of second time derivative of degrees of freedom. More...
 
virtual const MooseArray< Number > & dofValuesDuDotDotDuNeighbor ()=0
 Returns derivative of second time derivative of neighboring degrees of freedom. More...
 
virtual size_t phiSize ()=0
 Return phi size. More...
 
virtual size_t phiFaceSize ()=0
 Return phiFace size. More...
 
virtual size_t phiNeighborSize ()=0
 Return phiNeighbor size. More...
 
virtual size_t phiFaceNeighborSize ()=0
 Return phiFaceNeighbor size. More...
 
unsigned int number () const
 Get variable number coming from libMesh. More...
 
const FEType & feType () const
 Get the type of finite element object. More...
 
SystemBasesys ()
 Get the system this variable is part of. More...
 
const std::string & name () const
 Get the variable name. More...
 
const std::vector< dof_id_type > & allDofIndices () const
 Get all global dofindices for the variable. More...
 
unsigned int totalVarDofs ()
 
Moose::VarKindType kind () const
 Kind of the variable (Nonlinear, Auxiliary, ...) More...
 
void scalingFactor (Real factor)
 Set the scaling factor for this variable. More...
 
Real scalingFactor () const
 Get the scaling factor for this variable. More...
 
Order order () const
 Get the order of this variable Note: Order enum can be implicitly converted to unsigned int. More...
 
const DofMap & dofMap () const
 The DofMap associated with the system this variable is in. More...
 
std::vector< dof_id_type > & dofIndices ()
 
const std::vector< dof_id_type > & dofIndices () const
 
unsigned int numberOfDofs ()
 
virtual bool isVector () const =0
 
void computingJacobian (bool computing_jacobian)
 

Protected Attributes

unsigned int _var_num
 variable number (from libMesh) More...
 
FEType _fe_type
 The FEType associated with this variable. More...
 
unsigned int _index
 variable number within MOOSE More...
 
Moose::VarKindType _var_kind
 
SubProblem_subproblem
 Problem this variable is part of. More...
 
SystemBase_sys
 System this variable is part of. More...
 
const Variable & _variable
 libMesh variable object for this variable More...
 
const DofMap & _dof_map
 DOF map. More...
 
std::vector< dof_id_type > _dof_indices
 DOF indices. More...
 
MooseMesh_mesh
 mesh the variable is active in More...
 
Real _scaling_factor
 scaling factor for this variable More...
 
bool _computing_jacobian
 
THREAD_ID _tid
 Thread ID. More...
 

Detailed Description

Definition at line 20 of file MooseVariableFEBase.h.

Constructor & Destructor Documentation

◆ MooseVariableFEBase()

MooseVariableFEBase::MooseVariableFEBase ( unsigned int  var_num,
const FEType &  fe_type,
SystemBase sys,
Moose::VarKindType  var_kind,
THREAD_ID  tid 
)

Definition at line 12 of file MooseVariableFEBase.C.

17  : MooseVariableBase(var_num, fe_type, sys, var_kind, tid)
18 {
19 }
MooseVariableBase(unsigned int var_num, const FEType &fe_type, SystemBase &sys, Moose::VarKindType var_kind, THREAD_ID tid)
SystemBase & sys()
Get the system this variable is part of.

Member Function Documentation

◆ activeOnSubdomain()

virtual bool MooseVariableFEBase::activeOnSubdomain ( SubdomainID  subdomain) const
pure virtual

◆ activeSubdomains()

virtual const std::set<SubdomainID>& MooseVariableFEBase::activeSubdomains ( ) const
pure virtual

◆ allDofIndices()

const std::vector< dof_id_type > & MooseVariableBase::allDofIndices ( ) const
inherited

Get all global dofindices for the variable.

Definition at line 46 of file MooseVariableBase.C.

Referenced by FEProblemBase::addJacobianBlock(), NonlocalIntegratedBC::computeNonlocalJacobian(), NonlocalKernel::computeNonlocalJacobian(), NonlocalIntegratedBC::computeNonlocalOffDiagJacobian(), NonlocalKernel::computeNonlocalOffDiagJacobian(), FEProblemBase::prepare(), Assembly::prepareNonlocal(), Assembly::prepareVariableNonlocal(), and MooseVariableBase::totalVarDofs().

47 {
48  const auto it = _sys.subproblem()._var_dof_map.find(name());
49  if (it != _sys.subproblem()._var_dof_map.end())
50  return it->second;
51  else
52  mooseError("VariableAllDoFMap not prepared for ",
53  name(),
54  " . Check nonlocal coupling requirement for the variable.");
55 }
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:208
std::map< std::string, std::vector< dof_id_type > > _var_dof_map
Definition: SubProblem.h:495
SystemBase & _sys
System this variable is part of.
virtual SubProblem & subproblem()
Definition: SystemBase.h:103
const std::string & name() const
Get the variable name.

◆ clearDofIndices()

virtual void MooseVariableFEBase::clearDofIndices ( )
pure virtual

Clear out the dof indices.

We do this in case this variable is not going to be prepared at all...

Implemented in MooseVariableFE< OutputType >, MooseVariableFE< T >, MooseVariableFE< RealVectorValue >, and MooseVariableFE< Real >.

◆ computeElemValues()

virtual void MooseVariableFEBase::computeElemValues ( )
pure virtual

◆ computeElemValuesFace()

virtual void MooseVariableFEBase::computeElemValuesFace ( )
pure virtual

◆ computeNeighborValues()

virtual void MooseVariableFEBase::computeNeighborValues ( )
pure virtual

◆ computeNeighborValuesFace()

virtual void MooseVariableFEBase::computeNeighborValuesFace ( )
pure virtual

Compute values at facial quadrature points for the neighbor.

Implemented in MooseVariableFE< OutputType >, MooseVariableFE< T >, MooseVariableFE< RealVectorValue >, MooseVariableFE< Real >, and MooseVariableConstMonomial.

◆ computeNodalNeighborValues()

virtual void MooseVariableFEBase::computeNodalNeighborValues ( )
pure virtual

Compute nodal values of this variable in the neighbor.

Implemented in MooseVariableFE< OutputType >, MooseVariableFE< T >, MooseVariableFE< RealVectorValue >, and MooseVariableFE< Real >.

◆ computeNodalValues()

virtual void MooseVariableFEBase::computeNodalValues ( )
pure virtual

◆ computingJacobian()

void MooseVariableBase::computingJacobian ( bool  computing_jacobian)
inlineinherited

Definition at line 111 of file MooseVariableBase.h.

111 { _computing_jacobian = computing_jacobian; }

◆ currentElem()

virtual const Elem*& MooseVariableFEBase::currentElem ( ) const
pure virtual

Current element this variable is evaluated at.

Implemented in MooseVariableFE< OutputType >, MooseVariableFE< T >, MooseVariableFE< RealVectorValue >, and MooseVariableFE< Real >.

◆ dofIndices() [1/2]

std::vector<dof_id_type>& MooseVariableBase::dofIndices ( )
inlineinherited

◆ dofIndices() [2/2]

const std::vector<dof_id_type>& MooseVariableBase::dofIndices ( ) const
inlineinherited

Definition at line 96 of file MooseVariableBase.h.

96 { return _dof_indices; }
std::vector< dof_id_type > _dof_indices
DOF indices.

◆ dofIndicesNeighbor()

virtual std::vector<dof_id_type>& MooseVariableFEBase::dofIndicesNeighbor ( )
pure virtual

Get neighbor DOF indices for currently selected element.

Returns
the neighbor degree of freedom indices

Implemented in MooseVariableFE< OutputType >, MooseVariableFE< T >, MooseVariableFE< RealVectorValue >, and MooseVariableFE< Real >.

Referenced by Assembly::prepareNeighbor().

◆ dofMap()

const DofMap& MooseVariableBase::dofMap ( ) const
inlineinherited

The DofMap associated with the system this variable is in.

Definition at line 92 of file MooseVariableBase.h.

Referenced by AuxScalarKernel::compute(), and ScalarVariable::getValue().

92 { return _dof_map; }
const DofMap & _dof_map
DOF map.

◆ dofValue()

virtual const MooseArray<Number>& MooseVariableFEBase::dofValue ( )
pure virtual

◆ dofValues()

virtual const MooseArray<Number>& MooseVariableFEBase::dofValues ( )
pure virtual

◆ dofValuesDot()

virtual const MooseArray<Number>& MooseVariableFEBase::dofValuesDot ( )
pure virtual

Returns time derivative of degrees of freedom.

Implemented in MooseVariableFE< OutputType >, MooseVariableFE< T >, MooseVariableFE< RealVectorValue >, and MooseVariableFE< Real >.

◆ dofValuesDotDot()

virtual const MooseArray<Number>& MooseVariableFEBase::dofValuesDotDot ( )
pure virtual

Returns second time derivative of degrees of freedom.

Implemented in MooseVariableFE< OutputType >, MooseVariableFE< T >, MooseVariableFE< RealVectorValue >, and MooseVariableFE< Real >.

◆ dofValuesDotDotNeighbor()

virtual const MooseArray<Number>& MooseVariableFEBase::dofValuesDotDotNeighbor ( )
pure virtual

Returns second time derivative of neighboring degrees of freedom.

Implemented in MooseVariableFE< OutputType >, MooseVariableFE< T >, MooseVariableFE< RealVectorValue >, and MooseVariableFE< Real >.

◆ dofValuesDotDotOld()

virtual const MooseArray<Number>& MooseVariableFEBase::dofValuesDotDotOld ( )
pure virtual

Returns old second time derivative of degrees of freedom.

Implemented in MooseVariableFE< OutputType >, MooseVariableFE< T >, MooseVariableFE< RealVectorValue >, and MooseVariableFE< Real >.

◆ dofValuesDotDotOldNeighbor()

virtual const MooseArray<Number>& MooseVariableFEBase::dofValuesDotDotOldNeighbor ( )
pure virtual

Returns old second time derivative of neighboring degrees of freedom.

Implemented in MooseVariableFE< OutputType >, MooseVariableFE< T >, MooseVariableFE< RealVectorValue >, and MooseVariableFE< Real >.

◆ dofValuesDotNeighbor()

virtual const MooseArray<Number>& MooseVariableFEBase::dofValuesDotNeighbor ( )
pure virtual

Returns time derivative of neighboring degrees of freedom.

Implemented in MooseVariableFE< OutputType >, MooseVariableFE< T >, MooseVariableFE< RealVectorValue >, and MooseVariableFE< Real >.

◆ dofValuesDotOld()

virtual const MooseArray<Number>& MooseVariableFEBase::dofValuesDotOld ( )
pure virtual

Returns old time derivative of degrees of freedom.

Implemented in MooseVariableFE< OutputType >, MooseVariableFE< T >, MooseVariableFE< RealVectorValue >, and MooseVariableFE< Real >.

◆ dofValuesDotOldNeighbor()

virtual const MooseArray<Number>& MooseVariableFEBase::dofValuesDotOldNeighbor ( )
pure virtual

Returns old time derivative of neighboring degrees of freedom.

Implemented in MooseVariableFE< OutputType >, MooseVariableFE< T >, MooseVariableFE< RealVectorValue >, and MooseVariableFE< Real >.

◆ dofValuesDuDotDotDu()

virtual const MooseArray<Number>& MooseVariableFEBase::dofValuesDuDotDotDu ( )
pure virtual

Returns derivative of second time derivative of degrees of freedom.

Implemented in MooseVariableFE< OutputType >, MooseVariableFE< T >, MooseVariableFE< RealVectorValue >, and MooseVariableFE< Real >.

◆ dofValuesDuDotDotDuNeighbor()

virtual const MooseArray<Number>& MooseVariableFEBase::dofValuesDuDotDotDuNeighbor ( )
pure virtual

Returns derivative of second time derivative of neighboring degrees of freedom.

Implemented in MooseVariableFE< OutputType >, MooseVariableFE< T >, MooseVariableFE< RealVectorValue >, and MooseVariableFE< Real >.

◆ dofValuesDuDotDu()

virtual const MooseArray<Number>& MooseVariableFEBase::dofValuesDuDotDu ( )
pure virtual

Returns derivative of time derivative of degrees of freedom.

Implemented in MooseVariableFE< OutputType >, MooseVariableFE< T >, MooseVariableFE< RealVectorValue >, and MooseVariableFE< Real >.

◆ dofValuesDuDotDuNeighbor()

virtual const MooseArray<Number>& MooseVariableFEBase::dofValuesDuDotDuNeighbor ( )
pure virtual

Returns derivative of time derivative of neighboring degrees of freedom.

Implemented in MooseVariableFE< OutputType >, MooseVariableFE< T >, MooseVariableFE< RealVectorValue >, and MooseVariableFE< Real >.

◆ dofValuesNeighbor()

virtual const MooseArray<Number>& MooseVariableFEBase::dofValuesNeighbor ( )
pure virtual

◆ dofValuesOld()

virtual const MooseArray<Number>& MooseVariableFEBase::dofValuesOld ( )
pure virtual

◆ dofValuesOlder()

virtual const MooseArray<Number>& MooseVariableFEBase::dofValuesOlder ( )
pure virtual

◆ dofValuesOlderNeighbor()

virtual const MooseArray<Number>& MooseVariableFEBase::dofValuesOlderNeighbor ( )
pure virtual

Returns older dof solution on neighbor element.

Implemented in MooseVariableFE< OutputType >, MooseVariableFE< T >, MooseVariableFE< RealVectorValue >, and MooseVariableFE< Real >.

◆ dofValuesOldNeighbor()

virtual const MooseArray<Number>& MooseVariableFEBase::dofValuesOldNeighbor ( )
pure virtual

Returns old dof solution on neighbor element.

Implemented in MooseVariableFE< OutputType >, MooseVariableFE< T >, MooseVariableFE< RealVectorValue >, and MooseVariableFE< Real >.

◆ dofValuesPreviousNL()

virtual const MooseArray<Number>& MooseVariableFEBase::dofValuesPreviousNL ( )
pure virtual

◆ dofValuesPreviousNLNeighbor()

virtual const MooseArray<Number>& MooseVariableFEBase::dofValuesPreviousNLNeighbor ( )
pure virtual

Returns previous nl solution on neighbor element.

Implemented in MooseVariableFE< OutputType >, MooseVariableFE< T >, MooseVariableFE< RealVectorValue >, and MooseVariableFE< Real >.

◆ feType()

const FEType& MooseVariableBase::feType ( ) const
inlineinherited

◆ getDofIndices()

virtual void MooseVariableFEBase::getDofIndices ( const Elem *  elem,
std::vector< dof_id_type > &  dof_indices 
)
pure virtual

◆ getElementalValue()

virtual Number MooseVariableFEBase::getElementalValue ( const Elem *  elem,
unsigned int  idx = 0 
) const
pure virtual

Get the current value of this variable on an element.

Parameters
[in]elemElement at which to get value
[in]idxLocal index of this variable's element DoFs
Returns
Variable value

Implemented in MooseVariableFE< OutputType >, MooseVariableFE< T >, MooseVariableFE< RealVectorValue >, and MooseVariableFE< Real >.

◆ getElementalValueOld()

virtual Number MooseVariableFEBase::getElementalValueOld ( const Elem *  elem,
unsigned int  idx = 0 
) const
pure virtual

Get the old value of this variable on an element.

Parameters
[in]elemElement at which to get value
[in]idxLocal index of this variable's element DoFs
Returns
Variable value

Implemented in MooseVariableFE< OutputType >, MooseVariableFE< T >, MooseVariableFE< RealVectorValue >, and MooseVariableFE< Real >.

◆ getElementalValueOlder()

virtual Number MooseVariableFEBase::getElementalValueOlder ( const Elem *  elem,
unsigned int  idx = 0 
) const
pure virtual

Get the older value of this variable on an element.

Parameters
[in]elemElement at which to get value
[in]idxLocal index of this variable's element DoFs
Returns
Variable value

Implemented in MooseVariableFE< OutputType >, MooseVariableFE< T >, MooseVariableFE< RealVectorValue >, and MooseVariableFE< Real >.

◆ getNodalValue()

virtual Number MooseVariableFEBase::getNodalValue ( const Node &  node)
pure virtual

Get the value of this variable at given node.

Implemented in MooseVariableFE< OutputType >, MooseVariableFE< T >, MooseVariableFE< RealVectorValue >, and MooseVariableFE< Real >.

◆ getNodalValueOld()

virtual Number MooseVariableFEBase::getNodalValueOld ( const Node &  node)
pure virtual

Get the old value of this variable at given node.

Implemented in MooseVariableFE< OutputType >, MooseVariableFE< T >, MooseVariableFE< RealVectorValue >, and MooseVariableFE< Real >.

◆ getNodalValueOlder()

virtual Number MooseVariableFEBase::getNodalValueOlder ( const Node &  node)
pure virtual

Get the t-2 value of this variable at given node.

Implemented in MooseVariableFE< OutputType >, MooseVariableFE< T >, MooseVariableFE< RealVectorValue >, and MooseVariableFE< Real >.

◆ insert()

virtual void MooseVariableFEBase::insert ( NumericVector< Number > &  residual)
pure virtual

◆ isNodal()

virtual bool MooseVariableFEBase::isNodal ( ) const
pure virtual

Is this variable nodal.

Returns
true if it nodal, otherwise false

Implements MooseVariableBase.

Implemented in MooseVariableFE< OutputType >, MooseVariableFE< T >, MooseVariableFE< RealVectorValue >, and MooseVariableFE< Real >.

Referenced by InitialConditionWarehouse::addObject(), and SystemBase::copyVars().

◆ isVector()

virtual bool MooseVariableBase::isVector ( ) const
pure virtualinherited
Returns
true if this is a vector-valued element, false otherwise.

Implemented in MooseVariableFE< OutputType >, MooseVariableFE< T >, MooseVariableFE< RealVectorValue >, MooseVariableFE< Real >, and MooseVariableScalar.

Referenced by SubProblem::getVariableHelper().

◆ kind()

Moose::VarKindType MooseVariableBase::kind ( ) const
inlineinherited

Kind of the variable (Nonlinear, Auxiliary, ...)

Definition at line 71 of file MooseVariableBase.h.

Referenced by ShapeUserObject< SideUserObject >::coupled(), Coupleable::coupled(), AuxKernel::coupledDot(), and AuxKernel::coupledDotDu().

71 { return _var_kind; }
Moose::VarKindType _var_kind

◆ name()

const std::string & MooseVariableBase::name ( ) const
inherited

◆ nodalDofIndex()

virtual dof_id_type& MooseVariableFEBase::nodalDofIndex ( )
pure virtual

◆ nodalDofIndexNeighbor()

virtual dof_id_type& MooseVariableFEBase::nodalDofIndexNeighbor ( )
pure virtual

◆ normals()

virtual const MooseArray<Point>& MooseVariableFEBase::normals ( ) const
pure virtual

◆ number()

unsigned int MooseVariableBase::number ( ) const
inlineinherited

Get variable number coming from libMesh.

Returns
the libmesh variable number

Definition at line 45 of file MooseVariableBase.h.

Referenced by Assembly::addJacobianCoupledVarPair(), Assembly::cacheJacobianCoupledVarPair(), InterfaceKernel::computeElementOffDiagJacobian(), ElemElemConstraint::computeElemNeighJacobian(), InterfaceKernel::computeElemNeighJacobian(), DGKernel::computeElemNeighJacobian(), ElemElemConstraint::computeElemNeighResidual(), InterfaceKernel::computeElemNeighResidual(), DGKernel::computeElemNeighResidual(), ComputeFullJacobianThread::computeFaceJacobian(), ComputeFullJacobianThread::computeInternalFaceJacobian(), MassLumpedTimeDerivative::computeJacobian(), TimeDerivative::computeJacobian(), Kernel::computeJacobian(), ODEKernel::computeJacobian(), EigenKernel::computeJacobian(), ComputeFullJacobianThread::computeJacobian(), IntegratedBC::computeJacobian(), NodalEqualValueConstraint::computeJacobian(), EqualValueEmbeddedConstraint::computeJacobian(), VectorKernel::computeJacobian(), VectorIntegratedBC::computeJacobian(), NonlocalIntegratedBC::computeJacobian(), NonlocalKernel::computeJacobian(), KernelGrad::computeJacobian(), KernelValue::computeJacobian(), NodeElemConstraint::computeJacobian(), NodeFaceConstraint::computeJacobian(), MortarConstraint::computeJacobian(), DiracKernel::computeJacobian(), IntegratedBC::computeJacobianBlock(), NonlocalIntegratedBC::computeJacobianBlock(), VectorIntegratedBC::computeJacobianBlock(), JvarMapIntegratedBCInterface< T >::computeJacobianBlock(), IntegratedBC::computeJacobianBlockScalar(), VectorIntegratedBC::computeJacobianBlockScalar(), MortarConstraint::computeJacobianSide(), InterfaceKernel::computeNeighborOffDiagJacobian(), NonlocalIntegratedBC::computeNonlocalJacobian(), NonlocalKernel::computeNonlocalJacobian(), NonlocalIntegratedBC::computeNonlocalOffDiagJacobian(), NonlocalKernel::computeNonlocalOffDiagJacobian(), InterfaceKernel::computeOffDiagElemNeighJacobian(), DGKernel::computeOffDiagElemNeighJacobian(), ODEKernel::computeOffDiagJacobian(), Kernel::computeOffDiagJacobian(), NodalScalarKernel::computeOffDiagJacobian(), EigenKernel::computeOffDiagJacobian(), JvarMapKernelInterface< Kernel >::computeOffDiagJacobian(), EqualValueEmbeddedConstraint::computeOffDiagJacobian(), VectorNodalBC::computeOffDiagJacobian(), VectorKernel::computeOffDiagJacobian(), NodalBC::computeOffDiagJacobian(), ADKernel< compute_stage >::computeOffDiagJacobian(), NonlocalKernel::computeOffDiagJacobian(), KernelGrad::computeOffDiagJacobian(), KernelValue::computeOffDiagJacobian(), NodeElemConstraint::computeOffDiagJacobian(), NodeFaceConstraint::computeOffDiagJacobian(), DiracKernel::computeOffDiagJacobian(), DGKernel::computeOffDiagJacobian(), NodalKernel::computeOffDiagJacobian(), VectorKernel::computeOffDiagJacobianScalar(), Kernel::computeOffDiagJacobianScalar(), TiedValueConstraint::computeQpJacobian(), CoupledTiedValueConstraint::computeQpJacobian(), EqualValueEmbeddedConstraint::computeQpJacobian(), EqualValueEmbeddedConstraint::computeQpOffDiagJacobian(), TiedValueConstraint::computeQpResidual(), CoupledTiedValueConstraint::computeQpResidual(), Kernel::computeResidual(), TimeKernel::computeResidual(), ODEKernel::computeResidual(), ODETimeKernel::computeResidual(), EigenKernel::computeResidual(), VectorKernel::computeResidual(), IntegratedBC::computeResidual(), NodalEqualValueConstraint::computeResidual(), VectorIntegratedBC::computeResidual(), KernelValue::computeResidual(), KernelGrad::computeResidual(), NodeElemConstraint::computeResidual(), NodeFaceConstraint::computeResidual(), MortarConstraint::computeResidual(), DiracKernel::computeResidual(), MortarConstraint::computeResidualSide(), DebugResidualAux::computeValue(), Coupleable::coupled(), CoupledForce::CoupledForce(), ScalarCoupleable::coupledScalar(), VariableResidual::execute(), NodalNormalsEvaluator::execute(), NodalNormalsCorner::execute(), NodalNormalsPreprocessor::execute(), FieldSplitPreconditioner::FieldSplitPreconditioner(), FiniteDifferencePreconditioner::FiniteDifferencePreconditioner(), ConservativeAdvection::fullUpwind(), LazyCoupleable::init(), NodalNormalsPreprocessor::initialize(), ComputeDiracThread::onElement(), ComputeNodalKernelBCJacobiansThread::onNode(), ComputeNodalKernelJacobiansThread::onNode(), PhysicsBasedPreconditioner::PhysicsBasedPreconditioner(), Assembly::prepareJacobianBlock(), Assembly::prepareNeighbor(), Assembly::prepareNonlocal(), Assembly::prepareVariable(), Assembly::prepareVariableNonlocal(), MultiAppProjectionTransfer::projectSolution(), EqualValueEmbeddedConstraint::reinitConstraint(), AddPeriodicBCAction::setPeriodicVars(), SingleMatrixPreconditioner::SingleMatrixPreconditioner(), MultiAppCopyTransfer::transferDofObject(), and UpdateErrorVectorsThread::UpdateErrorVectorsThread().

45 { return _var_num; }
unsigned int _var_num
variable number (from libMesh)

◆ numberOfDofs()

unsigned int MooseVariableBase::numberOfDofs ( )
inlineinherited

Definition at line 98 of file MooseVariableBase.h.

Referenced by AuxKernel::compute(), and ComputeDiracThread::onElement().

98 { return _dof_indices.size(); }
std::vector< dof_id_type > _dof_indices
DOF indices.

◆ numberOfDofsNeighbor()

virtual unsigned int MooseVariableFEBase::numberOfDofsNeighbor ( )
pure virtual

◆ order()

Order MooseVariableBase::order ( ) const
inherited

◆ phiFaceNeighborSize()

virtual size_t MooseVariableFEBase::phiFaceNeighborSize ( )
pure virtual

◆ phiFaceSize()

virtual size_t MooseVariableFEBase::phiFaceSize ( )
pure virtual

◆ phiNeighborSize()

virtual size_t MooseVariableFEBase::phiNeighborSize ( )
pure virtual

◆ phiSize()

virtual size_t MooseVariableFEBase::phiSize ( )
pure virtual

◆ prepare()

virtual void MooseVariableFEBase::prepare ( )
pure virtual

◆ prepareAux()

virtual void MooseVariableFEBase::prepareAux ( )
pure virtual

◆ prepareIC()

virtual void MooseVariableFEBase::prepareIC ( )
pure virtual

◆ prepareNeighbor()

virtual void MooseVariableFEBase::prepareNeighbor ( )
pure virtual

◆ reinitAux()

virtual void MooseVariableFEBase::reinitAux ( )
pure virtual

◆ reinitAuxNeighbor()

virtual void MooseVariableFEBase::reinitAuxNeighbor ( )
pure virtual

◆ reinitNode()

virtual void MooseVariableFEBase::reinitNode ( )
pure virtual

◆ reinitNodes()

virtual void MooseVariableFEBase::reinitNodes ( const std::vector< dof_id_type > &  nodes)
pure virtual

◆ reinitNodesNeighbor()

virtual void MooseVariableFEBase::reinitNodesNeighbor ( const std::vector< dof_id_type > &  nodes)
pure virtual

◆ scalingFactor() [1/2]

void MooseVariableBase::scalingFactor ( Real  factor)
inlineinherited

◆ scalingFactor() [2/2]

Real MooseVariableBase::scalingFactor ( ) const
inlineinherited

Get the scaling factor for this variable.

Definition at line 81 of file MooseVariableBase.h.

81 { return _scaling_factor; }
Real _scaling_factor
scaling factor for this variable

◆ setNodalValue()

virtual void MooseVariableFEBase::setNodalValue ( const DenseVector< Number > &  value)
pure virtual

Set values for this variable to keep everything up to date.

Implemented in MooseVariableFE< OutputType >, MooseVariableFE< T >, MooseVariableFE< RealVectorValue >, and MooseVariableFE< Real >.

◆ solutionDoFs()

virtual const DenseVector<Number>& MooseVariableFEBase::solutionDoFs ( )
pure virtual

◆ solutionDoFsNeighbor()

virtual const DenseVector<Number>& MooseVariableFEBase::solutionDoFsNeighbor ( )
pure virtual

◆ solutionDoFsOld()

virtual const DenseVector<Number>& MooseVariableFEBase::solutionDoFsOld ( )
pure virtual

◆ solutionDoFsOlder()

virtual const DenseVector<Number>& MooseVariableFEBase::solutionDoFsOlder ( )
pure virtual

◆ solutionDoFsOlderNeighbor()

virtual const DenseVector<Number>& MooseVariableFEBase::solutionDoFsOlderNeighbor ( )
pure virtual

◆ solutionDoFsOldNeighbor()

virtual const DenseVector<Number>& MooseVariableFEBase::solutionDoFsOldNeighbor ( )
pure virtual

◆ sys()

SystemBase& MooseVariableBase::sys ( )
inlineinherited

◆ totalVarDofs()

unsigned int MooseVariableBase::totalVarDofs ( )
inlineinherited

Definition at line 66 of file MooseVariableBase.h.

66 { return allDofIndices().size(); }
const std::vector< dof_id_type > & allDofIndices() const
Get all global dofindices for the variable.

Member Data Documentation

◆ _computing_jacobian

bool MooseVariableBase::_computing_jacobian
protectedinherited

Definition at line 140 of file MooseVariableBase.h.

Referenced by MooseVariableBase::computingJacobian().

◆ _dof_indices

std::vector<dof_id_type> MooseVariableBase::_dof_indices
protectedinherited

◆ _dof_map

const DofMap& MooseVariableBase::_dof_map
protectedinherited

◆ _fe_type

FEType MooseVariableBase::_fe_type
protectedinherited

◆ _index

unsigned int MooseVariableBase::_index
protectedinherited

variable number within MOOSE

Definition at line 119 of file MooseVariableBase.h.

◆ _mesh

MooseMesh& MooseVariableBase::_mesh
protectedinherited

mesh the variable is active in

Definition at line 135 of file MooseVariableBase.h.

◆ _scaling_factor

Real MooseVariableBase::_scaling_factor
protectedinherited

scaling factor for this variable

Definition at line 138 of file MooseVariableBase.h.

Referenced by MooseVariableBase::scalingFactor().

◆ _subproblem

SubProblem& MooseVariableBase::_subproblem
protectedinherited

◆ _sys

SystemBase& MooseVariableBase::_sys
protectedinherited

◆ _tid

THREAD_ID MooseVariableBase::_tid
protectedinherited

Thread ID.

Definition at line 143 of file MooseVariableBase.h.

Referenced by MooseVariableScalar::reinit().

◆ _var_kind

Moose::VarKindType MooseVariableBase::_var_kind
protectedinherited

Definition at line 120 of file MooseVariableBase.h.

Referenced by MooseVariableBase::kind().

◆ _var_num

unsigned int MooseVariableBase::_var_num
protectedinherited

variable number (from libMesh)

Definition at line 115 of file MooseVariableBase.h.

Referenced by MooseVariableBase::name(), MooseVariableBase::number(), and MooseVariableScalar::reinit().

◆ _variable

const Variable& MooseVariableBase::_variable
protectedinherited

libMesh variable object for this variable

Definition at line 127 of file MooseVariableBase.h.


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