MFEM  v4.4.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)
 
 ShiftedFunctionCoefficient (double constant_)
 
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 ()
 
virtual 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
 
double constant = 0.0
 
bool constantcoefficient
 
- 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 23 of file sbm_solver.hpp.

Constructor & Destructor Documentation

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

Definition at line 31 of file sbm_solver.hpp.

mfem::ShiftedFunctionCoefficient::ShiftedFunctionCoefficient ( double  constant_)
inline

Definition at line 33 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 36 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 17 of file sbm_solver.cpp.

Member Data Documentation

double mfem::ShiftedFunctionCoefficient::constant = 0.0
protected

Definition at line 27 of file sbm_solver.hpp.

bool mfem::ShiftedFunctionCoefficient::constantcoefficient
protected

Definition at line 28 of file sbm_solver.hpp.

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

Definition at line 26 of file sbm_solver.hpp.


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