Download as pdf or txt
Download as pdf or txt
You are on page 1of 32

VSP File Types &

VSP Meshing

Rob McDonald – Cal Poly

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

Unintersected CompGeom CFD Mesh

•  Pros •  Pros •  Pros


–  Speed –  Speed –  Triangle Quality
–  Robustness –  Robustness –  Special cases
–  Derivatives with –  Special cases
design framework
•  Cons
•  Cons –  Robustness
•  Cons –  Robustness
–  Robustness
•  Coincident faces
•  Nacelles
–  Extra step

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

•  Resolution Effects (quads to triangles directly)


–  Num Pts
–  Num XSecs

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

•  Preferred for most CFD tools


–  CBAero
–  TetGen
–  AFLR3
–  VLE

15
Local Radius of Curvature

Greatest Principal Normal Curvature r=1


k

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

Limits length of next edge to ratio of current edge.

18
Source Types
Point Line Box

19
Sourcing

Attached to components (u, w)


Size in model units (length)
Sphere of influence (radius)

20
Mesh Criteria Precedence

Smallest Edge Across Criteria

Max Edge Len


Growth Ratio
Subject to
Constraints Num Circle
Above & Below Max Gap
Sources Segments
Min Edge Len

21
Turning Mesh Criteria ‘OFF’
Sometimes it is useful to turn a mesh criteria ‘OFF’.

Criteria Direction Value Scaled?


Max Edge Len large 100.0 (scaled)
Growth Ratio large 10.0
Sources none
Max Gap large 10.0 (scaled)
Num Circle Segments small 0.00001
Min Edge Len small 0.000001 (scaled)

Max Edge Len


Max = Min Growth Ratio
will turn ‘OFF’
Num Circle
Max Gap & Sources
Max Gap
Segments
Num Circle Segments Min Edge Len

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

Global & Curvature


Meshing Criteria

Half Mesh Switch

TetGen
Far Field

Mesh Output

‘Go’ Button

26
Display
Source Display Switch

Mesh Display Switch

Mesh Output

‘Go’ Button

27
Output
File Output Switches

File Paths

File Browser Button

Mesh Output

‘Go’ Button

28
Sources
Component Chooser
Add Default Button

Source Type Chooser


Component Source List
Add/Delete Buttons

Individual Source Editor

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

•  Resolution Effects (quads to bicubic Bezier patches)


–  Num Pts
–  Num XSecs
–  Computational cost (Build Target Map)

•  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)

Each command will output corresponding ‘airplane.tri’.

32

You might also like