GRINS-0.8.0
List of all members | Public Member Functions
GRINS::CompositeParsedFEMNeumannBC< FEShape > Class Template Reference

#include <neumann_bc_parsed.h>

Inheritance diagram for GRINS::CompositeParsedFEMNeumannBC< FEShape >:
Inheritance graph
[legend]
Collaboration diagram for GRINS::CompositeParsedFEMNeumannBC< FEShape >:
Collaboration graph
[legend]

Public Member Functions

 CompositeParsedFEMNeumannBC (const std::vector< std::string > &expressions, const std::vector< VariableIndex > &vars, const MultiphysicsSystem &system)
 
virtual ~CompositeParsedFEMNeumannBC ()
 
- Public Member Functions inherited from GRINS::NeumannBCFunctionBase< libMesh::FEMFunctionBase< FEShape >, FEShape >
 NeumannBCFunctionBase (VariableIndex var)
 Constructor for function with only one variable. More...
 
 NeumannBCFunctionBase (const std::vector< VariableIndex > &vars)
 Constructor for function with several variables. More...
 
virtual ~NeumannBCFunctionBase ()
 
virtual bool eval_flux (bool compute_jacobian, AssemblyContext &context, libMesh::Real sign, bool is_axisymmetric)
 
- Public Member Functions inherited from GRINS::NeumannBCAbstract
 NeumannBCAbstract ()
 
virtual ~NeumannBCAbstract ()
 
- Public Member Functions inherited from GRINS::ParameterUser
 ParameterUser (const std::string &user_name)
 
virtual ~ParameterUser ()
 
virtual void set_parameter (libMesh::Number &param_variable, const GetPot &input, const std::string &param_name, libMesh::Number param_default)
 Each subclass can simultaneously read a parameter value from. More...
 
virtual void set_parameter (libMesh::ParsedFunction< libMesh::Number, libMesh::Gradient > &func, const GetPot &input, const std::string &func_param_name, const std::string &param_default)
 Each subclass can simultaneously read a parsed function from. More...
 
virtual void set_parameter (libMesh::ParsedFEMFunction< libMesh::Number > &func, const GetPot &input, const std::string &func_param_name, const std::string &param_default)
 Each subclass can simultaneously read a parsed function from. More...
 
virtual void move_parameter (const libMesh::Number &old_parameter, libMesh::Number &new_parameter)
 When cloning an object, we need to update parameter pointers. More...
 
virtual void move_parameter (const libMesh::ParsedFunction< libMesh::Number, libMesh::Gradient > &old_func, libMesh::ParsedFunction< libMesh::Number, libMesh::Gradient > &new_func)
 When cloning an object, we need to update parameter pointers. More...
 
virtual void move_parameter (const libMesh::ParsedFEMFunction< libMesh::Number > &old_func, libMesh::ParsedFEMFunction< libMesh::Number > &new_func)
 When cloning an object, we need to update parameter pointers. More...
 
virtual void register_parameter (const std::string &param_name, libMesh::ParameterMultiAccessor< libMesh::Number > &param_pointer) const
 Each subclass will register its copy of an independent. More...
 

Additional Inherited Members

- Static Public Attributes inherited from GRINS::ParameterUser
static std::string zero_vector_function = std::string("{0}")
 A parseable function string with LIBMESH_DIM components, all 0. More...
 
- Protected Member Functions inherited from GRINS::NeumannBCFunctionBase< libMesh::FEMFunctionBase< FEShape >, FEShape >
FEShape eval_func (AssemblyContext &context, const libMesh::Point &point, libMesh::Real time, unsigned int component, libMesh::FEMFunctionBase< FEShape > &func)
 Helper function to dispatch to FEMFunctionBase API. More...
 
FEShape eval_func (AssemblyContext &, const libMesh::Point &point, libMesh::Real time, unsigned int component, libMesh::FunctionBase< FEShape > &func)
 Helper function to dispatch to FunctionBase API. More...
 
- Protected Attributes inherited from GRINS::NeumannBCFunctionBase< libMesh::FEMFunctionBase< FEShape >, FEShape >
std::vector< VariableIndex_vars
 Variable indices for the variables whose Neumann contribution we're computing. More...
 
libMesh::UniquePtr< libMesh::FEMFunctionBase< FEShape > > _func
 Function object for the actual Neumann flux. More...
 

Detailed Description

template<typename FEShape>
class GRINS::CompositeParsedFEMNeumannBC< FEShape >

Definition at line 96 of file neumann_bc_parsed.h.

Constructor & Destructor Documentation

template<typename FEShape >
GRINS::CompositeParsedFEMNeumannBC< FEShape >::CompositeParsedFEMNeumannBC ( const std::vector< std::string > &  expressions,
const std::vector< VariableIndex > &  vars,
const MultiphysicsSystem system 
)
inline

Definition at line 99 of file neumann_bc_parsed.h.

References GRINS::NeumannBCFunctionBase< libMesh::FEMFunctionBase< FEShape >, FEShape >::_func.

102  : NeumannBCFunctionBase<libMesh::FEMFunctionBase<FEShape>,FEShape>( vars )
103  {
104  libmesh_assert_equal_to( expressions.size(), vars.size() );
105 
106  libMesh::UniquePtr<libMesh::CompositeFEMFunction<FEShape> >
107  composite_func( new libMesh::CompositeFEMFunction<FEShape> );
108 
109  for( unsigned int i = 0; i < vars.size(); i++ )
110  {
111  libMesh::ParsedFEMFunction<FEShape> parsed_func(system,expressions[i]);
112  std::vector<unsigned int> index(1,vars[i]);
113  composite_func->attach_subfunction(parsed_func, index);
114  }
115 
116  this->_func.reset(composite_func.release());
117  }
libMesh::UniquePtr< libMesh::FEMFunctionBase< FEShape > > _func
Function object for the actual Neumann flux.
template<typename FEShape >
virtual GRINS::CompositeParsedFEMNeumannBC< FEShape >::~CompositeParsedFEMNeumannBC ( )
inlinevirtual

Definition at line 119 of file neumann_bc_parsed.h.

119 {};

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

Generated on Tue Dec 19 2017 12:47:30 for GRINS-0.8.0 by  doxygen 1.8.9.1