MFEM  v4.2.0 Finite element discretization library
mfem::VectorGridFunctionCoefficient Class Reference

Vector coefficient defined by a vector GridFunction. More...

#include <coefficient.hpp>

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

Public Member Functions

VectorGridFunctionCoefficient ()
Construct an empty coefficient. Calling Eval() before the grid function is set will cause a segfault. More...

VectorGridFunctionCoefficient (const GridFunction *gf)
Construct the coefficient with grid function gf. The grid function is not owned by the coefficient. More...

void SetGridFunction (const GridFunction *gf)
Set the grid function for this coefficient. Also sets the Vector dimension to match that of the gf. More...

const GridFunctionGetGridFunction () const
Returns a pointer to the grid function in this Coefficient. More...

virtual void Eval (Vector &V, ElementTransformation &T, const IntegrationPoint &ip)
Evaluate the vector coefficient at ip. More...

virtual void Eval (DenseMatrix &M, ElementTransformation &T, const IntegrationRule &ir)
Evaluate the vector coefficients at all of the locations in the integration rule and write the vectors into the columns of matrix M. More...

virtual ~VectorGridFunctionCoefficient ()

Public Member Functions inherited from mfem::VectorCoefficient
VectorCoefficient (int vd)
Initialize the VectorCoefficient with vector dimension vd. More...

void SetTime (double t)
Set the time for time dependent coefficients. More...

double GetTime ()
Get the time for time dependent coefficients. More...

int GetVDim ()
Returns dimension of the vector. More...

virtual ~VectorCoefficient ()

Protected Attributes

const GridFunctionGridFunc

Protected Attributes inherited from mfem::VectorCoefficient
int vdim

double time

Detailed Description

Vector coefficient defined by a vector GridFunction.

Definition at line 484 of file coefficient.hpp.

Constructor & Destructor Documentation

 mfem::VectorGridFunctionCoefficient::VectorGridFunctionCoefficient ( )
inline

Construct an empty coefficient. Calling Eval() before the grid function is set will cause a segfault.

Definition at line 492 of file coefficient.hpp.

 mfem::VectorGridFunctionCoefficient::VectorGridFunctionCoefficient ( const GridFunction * gf )

Construct the coefficient with grid function gf. The grid function is not owned by the coefficient.

Definition at line 162 of file coefficient.cpp.

 virtual mfem::VectorGridFunctionCoefficient::~VectorGridFunctionCoefficient ( )
inlinevirtual

Definition at line 515 of file coefficient.hpp.

Member Function Documentation

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

Evaluate the vector coefficient at ip.

Implements mfem::VectorCoefficient.

Definition at line 174 of file coefficient.cpp.

 void mfem::VectorGridFunctionCoefficient::Eval ( DenseMatrix & M, ElementTransformation & T, const IntegrationRule & ir )
virtual

Evaluate the vector coefficients at all of the locations in the integration rule and write the vectors into the columns of matrix M.

Reimplemented from mfem::VectorCoefficient.

Definition at line 180 of file coefficient.cpp.

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

Returns a pointer to the grid function in this Coefficient.

Definition at line 503 of file coefficient.hpp.

 void mfem::VectorGridFunctionCoefficient::SetGridFunction ( const GridFunction * gf )

Set the grid function for this coefficient. Also sets the Vector dimension to match that of the gf.

Definition at line 169 of file coefficient.cpp.

Member Data Documentation

 const GridFunction* mfem::VectorGridFunctionCoefficient::GridFunc
protected

Definition at line 487 of file coefficient.hpp.

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