MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
mfem::VectorRestrictedCoefficient Class Reference

Derived vector coefficient that has the value of the parent vector where it is active and is zero otherwise. More...

#include <coefficient.hpp>

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

Public Member Functions

 VectorRestrictedCoefficient (VectorCoefficient &vc, Array< int > &attr)
 Construct with a parent vector coefficient and an array of zeros and ones representing the attributes for which this coefficient should be active.
 
void SetTime (real_t t)
 Set the time for internally stored coefficients.
 
virtual void Eval (Vector &V, ElementTransformation &T, const IntegrationPoint &ip)
 Evaluate the vector coefficient at ip.
 
virtual void Eval (DenseMatrix &M, ElementTransformation &T, const IntegrationRule &ir)
 Evaluate the vector coefficient at all of the locations in the integration rule and write the vectors into the columns of matrix M.
 
- Public Member Functions inherited from mfem::VectorCoefficient
 VectorCoefficient (int vd)
 Initialize the VectorCoefficient with vector dimension vd.
 
real_t GetTime ()
 Get the time for time dependent coefficients.
 
int GetVDim ()
 Returns dimension of the vector.
 
virtual void Project (QuadratureFunction &qf)
 Fill the QuadratureFunction qf by evaluating the coefficient at the quadrature points.
 
virtual ~VectorCoefficient ()
 

Additional Inherited Members

- Protected Attributes inherited from mfem::VectorCoefficient
int vdim
 
real_t time
 

Detailed Description

Derived vector coefficient that has the value of the parent vector where it is active and is zero otherwise.

Definition at line 1009 of file coefficient.hpp.

Constructor & Destructor Documentation

◆ VectorRestrictedCoefficient()

mfem::VectorRestrictedCoefficient::VectorRestrictedCoefficient ( VectorCoefficient & vc,
Array< int > & attr )
inline

Construct with a parent vector coefficient and an array of zeros and ones representing the attributes for which this coefficient should be active.

Definition at line 1019 of file coefficient.hpp.

Member Function Documentation

◆ Eval() [1/2]

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

Evaluate the vector coefficient 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 613 of file coefficient.cpp.

◆ Eval() [2/2]

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

Evaluate the vector coefficient at ip.

Implements mfem::VectorCoefficient.

Definition at line 598 of file coefficient.cpp.

◆ SetTime()

void mfem::VectorRestrictedCoefficient::SetTime ( real_t t)
virtual

Set the time for internally stored coefficients.

Reimplemented from mfem::VectorCoefficient.

Definition at line 592 of file coefficient.cpp.


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