GRINS-0.8.0
|
#include <default_variable_builder.h>
Public Member Functions | |
DefaultVariableBuilder () | |
~DefaultVariableBuilder () | |
virtual void | build_variables_impl (const GetPot &input, MultiphysicsSystem &system) |
Implementation of Variable construction done in subclasses. More... | |
Public Member Functions inherited from GRINS::VariableBuilder | |
VariableBuilder () | |
~VariableBuilder () | |
Public Member Functions inherited from GRINS::BuilderHelper | |
BuilderHelper () | |
~BuilderHelper () | |
Protected Member Functions | |
void | parse_var_names (const GetPot &input, const std::string &var_type, const std::string &var_section, std::vector< std::string > &var_names) const |
Parse [Variable/<var_section>/names]. More... | |
std::string | parse_fe_family (const GetPot &input, const std::string &var_section, const std::string &var_type) const |
Helper function to extract from input. More... | |
std::string | parse_fe_order (const GetPot &input, const std::string &var_section, const std::string &var_type) const |
Helper function to extract [Varaiable/<var_section>/order] from input. More... | |
std::string | parse_var_type (const GetPot &input, const std::string &var_section) const |
Parses the [Variable/<var_section>/var_type] option. More... | |
void | parse_subdomain_ids (const std::set< libMesh::subdomain_id_type > &mesh_subdomain_ids, const GetPot &input, const std::string &var_section, std::set< libMesh::subdomain_id_type > &subdomain_ids) |
Protected Member Functions inherited from GRINS::VariableBuilder | |
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... | |
Additional Inherited Members | |
Static Public Member Functions inherited from GRINS::VariableBuilder | |
static void | build_variables (const GetPot &input, MultiphysicsSystem &system) |
Static Public Member Functions inherited from GRINS::BuilderHelper | |
static void | parse_var_sections (const GetPot &input, std::set< std::string > §ions) |
Parses the input file for [Variables] first-level subsections. More... | |
static void | parse_var_sections_vector (const GetPot &input, std::vector< std::string > §ions) |
The same as parse_var_sections, except the result is returned in an std::vector. More... | |
Definition at line 37 of file default_variable_builder.h.
|
inline |
Definition at line 41 of file default_variable_builder.h.
|
inline |
Definition at line 42 of file default_variable_builder.h.
|
virtual |
Implementation of Variable construction done in subclasses.
Implements GRINS::VariableBuilder.
Definition at line 38 of file default_variable_builder.C.
References GRINS::VariableBuilder::add_variable_to_warehouse(), GRINS::VariableBuilder::add_vars_to_system(), GRINS::VariableBuilder::build_fe_var(), parse_fe_family(), parse_fe_order(), parse_subdomain_ids(), parse_var_names(), GRINS::BuilderHelper::parse_var_sections_vector(), and parse_var_type().
Referenced by GRINS::VariableBuilder::build_variables().
|
protected |
Helper function to extract from input.
This will dispatch to the VariableFactory.
Definition at line 103 of file default_variable_builder.C.
References GRINS::VariableFactoryAbstract::parse_fe_family(), GRINS::FactoryWithGetPot< FEVariablesBase >::set_getpot(), GRINS::VariableFactoryAbstract::set_var_section(), and GRINS::VariablesParsing::variables_section().
Referenced by build_variables_impl().
|
protected |
Helper function to extract [Varaiable/<var_section>/order] from input.
This will dispatch to the VariableFactory.
Definition at line 113 of file default_variable_builder.C.
References GRINS::VariableFactoryAbstract::parse_fe_order(), GRINS::FactoryWithGetPot< FEVariablesBase >::set_getpot(), GRINS::VariableFactoryAbstract::set_var_section(), and GRINS::VariablesParsing::variables_section().
Referenced by build_variables_impl().
|
protected |
Definition at line 123 of file default_variable_builder.C.
References GRINS::VariablesParsing::variables_section().
Referenced by build_variables_impl().
|
protected |
Parse [Variable/<var_section>/names].
Definition at line 89 of file default_variable_builder.C.
References GRINS::VariableFactoryAbstract::build_var_names(), GRINS::FactoryWithGetPot< FEVariablesBase >::set_getpot(), GRINS::VariableFactoryAbstract::set_var_section(), and GRINS::VariablesParsing::variables_section().
Referenced by build_variables_impl().
|
inlineprotected |
Parses the [Variable/<var_section>/var_type] option.
The var_type is how we distinguish between the Variables so that the user can name the section whatever they want. If var_type is not present, then we assume that the var_type is actually the the section name, var_section.
Definition at line 72 of file default_variable_builder.h.
References GRINS::VariablesParsing::variables_section().
Referenced by build_variables_impl().