MFEM
v4.0
Finite element discretization library
|
class for piecewise constant coefficient More...
#include <coefficient.hpp>
Public Member Functions | |
PWConstCoefficient (int NumOfSubD=0) | |
Constructs a piecewise constant coefficient in NumOfSubD subdomains. More... | |
PWConstCoefficient (Vector &c) | |
void | UpdateConstants (Vector &c) |
Update constants. More... | |
double & | operator() (int i) |
Member function to access or modify the value of the i-th constant. More... | |
void | operator= (double c) |
Set domain constants equal to the same constant c. More... | |
int | GetNConst () |
Returns the number of constants. More... | |
virtual double | Eval (ElementTransformation &T, const IntegrationPoint &ip) |
Evaluate the coefficient function. More... | |
Public Member Functions inherited from mfem::Coefficient | |
Coefficient () | |
void | SetTime (double t) |
double | GetTime () |
double | Eval (ElementTransformation &T, const IntegrationPoint &ip, double t) |
Evaluate the coefficient in the element described by T at the point ip at time t. More... | |
virtual | ~Coefficient () |
Additional Inherited Members | |
Protected Attributes inherited from mfem::Coefficient | |
double | time |
class for piecewise constant coefficient
Definition at line 82 of file coefficient.hpp.
|
inlineexplicit |
Constructs a piecewise constant coefficient in NumOfSubD subdomains.
Definition at line 90 of file coefficient.hpp.
|
inline |
c should be a vector defined by attributes, so for region with attribute i c[i] is the coefficient in that region
Definition at line 95 of file coefficient.hpp.
|
virtual |
Evaluate the coefficient function.
Implements mfem::Coefficient.
Definition at line 24 of file coefficient.cpp.
|
inline |
Returns the number of constants.
Definition at line 108 of file coefficient.hpp.
|
inline |
Member function to access or modify the value of the i-th constant.
Definition at line 102 of file coefficient.hpp.
|
inline |
Set domain constants equal to the same constant c.
Definition at line 105 of file coefficient.hpp.
|
inline |
Update constants.
Definition at line 99 of file coefficient.hpp.