MeshCurvilinearSegment

A curvilinear segment in 3D space. Exists as part of a mesh.

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]    
    curvilinearSegments = curvilinearSegmentWires.CurvilinearSegments   
    
    for j = 1,curvilinearSegments.Count do
    
        -- Obtain the 'MeshCurvilinearSegment' and set its radius to 0.1
        
        meshCurvilinearSegment = curvilinearSegments[j]
        meshCurvilinearSegment.Radius = 0.1
    end
end

Inheritance

The MeshCurvilinearSegment object is derived from the MeshElement object.

Property List

Radius
The segment radius. (Read/Write number)
Type
The object type string. (Read only string)
Vertices
Returns a list of the curvilinear segment's vertices. The first two are the vertices at the segment end points and the third is the midpoint vertex. (Read only List of MeshVertex)

Method List

Delete ()
Deletes the mesh element.

Property Details

Radius
The segment radius.
Type
number
Access
Read/Write
Type
The object type string.
Type
string
Access
Read only
Vertices
Returns a list of the curvilinear segment's vertices. The first two are the vertices at the segment end points and the third is the midpoint vertex.
Access
Read only

Method Details

Delete ()
Deletes the mesh element.