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

#include <pressure_fe_variable.h>

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

Public Member Functions

 PressureFEVariable (const GetPot &input, const std::string &physics_name, bool _is_constraint_var=false)
 
 ~PressureFEVariable ()
 
VariableIndex p () 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

 PressureFEVariable ()
 
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 41 of file pressure_fe_variable.h.

Constructor & Destructor Documentation

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

Definition at line 45 of file pressure_fe_variable.h.

47  : SingleVarSingleFETypeVariable(input,physics_name,"P_",this->old_var_name(),this->default_name(),
48  this->subsection(),"LAGRANGE","FIRST",_is_constraint_var)
49  {}
std::string subsection() const
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.
bool _is_constraint_var
Tracks whether this is a constraint variable.
std::string old_var_name() const
std::string default_name() const
GRINS::PressureFEVariable::~PressureFEVariable ( )
inline

Definition at line 51 of file pressure_fe_variable.h.

51 {};
GRINS::PressureFEVariable::PressureFEVariable ( )
private

Member Function Documentation

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

Definition at line 65 of file pressure_fe_variable.h.

66  { return "p"; }
std::string GRINS::PressureFEVariable::old_var_name ( ) const
inlineprivate

Definition at line 59 of file pressure_fe_variable.h.

60  { return "pressure"; }
VariableIndex GRINS::PressureFEVariable::p ( ) const
inline
std::string GRINS::PressureFEVariable::subsection ( ) const
inlineprivate

Definition at line 62 of file pressure_fe_variable.h.

References GRINS::VariablesParsing::pressure_section().

static std::string pressure_section()

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