Go to www.awrcorp.com
Back to search page Click to download printable version of this guide.

3.11.5.4. Mesh Constraints

Description

A mesh constraint allows the control of the initial mesh on the body, face, or edge to which it is applied. To control the mesh on an entire solid, use the properties of that solid instead of a mesh constraint attribute; for further information, see “Solid Meshing Controls”. Global controls over the meshing process can be set through controls on the mesher itself; for more information, see “Initial Meshing”.

Simulator Applicability

All

Common Uses

 

Requirements

 

Limitations

 

Parameters

Label - A unique name that identifies the attribute. (IAttribute/Label)

Color - Color used on objects to which this attribute is applied. (IAttribute/Color)

Include in Simulation - If True, attribute is included in simulation. (IAttribute/Include)

Visible - If True, attribute is visible. (IAttribute/Visible)

Element Size/Type - Determines whether the mesh element size is defined as a global, a relative, or an absolute size. If set to global, the value in the simulation configuration is used. If set to relative or absolute, a marker is placed on the object to which the mesh constraint is applied. The size of the marker is scaled to the element size.(IMeshConstraint/SizeType)

Element Size/Absolute Size - [LENGTH] - Maximum element edge length. (IMeshConstraint/AbsoluteSize)

Element Size/Relative To – Determines what the relative size is in relation to. "Geometric Entity" implies relative to the bounding box of the geometric entity. "Global (Simulator Settings)" implies relative to the global element size specified in the simulation settings. (IMeshConstraint/SizeRelativeType)

Element Size/Relative Size – Maximum element edge length defined relative to the diagonal of the bounding box enclosing the bodies/faces/edges to which the attribute is applied. (IMeshConstraint/RelativeSize)

Curvature Refinement/Level Type – Controls the accuracy with which the mesh represents curved bodies/faces/edges the attribute is applied to. If set to global, the level parameter is used, otherwise the value in the simulation configuration is used. (IMeshConstraint/CurvatureRefinementLevelType)

Curvature Refinement/Level – Controls the accuracy with which the mesh represents curved bodies/faces/edges to which the attribute is applied. Valid values are between 0.0 and 0.5, with smaller values more accurately representing curved faces and edges. (IMeshConstraint/CurvatureRefinementLevel)

Curvature Refinement/Minimum Size Type – If set to global, the minimum size parameter is used, otherwise the value in the simulation configuration is used. (IMeshConstraint/MinCurveSizeType)

Curvature Refinement/Minimum Size – Defines a floor for the smallest element to be produced by the curvature refinement level. The value is relative to the maximum element size. (IMeshConstraint/RelativeMinCurveSize)

Anisotropic Scaling Factor – Scales the constrained element anisotropically in any combination of X, Y, and Z directions. The default upper/lower bounds are 5/1 for the anisotropic aspect ratio. If one or two vectors defining the size are more than five times longer than the shortest vector, they are scaled back so they are only five times longer. (IMeshConstraintSpec/AnisoScaleFactor)

Icon

Example Creation Script

MeshConstraint_2 = AttributeSet_1.NewMeshConstraint("MeshConstraint", "Mesh Constraint_1")

Scripting Interfaces

“IMeshConstraint”
“IMeshConstraintSpec”
“IAttribute”

Please send email to awr.support@ni.com if you would like to provide feedback on this article. Please make sure to include the article link in the email.

Legal and Trademark Notice