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

#include <primitive_flow_fe_variables.h>

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

Public Member Functions

 PrimitiveFlowFEVariables (const GetPot &input, const std::string &physics_name)
 
 ~PrimitiveFlowFEVariables ()
 
virtual void init (libMesh::FEMSystem *system)
 
VariableIndex u_var () const
 
VariableIndex v_var () const
 
VariableIndex w_var () const
 
VariableIndex p_var () const
 

Protected Attributes

GRINSEnums::FEFamily _V_FE_family
 Element type, read from input. More...
 
GRINSEnums::FEFamily _P_FE_family
 
GRINSEnums::Order _V_order
 Element orders, read from input. More...
 
GRINSEnums::Order _P_order
 
VariableIndex _u_var
 Indices for each (owned) variable;. More...
 
VariableIndex _v_var
 
VariableIndex _w_var
 
VariableIndex _p_var
 
std::string _u_var_name
 Names of each (owned) variable in the system. More...
 
std::string _v_var_name
 
std::string _w_var_name
 
std::string _p_var_name
 

Private Member Functions

 PrimitiveFlowFEVariables ()
 

Detailed Description

Definition at line 40 of file primitive_flow_fe_variables.h.

Constructor & Destructor Documentation

GRINS::PrimitiveFlowFEVariables::PrimitiveFlowFEVariables ( const GetPot &  input,
const std::string &  physics_name 
)

Definition at line 39 of file primitive_flow_fe_variables.C.

40  : PrimitiveFlowVariables(input),
41  _V_FE_family( libMesh::Utility::string_to_enum<GRINSEnums::FEFamily>( input("Physics/"+physics_name+"/V_FE_family", input("Physics/"+physics_name+"/FE_family", "LAGRANGE") ) ) ),
42  _P_FE_family( libMesh::Utility::string_to_enum<GRINSEnums::FEFamily>( input("Physics/"+physics_name+"/P_FE_family", input("Physics/"+physics_name+"/FE_family", "LAGRANGE") ) ) ),
43  _V_order( libMesh::Utility::string_to_enum<GRINSEnums::Order>( input("Physics/"+physics_name+"/V_order", "SECOND") ) ),
44  _P_order( libMesh::Utility::string_to_enum<GRINSEnums::Order>( input("Physics/"+physics_name+"/P_order", "FIRST") ) )
45  {
46  return;
47  }
GRINSEnums::FEFamily _V_FE_family
Element type, read from input.
GRINSEnums::Order _V_order
Element orders, read from input.
GRINS::PrimitiveFlowFEVariables::~PrimitiveFlowFEVariables ( )

Definition at line 49 of file primitive_flow_fe_variables.C.

50  {
51  return;
52  }
GRINS::PrimitiveFlowFEVariables::PrimitiveFlowFEVariables ( )
private

Member Function Documentation

void GRINS::PrimitiveFlowFEVariables::init ( libMesh::FEMSystem *  system)
virtual

Reimplemented from GRINS::PrimitiveFlowVariables.

Definition at line 54 of file primitive_flow_fe_variables.C.

References _P_FE_family, _P_order, GRINS::PrimitiveFlowVariables::_p_var, GRINS::PrimitiveFlowVariables::_p_var_name, GRINS::PrimitiveFlowVariables::_u_var, GRINS::PrimitiveFlowVariables::_u_var_name, _V_FE_family, _V_order, GRINS::PrimitiveFlowVariables::_v_var, GRINS::PrimitiveFlowVariables::_v_var_name, GRINS::PrimitiveFlowVariables::_w_var, and GRINS::PrimitiveFlowVariables::_w_var_name.

Referenced by GRINS::BoussinesqBuoyancyBase::init_variables().

55  {
56  _u_var = system->add_variable( _u_var_name, this->_V_order, _V_FE_family);
57  _v_var = system->add_variable( _v_var_name, this->_V_order, _V_FE_family);
58 
59  if ( system->get_mesh().mesh_dimension() == 3)
60  _w_var = system->add_variable( _w_var_name, this->_V_order, _V_FE_family);
61 
62  _p_var = system->add_variable( _p_var_name, this->_P_order, _P_FE_family);
63 
64  return;
65  }
GRINSEnums::FEFamily _V_FE_family
Element type, read from input.
VariableIndex _u_var
Indices for each (owned) variable;.
GRINSEnums::Order _V_order
Element orders, read from input.
std::string _u_var_name
Names of each (owned) variable in the system.
VariableIndex GRINS::PrimitiveFlowVariables::p_var ( ) const
inlineinherited
VariableIndex GRINS::PrimitiveFlowVariables::u_var ( ) const
inlineinherited
VariableIndex GRINS::PrimitiveFlowVariables::v_var ( ) const
inlineinherited
VariableIndex GRINS::PrimitiveFlowVariables::w_var ( ) const
inlineinherited

Member Data Documentation

GRINSEnums::FEFamily GRINS::PrimitiveFlowFEVariables::_P_FE_family
protected

Definition at line 52 of file primitive_flow_fe_variables.h.

Referenced by init().

GRINSEnums::Order GRINS::PrimitiveFlowFEVariables::_P_order
protected

Definition at line 55 of file primitive_flow_fe_variables.h.

Referenced by init().

VariableIndex GRINS::PrimitiveFlowVariables::_p_var
protectedinherited
std::string GRINS::PrimitiveFlowVariables::_p_var_name
protectedinherited

Definition at line 65 of file primitive_flow_variables.h.

Referenced by init(), and GRINS::PrimitiveFlowVariables::init().

VariableIndex GRINS::PrimitiveFlowVariables::_u_var
protectedinherited

Indices for each (owned) variable;.

Definition at line 59 of file primitive_flow_variables.h.

Referenced by init(), GRINS::PrimitiveFlowVariables::init(), and GRINS::PrimitiveFlowVariables::u_var().

std::string GRINS::PrimitiveFlowVariables::_u_var_name
protectedinherited

Names of each (owned) variable in the system.

Definition at line 65 of file primitive_flow_variables.h.

Referenced by init(), and GRINS::PrimitiveFlowVariables::init().

GRINSEnums::FEFamily GRINS::PrimitiveFlowFEVariables::_V_FE_family
protected

Element type, read from input.

Definition at line 52 of file primitive_flow_fe_variables.h.

Referenced by init().

GRINSEnums::Order GRINS::PrimitiveFlowFEVariables::_V_order
protected

Element orders, read from input.

Definition at line 55 of file primitive_flow_fe_variables.h.

Referenced by init().

VariableIndex GRINS::PrimitiveFlowVariables::_v_var
protectedinherited
std::string GRINS::PrimitiveFlowVariables::_v_var_name
protectedinherited

Definition at line 65 of file primitive_flow_variables.h.

Referenced by init(), and GRINS::PrimitiveFlowVariables::init().

VariableIndex GRINS::PrimitiveFlowVariables::_w_var
protectedinherited
std::string GRINS::PrimitiveFlowVariables::_w_var_name
protectedinherited

Definition at line 65 of file primitive_flow_variables.h.

Referenced by init(), and GRINS::PrimitiveFlowVariables::init().


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

Generated on Mon Jun 22 2015 21:32:24 for GRINS-0.6.0 by  doxygen 1.8.9.1