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

#include <neumann_bc_parsed.h>

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

Public Member Functions

 CompositeParsedNeumannBC (const std::vector< std::string > &expressions, const std::vector< VariableIndex > &vars)
 
virtual ~CompositeParsedNeumannBC ()
 
- Public Member Functions inherited from GRINS::NeumannBCFunctionBase< libMesh::FunctionBase< 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::FunctionBase< 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::FunctionBase< FEShape >, FEShape >
std::vector< VariableIndex_vars
 Variable indices for the variables whose Neumann contribution we're computing. More...
 
libMesh::UniquePtr< libMesh::FunctionBase< FEShape > > _func
 Function object for the actual Neumann flux. More...
 

Detailed Description

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

Definition at line 55 of file neumann_bc_parsed.h.

Constructor & Destructor Documentation

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

Definition at line 58 of file neumann_bc_parsed.h.

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

60  : NeumannBCFunctionBase<libMesh::FunctionBase<FEShape>,FEShape>( vars )
61  {
62  libmesh_assert_equal_to( expressions.size(), vars.size() );
63 
64  libMesh::UniquePtr<libMesh::CompositeFunction<FEShape> >
65  composite_func( new libMesh::CompositeFunction<FEShape> );
66 
67  for( unsigned int i = 0; i < vars.size(); i++ )
68  {
69  libMesh::ParsedFunction<FEShape> parsed_func(expressions[i]);
70  std::vector<unsigned int> index(1,vars[i]);
71  composite_func->attach_subfunction(parsed_func, index);
72  }
73 
74  this->_func.reset(composite_func.release());
75  }
libMesh::UniquePtr< libMesh::FunctionBase< FEShape > > _func
Function object for the actual Neumann flux.
template<typename FEShape >
virtual GRINS::CompositeParsedNeumannBC< FEShape >::~CompositeParsedNeumannBC ( )
inlinevirtual

Definition at line 77 of file neumann_bc_parsed.h.

77 {};

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