MFEM  v3.3.2
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::VectorDeltaCoefficient Class Reference

VectorDeltaCoefficient: DeltaCoefficient with a direction. More...

#include <coefficient.hpp>

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

Public Member Functions

 VectorDeltaCoefficient (int _vdim)
 
 VectorDeltaCoefficient (const Vector &_dir)
 
 VectorDeltaCoefficient (const Vector &_dir, double x, double s)
 
 VectorDeltaCoefficient (const Vector &_dir, double x, double y, double s)
 
 VectorDeltaCoefficient (const Vector &_dir, double x, double y, double z, double s)
 
void SetDeltaCoefficient (const DeltaCoefficient &_d)
 Replace the associated DeltaCoeficient with a new DeltaCoeficient. More...
 
DeltaCoefficientGetDeltaCoefficient ()
 Return the associated scalar DeltaCoefficient. More...
 
void SetDirection (const Vector &_d)
 
void GetDeltaCenter (Vector &center)
 
void EvalDelta (Vector &V, ElementTransformation &T, const IntegrationPoint &ip)
 Return the specified direction vector multiplied by the value returned by DeltaCoefficient::EvalDelta() of the associated scalar DeltaCoefficient. More...
 
virtual void Eval (Vector &V, ElementTransformation &T, const IntegrationPoint &ip)
 A VectorDeltaFunction cannot be evaluated. Calling this method will cause an MFEM error, terminating the application. More...
 
virtual ~VectorDeltaCoefficient ()
 
- 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)
 
virtual ~VectorCoefficient ()
 

Protected Attributes

Vector dir
 
DeltaCoefficient d
 
- Protected Attributes inherited from mfem::VectorCoefficient
int vdim
 
double time
 

Detailed Description

VectorDeltaCoefficient: DeltaCoefficient with a direction.

Definition at line 385 of file coefficient.hpp.

Constructor & Destructor Documentation

mfem::VectorDeltaCoefficient::VectorDeltaCoefficient ( int  _vdim)
inline

Definition at line 392 of file coefficient.hpp.

mfem::VectorDeltaCoefficient::VectorDeltaCoefficient ( const Vector _dir)
inline

Definition at line 394 of file coefficient.hpp.

mfem::VectorDeltaCoefficient::VectorDeltaCoefficient ( const Vector _dir,
double  x,
double  s 
)
inline

Definition at line 396 of file coefficient.hpp.

mfem::VectorDeltaCoefficient::VectorDeltaCoefficient ( const Vector _dir,
double  x,
double  y,
double  s 
)
inline

Definition at line 398 of file coefficient.hpp.

mfem::VectorDeltaCoefficient::VectorDeltaCoefficient ( const Vector _dir,
double  x,
double  y,
double  z,
double  s 
)
inline

Definition at line 400 of file coefficient.hpp.

virtual mfem::VectorDeltaCoefficient::~VectorDeltaCoefficient ( )
inlinevirtual

Definition at line 423 of file coefficient.hpp.

Member Function Documentation

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

A VectorDeltaFunction cannot be evaluated. Calling this method will cause an MFEM error, terminating the application.

Implements mfem::VectorCoefficient.

Definition at line 420 of file coefficient.hpp.

void mfem::VectorDeltaCoefficient::EvalDelta ( Vector V,
ElementTransformation T,
const IntegrationPoint ip 
)

Return the specified direction vector multiplied by the value returned by DeltaCoefficient::EvalDelta() of the associated scalar DeltaCoefficient.

Definition at line 179 of file coefficient.cpp.

void mfem::VectorDeltaCoefficient::GetDeltaCenter ( Vector center)
inline

Definition at line 412 of file coefficient.hpp.

DeltaCoefficient& mfem::VectorDeltaCoefficient::GetDeltaCoefficient ( )
inline

Return the associated scalar DeltaCoefficient.

Definition at line 409 of file coefficient.hpp.

void mfem::VectorDeltaCoefficient::SetDeltaCoefficient ( const DeltaCoefficient _d)
inline

Replace the associated DeltaCoeficient with a new DeltaCoeficient.

The new DeltaCoeficient cannot have a specified weight Coefficient, i.e. DeltaCoeficient::Weight() should return NULL.

Definition at line 407 of file coefficient.hpp.

void mfem::VectorDeltaCoefficient::SetDirection ( const Vector _d)

Definition at line 173 of file coefficient.cpp.

Member Data Documentation

DeltaCoefficient mfem::VectorDeltaCoefficient::d
protected

Definition at line 389 of file coefficient.hpp.

Vector mfem::VectorDeltaCoefficient::dir
protected

Definition at line 388 of file coefficient.hpp.


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