TetGenOptions(global_edge_size=None, surface_mesh_flag=None,
volume_mesh_flag=None)
The TetGenOptions class stores parameter values used to control how
TetGen generates a finite element mesh.
Example: Create a TetGen options object with default parameter values
options = sv.meshing.TetGenOptions()
Args:
global_edge_size (Optional[float]): The maxium length of an element
edge.
surface_mesh_flag (Optional[bool]): If True then perform surface
remeshing.
volume_mesh_flag (Optional[bool]): If True then generate a volume mesh.
get_values()
Get the names and values of TetGen mesh generation options.
Returns (dict): A dict containing options as name/value pairs.
local_edge_size(face_id, size)
Create a value for the local_edge_size option.
Args:
face_id (int): The ID of the face to set the edge size for.
size (float): The edge size for the face.
sphere_refinement(edge_size, radius, center)
Create a sphere refinement value.
Args:
edge_size (float): The edge size.
radius: (float): The sphere radius.
center: (list[float,float,float]): The sphere center.
allow_multiple_regions
Type: bool
Default: False
If True then allow for multiple unconnected regions.
boundary_layer_inside
Type: bool
Default: True
If True then place the boundary layer inside the solid model surface.
This is used for creating a boundary layer for CFD.
global_edge_size
Type: float
Default: 0.1
The maxium length of an element edge.
local_edge_size_on
Type: bool
Default: False
If True then enable using local edge sizes for meshing.
no_bisect
Type: bool
Default: True
If True then use the solid model surface mesh for the volume mesh.
no_merge
Type: bool
Default: True
If True then do not merge coplanar faces.
optimization
Type: int
Default: 3
The number of times to optimize the mesh. Optimization moves nodes to
obtain a better quality mesh.
quality_ratio
Type: float
Default: 1.4
he quality measure for the mesh. This number corresponds to the ratio
between the radius of the circumsphere of an element and the maximum
edge size.
radius_meshing_compute_centerlines
Type: bool
Default: False
If True then enable computing centerlines for radius-based meshing.
radius_meshing_on
Type: bool
Default: False
If True then enable radius-based meshing.
sphere_refinement_on
Type: bool
Default: False
If True then enable sphere refinement meshing.
surface_mesh_flag
Type: bool
Default: True
If True then perform surface remeshing.
use_mmg
Type: bool
Default: True
If True then use MMG for remeshing.
volume_mesh_flag
Type: bool
Default: True
If True then generate a volume mesh.