GRINS-0.8.0
|
#include <bc_factory_abstract.h>
Public Member Functions | |
BCFactoryAbstract (const std::string &bc_type_name) | |
~BCFactoryAbstract () | |
Public Member Functions inherited from GRINS::FactoryWithGetPot< Base > | |
FactoryWithGetPot (const std::string &name) | |
~FactoryWithGetPot () | |
Public Member Functions inherited from GRINS::FactoryAbstract< Base > | |
virtual | ~FactoryAbstract () |
virtual libMesh::UniquePtr< Base > | create ()=0 |
Subclasses implement the actual construction of the Base object in create(). More... | |
Static Public Member Functions | |
static void | set_system (MultiphysicsSystem &system) |
static void | set_bc_ids (const std::set< BoundaryID > &bc_ids) |
Boundary id for the current boundary condition section. More... | |
static void | set_fe_var (const FEVariablesBase &fe_var) |
Active variable for the current boundary condition. More... | |
static void | set_section (const std::string §ion) |
Sets the current section of the input file. More... | |
static bool | have_bc_type (const std::string &bc_type) |
Static Public Member Functions inherited from GRINS::FactoryWithGetPot< Base > | |
static void | set_getpot (const GetPot &input) |
Static Public Member Functions inherited from GRINS::FactoryAbstract< Base > | |
static libMesh::UniquePtr< Base > | build (const std::string &name) |
Use this method to build objects of type Base. More... | |
Protected Member Functions | |
void | check_for_multiple_expressions (const GetPot &input, const std::string §ion, const std::string &var_name) const |
Ensure that there is only one expression for the [Section/var_name] variable. More... | |
void | build_var_indices (const MultiphysicsSystem &system, const std::vector< std::string > &var_names, std::vector< VariableIndex > &var_indices) const |
virtual void | check_state () const |
Helper function to reduce code duplication. More... | |
virtual void | reset_state () |
Helper function to redue code duplication. More... | |
template<> | |
MultiphysicsSystem * | _system |
template<> | |
const std::set< BoundaryID > * | _bc_ids |
template<> | |
const FEVariablesBase * | _fe_var |
template<> | |
std::string | _section |
template<> | |
MultiphysicsSystem * | _system |
template<> | |
const std::set< BoundaryID > * | _bc_ids |
template<> | |
const FEVariablesBase * | _fe_var |
template<> | |
std::string | _section |
template<> | |
MultiphysicsSystem * | _system |
template<> | |
const std::set< BoundaryID > * | _bc_ids |
template<> | |
const FEVariablesBase * | _fe_var |
template<> | |
std::string | _section |
Protected Member Functions inherited from GRINS::FactoryWithGetPot< Base > | |
template<> | |
const GetPot * | _input |
template<> | |
const GetPot * | _input |
template<> | |
const GetPot * | _input |
template<> | |
const GetPot * | _input |
template<> | |
const GetPot * | _input |
template<> | |
const GetPot * | _input |
template<> | |
const GetPot * | _input |
template<> | |
const GetPot * | _input |
template<> | |
const GetPot * | _input |
template<> | |
const GetPot * | _input |
template<> | |
const GetPot * | _input |
template<> | |
const GetPot * | _input |
template<> | |
const GetPot * | _input |
Protected Member Functions inherited from GRINS::FactoryAbstract< Base > | |
FactoryAbstract (const std::string &name) | |
Constructor is protected. Use the build() method to construct Base objects. More... | |
template<> | |
std::map< std::string, FactoryAbstract< CatalycityBase > * > & | factory_map () |
template<> | |
std::map< std::string, FactoryAbstract< libMesh::DirichletBoundary > * > & | factory_map () |
template<> | |
std::map< std::string, FactoryAbstract< NeumannBCContainer > * > & | factory_map () |
template<> | |
std::map< std::string, FactoryAbstract< Physics > * > & | factory_map () |
template<> | |
std::map< std::string, FactoryAbstract< Solver > * > & | factory_map () |
template<> | |
std::map< std::string, FactoryAbstract< libMesh::ErrorEstimator > * > & | factory_map () |
template<> | |
std::map< std::string, FactoryAbstract< FEVariablesBase > * > & | factory_map () |
Static Protected Attributes | |
static MultiphysicsSystem * | _system |
We store only a raw pointer here because we can't make a copy. More... | |
static const std::set< BoundaryID > * | _bc_ids |
BoundaryID for constructing a particular boundary condition. More... | |
static const FEVariablesBase * | _fe_var |
The FEVariablesBase class associated with the boundary condition being built. More... | |
static std::string | _section |
Static Protected Attributes inherited from GRINS::FactoryWithGetPot< Base > | |
static const GetPot * | _input |
We store only a raw pointer here because we can't make a copy. More... | |
Additional Inherited Members | |
Static Protected Member Functions inherited from GRINS::FactoryAbstract< Base > | |
static FactoryAbstract< Base > & | get_factory (const std::string &name) |
Helper method that looks up the factory and returns it if present, or error if it's not. More... | |
template<typename DerivedType > | |
static DerivedType & | get_factory_subclass (const std::string &name) |
Like get_factory, but will downcast to DerivedType. More... | |
static std::map< std::string, FactoryAbstract< Base > * > & | factory_map () |
Definition at line 44 of file bc_factory_abstract.h.
|
inline |
Definition at line 47 of file bc_factory_abstract.h.
|
inline |
Definition at line 51 of file bc_factory_abstract.h.
|
protected |
Definition at line 38 of file neumann_bc_factory_abstract.h.
Referenced by GRINS::BCFactoryAbstract< NeumannBCContainer >::set_bc_ids().
|
protected |
Definition at line 47 of file dirichlet_bc_factory_abstract.C.
|
protected |
Definition at line 91 of file neumann_bc_factory_abstract.C.
|
protected |
Definition at line 39 of file neumann_bc_factory_abstract.h.
Referenced by GRINS::BCFactoryAbstract< NeumannBCContainer >::set_fe_var().
|
protected |
Definition at line 50 of file dirichlet_bc_factory_abstract.C.
|
protected |
Definition at line 94 of file neumann_bc_factory_abstract.C.
|
protected |
Definition at line 40 of file neumann_bc_factory_abstract.h.
Referenced by GRINS::BCFactoryAbstract< NeumannBCContainer >::set_section().
|
protected |
Definition at line 53 of file dirichlet_bc_factory_abstract.C.
|
protected |
Definition at line 97 of file neumann_bc_factory_abstract.C.
|
protected |
Definition at line 37 of file neumann_bc_factory_abstract.h.
Referenced by GRINS::BCFactoryAbstract< NeumannBCContainer >::set_system().
|
protected |
Definition at line 44 of file dirichlet_bc_factory_abstract.C.
|
protected |
Definition at line 88 of file neumann_bc_factory_abstract.C.
|
inlineprotected |
Definition at line 125 of file bc_factory_abstract.h.
|
inlineprotected |
Ensure that there is only one expression for the [Section/var_name] variable.
When parsing expressions to give to Parsed(FEM)Function, this function checks that there's only one expression for the given [Section/var_name] in the input file. This also helps protect against white space in the expression, which we don't currently support.
Definition at line 114 of file bc_factory_abstract.h.
|
inlineprotectedvirtual |
Helper function to reduce code duplication.
Reimplemented in GRINS::DirichletBCFactoryFunctionOldStyleBase< FunctionType >, GRINS::DirichletBCFactoryFunctionOldStyleBase< libMesh::FEMFunctionBase< libMesh::Number > >, GRINS::DirichletBCFactoryFunctionOldStyleBase< libMesh::FunctionBase< libMesh::Number > >, and GRINS::NeumannBCOldStyleFactoryAbstract.
Definition at line 137 of file bc_factory_abstract.h.
|
inlinestatic |
Definition at line 166 of file bc_factory_abstract.h.
References GRINS::FactoryAbstract< Base >::factory_map().
|
inlineprotectedvirtual |
Helper function to redue code duplication.
Reimplemented in GRINS::DirichletBCFactoryFunctionOldStyleBase< FunctionType >, GRINS::DirichletBCFactoryFunctionOldStyleBase< libMesh::FEMFunctionBase< libMesh::Number > >, GRINS::DirichletBCFactoryFunctionOldStyleBase< libMesh::FunctionBase< libMesh::Number > >, and GRINS::NeumannBCOldStyleFactoryAbstract.
Definition at line 157 of file bc_factory_abstract.h.
|
inlinestatic |
Boundary id for the current boundary condition section.
Definition at line 57 of file bc_factory_abstract.h.
|
inlinestatic |
Active variable for the current boundary condition.
Definition at line 61 of file bc_factory_abstract.h.
|
inlinestatic |
Sets the current section of the input file.
The section here corresponds to the section in the GetPot input file, e.g. if we're wanting to parse functions from [Variables/SideWall/Velocity/u], then section will be "Variables/SideWall/Velocity".
Definition at line 69 of file bc_factory_abstract.h.
|
inlinestatic |
Definition at line 53 of file bc_factory_abstract.h.
|
staticprotected |
BoundaryID for constructing a particular boundary condition.
Definition at line 100 of file bc_factory_abstract.h.
|
staticprotected |
The FEVariablesBase class associated with the boundary condition being built.
We only build one boundary condition at a time, so this pointer will change with each boundary condition construction. We store a raw pointer here because we don't own this. Do not delete!
Definition at line 106 of file bc_factory_abstract.h.
|
staticprotected |
Definition at line 108 of file bc_factory_abstract.h.
|
staticprotected |
We store only a raw pointer here because we can't make a copy.
Otherwise, bad things will happen. We are not taking ownership of this, so we need to not delete this.
Definition at line 97 of file bc_factory_abstract.h.