Fluent Gambit - Tips and Tricks
Fluent Gambit - Tips and Tricks
Outline
Data exchange with other CAD/CAE systems Clean-up and Construction strategies Useful Tips New Features of Gambit 2.0
Direct options Standard-based options Importing meshes and faceted geometry CAD-to-Gambit flowchart summaries
Direct Options - 1
e.g., AutoCAD, Cadkey, TurboCad Can export ACIS files (.sat or .sab) which can be imported into Gambit.
Gambit typically employs recent ACIS rev. (ACIS 6.3 for Gambit 2.0) Gambit can import and export older versions of ACIS.
e.g., Unigraphics, SolidWorks, Solid Edge, PATRAN, ANSYS Can export Parasolid files (.x_t & .xmt_txt) which can be imported into Gambit
Direct Options - 2
e.g., Pro-E/ACIS, Catia/ACIS Available from various vendors (see http://www.spatial.com for full listing)
STEP IGES
International standard that defines a neutral file format for the exchange of geometric, topologic, and annotation data. Most CAD programs include STEP export
Both STEP AP203 and STEP AP214 are supported by Gambit Better than IGES
STEP export
Topology/connectivity information is lost when CAD programs export IGES surface data only. Some CAD packages export IGES-solids as well as IGES-surfaces.
Spatial
Creates real geometry Supports IGES-solids (MSBO) Creates virtual geometry for trimmed surfaces Supports surfaces only Use only as a fallback when Spatial translator fails Exports real geometry Supports IGES solids (MSBO)
Native
IGES export
STEP/Parasolid-to-Gambit Flowchart
STEP/ Parasolid
Geometry Import Check Geometry
Okay? Yes
No
Heal
Check Geometry
Better? Yes
No (undo)
Real Geometry
Yes Connected? No
Heal
Connected? Yes
No
IGES-to-Gambit Flowchart
IGES
Spatial Translator Check Geometry Okay? Yes No Native Translator
Okay? Yes
No
Heal
Check Geometry
Better? Yes
No (undo)
Real Geometry
Yes Connected? No
Heal
Connected? Yes
No
10
Import of mesh or faceted geometry files results in faceted geometry Supported Mesh Formats
FLUENT4 FLUENT5 TGRID FIDAP GAMBIT I-DEAS UNV (Universal format) ANSYS PLOT3D (Formatted) NASTRAN PATRAN HYPERMESH
11
Use tfilter fe2ram from an operating system command prompt to first convert it to a Fluent/Fidap mesh file Import the resulting mesh in Gambit.
Boundary types are not preserved during import. Generates faceted geometry from surface or volume mesh import. Use Virtual Geometry operations to work with entities. Convert virtual geometry to real if needed. Similar to mesh but defining triangles unsuitable for meshing STL lacks zone grouping
Use Feature Angle to separate faces Works well for well-defined edges; otherwise use as last resort.
12 Fluent Inc. 8/14/2013
In general, translation options listed in order of decreasing preference (left to right). Some options require third party translator software. Best translation path depends on quality of CAD data (model).
13
Pro/E-to-Gambit Flowchart
Pro/Engineer
STEP
Direct Translator
Direct (STEP)
Optegra Visualizer
Mesh
STL
IGES*
ACIS
(faceted geometry)
(real geometry)
Gambit
Catia-to-Gambit Flowchart
Catia
STEP
Catia-ACIS Translator
IGES Solids
(AIX only)
IGES Surfaces*
Mesh
STL
(real geometry)
Gambit
15
I-DEAS-to-Gambit Flowchart
I-DEAS
STEP
IGES* MSBO
Mesh
STL
(faceted geometry)
(real geometry)
Gambit
16
Unigraphics-to-Gambit Flowchart
Unigraphics
Parasolid
UnigraphicsACIS Trans.
STEP
IGES*
Mesh
STL
(real geometry)
*IGES native may produce virtual geometry
Gambit
17 Fluent Inc. 8/14/2013
SolidWorks-to-Gambit Flowchart
SolidWorks
STEP
IGES*
Mesh
STL
(real geometry)
*IGES native may produce virtual geometry
Gambit
18 Fluent Inc. 8/14/2013
CADDS-to-Gambit Flowchart
CADDS
STEP
CADDS-ACIS Translator
IGES*
Mesh
STL
(real geometry)
Gambit
19
Outline
20
Delete unnecessary geometry Check validity of the geometry (visual + check commands) Correct invalid geometry (Healing and/or reconstruction) Check connectivity by color coding Eliminate short edges Check connectivity Create additional geometry and form volume Simplify/edit edges, faces, volumes Decompose volume, if necessary Mesh the geometry Plan ahead
Some operations will not work with virtual geometry (booleans, sweeps except edges, revolves, certain splits) Postpone operations that create virtual entities.
21
Topology problems must be fixed before meshing Geometry not C1, C2, G1or G2
Indicates lack of parametric/geometric continuity Operations like real booleans, splits and sweeps may fail
Fix real geometry problems by healing and/or by regenerating entities Fix topology and virtual/faceted geometry problems by deleting (hiding) and reconstructing entities
22
Delete unnecessary geometry Check validity of the geometry (visual + check commands)
Some operations will not work with virtual geometry (booleans, sweeps except edges, revolves, certain splits) Postpone operations that create virtual entities.
23 Fluent Inc. 8/14/2013
Healing is designed to detect and correct accuracy problems in ACIS models ACIS (geometry kernel of Gambit), a high precision modeler, needs all entities to satisfy stringent data integrity checks
Geometry imported from other CAD systems often lacks the required accuracy & precision due to:
Inherent numerical limitations in the original CAD system Limitations of data transfer through neutral file formats Differences in tolerance settings between the original CAD system and Gambit
24
Geometry simplification
Converts spline surfaces to corresponding analytic forms (e.g., planes, cylinders, circular cones etc.) wherever possible Results in a reduction of data size & speed improvements in geometric operations. Geometry simplification tolerance
With tighter tolerance, only spline surfaces which are exact analytic surfaces get simplified With relaxed tolerance, approximate analytic fits to spline surfaces are obtained. It may increase the gap between surfaces and healing in subsequent operations would be more difficult The default tolerance of 0.0001 should provide very good approximation in most cases
Stitching
Stitch together the loose faces. Similar to volume stitch but can handle the gaps and does some geometry cleaning on the stitched data to handle small edges occurring in the body. Main Characteristics :
Handles varying gaps Resolves multiple vertices Handles small edges Split edges appropriately Ensure consistent face normals Incremental stitching. Starts with minimum tolerance and increases in steps towards maximum tolerance Minimum tolerance must always be smaller than the length of the smallest edge in the model Maximum tolerance denotes the largest gap in the model.
Stitching tolerances:
Stitching
27
Geometry Building
Builds the geometry as necessary to correct the gaps & inaccuracies in the model. Improve precision of face, edge, and vertex data Recalculate the bad curves and points by recomputing intersections.
Transversal Intersections :
Gaps are filled by extending the adjoining surfaces and recomputing the intersection
28
Geometry Building
Tangential Intersection of Analytic Surfaces : Surfaces are snapped to each other using linear transformations
29
Delete unnecessary geometry Check validity of the geometry (visual + check commands) Correct invalid geometry (Healing and/or reconstruction) Check connectivity by color coding Eliminate short edges
Check connectivity
Create additional geometry and form volume Simplify/edit edges, faces, volumes Decompose volume, if necessary Mesh the geometry Plan ahead
Some operations will not work with virtual geometry (booleans, sweeps except edges, revolves, certain splits) Postpone operations that create virtual entities.
30
Connect Edges
Connecting edges provides connectivity between faces. This enables faces to be stitched together to form volume.
New option to preserve first edge shape during virtual edge connect Typical Procedure:
Real connects attempted first. Specify initial Tolerance or Shortest Edge % Connect on all edges.
Repeat above step with successively larger tolerances. Include T-junction option as final step.
Failure to stitch together volume will result in error message identifying problem edges.
31
Tolerances used for connect should be much less than mesh size.
For faces separated by a large gap, create new face to fill the gap. For faces that overlap by large amount, split each face with the intruding edge and form new face in center.
Faces overlapping
Faces connected
Using T-Connect Option with relatively low tolerance can generate unwanted small edges.
Use Highlight Shortest Edge to check length before and after operation. Can pick which vertices are to be involved in edge splits in Vertex list box (default is all).
Tolerance used to connect edges will account for small gaps but not the larger ones.
33 Fluent Inc. 8/14/2013
Delete unnecessary geometry Check validity of the geometry (visual + check commands) Correct invalid geometry (Healing and/or reconstruction) Check connectivity by color coding Eliminate short edges Check connectivity Create additional geometry and form volume
Some operations will not work with virtual geometry (booleans, sweeps except edges, revolves, certain splits) Postpone operations that create virtual entities.
34
Simplify/Edit faces
Avoid merging together connected faces that form a sharp angle ( 90).
Merge remaining edges Split the face to isolate the bad angle Merge the new face to an adjacent face Merge the edges Merge for similar faces and sliver faces Collapse for symmetry, blends, fillets, etc. (collapse adds extra layer of topological information)
If tolerance is larger than element size, or if element size is smaller than faces that were merged/collapsed, meshing may fail on merged surfaces
35 Fluent Inc. 8/14/2013
Real connects of vertices, edges, faces. Virtual connects of vertices, edges, faces.
Using connect tolerance. If any changes are made, repeats Virtual connect of edges, faces.
Open the IGES Import form Clear the File Name field Click Virtual Cleanup checkbox Click Accept
36 Fluent Inc. 8/14/2013
Outline
Data exchange with other CAD/CAE systems Clean-up and Construction strategies
Useful Tips
New Features of Gambit 2.0
37
Geometry Tips-1
Could be due to complexity/quality of the model or due to difficulty in finding imprints of connected entities
Disconnect the face/volume with adjacent entities by copying it Delete the original face/volume Perform the boolean/split on the copied entity Connect them back before meshing
Get intersection of tool and the target while retaining the target Subtract the result (intersection) from the target while retaining the tool Do a connect
If the tool is enclosed by the target, intersection of the two is not needed.
38 Fluent Inc. 8/14/2013
Geometry Tips-2
Gambit 1.2.0 & higher support booleans of multiple entities (faces/volumes) in one step
ACIS-specific problem (incorrect topology being generated) Use Heal Faces in place of volume stitch command to create the volume May need to disconnect the faces if connected to other entities Reconnect them before meshing Virtual volume stitch can also be used
39
Geometry Tips-3
To create real face by wireframe on noncoplanar surface, use a set of 3 or 4 edges per face Use alternative methods of face creation (e.g., net surface) wherever applicable New face creation methods and face primitives are available with Gambit 1.2.0 and higher Combine primitives, booleans and bottom-up tools for faster model building
40
Meshing Tips - 1
Vertex types may be changed for Boundary Layers only Allows desired BL creation in regions near vertices while maintaining desired face or volume meshing scheme
Example : Meshing a circular face with Map (square topology) and boundary layers
41
Meshing Tips - 2
Poor mesh by mapper on highly curved surface Projection to the surface distorts the mesh Limitation of algorithm
42
Meshing Tips - 3
May take long time or produce skewed elements on complex/bad spline surfaces Should be turned off (using the default MESH.FACE.PROJECT_TO_SURFACE) Check the mesh to ensure desired accuracy of geometry representation
43
Meshing Tips - 4
Increase the limit using the default MESH.TRIMESH.MAX_FACES A value of -1 indicate no restriction
Mesh the whole model in several parts Mesh one part, export the mesh and then delete it but keep the surface mesh at the interface (for conformal mesh) Do the same for each part. Merge all the meshes with tfilter tmerge3d or by reading them in Tgrid Duplicate nodes at the interface can be merged together either in Fluent 5 by fusing the zones or in Tgrid by merging the nodes.
44
Test the model for the most extreme values first. Advanced parameterization might be needed to avoid bad cell aspect ratio/skewness.
45
Use mapped mesh when parameters have large variation span, since mesh can be stretched without severe distortion (compared to paved mesh). Use different journal files for different parameter combinations.
Example:
Pipe junction
Pipe intersection
These are two topologically different models (3 faces, 8 edges vs. 2 faces, 5 edges)
Do not use virtual mesh splits, since these are node-number dependent.
46
Outline
Data exchange with other CAD/CAE systems Clean-up and Construction strategies Useful Tips
47
G/Turbo Direct Pro/E Integration Size Function End User Customization (Dynamic GUI) General Meshing Enhancements
(3d Boundary Layer, Mesh Link, Connect Preserving Mesh)
Mesh Export Upgrade General Geometry Enhancements Geometry Kernel Upgrade Miscellaneous
48
G/Turbo
Add-on for automated preprocessing for turbomachinery Automated geometry construction and meshing for blade row models
Starts from basic curve data defining blade, hub, and casing shapes flexible meshing
structured (H, H-C & H-O) unstructured (hex, tet, prism & pyramids)
49
G/Turbo
Mesh Export Upgrade General Geometry Enhancements Geometry Kernel Upgrade Miscellaneous
50
STEP
direct Translator
Direct (STEP)
Optegra Visualizer
Mesh
STL
IGES*
ACIS
(faceted geometry)
(real geometry)
Gambit
51
Model quality in the original system Semantics Numerical Precision Translation quality
52
Requests
GAMBIT
Topology, geometry, projections
CAD System
53
54
Need special Gambit license File with instructions for Pro/E to start Gambit
gambit/cad_integration/proe_integration/protk.dat
Start Gambit using Utilities/Auxiliary Applications Open the part file in Pro/E Access Gambit through Pro/E Use Import/CAD/Pro/E(direct) to access the geometry in Gambit
55
Original Part
56
Cleaned Part
Fluent Inc. 8/14/2013
Limitations
57
Assembly/Component/Adv Utils/Merge
Merge all existing parts to the new part Save the change Open the new part
58
Size Function
End User Customization (Dynamic GUI) General Meshing Enhancements
(3d Boundary Layer, Mesh Link, Connect Preserving Mesh)
Mesh Export Upgrade General Geometry Enhancements Geometry Kernel Upgrade Miscellaneous
59
Size Function
Ensure high-quality surface meshes Automatically capture important geometry features Ensure desired number of elements in small gaps
60
Existing Tools
Edge Meshing
Boundary Layer
Meshing Tools
Size Function
61
63
64
65
Source
Attachment
Mesh to be affected
66
Location and types of the source determine location and types of the sizing functions
Component Source
67
Examples
68
Examples
69
Should be attached to the desired entity and all connected entities within the boundary of the size function
70
Start size
Size adjacent to the source Ratio of two adjacent mesh-element edge size Determine boundary of size function Maximum allowable size for attachment entity
Growth rate
Distance
Size limit
71
Limitations
Becomes slow on large models Improper use may result in abrupt change in size
Use multiple size functions Specify large value for distance Increase resolution by changing the defaults for background grids
75
Mesh Export Upgrade General Geometry Enhancements Geometry Kernel Upgrade Miscellaneous
76
Easily create templates and interactive journals Easily parameterize and automate repetitive tasks
77
Can be used as a template for industry specific tasks Gambit command-line commands are used to create & maintain such forms User can customize form layout, components and options on the form and hook them to gambit journal files to perform specific tasks
78
79
Macro
Subroutine functionality Groups the gambit commands Can be called as a gambit command
Macro Commands
macro start macroname macro end macrorun name macroname
Example Macro
macro start "compute_reynolds" $reynolds = ($density*$velocity*$diameter)/$viscosity dgui updateitem "reynolds" macro end
macrorun name "compute_reynolds"
80
ID independent labels:
Lastid automated journal conversion - GAMBIT will change an existing journal file to exclusively use lastid identifiers Location based identification and automated journal conversion GAMBIT can use location based identification and convert existing journal files to exclusively use location based identifiers
Connectivity traversal:
Can traverse topology to find faces, edges, etc. Can find connected entities
Various Queries
Can find all vertices, edges, etc. Can obtain attached entities to BC zones
81 Fluent Inc. 8/14/2013
: length of an specified edge : Bounding box of specified entity/model : Coordinates of the center point : Entity at given location : return 0/1 to indicate success of last operation : Label of previously created entity
LISTENTITY
LISTENTITY(return_type, filter_type, filter_entity) example: $x = LISTENTITY(t_ed, t_fa, face.s) ;gives all edges of face.5 $x = LISTENTITY(t_bl) ; all boundary layers in the model
82 Fluent Inc. 8/14/2013
Improved Journaling - 1
Parameters can be assigned inside do loops and if/then statements New default to control journaling
GUI_GENERAL_JOURNAL_ENTITY
83
Improved Journaling - 2
84
G/Turbo Direct Pro/E Integration Size Function End User Customization (Dynamic GUI)
Mesh Export Upgrade General Geometry Enhancements Geometry Kernel Upgrade Miscellaneous
85
True 3d Boundary Layer Mesh Link Upgrade Copy Mesh Improvements Connect Preserving Mesh Quad to Tri Conversion Quality Reports as part of Meshing
86
Ensure nice layers in twisted domains Supported by Map, Cooper and Tgrid
87 Fluent Inc. 8/14/2013
88
89
Source face
Target face
91
Preserve higher topology mesh Maintain connectivity Mesh on unconnected entities (face/edge/vertex) must be
topologically equivalent
92 Fluent Inc. 8/14/2013
93
94
Option to report max skewness for each face and/or volume when it is meshed
MESH.EXAMINE.QUALITY_WHEN_MESHING
95
G/Turbo Direct Pro/E Integration Size Function End User Customization (Dynamic GUI) General Meshing Enhancements
(3d Boundary Layer, Mesh Link, Connect Preserving Mesh)
96
Speed, memory optimizations Better handling of periodics Ability to export mixed (volume + surface) mesh together Can export surface mesh without specifying the boundary condition
97
98
G/Turbo Direct Pro/E Integration Size Function End User Customization (Dynamic GUI) General Meshing Enhancements
(3d Boundary Layer, Mesh Link, Connect Preserving Mesh)
99
100
101
Face Simplify
102
Available during IGES, ACIS, STEP and Parasolid import Allow whole model(with multiple volumes) to be healed in one step
103
G/Turbo Direct Pro/E Integration Size Function End User Customization (Dynamic GUI) General Meshing Enhancements
(3d Boundary Layer, Mesh Link, Connect Preserving Mesh)
104
ACIS 6.3
Improved speed & robustness Improved STEP and IGES translators Better healing
105
G/Turbo Direct Pro/E Integration Size Function End User Customization (Dynamic GUI) General Meshing Enhancements
(3d Boundary Layer, Mesh Link, Connect Preserving Mesh)
Miscellaneous
106
Additional filter
Convenient way to view sort listed entities, e.g, unmeshed face/volumes in a complex model
107 Fluent Inc. 8/14/2013