MeshCylinder

A cylinder in 3D space. A geometry cylinder's mesh equivalent that can be directly interpreted by the solver (e.g. using the UTD solution method).

Example

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

    -- Settings for normal meshing

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

    -- Create geometry, set the solution method and mesh
    
cylinder = project.Geometry:AddCylinder(cf.Point(-0.25,-0.25,0), 0.5, 1.0)
cylinder.Regions["Region1"].SolutionMethod = cf.Enums.RegionSolutionMethodEnum.UTD
project.Mesher:Mesh()
project.Geometry["Cylinder1"]:UnlinkMesh()

unmeshedCylinderRegions = project.Meshes["Cylinder1_1"].UnmeshedCylinderRegions

for i in ipairs(unmeshedCylinderRegions) do  
    unmeshedCylinderRegion = unmeshedCylinderRegions[i]   
    unmeshedCylinders = unmeshedCylinderRegion.Cylinders
    
    for j = 1,unmeshedCylinders.Count do
    
        -- Obtain a handle to the 'MeshCylinder' and read the top and bottom vertices
        
        meshCylinder = unmeshedCylinders[j]    
        top = meshCylinder.Vertices[1]
        bottom = meshCylinder.Vertices[2]
    end
end

Inheritance

The MeshCylinder object is derived from the MeshElement object.

Property List

Type
The object type string. (Read only string)
Vertices
Returns a list of the two vertices defining a line down the centre of the cylinder. (Read only List of MeshVertex)

Method List

Delete ()
Deletes the mesh element.

Property Details

Type
The object type string.
Type
string
Access
Read only
Vertices
Returns a list of the two vertices defining a line down the centre of the cylinder.
Access
Read only

Method Details

Delete ()
Deletes the mesh element.