GRINS-0.7.0
List of all members | Public Member Functions | Protected Member Functions
GRINS::GenericFETypeVariable Class Reference

Generic FE variable for generic physics. More...

#include <generic_fe_type_variable.h>

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

Public Member Functions

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

Protected Member Functions

 GenericFETypeVariable ()
 
std::string default_name () const
 
- 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...
 

Additional Inherited Members

- 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

Generic FE variable for generic physics.

The variable inputs, e.g. fe_family, will be tied to the input physics_name. Thus, the input specification will be [Variables/GenericVariable:<physics_name>/fe_family], etc.

Definition at line 41 of file generic_fe_type_variable.h.

Constructor & Destructor Documentation

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

Definition at line 45 of file generic_fe_type_variable.h.

49  {}
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 section_name(const std::string &physics_name) const
GRINS::GenericFETypeVariable::~GenericFETypeVariable ( )
inline

Definition at line 51 of file generic_fe_type_variable.h.

51 {};
GRINS::GenericFETypeVariable::GenericFETypeVariable ( )
protected

Member Function Documentation

std::string GRINS::GenericFETypeVariable::default_name ( ) const
inlineprotected

Definition at line 62 of file generic_fe_type_variable.h.

63  { return "u"; }
std::string GRINS::GenericFETypeVariable::section_name ( const std::string &  physics_name) const
inline

Definition at line 55 of file generic_fe_type_variable.h.

References GRINS::VariablesParsing::generic_section().

Referenced by GRINS::ConvectionDiffusion::ConvectionDiffusion().

56  { return VariablesParsing::generic_section()+":"+physics_name; }
static std::string generic_section()
VariableIndex GRINS::GenericFETypeVariable::var ( ) const
inline

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

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