Hide Table of Contents
GetPoorMeshQualityElementList2 Method (ICWMesh)

Gets the Mesh Quality Diagnostics element list.

.NET Syntax

Visual Basic (Declaration) 
Function GetPoorMeshQualityElementList2( _
   ByVal NMeshQualityKPI As System.Integer, _
   ByVal DLimitVal As System.Double, _
   ByVal NJacobianPts As System.Integer, _
   ByVal BCreateplot As System.Boolean, _
   ByRef VarElementIDs As System.Object, _
   ByRef ErrorCode As System.Integer _
) As System.Integer
Visual Basic (Usage) 
Dim instance As ICWMesh
Dim NMeshQualityKPI As System.Integer
Dim DLimitVal As System.Double
Dim NJacobianPts As System.Integer
Dim BCreateplot As System.Boolean
Dim VarElementIDs As System.Object
Dim ErrorCode As System.Integer
Dim value As System.Integer
 
value = instance.GetPoorMeshQualityElementList2(NMeshQualityKPI, DLimitVal, NJacobianPts, BCreateplot, VarElementIDs, ErrorCode)
C# 
System.int GetPoorMeshQualityElementList2( 
   System.int NMeshQualityKPI,
   System.double DLimitVal,
   System.int NJacobianPts,
   System.bool BCreateplot,
   out System.object VarElementIDs,
   out System.int ErrorCode
)
C++/CLI 
System.int GetPoorMeshQualityElementList2( 
&   System.int NMeshQualityKPI,
&   System.double DLimitVal,
&   System.int NJacobianPts,
&   System.bool BCreateplot,
&   [Out] System.Object^ VarElementIDs,
&   [Out] System.int ErrorCode
) 

Parameters

NMeshQualityKPI
Mesh element quality criterion as defined in swsMeshElementQualityKPI_e (see Remarks)
DLimitVal
Upper or lower limit of NMeshQualityKPI, beyond which the mesh becomes poor quality (see Remarks)
NJacobianPts
Jacobian points criterion (see Remarks)
BCreateplot
-1 or true to create a plot, 0 or false to not
VarElementIDs
Array of element IDs
ErrorCode
Error code as defined by swsMeshKPIErrCode_e

Return Value

Number of elements in VarElementIDs

Remarks

This method:

  • Corresponds to the Mesh Quality Diagnostics tool in SOLIDWORKS Simulation. Access the Mesh Quality Diagnostics PropertyManager in a SOLIDWORKS Simulation study by right-clicking Mesh in the study's FeatureManager design tree and selecting Mesh Quality Diagnostics.
  • Retrieves the IDs of elements satisfying the criterion specified by NMeshQualityKPI, DLimitVal, and NJacobianPts if valid.

If NMeshQualityKPI is swsMeshElementQualityKPI_e.swsMeshElementQualityKPI_:

  • Volume or Area, then mesh has poor quality if less than DLimitVal; use NJacobianPts to specify the Jacobian points criterion.
  • AspectRatio or JacobianRatio or ElemSkewRatio, then mesh has poor quality if greater than DLimitVal. NJacobianPts is ignored.
  • JacobianRatio, then mesh has poor quality if greater than DLimitVal; use NJacobianPts to specify the Jacobian points criterion.

Possible values for NJacobianPts:

  • 4  = Number of points inside the element tetrahedron near its vertices
  • 16 = Number of points inside the element tetrahedron
  • 29 = Number of points inside the element tetrahedron (same as 16 but calculates a more precise Jacobian ratio)
  • 10 = At nodes;  Number of points = 4 vertices + 6 midpoints on 6 edges of the element tetrahedron

For more information, read the Simulation > Meshing > Mesh Quality Checks > Defining a Mesh Quality Plot topic in the SOLIDWORKS Help.

 

See Also

Availability

SOLIDWORKS 2022 FCS, Revision Number 30


Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   GetPoorMeshQualityElementList2 Method (ICWMesh)
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:

x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2022 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.