MFEM  v4.1.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::CurlGridFunctionCoefficient Class Reference

Vector coefficient defined as the Curl of a vector GridFunction. More...

#include <coefficient.hpp>

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

Public Member Functions

 CurlGridFunctionCoefficient (GridFunction *gf)
 
void SetGridFunction (GridFunction *gf)
 
GridFunctionGetGridFunction () const
 
virtual void Eval (Vector &V, ElementTransformation &T, const IntegrationPoint &ip)
 Evaluate the vector coefficient in the element described by T at the point ip, storing the result in V. More...
 
virtual ~CurlGridFunctionCoefficient ()
 
- Public Member Functions inherited from mfem::VectorCoefficient
 VectorCoefficient (int vd)
 
void SetTime (double t)
 
double GetTime ()
 
int GetVDim ()
 Returns dimension of the vector. More...
 
virtual void Eval (DenseMatrix &M, ElementTransformation &T, const IntegrationRule &ir)
 Evaluate the vector coefficient in the element described by T at all points of ir, storing the result in M. More...
 
virtual ~VectorCoefficient ()
 

Protected Attributes

GridFunctionGridFunc
 
- Protected Attributes inherited from mfem::VectorCoefficient
int vdim
 
double time
 

Detailed Description

Vector coefficient defined as the Curl of a vector GridFunction.

Definition at line 443 of file coefficient.hpp.

Constructor & Destructor Documentation

mfem::CurlGridFunctionCoefficient::CurlGridFunctionCoefficient ( GridFunction gf)

Definition at line 212 of file coefficient.cpp.

virtual mfem::CurlGridFunctionCoefficient::~CurlGridFunctionCoefficient ( )
inlinevirtual

Definition at line 458 of file coefficient.hpp.

Member Function Documentation

void mfem::CurlGridFunctionCoefficient::Eval ( Vector V,
ElementTransformation T,
const IntegrationPoint ip 
)
virtual

Evaluate the vector coefficient in the element described by T at the point ip, storing the result in V.

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::VectorCoefficient.

Definition at line 226 of file coefficient.cpp.

GridFunction* mfem::CurlGridFunctionCoefficient::GetGridFunction ( ) const
inline

Definition at line 452 of file coefficient.hpp.

void mfem::CurlGridFunctionCoefficient::SetGridFunction ( GridFunction gf)

Definition at line 220 of file coefficient.cpp.

Member Data Documentation

GridFunction* mfem::CurlGridFunctionCoefficient::GridFunc
protected

Definition at line 446 of file coefficient.hpp.


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