GRINS-0.8.0
|
#include <fe_variables_base.h>
Public Member Functions | |
FEVariablesBase (const std::vector< std::string > &var_names, const std::vector< VariableIndex > &var_indices, const std::set< libMesh::subdomain_id_type > &subdomain_ids) | |
virtual | ~FEVariablesBase () |
void | set_is_constraint_var (bool is_constraint_var) |
Set whether or not this is a "constraint" variable. More... | |
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 |
const std::set< libMesh::subdomain_id_type > & | subdomain_ids () const |
Protected Attributes | |
std::vector< VariableIndex > | _vars |
std::vector< std::string > | _var_names |
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... | |
std::set< libMesh::subdomain_id_type > | _subdomain_ids |
Definition at line 53 of file fe_variables_base.h.
|
inline |
Definition at line 57 of file fe_variables_base.h.
|
inlinevirtual |
Definition at line 69 of file fe_variables_base.h.
|
inline |
Return the var names that are active from this class.
This must not be called until init_vars has been called.
Definition at line 93 of file fe_variables_base.h.
References _var_names.
Referenced by GRINS::CatalyticWallNeumannBCFactoryCommon< ImplType >::build_catalytic_wall_common(), GRINS::ParsedFunctionNeumannBCFactory< FunctionType >::build_neumann_func(), GRINS::ParsedFunctionNeumannOldStyleBCFactory< FunctionType >::build_neumann_func(), GRINS::ParsedFunctionNeumannBCFactoryHelper< FunctionType >::build_neumman_func_common(), GRINS::OldStyleBCBuilder::construct_bcs_old_style(), GRINS::DirichletBCFactoryFunctionBase< libMesh::FunctionBase< libMesh::Number > >::get_var_names(), and GRINSTesting::VariablesTest::test_all_variables().
|
inline |
Definition at line 79 of file fe_variables_base.h.
References _is_constraint_var.
Referenced by GRINS::DefaultBCBuilder::build_axisymmetric_bcs(), GRINS::DefaultBCBuilder::build_bcs_by_var_section(), set_is_constraint_var(), and GRINSTesting::VariablesTest::test_var_constraint().
|
inline |
Definition at line 88 of file fe_variables_base.h.
References _neumann_bc_sign.
Referenced by GRINS::MultiphysicsSystem::apply_neumann_bcs().
|
inline |
Set whether or not this is a "constraint" variable.
Constraint variables are things like Lagrange multipliers. The primary implication is that if the Variable is a constraint variable, then no boundary conditions are required/used for that variable.
Definition at line 76 of file fe_variables_base.h.
References _is_constraint_var, and is_constraint_var().
Referenced by GRINS::IncompressibleNavierStokesBase< Viscosity >::IncompressibleNavierStokesBase(), GRINS::LowMachNavierStokesBase< Viscosity, SpecificHeat, ThermalConductivity >::LowMachNavierStokesBase(), GRINS::ReactingLowMachNavierStokesAbstract::ReactingLowMachNavierStokesAbstract(), GRINS::SpalartAllmaras< Viscosity >::SpalartAllmaras(), and GRINSTesting::VariablesTest::test_var_constraint().
|
inline |
Reset whetever Neumann bc is postive or not.
Postive means a value of 1.0 will be used in front of NeumannBC terms while is_positive = false indicates a value of -1.0 should be used.
Definition at line 125 of file fe_variables_base.h.
References _neumann_bc_sign.
Referenced by GRINS::SolidMechanicsAbstract::SolidMechanicsAbstract().
|
inline |
Definition at line 99 of file fe_variables_base.h.
References _subdomain_ids.
Referenced by GRINS::Physics::check_var_subdomain_consistency(), and GRINS::DefaultBCBuilder::is_var_active().
|
inline |
Definition at line 96 of file fe_variables_base.h.
References _vars.
Referenced by GRINS::ParsedFunctionNeumannBCFactoryHelper< FunctionType >::build_neumman_func_common(), GRINS::CatalyticWallNeumannBCFactoryCommon< ImplType >::extract_species_vars(), and GRINS::CatalyticWallNeumannBCFactoryCommon< ImplType >::extract_temp_var().
|
protected |
Tracks whether this is a constraint variable.
By constraint variable, we mean a variable that is effectively a Lagrange multiplier. The intended use case is to determine whether this variable requires boundary conditions to be specified (constraint variables do not).
Definition at line 114 of file fe_variables_base.h.
Referenced by is_constraint_var(), and set_is_constraint_var().
|
protected |
Track the sign of the Neumann BC term. Defaults to 1.0.
Depending on the Physics/Variable combination, the sign in front of the Neumann boundary term can change.
Definition at line 119 of file fe_variables_base.h.
Referenced by neumann_bc_sign(), and set_neumann_bc_is_positive().
|
protected |
Definition at line 121 of file fe_variables_base.h.
Referenced by subdomain_ids().
|
protected |
Definition at line 106 of file fe_variables_base.h.
Referenced by active_var_names().
|
protected |
Definition at line 104 of file fe_variables_base.h.
Referenced by GRINS::MulticomponentVariable::dim(), GRINS::MultcomponentVectorVariable::dim(), GRINS::MulticomponentVariable::idx_from_component(), GRINS::MultcomponentVectorVariable::u(), GRINS::MultcomponentVectorVariable::v(), GRINS::SingleVariable::var(), var_indices(), and GRINS::MultcomponentVectorVariable::w().