MFEM  v4.6.0
Finite element discretization library
Public Member Functions | Protected Attributes | List of all members
mfem::SIMPInterpolationCoefficient Class Reference

Solid isotropic material penalization (SIMP) coefficient. More...

#include <ex37.hpp>

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

Public Member Functions

 SIMPInterpolationCoefficient (GridFunction *rho_filter_, double min_val_=1e-6, double max_val_=1.0, double exponent_=3)
 
virtual double Eval (ElementTransformation &T, const IntegrationPoint &ip)
 Evaluate the coefficient in the element described by T at the point ip. More...
 
- Public Member Functions inherited from mfem::Coefficient
 Coefficient ()
 
virtual void SetTime (double t)
 Set the time for time dependent coefficients. More...
 
double GetTime ()
 Get the time for time dependent coefficients. 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 void Project (QuadratureFunction &qf)
 Fill the QuadratureFunction qf by evaluating the coefficient at the quadrature points. More...
 
virtual ~Coefficient ()
 

Protected Attributes

GridFunctionrho_filter
 
double min_val
 
double max_val
 
double exponent
 
- Protected Attributes inherited from mfem::Coefficient
double time
 

Detailed Description

Solid isotropic material penalization (SIMP) coefficient.

Definition at line 97 of file ex37.hpp.

Constructor & Destructor Documentation

◆ SIMPInterpolationCoefficient()

mfem::SIMPInterpolationCoefficient::SIMPInterpolationCoefficient ( GridFunction rho_filter_,
double  min_val_ = 1e-6,
double  max_val_ = 1.0,
double  exponent_ = 3 
)
inline

Definition at line 106 of file ex37.hpp.

Member Function Documentation

◆ Eval()

virtual double mfem::SIMPInterpolationCoefficient::Eval ( ElementTransformation T,
const IntegrationPoint ip 
)
inlinevirtual

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 111 of file ex37.hpp.

Member Data Documentation

◆ exponent

double mfem::SIMPInterpolationCoefficient::exponent
protected

Definition at line 103 of file ex37.hpp.

◆ max_val

double mfem::SIMPInterpolationCoefficient::max_val
protected

Definition at line 102 of file ex37.hpp.

◆ min_val

double mfem::SIMPInterpolationCoefficient::min_val
protected

Definition at line 101 of file ex37.hpp.

◆ rho_filter

GridFunction* mfem::SIMPInterpolationCoefficient::rho_filter
protected

Definition at line 100 of file ex37.hpp.


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