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, bool, 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 Elem &, unsigned int, unsigned int, std::vector< dof_id_type > &, std::vector< Output > &)
 
void eval_old_dofs (const Elem &, const FEType &, unsigned int, unsigned int, std::vector< dof_id_type > &, 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 417 of file generic_projector.h.

Constructor & Destructor Documentation

◆ FEMFunctionWrapper() [1/2]

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

Definition at line 420 of file generic_projector.h.

420 : _f(f.clone()) {}

◆ FEMFunctionWrapper() [2/2]

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

Definition at line 422 of file generic_projector.h.

422  :
423  _f(fw._f->clone()) {}

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,
bool  ,
const Real  time 
)
inline

Definition at line 427 of file generic_projector.h.

433  { return _f->component(c, i, n, time); }

References libMesh::FEMFunctionWrapper< 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 
)
inline

Definition at line 435 of file generic_projector.h.

439  { return _f->component(c, i, n, time); }

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

◆ eval_old_dofs() [1/2]

template<typename Output>
void libMesh::FEMFunctionWrapper< Output >::eval_old_dofs ( const Elem ,
const FEType ,
unsigned int  ,
unsigned int  ,
std::vector< dof_id_type > &  ,
std::vector< Output > &   
)
inline

Definition at line 450 of file generic_projector.h.

456  { libmesh_error(); }

◆ eval_old_dofs() [2/2]

template<typename Output>
void libMesh::FEMFunctionWrapper< Output >::eval_old_dofs ( const Elem ,
unsigned int  ,
unsigned int  ,
std::vector< dof_id_type > &  ,
std::vector< Output > &   
)
inline

Definition at line 443 of file generic_projector.h.

448  { libmesh_error(); }

◆ init_context()

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

Definition at line 425 of file generic_projector.h.

425 { _f->init_context(c); }

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

◆ is_grid_projection()

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

Definition at line 441 of file generic_projector.h.

441 { 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:
libMesh::FEMFunctionWrapper::_f
std::unique_ptr< FEMFunctionBase< Output > > _f
Definition: generic_projector.h:459