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

Strain energy density coefficient. More...

#include <ex37.hpp>

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

Public Member Functions

 StrainEnergyDensityCoefficient (Coefficient *lambda_, Coefficient *mu_, GridFunction *u_, GridFunction *rho_filter_, double rho_min_=1e-6, double exponent_=3.0)
 
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

Coefficientlambda =nullptr
 
Coefficientmu =nullptr
 
GridFunctionu = nullptr
 
GridFunctionrho_filter = nullptr
 
DenseMatrix grad
 
double exponent
 
double rho_min
 
- Protected Attributes inherited from mfem::Coefficient
double time
 

Detailed Description

Strain energy density coefficient.

Definition at line 121 of file ex37.hpp.

Constructor & Destructor Documentation

◆ StrainEnergyDensityCoefficient()

mfem::StrainEnergyDensityCoefficient::StrainEnergyDensityCoefficient ( Coefficient lambda_,
Coefficient mu_,
GridFunction u_,
GridFunction rho_filter_,
double  rho_min_ = 1e-6,
double  exponent_ = 3.0 
)
inline

Definition at line 133 of file ex37.hpp.

Member Function Documentation

◆ Eval()

virtual double mfem::StrainEnergyDensityCoefficient::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 145 of file ex37.hpp.

Member Data Documentation

◆ exponent

double mfem::StrainEnergyDensityCoefficient::exponent
protected

Definition at line 129 of file ex37.hpp.

◆ grad

DenseMatrix mfem::StrainEnergyDensityCoefficient::grad
protected

Definition at line 128 of file ex37.hpp.

◆ lambda

Coefficient* mfem::StrainEnergyDensityCoefficient::lambda =nullptr
protected

Definition at line 124 of file ex37.hpp.

◆ mu

Coefficient* mfem::StrainEnergyDensityCoefficient::mu =nullptr
protected

Definition at line 125 of file ex37.hpp.

◆ rho_filter

GridFunction* mfem::StrainEnergyDensityCoefficient::rho_filter = nullptr
protected

Definition at line 127 of file ex37.hpp.

◆ rho_min

double mfem::StrainEnergyDensityCoefficient::rho_min
protected

Definition at line 130 of file ex37.hpp.

◆ u

GridFunction* mfem::StrainEnergyDensityCoefficient::u = nullptr
protected

Definition at line 126 of file ex37.hpp.


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