13#include "libmesh/system.h"
14#include "libmesh/variable.h"
31 mooseError(
"componentName(): Component index is not less than the number of components");
38const std::set<SubdomainID> &
55 active_subs.begin(), active_subs.end(), subdomains.begin(), subdomains.end());
const std::string & name() const
Get the name of the class.
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type and optionally a file path to the top-level block p...
unsigned int _var_num
variable number (from libMesh)
virtual bool isArray() const
static InputParameters validParams()
const std::string & arrayVariableComponent(const unsigned int i) const
Returns the variable name of a component of an array variable.
const unsigned int _count
Number of variables in the array.
SystemBase & _sys
System this variable is part of.
const std::string & componentName(const unsigned int comp) const
Get the variable name of a component in libMesh.
static InputParameters validParams()
MooseVariableFieldBase(const InputParameters ¶meters)
bool activeOnSubdomains(const std::set< SubdomainID > &subdomains) const
Is the variable active on the subdomains?
const std::set< SubdomainID > & activeSubdomains() const
The subdomains the variable is active on.
bool activeOnSubdomain(SubdomainID subdomain) const
Is the variable active on the subdomain?
virtual libMesh::System & system()=0
Get the reference to the libMesh system.
const Variable & variable(unsigned int var) const
const std::set< subdomain_id_type > & active_subdomains() const
bool active_on_subdomain(subdomain_id_type sid) const