MFEM  v4.3.0 Finite element discretization library
mfem::VectorSumCoefficient Class Reference

Vector coefficient defined as the linear combination of two vectors. More...

#include <coefficient.hpp>

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

Public Member Functions

VectorSumCoefficient (int dim)

VectorSumCoefficient (VectorCoefficient &A, VectorCoefficient &B, double alpha_=1.0, double beta_=1.0)

VectorSumCoefficient (VectorCoefficient &A_, VectorCoefficient &B_, Coefficient &alpha_, Coefficient &beta_)

void SetACoef (VectorCoefficient &A)
Reset the first vector coefficient. More...

VectorCoefficientGetACoef () const
Return the first vector coefficient. More...

void SetBCoef (VectorCoefficient &B)
Reset the second vector coefficient. More...

VectorCoefficientGetBCoef () const
Return the second vector coefficient. More...

void SetAlphaCoef (Coefficient &A)
Reset the factor in front of the first vector coefficient. More...

CoefficientGetAlphaCoef () const
Return the factor in front of the first vector coefficient. More...

void SetBetaCoef (Coefficient &B)
Reset the factor in front of the second vector coefficient. More...

CoefficientGetBetaCoef () const
Return the factor in front of the second vector coefficient. More...

void SetA (const Vector &A_)
Reset the first vector as a constant. More...

const VectorGetA () const
Return the first vector constant. More...

void SetB (const Vector &B_)
Reset the second vector as a constant. More...

const VectorGetB () const
Return the second vector constant. More...

void SetAlpha (double alpha_)
Reset the factor in front of the first vector coefficient as a constant. More...

double GetAlpha () const
Return the factor in front of the first vector coefficient. More...

void SetBeta (double beta_)
Reset the factor in front of the second vector coefficient as a constant. More...

double GetBeta () const
Return the factor in front of the second vector coefficient. More...

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

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 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 inherited from mfem::VectorCoefficient
int vdim

double time

Detailed Description

Vector coefficient defined as the linear combination of two vectors.

Definition at line 1251 of file coefficient.hpp.

Constructor & Destructor Documentation

 mfem::VectorSumCoefficient::VectorSumCoefficient ( int dim )

Constructor with no coefficients. To be used with the various "Set" methods

Definition at line 507 of file coefficient.cpp.

 mfem::VectorSumCoefficient::VectorSumCoefficient ( VectorCoefficient & A, VectorCoefficient & B, double alpha_ = 1.0, double beta_ = 1.0 )

Constructor with two vector coefficients. Result is alpha_ * A + beta_ * B

Definition at line 517 of file coefficient.cpp.

 mfem::VectorSumCoefficient::VectorSumCoefficient ( VectorCoefficient & A_, VectorCoefficient & B_, Coefficient & alpha_, Coefficient & beta_ )

Constructor with scalar coefficients. Result is alpha_ * A_ + beta_ * B_

Definition at line 531 of file coefficient.cpp.

Member Function Documentation

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

Evaluate the coefficient at ip.

Implements mfem::VectorCoefficient.

Definition at line 548 of file coefficient.cpp.

 const Vector& mfem::VectorSumCoefficient::GetA ( ) const
inline

Return the first vector constant.

Definition at line 1306 of file coefficient.hpp.

 VectorCoefficient* mfem::VectorSumCoefficient::GetACoef ( ) const
inline

Return the first vector coefficient.

Definition at line 1286 of file coefficient.hpp.

 double mfem::VectorSumCoefficient::GetAlpha ( ) const
inline

Return the factor in front of the first vector coefficient.

Definition at line 1316 of file coefficient.hpp.

 Coefficient* mfem::VectorSumCoefficient::GetAlphaCoef ( ) const
inline

Return the factor in front of the first vector coefficient.

Definition at line 1296 of file coefficient.hpp.

 const Vector& mfem::VectorSumCoefficient::GetB ( ) const
inline

Return the second vector constant.

Definition at line 1311 of file coefficient.hpp.

 VectorCoefficient* mfem::VectorSumCoefficient::GetBCoef ( ) const
inline

Return the second vector coefficient.

Definition at line 1291 of file coefficient.hpp.

 double mfem::VectorSumCoefficient::GetBeta ( ) const
inline

Return the factor in front of the second vector coefficient.

Definition at line 1321 of file coefficient.hpp.

 Coefficient* mfem::VectorSumCoefficient::GetBetaCoef ( ) const
inline

Return the factor in front of the second vector coefficient.

Definition at line 1301 of file coefficient.hpp.

 void mfem::VectorSumCoefficient::SetA ( const Vector & A_ )
inline

Reset the first vector as a constant.

Definition at line 1304 of file coefficient.hpp.

 void mfem::VectorSumCoefficient::SetACoef ( VectorCoefficient & A )
inline

Reset the first vector coefficient.

Definition at line 1284 of file coefficient.hpp.

 void mfem::VectorSumCoefficient::SetAlpha ( double alpha_ )
inline

Reset the factor in front of the first vector coefficient as a constant.

Definition at line 1314 of file coefficient.hpp.

 void mfem::VectorSumCoefficient::SetAlphaCoef ( Coefficient & A )
inline

Reset the factor in front of the first vector coefficient.

Definition at line 1294 of file coefficient.hpp.

 void mfem::VectorSumCoefficient::SetB ( const Vector & B_ )
inline

Reset the second vector as a constant.

Definition at line 1309 of file coefficient.hpp.

 void mfem::VectorSumCoefficient::SetBCoef ( VectorCoefficient & B )
inline

Reset the second vector coefficient.

Definition at line 1289 of file coefficient.hpp.

 void mfem::VectorSumCoefficient::SetBeta ( double beta_ )
inline

Reset the factor in front of the second vector coefficient as a constant.

Definition at line 1319 of file coefficient.hpp.

 void mfem::VectorSumCoefficient::SetBetaCoef ( Coefficient & B )
inline

Reset the factor in front of the second vector coefficient.

Definition at line 1299 of file coefficient.hpp.

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