Assessing Validity of Mesh Re nement Sequences

3 downloads 0 Views 7MB Size Report
AIAA Fourth Drag Prediction Workshop. June 20 21, 2009. Carl Ollivier-Gooch (UBC ANSLab) Validity of Mesh Re nement Sequences. DPW4, 2009. 1 / 36 ...
Assessing Validity of Mesh Renement Sequences Carl Ollivier-Gooch

Advanced Numerical Simulation Laboratory Department of Mechanical Engineering The University of British Columbia AIAA Fourth Drag Prediction Workshop June 2021, 2009

Carl Ollivier-Gooch (UBC ANSLab)

Validity of Mesh Renement Sequences

DPW4, 2009

1 / 36

Methodology

Overview

Given: two computational mesh

I On each mesh, compute: I I I

Cell size (length scale) Anisotropy Orientation

I Project data from one mesh to the other and compare

Carl Ollivier-Gooch (UBC ANSLab)

Validity of Mesh Renement Sequences

DPW4, 2009

2 / 36

Methodology

Measuring Cell Anisotropy and Orientation

Begin with Cell Second Moments These moments can be written as, for example,

I

xx

I

xz

1

=

S

i

1

=

S

Z

x 2 dS

i

Z

i

xz dS

i

where integral is over area in 2D and over volume in 3D. Can also evaluate moments by applying Gauss's Theorem and integrating around the cell. For instance,

I

xx

I Carl Ollivier-Gooch (UBC ANSLab)

xz

= =

1

S

i

1

S

i

Z

x3

∂i 3

Z ∂i

n dA

x 2z 2

x

n dA x

Validity of Mesh Renement Sequences

DPW4, 2009

3 / 36

Methodology

Measuring Cell Anisotropy and Orientation

Aspect Ratio and Anisotropy Two Dimensions

I Moment of inertia tensor is

I I



M=

I I

xx

xy



xy yy

I From eigenvalues or Mohr's circle,

Imax

=

Imin

=

θ =

I

xx

I

xx

1 2

+I

q + (I

+I

q 2 − (I − I )2 + 4 I 2

yy

yy

xx

yy

xx

 arctan

I

2

xx

I Aspect ratio:

AR = Carl Ollivier-Gooch (UBC ANSLab)

− I )2 + 4 I 2

r

I

yy

xy

xy

2



xy

−I

yy

Imax Imin

Validity of Mesh Renement Sequences

DPW4, 2009

4 / 36

Methodology

Measuring Cell Anisotropy and Orientation

Aspect Ratio and Anisotropy Three Dimensions

I Moment of inertia tensor is:



M=

I I I

xx

xy xz

I I I

xy yy yz

I I I

xz yz

 

zz

I Find eigenvalues and eigenvectors numerically. Then:

AR1 AR2

s

λmax λmed

s

λmed λmin

=

=

I Orientation directly from eigenvectors. Carl Ollivier-Gooch (UBC ANSLab)

Validity of Mesh Renement Sequences

DPW4, 2009

5 / 36

Methodology

Comparison Between Meshes

Projecting Data Between Meshes I Read size and coordinates (currently: VGrid and UGrid) I Partition meshes using unbalanced recursive bisection. I For each mesh, write partitioned les with connectivity. I For each part, I I I

Read ne and coarse mesh data Create cell-to-cell connectivity and geometric search tree for ne mesh For each coarse mesh cell, I I I

Find ne cell containing centroid Use injection to get ne mesh data onto coarse mesh Write comparison data into global array

I Write comparison data le for visualization.

Carl Ollivier-Gooch (UBC ANSLab)

Validity of Mesh Renement Sequences

DPW4, 2009

6 / 36

Methodology

Comparison Between Meshes

Comparison Between Meshes Length scale. We expect that, locally,

L2 L1 where

N

quality:

r =

d

N1 N2

is vertex count. So compute and compare rene size

L Q ≡ 1 L2 r

r d

N1 N2

(1)

Aspect ratio. Ratio of aspect ratios should be one. Orientation. Principal directions should align.

Carl Ollivier-Gooch (UBC ANSLab)

Validity of Mesh Renement Sequences

DPW4, 2009

7 / 36

Assessing Mesh Pairs

A Near-Ideal Pair of Isotropic Meshes

Isotropic Mesh in a Clipped Cube Cell Size

Coarse mesh (5564 cells)

Carl Ollivier-Gooch (UBC ANSLab)

Fine mesh (41826 cells)

Validity of Mesh Renement Sequences

DPW4, 2009

