GRINS-0.7.0
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Attributes
GRINS::DirichletBCFactoryFunctionOldStyleBase< FunctionType > Class Template Reference

#include <dirichlet_bc_factory_function_old_style_base.h>

Inheritance diagram for GRINS::DirichletBCFactoryFunctionOldStyleBase< FunctionType >:
Inheritance graph
[legend]
Collaboration diagram for GRINS::DirichletBCFactoryFunctionOldStyleBase< FunctionType >:
Collaboration graph
[legend]

Public Member Functions

 DirichletBCFactoryFunctionOldStyleBase (const std::string &bc_type_name)
 
 ~DirichletBCFactoryFunctionOldStyleBase ()
 
- Public Member Functions inherited from GRINS::DirichletBCFactoryFunctionBase< FunctionType >
 DirichletBCFactoryFunctionBase (const std::string &bc_type_name)
 
 ~DirichletBCFactoryFunctionBase ()
 
- Public Member Functions inherited from GRINS::DirichletBCFactoryAbstract
 DirichletBCFactoryAbstract (const std::string &bc_type_name)
 
 ~DirichletBCFactoryAbstract ()
 
- Public Member Functions inherited from GRINS::BCFactoryAbstract< libMesh::DirichletBoundary >
 BCFactoryAbstract (const std::string &bc_type_name)
 
 ~BCFactoryAbstract ()
 
- Public Member Functions inherited from GRINS::FactoryWithGetPot< libMesh::DirichletBoundary >
 FactoryWithGetPot (const std::string &name)
 
 ~FactoryWithGetPot ()
 

Static Public Member Functions

static void set_value_var_old_style (const std::string &value_var)
 Input variable for parsing old style. More...
 
static void set_value_index_old_style (unsigned int idx)
 Input variable index for parsing old style. More...
 
static void set_var_names_old_style (const std::vector< std::string > &var_names)
 
- Static Public Member Functions inherited from GRINS::BCFactoryAbstract< libMesh::DirichletBoundary >
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 &section)
 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< libMesh::DirichletBoundary >
static void set_getpot (const GetPot &input)
 

Protected Member Functions

virtual void check_state () const
 Helper function. More...
 
virtual void reset_state ()
 Helper function. More...
 
virtual const std::vector< std::string > & get_var_names () const
 Helper function that can be overridded in subclasses. More...
 
- Protected Member Functions inherited from GRINS::DirichletBCFactoryFunctionBase< FunctionType >
virtual libMesh::UniquePtr< FunctionType > build_func (const GetPot &input, MultiphysicsSystem &system, std::vector< std::string > &var_names, const std::string &section)=0
 Builds the FunctionBase object for boundary condition. More...
 
libMesh::UniquePtr< libMesh::DirichletBoundary > make_dirichlet_boundary (const std::set< BoundaryID > &bc_ids, const libMesh::System &system, libMesh::UniquePtr< FunctionType > &func, const std::vector< VariableIndex > &var_indices)
 Dispatch, based on FunctionType, to the correct DirchletBoundary construction. More...
 
template<>
libMesh::UniquePtr< libMesh::DirichletBoundary > make_dirichlet_boundary (const std::set< BoundaryID > &bc_ids, const libMesh::System &, libMesh::UniquePtr< libMesh::FunctionBase< libMesh::Number > > &func, const std::vector< VariableIndex > &var_indices)
 
template<>
libMesh::UniquePtr< libMesh::DirichletBoundary > make_dirichlet_boundary (const std::set< BoundaryID > &bc_ids, const libMesh::System &system, libMesh::UniquePtr< libMesh::FEMFunctionBase< libMesh::Number > > &func, const std::vector< VariableIndex > &var_indices)
 
- Protected Member Functions inherited from GRINS::DirichletBCFactoryAbstract
void check_for_vars (const GetPot &input, const std::string &section, const std::vector< std::string > &var_names, std::set< std::string > *vars_found=NULL)
 Helper function. More...
 
