MeshSettings

The model mesher.

Example

application = cf.Application.getInstance()
project = application:NewProject()

    -- Set the frequency

project.Contents.SolutionConfigurations.GlobalFrequency.Start = "1e08"

    -- Create geometry

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

    -- Set the wire radius on the 'MeshSettings'

project.Mesher.Settings.WireRadius = "0.01"

    -- Mesh

project.Mesher:Mesh()

Inheritance

The MeshSettings object is derived from the Object object.

The following objects are derived (specialisations) from the MeshSettings object:

Usage locations

The MeshSettings object can be accessed from the following locations:

Property List

Advanced
Advanced meshing settings. (Read/Write MeshAdvancedSettings)
Label
The object label. (Read/Write string)
MeshSizeOption
Mesh size option. (Read/Write MeshSizeOptionEnum)
TetrahedronEdgeLength
Mesh tetrahedron edge length. Only applied if MeshSizeOption is Custom and there is at least one volume in the model. (Read/Write ParametricExpression)
TriangleEdgeLength
Mesh triangle edge length. Only applied if MeshSizeOption is Custom and there is at least one surface in the model. (Read/Write ParametricExpression)
Type
The object type string. (Read only string)
WireRadius
Mesh wire segment radius. Only applied if there is at least one wire in the model. (Read/Write ParametricExpression)
WireSegmentLength
Mesh wire segment length. Only applied if MeshSizeOption is Custom and there is at least one wire in the model. (Read/Write ParametricExpression)

Method List

Delete ()
Deletes the entity.
Duplicate ()
Duplicates the entity. (Returns a Object object.)
GetProperties ()
Returns a table of properties representing the state of the object. The properties table can be used with the SetProperties method to change multiple properties of the object in one step. (Returns a table object.)
SetProperties (properties Object)
Modifies the state of the object using the provided table of properties. This method is used to modify multiple properties of the object in a single step.

Static Function List

GetDefaultProperties ()
Creates a table containing the default settings to create an object. (Returns a table object.)

Property Details

Advanced
Advanced meshing settings.
Type
MeshAdvancedSettings
Access
Read/Write
Label
The object label.
Type
string
Access
Read/Write
MeshSizeOption
Mesh size option.
Type
MeshSizeOptionEnum
Access
Read/Write
TetrahedronEdgeLength
Mesh tetrahedron edge length. Only applied if MeshSizeOption is Custom and there is at least one volume in the model.
Type
ParametricExpression
Access
Read/Write
TriangleEdgeLength
Mesh triangle edge length. Only applied if MeshSizeOption is Custom and there is at least one surface in the model.
Type
ParametricExpression
Access
Read/Write
Type
The object type string.
Type
string
Access
Read only
WireRadius
Mesh wire segment radius. Only applied if there is at least one wire in the model.
Type
ParametricExpression
Access
Read/Write
WireSegmentLength
Mesh wire segment length. Only applied if MeshSizeOption is Custom and there is at least one wire in the model.
Type
ParametricExpression
Access
Read/Write

Method Details

Delete ()
Deletes the entity.
Duplicate ()
Duplicates the entity.
Return
Object
The new (duplicated) entity.
GetProperties ()
Returns a table of properties representing the state of the object. The properties table can be used with the SetProperties method to change multiple properties of the object in one step.
Return
table
A table defining the properties.
SetProperties (properties Object)
Modifies the state of the object using the provided table of properties. This method is used to modify multiple properties of the object in a single step.
Input Parameters
properties(Object)
A table of properties defining the new state of the object.

Static Function Details

GetDefaultProperties ()
Creates a table containing the default settings to create an object.
Return
table
A table containing the default properties.