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
Method List
- Delete ()
- Deletes the mesh element.
Property Details
Method Details
- Delete ()
- Deletes the mesh element.