MFEM
v4.2.0
Finite element discretization library

Base class Coefficients that optionally depend on space and time. These are used by the BilinearFormIntegrator, LinearFormIntegrator, and NonlinearFormIntegrator classes to represent the physical coefficients in the PDEs that are being discretized. This class can also be used in a more general way to represent functions that don't necessarily belong to a FE space, e.g., to project onto GridFunctions to use as initial conditions, exact solutions, etc. See, e.g., ex4 or ex22 for these uses. More...
#include <coefficient.hpp>
Public Member Functions  
Coefficient ()  
void  SetTime (double t) 
Set the time for time dependent coefficients. More...  
double  GetTime () 
Get the time for time dependent coefficients. More...  
virtual double  Eval (ElementTransformation &T, const IntegrationPoint &ip)=0 
Evaluate the coefficient in the element described by T at the point ip. More...  
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 () 
Protected Attributes  
double  time 
Base class Coefficients that optionally depend on space and time. These are used by the BilinearFormIntegrator, LinearFormIntegrator, and NonlinearFormIntegrator classes to represent the physical coefficients in the PDEs that are being discretized. This class can also be used in a more general way to represent functions that don't necessarily belong to a FE space, e.g., to project onto GridFunctions to use as initial conditions, exact solutions, etc. See, e.g., ex4 or ex22 for these uses.
Definition at line 39 of file coefficient.hpp.

inline 
Definition at line 45 of file coefficient.hpp.

inlinevirtual 
Definition at line 73 of file coefficient.hpp.

pure virtual 
Evaluate the coefficient in the element described by T at the point ip.
Implemented in mfem::QuadratureFunctionCoefficient, mfem::DeterminantCoefficient, mfem::VectorRotProductCoefficient, mfem::InnerProductCoefficient, mfem::PowerCoefficient, mfem::RatioCoefficient, mfem::ProductCoefficient, mfem::SumCoefficient, mfem::ExtrudeCoefficient, mfem::DivergenceGridFunctionCoefficient, mfem::RestrictedCoefficient, mfem::DeltaCoefficient, mfem::electromagnetics::JouleHeatingCoefficient, mfem::TransformedCoefficient, mfem::GridFunctionCoefficient, mfem::FunctionCoefficient, mfem::PWConstCoefficient, mfem::ConstantCoefficient, mfem::electromagnetics::ScaledGFCoefficient, and mfem::electromagnetics::MeshDependentCoefficient.

inline 
Evaluate the coefficient in the element described by T at the point ip at time t.
Definition at line 66 of file coefficient.hpp.

inline 
Get the time for time dependent coefficients.
Definition at line 51 of file coefficient.hpp.

inline 
Set the time for time dependent coefficients.
Definition at line 48 of file coefficient.hpp.

protected 
Definition at line 42 of file coefficient.hpp.