GRINS-0.7.0
List of all members | Public Member Functions | Private Member Functions
GRINS::ThermoPressureFEVariable Class Reference

#include <thermo_pressure_fe_variable.h>

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

Public Member Functions

 ThermoPressureFEVariable (const GetPot &input, const std::string &physics_name, bool _is_constraint_var=false)
 
virtual ~ThermoPressureFEVariable ()
 
VariableIndex p0 () const
 
- Public Member Functions inherited from GRINS::SingleVarSingleFETypeVariable
 SingleVarSingleFETypeVariable (const GetPot &input, const std::string &physics_name, const std::string &old_var_prefix, const std::string &old_var_name, const std::string &default_name, const std::string &subsection, const std::string &default_family, const std::string &default_order, bool is_constraint_var)
 Deprecated, old style constructor. More...
 
 SingleVarSingleFETypeVariable (const GetPot &input, const std::string &subsection, const std::string &default_name, bool is_constraint_var)
 Primary constructor. More...
 
 ~SingleVarSingleFETypeVariable ()
 
- Public Member Functions inherited from GRINS::SingleFETypeVariable
 SingleFETypeVariable (const GetPot &input, const std::string &physics_name, const std::string &old_var_prefix, const std::string &subsection, const std::string &default_family, const std::string &default_order, bool is_constraint_var)
 Deprecated, old style constructor. More...
 
 SingleFETypeVariable (const GetPot &input, const std::string &subsection, bool is_constraint_var)
 Primary constructor. More...
 
 ~SingleFETypeVariable ()
 
virtual void init (libMesh::FEMSystem *system)
 Add variables to the system. More...
 
- Public Member Functions inherited from GRINS::FEVariablesBase
 FEVariablesBase (bool is_constraint_var)
 
 ~FEVariablesBase ()
 
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
 

Private Member Functions

 ThermoPressureFEVariable ()
 
std::string old_var_name () const
 
std::string subsection () const
 
std::string default_name () const
 

Additional Inherited Members

- Protected Member Functions inherited from GRINS::SingleFETypeVariable
void parse_family_and_order (const GetPot &input, const std::string &physics_name, const std::string &old_var_prefix, const std::string &subsection, std::vector< GRINSEnums::FEFamily > &family, std::vector< GRINSEnums::Order > &order, const std::string &default_family, const std::string &default_order)
 Helper function to parse FEFamily and Order. More...
 
void dup_family_order_check (const GetPot &input, const std::string &physics_name, const std::string &old_var_prefix) const
 Check (and error if true) for old and new style FEFamily/Order input. More...
 
bool have_family_or_order (const GetPot &input, const std::string &physics_name, const std::string &old_var_prefix, const std::string &subsection) const
 Check for no presence of FEFamily/Order input. More...
 
void parse_old_style_with_warning (const GetPot &input, const std::string &physics_name, const std::string &old_var_prefix, const std::string &default_family, const std::string &default_order, const std::string &subsection, GRINSEnums::FEFamily &family, GRINSEnums::Order &order)
 
void parse_new_style (const GetPot &input, const std::string &subsection, GRINSEnums::FEFamily &family, GRINSEnums::Order &order)
 
- Protected Member Functions inherited from GRINS::FEVariablesBase
void parse_names_from_input (const GetPot &input, const std::string &subsection, std::vector< std::string > &var_names, const std::vector< std::string > &default_names)
 Method to parse variable names from input. More...
 
void duplicate_name_section_check (const GetPot &input) const
 Check for old name style and new name style. If both present, error. More...
 
bool check_dep_name_input (const GetPot &input, const std::string &new_subsection) const
 Check for deprecated variable name input style. More...
 
- Protected Attributes inherited from GRINS::FEVariablesBase
std::vector< VariableIndex_vars
 
std::vector< std::string > _var_names
 
std::vector< GRINSEnums::FEFamily > _family
 
std::vector< GRINSEnums::Order > _order
 
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...
 

Detailed Description

Definition at line 35 of file thermo_pressure_fe_variable.h.

Constructor & Destructor Documentation

GRINS::ThermoPressureFEVariable::ThermoPressureFEVariable ( const GetPot &  input,
const std::string &  physics_name,
bool  _is_constraint_var = false 
)
inline

Definition at line 39 of file thermo_pressure_fe_variable.h.

References GRINS::FEVariablesBase::_family, and GRINS::FEVariablesBase::_order.

41  : SingleVarSingleFETypeVariable(input,physics_name,"",this->old_var_name(),this->default_name(),
42  this->subsection(),"SCALAR","FIRST",_is_constraint_var)
43  {
44  // Currently only support SCALAR and FIRST
45  libmesh_assert_equal_to( _family[0], libMesh::SCALAR );
46  libmesh_assert_equal_to( _order[0], libMesh::FIRST );
47  }
SingleVarSingleFETypeVariable(const GetPot &input, const std::string &physics_name, const std::string &old_var_prefix, const std::string &old_var_name, const std::string &default_name, const std::string &subsection, const std::string &default_family, const std::string &default_order, bool is_constraint_var)
Deprecated, old style constructor.
std::vector< GRINSEnums::FEFamily > _family
std::vector< GRINSEnums::Order > _order
bool _is_constraint_var
Tracks whether this is a constraint variable.
virtual GRINS::ThermoPressureFEVariable::~ThermoPressureFEVariable ( )
inlinevirtual

Definition at line 49 of file thermo_pressure_fe_variable.h.

49 {};
GRINS::ThermoPressureFEVariable::ThermoPressureFEVariable ( )
private

Member Function Documentation

std::string GRINS::ThermoPressureFEVariable::default_name ( ) const
inlineprivate

Definition at line 63 of file thermo_pressure_fe_variable.h.

64  { return "p0"; }
std::string GRINS::ThermoPressureFEVariable::old_var_name ( ) const
inlineprivate

Definition at line 57 of file thermo_pressure_fe_variable.h.

58  { return "thermo_presure"; }
VariableIndex GRINS::ThermoPressureFEVariable::p0 ( ) const
inline

Definition at line 69 of file thermo_pressure_fe_variable.h.

References GRINS::FEVariablesBase::_vars.

70  {
71  return _vars[0];
72  }
std::vector< VariableIndex > _vars
std::string GRINS::ThermoPressureFEVariable::subsection ( ) const
inlineprivate

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

Generated on Thu Jun 2 2016 21:52:32 for GRINS-0.7.0 by  doxygen 1.8.10