8 / 36

Assessing Mesh Pairs

A Near-Ideal Pair of Isotropic Meshes

Isotropic Mesh in a Clipped Cube Renement Size Quality Qr

Spatial Distribution

Carl Ollivier-Gooch (UBC ANSLab)

Validity of Mesh Renement Sequences

Histogram

DPW4, 2009

9 / 36

Assessing Mesh Pairs

A DPW-III Example

DPW-III Mesh Pair

I DLR-F6 FX2B wing-body geometry I Raytheon coarse and medium meshes I I

All tetrahedral Very coarse for RANS simulations I I

I

Coarse mesh: 544K vertices, 3.14M tetrahedra Fine mesh: 1.08M vertices, 6.28M tetrahedra

Surface mesh isotropic except near leading and trailing edges I

So only one aspect ratio and orientation matter

Carl Ollivier-Gooch (UBC ANSLab)

Validity of Mesh Renement Sequences

DPW4, 2009

10 / 36

Assessing Mesh Pairs

A DPW-III Example

DPW-III Mesh Pair Coarse mesh

Carl Ollivier-Gooch (UBC ANSLab)

Fine mesh

Validity of Mesh Renement Sequences

DPW4, 2009

11 / 36

Assessing Mesh Pairs

A DPW-III Example

DPW-III Mesh Pair Renement Size Quality

Carl Ollivier-Gooch (UBC ANSLab)

Validity of Mesh Renement Sequences

DPW4, 2009

12 / 36

DPW IV Meshes

Mesh Overview

Meshes Considered Only 0-degree tail cases Source

Size

# Verts

# Tets

# Pyrs

# Prisms

C

672K

3.94M





Langley

M

1.71M

10.0M





(CC)

F

5.92M

34.9M





Langley

C

3.66M

21.6M





(VC)

M

10.2M

60.3M





Cessna

C

3.55M

20.8M





M

9.93M

58.2M





C

2.43M

2.26M

48.7K

3.88M

M

9.45M

4.45M

169K

16.9M

F

20.7M

21.7M

332K

33.4M

Boeing

C

4.00M

5.52M

44.5K

5.88M

(best practice)

M

18.3M

8.13M

229K

33.3M

Boeing

Carl Ollivier-Gooch (UBC ANSLab)

Validity of Mesh Renement Sequences

DPW4, 2009

13 / 36

DPW IV Meshes

Surface Meshes and Aspect Ratio

Langley Medium Cell-Centered Mesh

Carl Ollivier-Gooch (UBC ANSLab)

Validity of Mesh Renement Sequences

DPW4, 2009

14 / 36

DPW IV Meshes

Surface Meshes and Aspect Ratio

Langley Coarse Vertex-Centered Mesh

Carl Ollivier-Gooch (UBC ANSLab)

Validity of Mesh Renement Sequences

DPW4, 2009

15 / 36

DPW IV Meshes

Surface Meshes and Aspect Ratio

Cessna Coarse Mesh

Carl Ollivier-Gooch (UBC ANSLab)

Validity of Mesh Renement Sequences

DPW4, 2009

16 / 36

DPW IV Meshes

Surface Meshes and Aspect Ratio

Boeing Coarse Mesh

Carl Ollivier-Gooch (UBC ANSLab)

Validity of Mesh Renement Sequences

DPW4, 2009

17 / 36

DPW IV Meshes

Surface Meshes and Aspect Ratio

Boeing Best Practice Coarse Mesh

Carl Ollivier-Gooch (UBC ANSLab)

Validity of Mesh Renement Sequences

DPW4, 2009

18 / 36

DPW IV Meshes

Surface Meshes and Aspect Ratio

Langley Medium Mesh

Carl Ollivier-Gooch (UBC ANSLab)

Validity of Mesh Renement Sequences

DPW4, 2009

19 / 36

DPW IV Meshes

Surface Meshes and Aspect Ratio

Langley Coarse Vertex-Centered Mesh

Carl Ollivier-Gooch (UBC ANSLab)

Validity of Mesh Renement Sequences

DPW4, 2009

20 / 36

DPW IV Meshes

Surface Meshes and Aspect Ratio

Cessna Coarse Mesh

Carl Ollivier-Gooch (UBC ANSLab)

Validity of Mesh Renement Sequences

DPW4, 2009

21 / 36

DPW IV Meshes

Surface Meshes and Aspect Ratio

Boeing Coarse Mesh

Carl Ollivier-Gooch (UBC ANSLab)

Validity of Mesh Renement Sequences

DPW4, 2009

