GRINS-0.8.0
List of all members | Public Member Functions | Protected Attributes | Private Member Functions
GRINS::MultcomponentVectorVariable Class Reference

Variables that are effectively vectors. More...

#include <multi_component_vector_variable.h>

Inheritance diagram for GRINS::MultcomponentVectorVariable:
Inheritance graph
[legend]
Collaboration diagram for GRINS::MultcomponentVectorVariable:
Collaboration graph
[legend]

Public Member Functions

 MultcomponentVectorVariable (const std::vector< std::string > &var_names, const std::vector< VariableIndex > &var_indices, const std::set< libMesh::subdomain_id_type > &subdomain_ids)
 
 ~MultcomponentVectorVariable ()
 
unsigned int dim () const
 Number of components. More...
 
VariableIndex u () const
 
VariableIndex v () const
 
VariableIndex w () const
 
- Public Member Functions inherited from GRINS::FEVariablesBase
 FEVariablesBase (const std::vector< std::string > &var_names, const std::vector< VariableIndex > &var_indices, const std::set< libMesh::subdomain_id_type > &subdomain_ids)
 
virtual ~FEVariablesBase ()
 
void set_is_constraint_var (bool is_constraint_var)
 Set whether or not this is a "constraint" variable. More...
 
bool is_constraint_var () const
 
void set_neumann_bc_is_positive (bool is_positive)
 Reset whetever Neumann bc is postive or not. More...
 
libMesh::Real neumann_bc_sign () const
 
const std::vector< std::string > & active_var_names () const
 Return the var names that are active from this class. More...
 
const std::vector< VariableIndex > & var_indices () const
 
const std::set< libMesh::subdomain_id_type > & subdomain_ids () const
 

Protected Attributes

unsigned int _u_idx
 
unsigned int _v_idx
 
unsigned int _w_idx
 
- Protected Attributes inherited from GRINS::FEVariablesBase
std::vector< VariableIndex_vars
 
std::vector< std::string > _var_names
 
bool _is_constraint_var
 Tracks whether this is a constraint variable. More...
 
libMesh::Real _neumann_bc_sign
 Track the sign of the Neumann BC term. Defaults to 1.0. More...
 
std::set< libMesh::subdomain_id_type > _subdomain_ids
 

Private Member Functions

 MultcomponentVectorVariable ()
 

Detailed Description

Variables that are effectively vectors.

The variables are effectively vector-valued, but we treat each component as a separate variable. This is in contrast to vector-valued FE types, e.g. LAGRANGE_VEC, or NEDELEC_ONE.

Definition at line 37 of file multi_component_vector_variable.h.

Constructor & Destructor Documentation

GRINS::MultcomponentVectorVariable::MultcomponentVectorVariable ( const std::vector< std::string > &  var_names,
const std::vector< VariableIndex > &  var_indices,
const std::set< libMesh::subdomain_id_type > &  subdomain_ids 
)
inline

Definition at line 41 of file multi_component_vector_variable.h.

45  _u_idx(0),
46  _v_idx(1),
47  _w_idx(2)
48  {}
const std::set< libMesh::subdomain_id_type > & subdomain_ids() const
FEVariablesBase(const std::vector< std::string > &var_names, const std::vector< VariableIndex > &var_indices, const std::set< libMesh::subdomain_id_type > &subdomain_ids)
const std::vector< VariableIndex > & var_indices() const
GRINS::MultcomponentVectorVariable::~MultcomponentVectorVariable ( )
inline

Definition at line 50 of file multi_component_vector_variable.h.

50 {}
GRINS::MultcomponentVectorVariable::MultcomponentVectorVariable ( )
private

Member Function Documentation

unsigned int GRINS::MultcomponentVectorVariable::dim ( ) const
inline
VariableIndex GRINS::MultcomponentVectorVariable::u ( ) const
inline
VariableIndex GRINS::MultcomponentVectorVariable::v ( ) const
inline
VariableIndex GRINS::MultcomponentVectorVariable::w ( ) const
inline

Member Data Documentation

unsigned int GRINS::MultcomponentVectorVariable::_u_idx
protected

Definition at line 67 of file multi_component_vector_variable.h.

Referenced by u().

unsigned int GRINS::MultcomponentVectorVariable::_v_idx
protected

Definition at line 67 of file multi_component_vector_variable.h.

Referenced by v().

unsigned int GRINS::MultcomponentVectorVariable::_w_idx
protected

Definition at line 67 of file multi_component_vector_variable.h.

Referenced by w().


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

Generated on Tue Dec 19 2017 12:47:31 for GRINS-0.8.0 by  doxygen 1.8.9.1