Professional Documents
Culture Documents
VSP File Types & VSP Meshing: Rob Mcdonald - Cal Poly VSP Workshop August 23, 2012
VSP File Types & VSP Meshing: Rob Mcdonald - Cal Poly VSP Workshop August 23, 2012
VSP Meshing
VSP Workshop
August 23, 2012
VSP Input Representations
• Input
– Parametric geometry (vsp)
– Background image (jpg)
– Surface textures (tga, jpg)
– Automation script (txt)
– Airfoil definition (af)
– Fuselage section definition (fxs)
– Cabin definition (cab)
– Wireframe as mesh (hrm)
– Wireframe as surfaces (hrm)
– Triangulated mesh (stl, NASCART)
– Vorlax case file (cas)
• Coming soon
– Design file (des, xdes, XDDM)
http://www.openvsp.org/wiki/doku.php?id=representations
2
VSP Output Representations
• Output
– Parametric geometry (vsp) – Trimmed surfaces (srf)
– Screen capture (jpg) – Unintersected triangulated components
– Automation script (txt) (tri, possibly others)
– Wetted area/volume report (txt, csv) – Intersected triangulated components
– Drag buildup report (tsv) (stl, NASCART, tri, msh, pov)
– Area ruling report (txt) – Isotropic triangulated surface mesh
– Mass properties report (txt) (stl, poly, tri, obj, msh, NASCART)
– Wireframe (hrm) – Structural mesh
– X3D 3D Web model (x3d) (stl, NASTRAN, Calculix)
– Felisa (fel) – Vorlax case file (cas)
– Untrimmed surfaces (3dm) – Vorlax geometry & input (inp)
• Coming soon
– Design file (des, xdes, XDDM)
http://www.openvsp.org/wiki/doku.php?id=representations
3
Paths to Cart3D
Quadrilateral
Wireframe
Export…
CART3d File (.tri)
Unintersected
Triangle
Wireframe
CompGeom
Bicubic
CFD Mesh Bezier
Output .tri
Export… Surface
CART3d File (.tri)
Cart3D
intersect
Intersected
Triangle
Triangle
Wireframe
Mesh
4
Paths to Cart3D
Quadrilateral
Wireframe
Export…
CART3d File (.tri)
CompGeom
Unintersected Bicubic
Triangle CFD Mesh Bezier
Wireframe Output .tri
Export… Surface
CART3d File (.tri)
Cart3D
intersect
Intersected
Triangle
Triangle
Wireframe
Mesh
5
Unintersected
Triangle Quadrilateral
Wireframe Wireframe
Intersected Triangle
Triangle Mesh
Wireframe
6
Pros / Cons of Paths
Recommended
for Today
7
Export Unintersected (before)
1
4
5
8
Export Unintersected (after)
9
Execute CompGeom (before)
1
2
3
10
Execute CompGeom (after)
11
Export CompGeom
1
4
5
12
Practice Session
• Unintersected
• CompGeom
– Save for Cart3D tutorial
13
CFD Mesh Generator
14
CFD Mesh
• Surface mesh generator
– Isotropic triangles (no stretching)
– Bicubic Bezier surfaces
– Bezier intersection curves
– Sourcing control
– Curvature control
– Optional wakes
– Optional half-models
15
Local Radius of Curvature
16
Curvature Meshing Criteria
Max Gap Num Circle Segments
g l
Num Circle
l Segments = 8
#
$
& r > g; 2 2 ! r ! g " g 2
l =% l =$
( )
% N > 2; r ! 2 ! sin ! N
&' r # g; 2!g % N " 2; r!4
& N
17
Growth Ratio Limiter
1.8
Growth Ratio
1.6
1.4
1.2
0 2 4 6 8 10
X
18
Source Types
Point Line Box
19
Sourcing
20
Mesh Criteria Precedence
21
Turning Mesh Criteria ‘OFF’
Sometimes it is useful to turn a mesh criteria ‘OFF’.
22
Meshing Strategy
1. Set Max based on model dimensions
• Set Min = Max (turning off MG and NCS)
• No Sources
• Adjust Max & Min until satisfied (uniform coarsest)
2. Set Min to smaller value
• Say Min = Max/20
3. Choose MG or NCS as preferred curvature parameter (CP)
• Set other curvature parameter (OCP) ‘OFF’
• Adjust CP until satisfied
• Adjust Min as required (are smallest edges small enough?)
4. Adjust OCP (optional)
5. Add mesh sources as required
• Resolve flow features
23
‘Top’ Model
Constant curvature
(constant radius)
Increasing curvature
(decreasing radius)
Extreme curvature
(vanishing radius)
http://hangar.openvsp.org/vspfiles/106
24
CFD Mesh GUI
25
Global
Global Source Adjustment
TetGen
Far Field
Mesh Output
‘Go’ Button
26
Display
Source Display Switch
Mesh Output
‘Go’ Button
27
Output
File Output Switches
File Paths
Mesh Output
‘Go’ Button
28
Sources
Component Chooser
Add Default Button
Mesh Output
‘Go’ Button
29
Wakes
Wake Length
Wake Angle
Component Chooser
Wake Switch
Mesh Output
‘Go’ Button
30
Practice Session
• CFD Mesh
– ‘Top’ model
– Experiment with meshing parameters
– Turn all criteria off – ‘play’ with one at a time
– Follow meshing strategy
• CFD Mesh
– ‘Your’ model
– Follow meshing strategy
31
Command Line
Unintersected:
vsp –batch airplane.vsp –tri
CompGeom:
vsp –batch airplane.vsp –compgeom –tri
CFD Mesh:
vsp –batch airplane.vsp –cfdmesh 1.0
(1.0 is refinement factor)
32