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

#include <primitive_flow_variables.h>

Inheritance diagram for GRINS::PrimitiveFlowVariables:
Inheritance graph
[legend]

Public Member Functions

 PrimitiveFlowVariables (const GetPot &input)
 
 ~PrimitiveFlowVariables ()
 
virtual void init (libMesh::FEMSystem *system)
 
VariableIndex u_var () const
 
VariableIndex v_var () const
 
VariableIndex w_var () const
 
VariableIndex p_var () const
 

Protected Attributes

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

 PrimitiveFlowVariables ()
 

Detailed Description

Definition at line 42 of file primitive_flow_variables.h.

Constructor & Destructor Documentation

GRINS::PrimitiveFlowVariables::PrimitiveFlowVariables ( const GetPot &  input)

Definition at line 37 of file primitive_flow_variables.C.

42  _u_var_name( input("Physics/VariableNames/u_velocity", u_var_name_default ) ),
43  _v_var_name( input("Physics/VariableNames/v_velocity", v_var_name_default ) ),
44  _w_var_name( input("Physics/VariableNames/w_velocity", w_var_name_default ) ),
45  _p_var_name( input("Physics/VariableNames/pressure", p_var_name_default ) )
46  {
47  return;
48  }
const std::string p_var_name_default
pressure
const unsigned int invalid_var_index
Invalid varaible index id.
Definition: var_typedefs.h:48
const std::string v_var_name_default
y-velocity
VariableIndex _u_var
Indices for each (owned) variable;.
std::string _u_var_name
Names of each (owned) variable in the system.
const std::string u_var_name_default
Default physics variable names.
const std::string w_var_name_default
z-velocity
GRINS::PrimitiveFlowVariables::~PrimitiveFlowVariables ( )

Definition at line 50 of file primitive_flow_variables.C.

51  {
52  return;
53  }
GRINS::PrimitiveFlowVariables::PrimitiveFlowVariables ( )
private

Member Function Documentation

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

Reimplemented in GRINS::PrimitiveFlowFEVariables.

Definition at line 55 of file primitive_flow_variables.C.

References _p_var, _p_var_name, _u_var, _u_var_name, _v_var, _v_var_name, _w_var, and _w_var_name.

Referenced by GRINS::HeatTransferStabilizationHelper::init(), GRINS::IncompressibleNavierStokesStabilizationHelper::init(), GRINS::SpalartAllmarasStabilizationHelper::init(), GRINS::IncompressibleNavierStokesBCHandling::init_bc_data(), and GRINS::SpalartAllmarasHelper::init_variables().

56  {
57  libmesh_assert( system->has_variable( _u_var_name ) );
58  libmesh_assert( system->has_variable( _v_var_name ) );
59  libmesh_assert( system->has_variable( _p_var_name ) );
60 
61  _u_var = system->variable_number( _u_var_name );
62  _v_var = system->variable_number( _v_var_name );
63 
64  if ( system->get_mesh().mesh_dimension() == 3)
65  {
66  libmesh_assert( system->has_variable( _w_var_name ) );
67  _w_var = system->variable_number( _w_var_name );
68  }
69 
70  _p_var = system->variable_number( _p_var_name );
71 
72  return;
73  }
VariableIndex _u_var
Indices for each (owned) variable;.
std::string _u_var_name
Names of each (owned) variable in the system.
VariableIndex GRINS::PrimitiveFlowVariables::p_var ( ) const
inline
VariableIndex GRINS::PrimitiveFlowVariables::u_var ( ) const
inline
VariableIndex GRINS::PrimitiveFlowVariables::v_var ( ) const
inline
VariableIndex GRINS::PrimitiveFlowVariables::w_var ( ) const
inline

Member Data Documentation

VariableIndex GRINS::PrimitiveFlowVariables::_p_var
protected

Definition at line 62 of file primitive_flow_variables.h.

Referenced by GRINS::PrimitiveFlowFEVariables::init(), init(), and p_var().

std::string GRINS::PrimitiveFlowVariables::_p_var_name
protected

Definition at line 65 of file primitive_flow_variables.h.

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

VariableIndex GRINS::PrimitiveFlowVariables::_u_var
protected

Indices for each (owned) variable;.

Definition at line 59 of file primitive_flow_variables.h.

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

std::string GRINS::PrimitiveFlowVariables::_u_var_name
protected

Names of each (owned) variable in the system.

Definition at line 65 of file primitive_flow_variables.h.

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

VariableIndex GRINS::PrimitiveFlowVariables::_v_var
protected

Definition at line 60 of file primitive_flow_variables.h.

Referenced by GRINS::PrimitiveFlowFEVariables::init(), init(), and v_var().

std::string GRINS::PrimitiveFlowVariables::_v_var_name
protected

Definition at line 65 of file primitive_flow_variables.h.

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

VariableIndex GRINS::PrimitiveFlowVariables::_w_var
protected

Definition at line 61 of file primitive_flow_variables.h.

Referenced by GRINS::PrimitiveFlowFEVariables::init(), init(), and w_var().

std::string GRINS::PrimitiveFlowVariables::_w_var_name
protected

Definition at line 65 of file primitive_flow_variables.h.

Referenced by GRINS::PrimitiveFlowFEVariables::init(), and 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