MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
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_, real_t min_val_=1e-6, real_t max_val_=1.0, real_t exponent_=3)
 
virtual real_t Eval (ElementTransformation &T, const IntegrationPoint &ip)
 Evaluate the coefficient in the element described by T at the point ip.
 
- 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.
 
virtual real_t Eval (ElementTransformation &T, const IntegrationPoint &ip)=0
 Evaluate the coefficient in the element described by T at the point ip.
 
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 ()
 

Protected Attributes

GridFunctionrho_filter
 
real_t min_val
 
real_t max_val
 
real_t exponent
 
- Protected Attributes inherited from mfem::Coefficient
real_t 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_,
real_t  min_val_ = 1e-6,
real_t  max_val_ = 1.0,
real_t  exponent_ = 3 
)
inline

Definition at line 106 of file ex37.hpp.

Member Function Documentation

◆ Eval()

virtual real_t 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

real_t mfem::SIMPInterpolationCoefficient::exponent
protected

Definition at line 103 of file ex37.hpp.

◆ max_val

real_t mfem::SIMPInterpolationCoefficient::max_val
protected

Definition at line 102 of file ex37.hpp.

◆ min_val

real_t 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: