libMesh
Public Member Functions | Private Attributes | List of all members
libMesh::FEMFunctionWrapper< Output > Class Template Reference

The FEMFunctionWrapper input functor class can be used with a GenericProjector to read values from an FEMFunction. More...

#include <generic_projector.h>

Public Member Functions

 FEMFunctionWrapper (const FEMFunctionBase< Output > &f)
 
 FEMFunctionWrapper (const FEMFunctionWrapper< Output > &fw)
 
void init_context (FEMContext &c)
 
Output eval_at_node (const FEMContext &c, unsigned int i, unsigned int, const Node &n, const Real time)
 
Output eval_at_point (const FEMContext &c, unsigned int i, const Point &n, const Real time)
 
bool is_grid_projection ()
 
void eval_old_dofs (const FEMContext &, unsigned int, std::vector< Output >)
 

Private Attributes

std::unique_ptr< FEMFunctionBase< Output > > _f
 

Detailed Description

template<typename Output>
class libMesh::FEMFunctionWrapper< Output >

The FEMFunctionWrapper input functor class can be used with a GenericProjector to read values from an FEMFunction.

Author
Roy H. Stogner
Date
2016

Definition at line 155 of file generic_projector.h.

Constructor & Destructor Documentation

◆ FEMFunctionWrapper() [1/2]

template<typename Output>
libMesh::FEMFunctionWrapper< Output >::FEMFunctionWrapper ( const FEMFunctionBase< Output > &  f)

Definition at line 158 of file generic_projector.h.

158 : _f(f.clone()) {}
std::unique_ptr< FEMFunctionBase< Output > > _f

◆ FEMFunctionWrapper() [2/2]

template<typename Output>
libMesh::FEMFunctionWrapper< Output >::FEMFunctionWrapper ( const FEMFunctionWrapper< Output > &  fw)

Definition at line 160 of file generic_projector.h.

160  :
161  _f(fw._f->clone()) {}
std::unique_ptr< FEMFunctionBase< Output > > _f

Member Function Documentation

◆ eval_at_node()

template<typename Output>
Output libMesh::FEMFunctionWrapper< Output >::eval_at_node ( const FEMContext c,
unsigned int  i,
unsigned  int,
const Node n,
const Real  time 
)

Definition at line 165 of file generic_projector.h.

References libMesh::FEMFunctionWrapper< Output >::_f.

170  { return _f->component(c, i, n, time); }
std::unique_ptr< FEMFunctionBase< Output > > _f

◆ eval_at_point()

template<typename Output>
Output libMesh::FEMFunctionWrapper< Output >::eval_at_point ( const FEMContext c,
unsigned int  i,
const Point n,
const Real  time 
)

Definition at line 172 of file generic_projector.h.

References libMesh::FEMFunctionWrapper< Output >::_f.

176  { return _f->component(c, i, n, time); }
std::unique_ptr< FEMFunctionBase< Output > > _f

◆ eval_old_dofs()

template<typename Output>
void libMesh::FEMFunctionWrapper< Output >::eval_old_dofs ( const FEMContext ,
unsigned  int,
std::vector< Output >   
)

Definition at line 180 of file generic_projector.h.

183  { libmesh_error(); }

◆ init_context()

template<typename Output>
void libMesh::FEMFunctionWrapper< Output >::init_context ( FEMContext c)

Definition at line 163 of file generic_projector.h.

References libMesh::FEMFunctionWrapper< Output >::_f.

163 { _f->init_context(c); }
std::unique_ptr< FEMFunctionBase< Output > > _f

◆ is_grid_projection()

template<typename Output>
bool libMesh::FEMFunctionWrapper< Output >::is_grid_projection ( )

Definition at line 178 of file generic_projector.h.

178 { return false; }

Member Data Documentation

◆ _f

template<typename Output>
std::unique_ptr<FEMFunctionBase<Output> > libMesh::FEMFunctionWrapper< Output >::_f
private

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