Lecture 2: User Interfacedl.ptecgroup.ir/virtual_education/mechanical_engineering/... ·...
Transcript of Lecture 2: User Interfacedl.ptecgroup.ir/virtual_education/mechanical_engineering/... ·...
© 2011 ANSYS, Inc. December 21, 2012
1
14.5 Release
Lecture 2: User Interface
Introduction to ANSYS Fluent Meshing
© 2011 ANSYS, Inc. December 21, 2012
2
Agenda
Starting Fluent Meshing
Reading and Importing Files
Graphical User Interface (GUI)
Text User interface TUI
Mouse Operation
Setting Display and Graphic options
Display Features
Demonstration
© 2011 ANSYS, Inc. December 21, 2012
3
Agenda
Starting Fluent Meshing
Reading and Importing Files
Graphical User Interface (GUI)
Text User interface TUI
Mouse Operation
Setting Display and Graphic options
Display Features
Demonstration
© 2011 ANSYS, Inc. December 21, 2012
4
• To start Fluent Meshing
– On a Windows system: click on the Fluent shortcut icon and select Meshing Mode from the startup options
– On a UNIX system or from DOS type
• Fluent 3d - meshing
• Fluent launches in “Meshing Mode”
• Solver functionality “greyed out” until meshes moved into solver mode
• Precision and parallel options only relate to the Fluent solver processes which are spawned when volume meshes are passed to the solver
• Text interface and complete graphical user interface (GUI) from TGrid legacy software is available
• New “Vertical Workflow Ribbon” available under “Mesh Generation”
Starting Fluent Meshing
© 2011 ANSYS, Inc. December 21, 2012
5
Agenda
Starting Fluent Meshing
Reading and Importing Files
Graphical User Interface (GUI)
Text User interface TUI
Mouse Operation
Setting Display and Graphic options
Display Features
Demonstration
© 2011 ANSYS, Inc. December 21, 2012
6
Reading Files You can read or import boundary mesh file(s) or
mesh file(s) into Fluent Meshing
• To read a boundary mesh (*.msh) use
– File -> Read -> Mesh… or Boundary Mesh…
• For other mesh formats e.g. ANSYS, Nastran, Patran, etc, use
– File -> Import -> Mesh
– STL must come in via File -> Import -> CAD
If your mesh is contained in two or more separate files, you can read them in together or separately using “Append File(s)” option
• Use the Filter option to list files with particular naming patterns using wildcard* syntax
• Use the Select All option to select all .msh files in the directory
Note if you read a volume mesh in using Read -> Boundary Mesh the cells will be ignored and only boundary mesh will be
imported. Use Read -> Mesh to read a volume mesh.
© 2011 ANSYS, Inc. December 21, 2012
7
Agenda
Starting Fluent Meshing
Reading and Importing Files
Graphical User Interface (GUI)
Text User interface TUI
Mouse Operation
Setting Display and Graphic options
Display Features
Demonstration
© 2011 ANSYS, Inc. December 21, 2012
8
Graphical User Interface Operations
Selection in the GUI panel
• Select boundaries in the list using left mouse button (LMB)
• Supporting multiple selection/de-selection using Shift/Ctrl
• Toggles to Select All, Deselect all, Invert selection
• Selection filters using predefined or user defined Zone Groups available in many Fluent Meshing panels
Selection helper
• Display -> Selection helper
• Select or de-select all zones with a specific string
Zones selected in any open panels
© 2011 ANSYS, Inc. December 21, 2012
9
Agenda
Starting Fluent Meshing
Reading and Importing Files
Graphical User Interface (GUI)
Text User interface TUI
Mouse Operation
Setting Display and Graphic options
Display Features
Demonstration
© 2011 ANSYS, Inc. December 21, 2012
10
Selection in the TUI
• Minimum number of letters to uniquely define the selection is sufficient
– i.e. boundary = bou = bound = b at top level
• Use “/” or space to move between levels
• Hit “return” to see available options
• For multi-word options you can use first letter in each word
• Use “q” to go back
• Note that certain operations only exists in the TUI
• On/Off switches generally end with a “?”
Zone Selection in TUI
• Certain operations require the user to select zones
• The TUI supports wildcards as name “handles”
– wall*, *side*
– ID number can also be used
• Use “List” in Manage Zones to get Id numbers
Text User Interface Operations
© 2011 ANSYS, Inc. December 21, 2012
11
Agenda
Starting Fluent Meshing
Reading and Importing Files
Graphical User Interface (GUI)
Text User interface TUI
Mouse Operation
Setting Display and Graphic options
Display Features
Demonstration
© 2011 ANSYS, Inc. December 21, 2012
12
Mouse Operations Mouse Operations • The mouse operations are controlled by the
Display -> Mouse Button panel
• Left: mouse-rotate
• Middle: Mouse-zoom
– Middle click centres the view on mouse pointer
– Downward diagonal box: zooms in
– Upward diagonal box: zooms out
• Right: Mouse-probe
– By default Select zone
• Deselect by clicking second time on same object
• E.g. RMB on boundary to select/deselect for display
– Can be modified using Display ->Mouse Probe panel or Short Cuts (see Lecture 3)
ctrl-z ctrl-n
ctrl-x
ctrl-e ctrl-f ctrl-c
hotkeys
© 2011 ANSYS, Inc. December 21, 2012
13
Polygon Tool for Bulk Selection Face Selection
Node Selection
RMB to start, LMB to pick next point, RMB to complete loop
© 2011 ANSYS, Inc. December 21, 2012
14
Agenda
Starting Fluent Meshing
Reading and Importing Files
Graphical User Interface (GUI)
Text User interface TUI
Mouse Operation
Setting Display and Graphic options
Display Features
Demonstration
© 2011 ANSYS, Inc. December 21, 2012
15
Setting Display and Graphic Options Display the grid in Display -> Grid
• To ensure that you are only displaying boundary zones select the boundary group in the Face Zone Groups filter list
• Best practice to never display all interiors/cells
– Selecting all face zones will also select volume interior faces so best to use boundary filter
– When Displaying cells reduce display bounds to a slice plane only in Bounds tab
The following options usually produce a nicer display
• In the Attribute options, turn on Filled and Lights
– For large models with very dense mesh, edges could be turned off
• In the Colors option, use Color by ID to differentiate between zones best
© 2011 ANSYS, Inc. December 21, 2012
16
Setting Display and Graphic Options More Display Options • For further manipulation of the graphics,
open the Display Options panel
• Also available via Rendering… button in Display -> Grid
Key Display Options • For larger models Wireframe Animation
option is recommended for speed of rotation
• Double Buffering maintains rendering during graphic rotation
• It is recommended to activate Display Timeout when you display large volume meshes as sometimes accidents happen displaying many million volumetric elements
• Classic Color Scheme gives black background
User Preferences can be stored in a .tgrid configuration file.
Please ask your local support office or trainer for details
© 2011 ANSYS, Inc. December 21, 2012
17
HardCopy
Hardcopy • With the settings on previous slides the image looks something like this
• Using the File -> Hardcopy, the image was added into this presentation
© 2011 ANSYS, Inc. December 21, 2012
18
Agenda
Starting Fluent Meshing
Reading and Importing Files
Graphical User Interface (GUI)
Text User interface TUI
Mouse Operation
Setting Display and Graphic options
Display Features
Demonstration
© 2011 ANSYS, Inc. December 21, 2012
19
More Display Options
How to look closely at a specific location
• Change Selection filter to Face ( Click on display and Ctrl-F)
• Probe a face on the geometry (Right-mouse-click)
– To deselect all items on the display, click F2
• In the Workflow page under Bounds
– The face ID will appear as Object Name
– Set a size range +/- Delta around the object
– Click on Set Ranges (sets Min-Max fields for X, Y, Z)
– Click on Display in Display Grid Panel
– To increase or decrease Delta click on arrow-up key ( ) or arrow-down ( ) key
– Click Reset to reset to go back to full view (no Ranges)
• These operations are automatically used with the “Skew” command in the Boundary Modify panel (see next Lecture)
Reduced Display
Note: Selection can be position,
node, edge, face, cell or zone
© 2011 ANSYS, Inc. December 21, 2012
20
Agenda
Starting Fluent Meshing
Reading and Importing Files
Graphical User Interface (GUI)
Text User interface TUI
Mouse Operation
Setting Display and Graphic options
Display Features
Demonstration
© 2011 ANSYS, Inc. December 21, 2012
21
Demonstration In this demonstration, we will:
• Start Fluent Meshing
• Read in a good quality, “volume-mesh ready” boundary mesh file containing a simple surface mesh
• Inspect the surface mesh with the graphics window
• Show list selection of entities – position, node, edge, zone using RMB in graphics window
• Show how to zoom on an area of the mesh using Bounds in the workflow page after RMB on an entity
• Show how lists work e.g. invert selection
• Show usage of Boundary Groups
• Show usage of Zone Selection Helper
• Generate tet mesh
• Show cut-plane of tet mesh using Display Grid and Bounds
• Start recording a journal
• Use TUI to clear mesh, change growth rate and create tet mesh. Display.
• Stop journal and open in a text editor. Change growth rate and re-run journal
• Write Volume Mesh
© 2011 ANSYS, Inc. December 21, 2012
22
14.5 Release
Appendix
Journal File Basics and High Quality Graphics for Mesh Imagery
© 2011 ANSYS, Inc. December 21, 2012
23
Store TUI commands in journal (text) files to run operations in batch • Run using File -> Read Journal
Syntax used in Journal files • ; -> Comment line
• , -> Accept the Fluent Meshing default.
• () -> End a list of entity selection
(Note that ”,” can also be used in most cases but that () is the safest)
Example : ; read in a mesh
rm file.msh.gz yes
Advanced usage • Zone Query mechanisms exist for applying settings to zones based on
complex criteria – see User Guide Appendix
– Example : (get-face-zone-at-location '(x y z))
• Scheme commands
• Templates
Journal Files
© 2011 ANSYS, Inc. December 21, 2012
24
Best Settings for Pictures
• Standard display colours both edges and faces by ID.
• Use Scene Description to change edge colour to black R=G=B=0
© 2011 ANSYS, Inc. December 21, 2012
25
Cutting Plane Images 1
Ctrl+x to
switch to
position
filter and
right-click to
find position
you want a
volume
mesh cut
plane Coords printed to console
Use printed
coords to Fix z
coordinate
© 2011 ANSYS, Inc. December 21, 2012
26
Cutting Plane Images 2
• Only after bounds are limited to a cut plane should you switch cell display on and face display off.
• Display
• Switch edge colour for the fluid to black R=G=B=0.
© 2011 ANSYS, Inc. December 21, 2012
27
Cutting Plane Images 2
• Tweak colour scheme to your liking and to make the image clearer
• Picture is ready to save!
• For high resolution choose tiff or png with 2516x1740.