MFEM  v4.1.0
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | List of all members
mfem::OuterProductCoefficient Class Reference

Matrix coefficient defined as the outer product of two vectors. More...

#include <coefficient.hpp>

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

Public Member Functions

 OuterProductCoefficient (VectorCoefficient &A, VectorCoefficient &B)
 
virtual void Eval (DenseMatrix &M, ElementTransformation &T, const IntegrationPoint &ip)
 Evaluate the matrix coefficient in the element described by T at the point ip, storing the result in K. More...
 
- Public Member Functions inherited from mfem::MatrixCoefficient
 MatrixCoefficient (int dim)
 
 MatrixCoefficient (int h, int w)
 
void SetTime (double t)
 
double GetTime ()
 
int GetHeight () const
 
int GetWidth () const
 
int GetVDim () const
 
virtual ~MatrixCoefficient ()
 

Additional Inherited Members

- Protected Attributes inherited from mfem::MatrixCoefficient
int height
 
int width
 
double time
 

Detailed Description

Matrix coefficient defined as the outer product of two vectors.

Definition at line 933 of file coefficient.hpp.

Constructor & Destructor Documentation

mfem::OuterProductCoefficient::OuterProductCoefficient ( VectorCoefficient A,
VectorCoefficient B 
)

Definition at line 563 of file coefficient.cpp.

Member Function Documentation

void mfem::OuterProductCoefficient::Eval ( DenseMatrix K,
ElementTransformation T,
const IntegrationPoint ip 
)
virtual

Evaluate the matrix coefficient in the element described by T at the point ip, storing the result in K.

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

Definition at line 569 of file coefficient.cpp.


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