MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
mfem::electromagnetics::MeshDependentCoefficient Class Reference

#include <joule_solver.hpp>

Inheritance diagram for mfem::electromagnetics::MeshDependentCoefficient:
[legend]
Collaboration diagram for mfem::electromagnetics::MeshDependentCoefficient:
[legend]

Public Member Functions

 MeshDependentCoefficient (const std::map< int, real_t > &inputMap, real_t scale=1.0)
 
 MeshDependentCoefficient (const MeshDependentCoefficient &cloneMe)
 
virtual real_t Eval (ElementTransformation &T, const IntegrationPoint &ip)
 Evaluate the coefficient in the element described by T at the point ip.
 
void SetScaleFactor (const real_t &scale)
 
virtual ~MeshDependentCoefficient ()
 
- Public Member Functions inherited from mfem::Coefficient
 Coefficient ()
 
virtual void SetTime (real_t t)
 Set the time for time dependent coefficients.
 
real_t GetTime ()
 Get the time for time dependent coefficients.
 
real_t Eval (ElementTransformation &T, const IntegrationPoint &ip, real_t t)
 Evaluate the coefficient in the element described by T at the point ip at time t.
 
virtual void Project (QuadratureFunction &qf)
 Fill the QuadratureFunction qf by evaluating the coefficient at the quadrature points.
 
virtual ~Coefficient ()
 

Additional Inherited Members

- Protected Attributes inherited from mfem::Coefficient
real_t time
 

Detailed Description

Definition at line 47 of file joule_solver.hpp.

Constructor & Destructor Documentation

◆ MeshDependentCoefficient() [1/2]

mfem::electromagnetics::MeshDependentCoefficient::MeshDependentCoefficient ( const std::map< int, real_t > & inputMap,
real_t scale = 1.0 )

Definition at line 908 of file joule_solver.cpp.

◆ MeshDependentCoefficient() [2/2]

mfem::electromagnetics::MeshDependentCoefficient::MeshDependentCoefficient ( const MeshDependentCoefficient & cloneMe)

Definition at line 917 of file joule_solver.cpp.

◆ ~MeshDependentCoefficient()

virtual mfem::electromagnetics::MeshDependentCoefficient::~MeshDependentCoefficient ( )
inlinevirtual

Definition at line 58 of file joule_solver.hpp.

Member Function Documentation

◆ Eval()

real_t mfem::electromagnetics::MeshDependentCoefficient::Eval ( ElementTransformation & T,
const IntegrationPoint & ip )
virtual

Evaluate the coefficient in the element described by T at the point ip.

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

Definition at line 926 of file joule_solver.cpp.

◆ SetScaleFactor()

void mfem::electromagnetics::MeshDependentCoefficient::SetScaleFactor ( const real_t & scale)
inline

Definition at line 57 of file joule_solver.hpp.


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