For a model with geometry objects part1, part2, part3 and material point fluid:
Compute the size field.
(tgapi-size-field-compute-geodesic-blended '*)
Wrap the geometry objects using the material point fluid.
(tgapi-wrap-objects 'part* '_fluid "fluid" "geodesic")
Imprint feature edges on the mesh object.
(tgapi-wrap-imprint-object-features '_fluid #t 0.2 15)
Smooth face nodes while preserving features.
(tgapi-wrap-smooth-face-zones-with-features-preserved (get-face-zones-of-objects '(_fluid)) 5 15 0)
Smooth the face nodes of the mesh object which are far from the geometry.
(tgapi-wrap-smooth-object-off-geometry-faces '_fluid)
Remesh the mesh object.
(tgapi-wrap-remesh-object '_fluid 40.0 180.0 180.0 "geodesic" #f 0.0)
Improve the mesh object quality.
(tgapi-wrap-improve-object '_fluid #t)
Resolve thin regions and self intersections.
(tgapi-wrap-inflate-object-faces-by-invalid-normal '_fluid 2 0.0 0.2 2 #t)
(tgapi-wrap-inflate-object-faces-by-dihedral-angle '_fluid 10 0.0 0.2 2 #t)
(tgapi-wrap-resolve-face-intersections-in-object '_fluid)
Improve mesh object for tet meshing.
(tgapi-wrap-improve-object-for-tet-meshing '_fluid "fluid" 0.96 0.8 2.0)
Improve mesh object for prism meshing.
(tgapi-wrap-improve-object-for-prism-meshing '_fluid 1 "aspect-ratio" 5 -1 -1 1.2 "inverse-ortho" 0.97 0.9 #f)
Note: A value of
-1
has been used for the parameters that are not required for the offset method chosen.Remove unwetted object faces.
(tgapi-wrap-delete-unwetted-object-faces ‘wrap-v2 ‘ext*)
(tgapi-wrap-delete-unwetted-object-faces “wrap-v2” (list “external” “mat-pt1”))
(tgapi-wrap-delete-unwetted-object-faces “wrap-v2” “mat-pt1”)
Separate the mesh object face zones based on the geometry.
(tgapi-wrap-separate-object-face-zones '_fluid #t 0.0)