MeshCurvilinearSegments

The list of curvilinear mesh segments.

Example

app = cf.GetApplication()
project = app:NewProject()

    -- Settings for curvilinear meshing

project.SolutionSettings.SolverSettings.GeneralSettings.BasisFunctionSettings.HOBFEnabled = true    
project.Mesher.Settings.WireRadius = "0.01"    
advancedMeshSettings = project.Mesher.Settings.Advanced
advancedMeshSettings.CurvilinearSegments = cf.Enums.MeshCurvilinearOptionsEnum.Enabled
advancedMeshSettings.CurvilinearTriangles = cf.Enums.MeshCurvilinearOptionsEnum.Disabled

frequency = project.SolutionConfigurations[1].Frequency
frequency.Start = "1e08"

    -- Create geometry and mesh

project.Geometry:AddHelix(cf.Point(0,0,0), 0.1, 0.1, 1.0, 5.0, false)

project.Mesher:Mesh()
project.Geometry["Helix1"]:UnlinkMesh()

meshCurvilinearSegmentWires = project.Meshes["Helix1_1"].CurvilinearSegmentWires

for i in ipairs(meshCurvilinearSegmentWires) do   
    curvilinearSegmentWires = meshCurvilinearSegmentWires[i]    
    
    -- Obtain the 'MeshCurvilinearSegments'
    
    meshCurvilinearSegments = curvilinearSegmentWires.CurvilinearSegments
    
    -- Print the number of curvilinear segments
    
    meshCurvilinearSegmentsCount = meshCurvilinearSegments.Count
end

Usage locations (object properties)

The following objects have properties using the MeshCurvilinearSegments object:

Property List

Count
The number of curvilinear segments in the mesh entity. (Read only number)
Type
The object type string. (Read only string)

Method List

ClosestVertexTo (point Point)
Gets the closest vertex, of the mesh element to the given point. (Returns a MeshVertex object.)

Index List

[number]
Returns the CurvilinearSegment at the given index. (Read MeshCurvilinearSegment)

Property Details

Count
The number of curvilinear segments in the mesh entity.
Type
number
Access
Read only
Type
The object type string.
Type
string
Access
Read only

Method Details

ClosestVertexTo (point Point)
Gets the closest vertex, of the mesh element to the given point.
Input Parameters
point(Point)
The point to query against.
Return
MeshVertex
The closest vertex of the element to the point.