MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
mfem::DiffMappedGridFunctionCoefficient Class Reference

Returns f(u(x)) - f(v(x)) where u, v are scalar GridFunctions and f:R → R. More...

#include <ex37.hpp>

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

Public Member Functions

 DiffMappedGridFunctionCoefficient ()
 
 DiffMappedGridFunctionCoefficient (const GridFunction *gf, const GridFunction *other_gf, std::function< real_t(const real_t)> fun_, int comp=1)
 
virtual real_t Eval (ElementTransformation &T, const IntegrationPoint &ip)
 Evaluate the coefficient at ip.
 
void SetFunction (std::function< real_t(const real_t)> fun_)
 
- Public Member Functions inherited from mfem::GridFunctionCoefficient
 GridFunctionCoefficient ()
 
 GridFunctionCoefficient (const GridFunction *gf, int comp=1)
 
void SetGridFunction (const GridFunction *gf)
 Set the internal GridFunction.
 
const GridFunctionGetGridFunction () const
 Get the internal GridFunction.
 
virtual real_t Eval (ElementTransformation &T, const IntegrationPoint &ip)
 Evaluate the coefficient at ip.
 
virtual void Project (QuadratureFunction &qf)
 Fill the QuadratureFunction qf by evaluating the coefficient at the quadrature points.
 
- Public Member Functions inherited from mfem::Coefficient
 Coefficient ()
 
virtual void SetTime (real_t t)
 Set the time for time dependent coefficients.
 
real_t GetTime ()
 Get the time for time dependent coefficients.
 
virtual real_t Eval (ElementTransformation &T, const IntegrationPoint &ip)=0
 Evaluate the coefficient in the element described by T at the point ip.
 
real_t Eval (ElementTransformation &T, const IntegrationPoint &ip, real_t t)
 Evaluate the coefficient in the element described by T at the point ip at time t.
 
virtual void Project (QuadratureFunction &qf)
 Fill the QuadratureFunction qf by evaluating the coefficient at the quadrature points.
 
virtual ~Coefficient ()
 

Protected Attributes

const GridFunctionOtherGridF
 
GridFunctionCoefficient OtherGridF_cf
 
std::function< real_t(const real_t)> fun
 
- Protected Attributes inherited from mfem::Coefficient
real_t time
 

Detailed Description

Returns f(u(x)) - f(v(x)) where u, v are scalar GridFunctions and f:R → R.

Definition at line 65 of file ex37.hpp.

Constructor & Destructor Documentation

◆ DiffMappedGridFunctionCoefficient() [1/2]

mfem::DiffMappedGridFunctionCoefficient::DiffMappedGridFunctionCoefficient ( )
inline

Definition at line 72 of file ex37.hpp.

◆ DiffMappedGridFunctionCoefficient() [2/2]

mfem::DiffMappedGridFunctionCoefficient::DiffMappedGridFunctionCoefficient ( const GridFunction gf,
const GridFunction other_gf,
std::function< real_t(const real_t)>  fun_,
int  comp = 1 
)
inline

Definition at line 77 of file ex37.hpp.

Member Function Documentation

◆ Eval()

virtual real_t mfem::DiffMappedGridFunctionCoefficient::Eval ( ElementTransformation T,
const IntegrationPoint ip 
)
inlinevirtual

Evaluate the coefficient at ip.

Reimplemented from mfem::GridFunctionCoefficient.

Definition at line 86 of file ex37.hpp.

◆ SetFunction()

void mfem::DiffMappedGridFunctionCoefficient::SetFunction ( std::function< real_t(const real_t)>  fun_)
inline

Definition at line 93 of file ex37.hpp.

Member Data Documentation

◆ fun

std::function<real_t(const real_t)> mfem::DiffMappedGridFunctionCoefficient::fun
protected

Definition at line 70 of file ex37.hpp.

◆ OtherGridF

const GridFunction* mfem::DiffMappedGridFunctionCoefficient::OtherGridF
protected

Definition at line 68 of file ex37.hpp.

◆ OtherGridF_cf

GridFunctionCoefficient mfem::DiffMappedGridFunctionCoefficient::OtherGridF_cf
protected

Definition at line 69 of file ex37.hpp.


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