22 / 36

DPW IV Meshes

Surface Meshes and Aspect Ratio

Boeing Best Practice Coarse Mesh

Carl Ollivier-Gooch (UBC ANSLab)

Validity of Mesh Renement Sequences

DPW4, 2009

23 / 36

DPW IV Meshes

Langley Meshes

Langley Cell-Centered Coarse Mesh

Carl Ollivier-Gooch (UBC ANSLab)

Validity of Mesh Renement Sequences

DPW4, 2009

24 / 36

DPW IV Meshes

Langley Meshes

Langley CC Coarse-Medium Comparison

Carl Ollivier-Gooch (UBC ANSLab)

Validity of Mesh Renement Sequences

DPW4, 2009

25 / 36

DPW IV Meshes

Langley Meshes

Langley CC Medium-Fine Comparison

Carl Ollivier-Gooch (UBC ANSLab)

Validity of Mesh Renement Sequences

DPW4, 2009

26 / 36

DPW IV Meshes

Langley Meshes

Langley VC Coarse-Medium Comparison

Carl Ollivier-Gooch (UBC ANSLab)

Validity of Mesh Renement Sequences

DPW4, 2009

27 / 36

DPW IV Meshes

Cessna Meshes

Cessna Coarse-Medium Comparison

Carl Ollivier-Gooch (UBC ANSLab)

Validity of Mesh Renement Sequences

DPW4, 2009

28 / 36

DPW IV Meshes

Comparisons between Mesh Sequences

Langley CC-Langley CC Size Comparison

Carl Ollivier-Gooch (UBC ANSLab)

Validity of Mesh Renement Sequences

DPW4, 2009

29 / 36

DPW IV Meshes

Comparisons between Mesh Sequences

Langley CC-Langley VC Size Comparison

Carl Ollivier-Gooch (UBC ANSLab)

Validity of Mesh Renement Sequences

DPW4, 2009

30 / 36

DPW IV Meshes

Comparisons between Mesh Sequences

Langley CC-Cessna Size Comparison

Carl Ollivier-Gooch (UBC ANSLab)

Validity of Mesh Renement Sequences

DPW4, 2009

31 / 36

DPW IV Meshes

Comparisons between Mesh Sequences

Langley CC-Boeing Size Comparison

Carl Ollivier-Gooch (UBC ANSLab)

Validity of Mesh Renement Sequences

DPW4, 2009

32 / 36

DPW IV Meshes

Comparisons between Mesh Sequences

Langley CC-Boeing Best Practice Size Comparison

Carl Ollivier-Gooch (UBC ANSLab)

Validity of Mesh Renement Sequences

DPW4, 2009

33 / 36

Future Work

Mesh Analysis

Mesh Quality Measures

Current analysis tool

I Continue V&V, eciency improvements I More careful look at aspect ratio, shortest edge Other mesh quality analysis

I Geometric cell quality measures  carefully! I Cell-to-cell variation Towards solution-based analysis

I Approximation error for manufactured / simplied solution

Carl Ollivier-Gooch (UBC ANSLab)

Validity of Mesh Renement Sequences

DPW4, 2009

34 / 36

Future Work

Mesh and Solution Analysis

More Sophisticated measures I Given both mesh

and solution, could look at solution approximation

error: I I

Mesh metric versus solution Hessian Accuracy of reconstruction

I With mesh, solution, and solver code, could also look at local truncation error: I

Flux integral for converged solution of dierent solver I

I

Including dierent ux functions, turbulence models, etc

Flux integral for manufactured/simplied solution

I Ideally, all the data that comes out of this can guide mesh improvement and/or be used to test solver variations

Carl Ollivier-Gooch (UBC ANSLab)

Validity of Mesh Renement Sequences

DPW4, 2009

35 / 36

Future Work

Data Needed!

How to Contribute Your Data I Upload via anonymous ftp to mesh-quality.mech.ubc.ca I

Path: pub/incoming/DPW4 (or pub/incoming for non-DPW data)

I CGNS data preferred but we want you data anyway! I Solution data, plus mesh data (or tell us which DPW4 mesh you used) I I

Compressed archives (tar.gz, tar.bz2, zip, etc) Include text le describing le format explicitly and send a code snippet that reads or writes the data to remove all ambiguity

I Unless otherwise requested, uploaded data will be put into outgoing directory for other researchers to work with as well

I Send email to [email protected] with questions / problems

Carl Ollivier-Gooch (UBC ANSLab)

Validity of Mesh Renement Sequences

DPW4, 2009

36 / 36