MFEM  v4.3.0
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Protected Attributes | List of all members
mfem::ShiftedFunctionCoefficient Class Reference

#include <sbm_solver.hpp>

Inheritance diagram for mfem::ShiftedFunctionCoefficient:
[legend]
Collaboration diagram for mfem::ShiftedFunctionCoefficient:
[legend]

Public Member Functions

 ShiftedFunctionCoefficient (std::function< double(const Vector &v)> F)
 
virtual double Eval (ElementTransformation &T, const IntegrationPoint &ip)
 Evaluate the coefficient in the element described by T at the point ip. More...
 
double Eval (ElementTransformation &T, const IntegrationPoint &ip, const Vector &D)
 Evaluate the coefficient at ip + D. More...
 
- Public Member Functions inherited from mfem::Coefficient
 Coefficient ()
 
void SetTime (double t)
 Set the time for time dependent coefficients. More...
 
double GetTime ()
 Get the time for time dependent coefficients. More...
 
double Eval (ElementTransformation &T, const IntegrationPoint &ip, double t)
 Evaluate the coefficient in the element described by T at the point ip at time t. More...
 
virtual ~Coefficient ()
 

Protected Attributes

std::function< double(const
Vector &)> 
Function
 
- Protected Attributes inherited from mfem::Coefficient
double time
 

Detailed Description

ShiftedFunctionCoefficient, similar to FunctionCoefficient, but also takes into account a displacement vector if specified.

Definition at line 22 of file sbm_solver.hpp.

Constructor & Destructor Documentation

mfem::ShiftedFunctionCoefficient::ShiftedFunctionCoefficient ( std::function< double(const Vector &v)>  F)
inline

Definition at line 28 of file sbm_solver.hpp.

Member Function Documentation

virtual double mfem::ShiftedFunctionCoefficient::Eval ( ElementTransformation T,
const IntegrationPoint ip 
)
inlinevirtual

Evaluate the coefficient in the element described by T at the point ip.

Note
When this method is called, the caller must make sure that the IntegrationPoint associated with T is the same as ip. This can be achieved by calling T.SetIntPoint(&ip).

Implements mfem::Coefficient.

Definition at line 31 of file sbm_solver.hpp.

double mfem::ShiftedFunctionCoefficient::Eval ( ElementTransformation T,
const IntegrationPoint ip,
const Vector D 
)

Evaluate the coefficient at ip + D.

Definition at line 19 of file sbm_solver.cpp.

Member Data Documentation

std::function<double(const Vector &)> mfem::ShiftedFunctionCoefficient::Function
protected

Definition at line 25 of file sbm_solver.hpp.


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