MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
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_, real_t rho_min_=1e-6, real_t exponent_=3.0)
 
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.
 
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

Coefficientlambda =nullptr
 
Coefficientmu =nullptr
 
GridFunctionu = nullptr
 
GridFunctionrho_filter = nullptr
 
DenseMatrix grad
 
real_t exponent
 
real_t rho_min
 
- Protected Attributes inherited from mfem::Coefficient
real_t 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_,
real_t rho_min_ = 1e-6,
real_t exponent_ = 3.0 )
inline

Definition at line 133 of file ex37.hpp.

Member Function Documentation

◆ Eval()

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

real_t 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

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