GRINS-0.7.0
|
#include <velocity_fe_variables.h>
Public Member Functions | |
VelocityFEVariables (const GetPot &input, const std::string &physics_name, bool is_constraint_var=false) | |
~VelocityFEVariables () | |
virtual void | init (libMesh::FEMSystem *system) |
Add variables to the system. More... | |
VariableIndex | u () const |
VariableIndex | v () const |
VariableIndex | w () 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 | |
VelocityFEVariables () | |
std::string | subsection () const |
std::vector< std::string > | old_var_names () |
std::vector< std::string > | default_names () |
Private Attributes | |
unsigned int | _u_idx |
unsigned int | _v_idx |
unsigned int | _w_idx |
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 36 of file velocity_fe_variables.h.
GRINS::VelocityFEVariables::VelocityFEVariables | ( | const GetPot & | input, |
const std::string & | physics_name, | ||
bool | is_constraint_var = false |
||
) |
Definition at line 35 of file velocity_fe_variables.C.
|
inline |
Definition at line 42 of file velocity_fe_variables.h.
|
private |
|
inlineprivate |
Definition at line 66 of file velocity_fe_variables.h.
|
virtual |
Add variables to the system.
This expects that _var_names has been setup during construction time by the subclasses.
Reimplemented from GRINS::SingleFETypeVariable.
Definition at line 44 of file velocity_fe_variables.C.
References GRINS::FEVariablesBase::_var_names, and GRINS::SingleFETypeVariable::init().
Referenced by GRINS::BoussinesqBuoyancyBase::init_variables(), GRINS::ReactingLowMachNavierStokesAbstract::init_variables(), GRINS::AxisymmetricBoussinesqBuoyancy::init_variables(), GRINSTesting::VariablesTest::test_var_constraint_and_warehouse(), GRINSTesting::VariablesTest::test_velocity_2d(), and GRINSTesting::VariablesTest::test_velocity_3d().
|
inlineprivate |
Definition at line 57 of file velocity_fe_variables.h.
|
inlineprivate |
Definition at line 54 of file velocity_fe_variables.h.
References GRINS::VariablesParsing::velocity_section().
|
inline |
Definition at line 80 of file velocity_fe_variables.h.
References _u_idx, and GRINS::FEVariablesBase::_vars.
Referenced by GRINS::IncompressibleNavierStokesStabilizationHelper::compute_res_continuity(), GRINS::IncompressibleNavierStokesStabilizationHelper::compute_res_momentum_steady(), GRINS::IncompressibleNavierStokesStabilizationHelper::compute_res_momentum_transient(), GRINS::SpalartAllmarasStabilizationHelper::compute_res_spalart_steady(), GRINS::BoussinesqBuoyancy::element_time_derivative(), GRINS::AxisymmetricBoussinesqBuoyancy::element_time_derivative(), GRINS::ReactingLowMachNavierStokesAbstract::init_context(), GRINS::AxisymmetricBoussinesqBuoyancy::init_context(), GRINS::ReactingLowMachNavierStokesAbstract::set_time_evolving_vars(), and GRINS::SpalartAllmarasHelper::vorticity().
|
inline |
Definition at line 86 of file velocity_fe_variables.h.
References _v_idx, and GRINS::FEVariablesBase::_vars.
Referenced by GRINS::IncompressibleNavierStokesStabilizationHelper::compute_res_continuity(), GRINS::IncompressibleNavierStokesStabilizationHelper::compute_res_momentum_steady(), GRINS::IncompressibleNavierStokesStabilizationHelper::compute_res_momentum_transient(), GRINS::SpalartAllmarasStabilizationHelper::compute_res_spalart_steady(), GRINS::BoussinesqBuoyancy::element_time_derivative(), GRINS::AxisymmetricBoussinesqBuoyancy::element_time_derivative(), GRINS::ReactingLowMachNavierStokesAbstract::set_time_evolving_vars(), and GRINS::SpalartAllmarasHelper::vorticity().
|
inline |
Definition at line 92 of file velocity_fe_variables.h.
References GRINS::FEVariablesBase::_vars, and _w_idx.
Referenced by GRINS::IncompressibleNavierStokesStabilizationHelper::compute_res_continuity(), GRINS::HeatTransferStabilizationHelper::compute_res_energy_steady(), GRINS::IncompressibleNavierStokesStabilizationHelper::compute_res_momentum_steady(), GRINS::SpalartAllmarasStabilizationHelper::compute_res_spalart_steady(), GRINS::BoussinesqBuoyancy::element_time_derivative(), GRINS::ReactingLowMachNavierStokesAbstract::set_time_evolving_vars(), and GRINS::SpalartAllmarasHelper::vorticity().
|
private |
Definition at line 75 of file velocity_fe_variables.h.
Referenced by u().
|
private |
Definition at line 75 of file velocity_fe_variables.h.
Referenced by v().
|
private |
Definition at line 75 of file velocity_fe_variables.h.
Referenced by w().