- Protected Member Functions inherited from GRINS::BCFactoryAbstract< libMesh::DirichletBoundary >
void check_for_multiple_expressions (const GetPot &input, const std::string &section, 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
 

Static Protected Attributes

static std::string _value_var_old_style = std::string("DIE!")
 
static unsigned int _value_idx_old_style = libMesh::invalid_uint
 
static const std::vector< std::string > * _var_names_old_style = NULL
 
- Static Protected Attributes inherited from GRINS::BCFactoryAbstract< libMesh::DirichletBoundary >
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< libMesh::DirichletBoundary >
static const GetPot * _input
 We store only a raw pointer here because we can't make a copy. More...
 

Detailed Description

template<typename FunctionType>
class GRINS::DirichletBCFactoryFunctionOldStyleBase< FunctionType >

Definition at line 34 of file dirichlet_bc_factory_function_old_style_base.h.

Constructor & Destructor Documentation

template<typename FunctionType>
GRINS::DirichletBCFactoryFunctionOldStyleBase< FunctionType >::DirichletBCFactoryFunctionOldStyleBase ( const std::string &  bc_type_name)
inline

Definition at line 38 of file dirichlet_bc_factory_function_old_style_base.h.

39  : DirichletBCFactoryFunctionBase<FunctionType>(bc_type_name)
40  {}
template<typename FunctionType>
GRINS::DirichletBCFactoryFunctionOldStyleBase< FunctionType >::~DirichletBCFactoryFunctionOldStyleBase ( )
inline

Definition at line 42 of file dirichlet_bc_factory_function_old_style_base.h.

42 {};

Member Function Documentation

template<typename FunctionType >
void GRINS::DirichletBCFactoryFunctionOldStyleBase< FunctionType >::check_state ( ) const
inlineprotectedvirtual

Helper function.

Reimplemented from GRINS::BCFactoryAbstract< libMesh::DirichletBoundary >.

Definition at line 78 of file dirichlet_bc_factory_function_old_style_base.h.

References GRINS::BCFactoryAbstract< libMesh::DirichletBoundary >::check_state().

79  {
81 
82  if( this->_value_var_old_style == std::string("DIE!") )
83  libmesh_error_msg("ERROR: must call set_value_var_old_style() before building boundary condition!");
84 
85  if( this->_value_idx_old_style == libMesh::invalid_uint )
86  libmesh_error_msg("ERROR: must call set_value_index_old_style() before building boundary condition!");
87 
88  if( !this->_var_names_old_style )
89  libmesh_error_msg("ERROR: must call set_var_names_old_style() before building boundary condition!");
90  }
virtual void check_state() const
Helper function to reduce code duplication.
template<typename FunctionType>
virtual const std::vector<std::string>& GRINS::DirichletBCFactoryFunctionOldStyleBase< FunctionType >::get_var_names ( ) const
inlineprotectedvirtual

Helper function that can be overridded in subclasses.

Mainly for backward compatibility with OldStyle parsing.

Reimplemented from GRINS::DirichletBCFactoryFunctionBase< FunctionType >.

Definition at line 65 of file dirichlet_bc_factory_function_old_style_base.h.

66  { return *(this->_var_names_old_style); }
template<typename FunctionType >
void GRINS::DirichletBCFactoryFunctionOldStyleBase< FunctionType >::reset_state ( )
inlineprotectedvirtual
template<typename FunctionType>
static void GRINS::DirichletBCFactoryFunctionOldStyleBase< FunctionType >::set_value_index_old_style ( unsigned int  idx)
inlinestatic

Input variable index for parsing old style.

Deprecated, only used for backward compatibility.

Definition at line 51 of file dirichlet_bc_factory_function_old_style_base.h.

Referenced by GRINS::OldStyleBCBuilder::set_dirichlet_bc_factory_old_style_quantities().

template<typename FunctionType>
static void GRINS::DirichletBCFactoryFunctionOldStyleBase< FunctionType >::set_value_var_old_style ( const std::string &  value_var)
inlinestatic

Input variable for parsing old style.

Deprecated, only used for backward compatibility.

Definition at line 46 of file dirichlet_bc_factory_function_old_style_base.h.

Referenced by GRINS::OldStyleBCBuilder::set_dirichlet_bc_factory_old_style_quantities().

template<typename FunctionType>
static void GRINS::DirichletBCFactoryFunctionOldStyleBase< FunctionType >::set_var_names_old_style ( const std::vector< std::string > &  var_names)
inlinestatic

Member Data Documentation

template<typename FunctionType>
unsigned int GRINS::DirichletBCFactoryFunctionOldStyleBase< FunctionType >::_value_idx_old_style = libMesh::invalid_uint
staticprotected
template<typename FunctionType>
std::string GRINS::DirichletBCFactoryFunctionOldStyleBase< FunctionType >::_value_var_old_style = std::string("DIE!")
staticprotected
template<typename FunctionType>
const std::vector< std::string > * GRINS::DirichletBCFactoryFunctionOldStyleBase< FunctionType >::_var_names_old_style = NULL
staticprotected

The documentation for this class was generated from the following files:

Generated on Thu Jun 2 2016 21:52:30 for GRINS-0.7.0 by  doxygen 1.8.10