20 #include "libmesh/fe_type.h" 21 #include "libmesh/enum_fe_family.h" 130 mooseError(
"Base class cannot determine this");
139 std::vector<dof_id_type> & )
const 153 unsigned int component)
const;
258 mooseError(
"setActiveTags must be overridden in derived classes.");
261 #define usingMooseVariableBaseMembers \ 262 using MooseVariableBase::_sys; \ 263 using MooseVariableBase::_fe_type; \ 264 using MooseVariableBase::_var_num; \ 265 using MooseVariableBase::_index; \ 266 using MooseVariableBase::_var_kind; \ 267 using MooseVariableBase::_subproblem; \ 268 using MooseVariableBase::_variable; \ 269 using MooseVariableBase::_assembly; \ 270 using MooseVariableBase::_dof_map; \ 271 using MooseVariableBase::_dof_indices; \ 272 using MooseVariableBase::_mesh; \ 273 using MooseVariableBase::_tid; \ 274 using MooseVariableBase::_count; \ 275 using MooseVariableBase::_scaling_factor; \ 276 using MooseVariableBase::_var_name bool _use_dual
If dual mortar approach is used.
static InputParameters validParams()
virtual bool isNodal() const
Is this variable nodal.
std::vector< dof_id_type > componentDofIndices(const std::vector< dof_id_type > &dof_indices, unsigned int component) const
Obtain DoF indices of a component with the indices of the 0th component.
virtual void clearAllDofIndices()
const libMesh::FEType & feType() const
Get the type of finite element object.
virtual unsigned int numberOfDofs() const
Get the number of local DoFs.
Keeps track of stuff related to assembling.
const std::vector< Real > & arrayScalingFactor() const
unsigned int number() const
Get variable number coming from libMesh.
virtual libMesh::FEContinuity getContinuity() const
Return the continuity of this variable.
const libMesh::DofMap & dofMap() const
The DofMap associated with the system this variable is in.
std::vector< std::string > _array_var_component_names
Array variable names when the variable is an array variable.
bool _is_lower_d
Whether this variable lives on lower dimensional blocks.
const SystemBase & sys() const
Get the system this variable is part of.
unsigned int count() const
Get the number of components Note: For standard and vector variables, the number is one...
A class to provide an common interface to objects requiring "outputs" option.
const std::string & name() const override
Get the variable name.
virtual void getDofIndices(const Elem *, std::vector< dof_id_type > &) const
std::string _var_name
Variable name.
void eigen(bool eigen)
Mark this variable as an eigen var or non-eigen var.
unsigned int _index
variable number within MOOSE
The following methods are specializations for using the libMesh::Parallel::packed_range_* routines fo...
Base class for a system (of equations)
void initialSetup() override
Gets called at the beginning of the simulation before this object is asked to do its job...
std::vector< dof_id_type > _dof_indices
DOF indices.
bool eigen() const
Whether or not this variable operates on an eigen kernel.
virtual bool hasDoFsOnNodes() const
Does this variable have DoFs on nodes.
bool _is_eigen
Whether or not this variable operates on eigen kernels.
const libMesh::DofMap & _dof_map
DOF map.
bool useDual() const
Get dual mortar option.
SubProblem & _subproblem
Problem this variable is part of.
libMesh::FEType _fe_type
The FEType associated with this variable.
Every object that can be built by the factory should be derived from this class.
SystemBase & _sys
System this variable is part of.
VarKindType
Framework-wide stuff.
std::vector< Real > _scaling_factor
scaling factor for this variable
MooseMesh wraps a libMesh::Mesh object and enhances its capabilities by caching additional data and s...
virtual bool isArray() const
virtual const std::vector< dof_id_type > & dofIndices() const
Get local DoF indices.
Moose::VarKindType _var_kind
Variable type (see MooseTypes.h)
Real scalingFactor() const
Get the scaling factor for this variable.
const unsigned int _count
Number of variables in the array.
MooseMesh & _mesh
mesh the variable is active in
libMesh::Order order() const
Get the order of this variable Note: Order enum can be implicitly converted to unsigned int...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Generic class for solving transient nonlinear problems.
Assembly & _assembly
Assembly data.
const libMesh::Variable & _variable
libMesh variable object for this variable
const std::vector< dof_id_type > & allDofIndices() const
Get all global dofindices for the variable.
unsigned int _var_num
variable number (from libMesh)
Moose::VarKindType kind() const
Kind of the variable (Nonlinear, Auxiliary, ...)
const std::string & arrayVariableComponent(const unsigned int i) const
Returns the variable name of a component of an array variable.
unsigned int totalVarDofs()
An interface that restricts an object to subdomains via the 'blocks' input parameter.
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type.
const InputParameters & parameters() const
Get the parameters of the object.
bool doDerivatives() const
SystemBase & sys()
Get the system this variable is part of.
MooseVariableBase(const InputParameters ¶meters)
virtual void setActiveTags(const std::set< TagID > &vtags)
Set the active vector tags.