GRINS-0.8.0
|
Manages runtime construction of the FEVariableBase objects. More...
#include <variable_builder.h>
Public Member Functions | |
VariableBuilder () | |
~VariableBuilder () | |
virtual void | build_variables_impl (const GetPot &input, MultiphysicsSystem &system)=0 |
Implementation of Variable construction done in subclasses. More... | |
Static Public Member Functions | |
static void | build_variables (const GetPot &input, MultiphysicsSystem &system) |
Protected Member Functions | |
void | add_variable_to_warehouse (SharedPtr< FEVariablesBase > &fe_var, const std::string &var_name) |
Adds/registers the fe_var to VariableWarehouse. More... | |
void | add_vars_to_system (MultiphysicsSystem &system, const std::vector< std::string > &var_names, const std::string &fe_family, const std::string &order, std::vector< VariableIndex > &var_indices, const std::set< libMesh::subdomain_id_type > &subdomain_ids) |
Given the names, family, and order, this adds the variables to the system and populates var_indices. More... | |
SharedPtr< FEVariablesBase > | build_fe_var (const std::string &var_type, const std::vector< std::string > &var_names, const std::vector< VariableIndex > &var_indices, const std::set< libMesh::subdomain_id_type > &subdomain_ids) |
Sets appropriate data in the VariableFactoryAbstract and calls VariableFactoryAbstract::build() More... | |
Manages runtime construction of the FEVariableBase objects.
build_variables() is intended to be called before building the Physics and boundary conditions so that the VariableWarhouse is populated and can be referenced by the Physics and boundary conditions.
Definition at line 47 of file variable_builder.h.
|
inline |
Definition at line 51 of file variable_builder.h.
|
inline |
Definition at line 52 of file variable_builder.h.
|
protected |
Adds/registers the fe_var to VariableWarehouse.
Definition at line 49 of file variable_builder.C.
References GRINS::GRINSPrivate::VariableWarehouse::register_variable().
Referenced by GRINS::DefaultVariableBuilder::build_variables_impl().
|
protected |
Given the names, family, and order, this adds the variables to the system and populates var_indices.
The var_indices are the respective indices returned by the System from the add_variable call.
Definition at line 55 of file variable_builder.C.
Referenced by GRINS::DefaultVariableBuilder::build_variables_impl().
|
protected |
Sets appropriate data in the VariableFactoryAbstract and calls VariableFactoryAbstract::build()
Definition at line 82 of file variable_builder.C.
References GRINS::FactoryAbstract< FEVariablesBase >::build(), GRINS::VariableFactoryAbstract::set_subdomain_ids(), GRINS::VariableFactoryAbstract::set_var_indices(), and GRINS::VariableFactoryAbstract::set_var_names().
Referenced by GRINS::DefaultVariableBuilder::build_variables_impl().
|
static |
Definition at line 40 of file variable_builder.C.
References GRINS::DefaultVariableBuilder::build_variables_impl().
Referenced by GRINS::Simulation::init_multiphysics_system(), GRINSTesting::VariablesTest::test_var_constraint(), GRINSTesting::VariablesTest::test_variable_arbitrary_names(), and GRINSTesting::VariablesTest::test_variable_builder().
|
pure virtual |
Implementation of Variable construction done in subclasses.
Implemented in GRINS::DefaultVariableBuilder.