MFEM
v4.5.2
Finite element discretization library

#include <tmop.hpp>
Public Member Functions  
virtual void  AddQualityMetric (TMOP_QualityMetric *tq, double wt=1.0) 
virtual void  SetTargetJacobian (const DenseMatrix &Jtr_) 
Specify the referenceelement > targetelement Jacobian matrix for the point of interest. More...  
virtual double  EvalWMatrixForm (const DenseMatrix &Jpt) const 
Evaluates the metric in matrix form (opposed to invariant form). Used for validating the invariant evaluations. More...  
virtual double  EvalW (const DenseMatrix &Jpt) const 
Evaluate the strain energy density function, W = W(Jpt), by using the 2D or 3D matrix invariants, see linalg/invariants.hpp. More...  
virtual void  EvalP (const DenseMatrix &Jpt, DenseMatrix &P) const 
Evaluate the 1st PiolaKirchhoff stress tensor, P = P(Jpt). More...  
virtual void  AssembleH (const DenseMatrix &Jpt, const DenseMatrix &DS, const double weight, DenseMatrix &A) const 
Evaluate the derivative of the 1st PiolaKirchhoff stress tensor and assemble its contribution to the local gradient matrix 'A'. More...  
void  ComputeAvgMetrics (const GridFunction &nodes, const TargetConstructor &tc, Vector &averages) const 
void  ComputeBalancedWeights (const GridFunction &nodes, const TargetConstructor &tc, Vector &weights) const 
void  SetWeights (const Vector &weights) 
Changes the weights of the metrics in the combination. More...  
Public Member Functions inherited from mfem::TMOP_QualityMetric  
TMOP_QualityMetric ()  
virtual  ~TMOP_QualityMetric () 
virtual int  Id () const 
Return the metric ID. More...  
Public Member Functions inherited from mfem::HyperelasticModel  
HyperelasticModel ()  
virtual  ~HyperelasticModel () 
void  SetTransformation (ElementTransformation &Ttr_) 
Protected Attributes  
Array< TMOP_QualityMetric * >  tmop_q_arr 
Array< double >  wt_arr 
Protected Attributes inherited from mfem::TMOP_QualityMetric  
const DenseMatrix *  Jtr 
Protected Attributes inherited from mfem::HyperelasticModel  
ElementTransformation *  Ttr 
Additional Inherited Members  
Protected Member Functions inherited from mfem::TMOP_QualityMetric  
void  SetTransformation (ElementTransformation &) 
The method HyperelasticModel::SetTransformation() is hidden for TMOP_QualityMetrics, because it is not used. More...  
Abstract class used to define explicit combination of metrics with constant coefficients.

inlinevirtual 

virtual 
Evaluate the derivative of the 1st PiolaKirchhoff stress tensor and assemble its contribution to the local gradient matrix 'A'.
[in]  Jpt  Represents the target>physical transformation Jacobian matrix. 
[in]  DS  Gradient of the basis matrix (dof x dim). 
[in]  weight  Quadrature weight coefficient for the point. 
[in,out]  A  Local gradient matrix where the contribution from this point will be added. 
Computes weight * d(dW_dxi)_d(xj) at the current point, for all i and j, where x1 ... xn are the FE dofs. This function is usually defined using the matrix invariants and their derivatives.
Implements mfem::TMOP_QualityMetric.
void mfem::TMOP_Combo_QualityMetric::ComputeAvgMetrics  (  const GridFunction &  nodes, 
const TargetConstructor &  tc,  
Vector &  averages  
)  const 
Computes the averages of all metrics (integral of metric / volume). Works in parallel when called with a ParGridFunction.
void mfem::TMOP_Combo_QualityMetric::ComputeBalancedWeights  (  const GridFunction &  nodes, 
const TargetConstructor &  tc,  
Vector &  weights  
)  const 
Computes weights so that the averages of all metrics are equal, and the weights sum to one. Works in parallel when called with a ParGridFunction.

virtual 
Evaluate the 1st PiolaKirchhoff stress tensor, P = P(Jpt).
[in]  Jpt  Represents the target>physical transformation Jacobian matrix. 
[out]  P  The evaluated 1st PiolaKirchhoff stress tensor. 
Implements mfem::TMOP_QualityMetric.

virtual 
Evaluate the strain energy density function, W = W(Jpt), by using the 2D or 3D matrix invariants, see linalg/invariants.hpp.
[in]  Jpt  Represents the target>physical transformation Jacobian matrix. 
Implements mfem::TMOP_QualityMetric.

virtual 
Evaluates the metric in matrix form (opposed to invariant form). Used for validating the invariant evaluations.
Reimplemented from mfem::TMOP_QualityMetric.

inlinevirtual 
Specify the referenceelement > targetelement Jacobian matrix for the point of interest.
The specified Jacobian matrix, Jtr, can be used by metrics that cannot be written just as a function of the target>physical Jacobian matrix, Jpt.
Reimplemented from mfem::TMOP_QualityMetric.

inline 

protected 

protected 