GRINS-0.7.0
|
#include <displacement_fe_variables.h>
Public Member Functions | |
DisplacementFEVariables (const GetPot &input, const std::string &physics_name, bool is_2D, bool is_3D, bool is_constraint_var=false) | |
Constructor. More... | |
virtual | ~DisplacementFEVariables () |
virtual void | init (libMesh::FEMSystem *system) |
Initialize System variables. More... | |
bool | have_v () const |
bool | have_w () const |
VariableIndex | u () const |
VariableIndex | v () const |
VariableIndex | w () const |
const std::string & | u_name () const |
const std::string & | v_name () const |
const std::string & | w_name () const |
Public Member Functions inherited from GRINS::MultiVarSingleFETypeVariable | |
MultiVarSingleFETypeVariable (const GetPot &input, const std::string &physics_name, const std::string &old_var_prefix, const std::vector< std::string > &old_var_names, const std::vector< std::string > &default_names, const std::string &subsection, const std::string &default_family, const std::string &default_order, bool is_constraint_var) | |
Deprecated, old style constructor. More... | |
MultiVarSingleFETypeVariable (const GetPot &input, const std::string &subsection, const std::vector< std::string > &default_names, bool is_constraint_var) | |
Primary constructor. More... | |
~MultiVarSingleFETypeVariable () | |
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 () | |
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 | |
std::string | subsection () const |
std::vector< std::string > | old_var_names () |
std::vector< std::string > | default_names () |
DisplacementFEVariables () | |
Private Attributes | |
bool | _have_v |
bool | _have_w |
unsigned int | _u_idx |
unsigned int | _v_idx |
unsigned int | _w_idx |
bool | _is_2D |
Tracks whether this is a 2D problem. More... | |
bool | _is_3D |
Tracks whether this is a 3D problem. More... | |
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... | |
Definition at line 35 of file displacement_fe_variables.h.
GRINS::DisplacementFEVariables::DisplacementFEVariables | ( | const GetPot & | input, |
const std::string & | physics_name, | ||
bool | is_2D, | ||
bool | is_3D, | ||
bool | is_constraint_var = false |
||
) |
Constructor.
The arguments specify whether the spatial mesh is really 2D or 3D. This is needed for cases such as a 1D beam in 2D (is_2D = true) or 3D (is_3D = true) space or 2D shell manifolds in 3D (is_3D = true).
Definition at line 35 of file displacement_fe_variables.C.
|
inlinevirtual |
Definition at line 48 of file displacement_fe_variables.h.
|
private |
|
inlineprivate |
Definition at line 78 of file displacement_fe_variables.h.
|
inline |
|
inline |
|
virtual |
Initialize System variables.
Reimplemented from GRINS::SingleFETypeVariable.
Definition at line 50 of file displacement_fe_variables.C.
References _have_v, _have_w, _is_2D, _is_3D, GRINS::FEVariablesBase::_var_names, and GRINS::SingleFETypeVariable::init().
Referenced by GRINS::SolidMechanicsAbstract::init_variables().
|
inlineprivate |
Definition at line 69 of file displacement_fe_variables.h.
|
inlineprivate |
Definition at line 66 of file displacement_fe_variables.h.
References GRINS::VariablesParsing::displacement_section().
|
inline |
Definition at line 103 of file displacement_fe_variables.h.
References _u_idx, and GRINS::FEVariablesBase::_vars.
Referenced by GRINS::ElasticCableConstantGravity::element_time_derivative(), GRINS::ElasticMembraneConstantPressure::element_time_derivative(), GRINS::ElasticMembraneAbstract::get_fe(), GRINS::ElasticCableAbstract::get_fe(), and GRINS::SolidMechanicsAbstract::set_time_evolving_vars().
|
inline |
Definition at line 135 of file displacement_fe_variables.h.
References _u_idx, and GRINS::FEVariablesBase::_var_names.
|
inline |
Definition at line 109 of file displacement_fe_variables.h.
References _have_v, _v_idx, and GRINS::FEVariablesBase::_vars.
Referenced by GRINS::ElasticCableConstantGravity::element_time_derivative(), GRINS::ElasticMembraneConstantPressure::element_time_derivative(), and GRINS::SolidMechanicsAbstract::set_time_evolving_vars().
|
inline |
Definition at line 141 of file displacement_fe_variables.h.
References _v_idx, and GRINS::FEVariablesBase::_var_names.
|
inline |
Definition at line 116 of file displacement_fe_variables.h.
References _have_w, GRINS::FEVariablesBase::_vars, and _w_idx.
Referenced by GRINS::ElasticCableConstantGravity::element_time_derivative(), GRINS::ElasticMembraneConstantPressure::element_time_derivative(), and GRINS::SolidMechanicsAbstract::set_time_evolving_vars().
|
inline |
Definition at line 147 of file displacement_fe_variables.h.
References GRINS::FEVariablesBase::_var_names, and _w_idx.
|
private |
Definition at line 89 of file displacement_fe_variables.h.
|
private |
Definition at line 90 of file displacement_fe_variables.h.
|
private |
Tracks whether this is a 2D problem.
Definition at line 95 of file displacement_fe_variables.h.
Referenced by init().
|
private |
Tracks whether this is a 3D problem.
Definition at line 98 of file displacement_fe_variables.h.
Referenced by init().
|
private |
Definition at line 92 of file displacement_fe_variables.h.
|
private |
Definition at line 92 of file displacement_fe_variables.h.
|
private |
Definition at line 92 of file displacement_fe_variables.h.