33
Presentation to UW-Madison Math Dept. Topology Group, April 16, 2004.

Presentation to UW-Madison Math Dept. Topology Group ...homepages.cae.wisc.edu/~tautges/papers/hexmod-uwmath.pdf · Presentation to UW-Madison Math Dept. Topology Group, April 16,

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Presentation to UW-Madison Math Dept. Topology Group ...homepages.cae.wisc.edu/~tautges/papers/hexmod-uwmath.pdf · Presentation to UW-Madison Math Dept. Topology Group, April 16,

Presentation to UW-Madison Math Dept. Topology Group, April 16, 2004.

Page 2: Presentation to UW-Madison Math Dept. Topology Group ...homepages.cae.wisc.edu/~tautges/papers/hexmod-uwmath.pdf · Presentation to UW-Madison Math Dept. Topology Group, April 16,

A SET OF ATOMIC, DUAL-BASED OPERATIONS FOR MODIFYING

HEXAHEDRAL MESH TOPOLOGY

Timothy J. TautgesSandia National Laboratories

UW-Madison Topology Group

April 16, 2004

Sandia is a multiprogram laboratory operated by Sandia Corporation, a Lockheed Martin Company,for the United States Department of Energy under contract DE-AC04-94AL85000.

Page 3: Presentation to UW-Madison Math Dept. Topology Group ...homepages.cae.wisc.edu/~tautges/papers/hexmod-uwmath.pdf · Presentation to UW-Madison Math Dept. Topology Group, April 16,

Outline

• Background (FEA, hex meshing)• Hex mesh modification: previous work• Dual-based hex mesh modification• Issues• Conclusions• Future work

Page 4: Presentation to UW-Madison Math Dept. Topology Group ...homepages.cae.wisc.edu/~tautges/papers/hexmod-uwmath.pdf · Presentation to UW-Madison Math Dept. Topology Group, April 16,

Solution of PDE’s:Finite Difference Method

• Poisson equation:• Approximate derivatives by evaluating them

on a “grid”

),(2 yxfu =∇

( )( )

2,1,,1

2

2

,1,

2

,,),(

huuu

xu

huu

xu

jhyihxuyxu

iii

ii

jiij

⋅−⋅⋅+

⋅−⋅

+−=∂∂

−=∂∂

==≈

••••→•←••••

fuA = where A is banded, sparse

iju

Page 5: Presentation to UW-Madison Math Dept. Topology Group ...homepages.cae.wisc.edu/~tautges/papers/hexmod-uwmath.pdf · Presentation to UW-Madison Math Dept. Topology Group, April 16,

Solution of PDE’s: Finite Element Method

• Poisson equation:• Approximate function using test functions T n

defined on a “mesh”

),(2 yxfu =∇

( )

( ) ∫∫∫∫

∫∫∫∫

ΩΩ

ΩΩ

=+

=+

+++=

fTdxdydxdyTuTu

dxdyyxTyxfdxdyyxTuu

TuTuTuyxu

yyxx

yyxx

nn

),(),(),(

...),(Let 2211

fdK = where K is symmetric, sparse

nu

1=nT

0=nT

Requires a m esh!Requires a m esh!Requires a m esh!Requires a m esh!

Page 6: Presentation to UW-Madison Math Dept. Topology Group ...homepages.cae.wisc.edu/~tautges/papers/hexmod-uwmath.pdf · Presentation to UW-Madison Math Dept. Topology Group, April 16,

High-Fidelity FEA Requires Mesh Generation From CAD

• Mesh generation using native CAD evaluation (using API’s)• Hexahedral mesh (more accurate), tetrahedral mesh ( easier to

generate) most common

Continuous domain(CAD Model)

Discrete Solution(FEA Results)

Discretized Domain (Mesh)+ BC’s, IC’s

Page 7: Presentation to UW-Madison Math Dept. Topology Group ...homepages.cae.wisc.edu/~tautges/papers/hexmod-uwmath.pdf · Presentation to UW-Madison Math Dept. Topology Group, April 16,

Hexahedral Mesh Generation

• No “automatic” hex meshing algorithm known!• Lots of semi-automated algorithms

Quad (surface)algorithms

Sweeping(extrusion)

N-SidePrimitives

Combined Use inLarge Assemblies

Multisweep

Structural Analysis~258K Hex elements

Page 8: Presentation to UW-Madison Math Dept. Topology Group ...homepages.cae.wisc.edu/~tautges/papers/hexmod-uwmath.pdf · Presentation to UW-Madison Math Dept. Topology Group, April 16,

Lessons From AutomaticQuad Meshing (“Paving”)

• Analysts: “ We don’t think that looks like a good mesh”– Nobody worries about that now, they work for analys is

• Automatic quad algorithms a commodity, generating m eshes which look awfully similar– Most using similar types of “cleanup” operations

• Same is true for automatic tetrahedral meshing• Anticipate similar experience in auto hex meshing

“ I’m an optimist; I work in automatic hex meshing, s o I have to be.”

...

...

1. Generate quads 2. “Close”

“Face Open”:

3. Local cleanup

Page 9: Presentation to UW-Madison Math Dept. Topology Group ...homepages.cae.wisc.edu/~tautges/papers/hexmod-uwmath.pdf · Presentation to UW-Madison Math Dept. Topology Group, April 16,

Goal: Hex Mesh Topology Modifications

• We seek a set of operations which is:– Basis set (atomic, complete)– Local

• Subject to constraint:– Each starts and ends with all-hex mesh– Changes confined within a region bounded by

quads (ball or non-ball?)

Page 10: Presentation to UW-Madison Math Dept. Topology Group ...homepages.cae.wisc.edu/~tautges/papers/hexmod-uwmath.pdf · Presentation to UW-Madison Math Dept. Topology Group, April 16,

Local Hex Topology ModificationPrevious Work

• Conformal subdivision templates (CW, mostly 2D)

• Whisker weaving fixup(Mitchell et. al)

• Lifting & Flipping (Bern et. al)

Pillow:

1-3: 2-4:

h-refine:

Inflate hex ring:

Collapse 2 hexes:

• Too many cases!• What about hex dual?

Page 11: Presentation to UW-Madison Math Dept. Topology Group ...homepages.cae.wisc.edu/~tautges/papers/hexmod-uwmath.pdf · Presentation to UW-Madison Math Dept. Topology Group, April 16,

Dual: local definition

• Def: Given a cell complex C, dual complex C* is defined by bijective mapping f: C ŁŁŁŁ C* such that:– f is incidence preserving/reversing on k-faces:

Cik ⊂⊂⊂⊂ Cj

k+1 ↔↔↔↔ f(C jk+1)⊂⊂⊂⊂ f(C i

k)

• Tetrahedral meshing algorithms based on Voronoi diagram

Page 12: Presentation to UW-Madison Math Dept. Topology Group ...homepages.cae.wisc.edu/~tautges/papers/hexmod-uwmath.pdf · Presentation to UW-Madison Math Dept. Topology Group, April 16,

“Cuboid” (Quad/Hex) Mesh: Dual Has Non-Local Structure

• Dual is a simple arrangement of pseudo-hyperplanes– Dual k-faces group together into non-local k-entities

• 1-faces: group into “chords” or 1 d hyperplanes• 2-faces: “sheets” or 2 d hyperplanes

“Sheet diagrams”:topological depiction of intersections on each hyper-plane

Page 13: Presentation to UW-Madison Math Dept. Topology Group ...homepages.cae.wisc.edu/~tautges/papers/hexmod-uwmath.pdf · Presentation to UW-Madison Math Dept. Topology Group, April 16,

Hex Dual is a Simple Polytope Complex

• Consider hex P, vertex V, and incident k-faces:

*PV

Primal P,V *V*

P*

DualV*,P* =

Ψ(P),

Ψ(V)

PPFFPFFPF ⊂⊂⊂ ),0

(2

),0

(1

)(0

Ψ⊂

Ψ⊂

Ψ⊂Ψ 012)( FFFP

• For simple polytopes P:

• However, for d = 3 and P* = Ψ

(V):

( )( )

−=

=

−=−

kd

d

PkFdFcard

PVdFcardPVkFcard

kdPkFdFcard

),(1

),(1

),(

),(1

( ) ( )( ) ( ) dVPFcardPVFcard

dVPFcardPVFcard

==

==

),(2)*,*(*1

),(1)*,*(*2SimplePolytope!

( )( ) dPVFcard

dPVdFcard

=

=−

),(1

),(1

Page 14: Presentation to UW-Madison Math Dept. Topology Group ...homepages.cae.wisc.edu/~tautges/papers/hexmod-uwmath.pdf · Presentation to UW-Madison Math Dept. Topology Group, April 16,

• For cuboid polytope/hex Pc:

• Dehn-Sommerville:

Hex Dual is a Simple Arrangement

*• Simple arrangement, d = 3, one vertex:

•3 surfaces, affinely indep, passing through one vertex•3 surfaces intersecting pairwise; each line split once

•3 surfaces affinely indep,each splits existing cells

12)'(2 =Vf

6)'(1 =Vf

82)'( 33 ==Vf62)(1 ==− dPf cd

12)1(66)(3)(

8)1(44)(2)(21

20

=−=−=

=−=−=

dPfPf

dPfPf

cc

cc

)())'(()'(8

)())'(()'(6

)())'(()'(12

003

221

112

PfVfVf

PfVfVf

PfVfVf

=Ψ==

=Ψ==

=Ψ==

• No more k-faces incident on V’ (simple arr)• Cuboid/hex completely defined by 8, 12, 6 (0, 1, 2)-faces, respectivelyŁ Cuboid/hex dual is a simple arrangement.

dual corresp

Page 15: Presentation to UW-Madison Math Dept. Topology Group ...homepages.cae.wisc.edu/~tautges/papers/hexmod-uwmath.pdf · Presentation to UW-Madison Math Dept. Topology Group, April 16,

Local (Conformal) Modification of Cuboid Meshes Is Difficult

• Conformal mesh CW Complex– Cells of equal dimension pairwise disjoint– Boundary intersection must be members of subspace

topology • Hex mesh: dual hyper-planes must either:

– Terminate on arrangement boundary, or – Form loop/sphere Sd on arrangement interior

Page 16: Presentation to UW-Madison Math Dept. Topology Group ...homepages.cae.wisc.edu/~tautges/papers/hexmod-uwmath.pdf · Presentation to UW-Madison Math Dept. Topology Group, April 16,

Interesting Question: What Do Bern’s Ops Look Like in the Dual?

(0,0)-(0,3):

(2,0)-(0,2):

Ł Look like local, topological modifications to dual arrangement

Ł lots of theoretical machinery which we can apply from topology…

Page 17: Presentation to UW-Madison Math Dept. Topology Group ...homepages.cae.wisc.edu/~tautges/papers/hexmod-uwmath.pdf · Presentation to UW-Madison Math Dept. Topology Group, April 16,

Goal: Dual-Based Hex Mesh Topology Modifications

• We seek a set of operations which is:– Basis set (atomic, complete)– Local

• Subject to constraint:– Each starts and ends with all-hex mesh– Changes confined within a region bounded by

quads (ball or non-ball?)

• 3 operations can reproduce all Bern’s operations– AP: “atomic pillow”– FOC: “face open-collapse”– FS: “face shrink”

Page 18: Presentation to UW-Madison Math Dept. Topology Group ...homepages.cae.wisc.edu/~tautges/papers/hexmod-uwmath.pdf · Presentation to UW-Madison Math Dept. Topology Group, April 16,

Operation #1: Atomic Pillow

• Dual: insert new surface into dual arrangement, such that it intersects dual 1-face

• Primal: “pull apart” a quad into 2 quads sharing al l their edges, fill interior with 2 hexes– Creates 2 new dual vertices (primal: 2 new hexes)

Dual:

Primal:

Page 19: Presentation to UW-Madison Math Dept. Topology Group ...homepages.cae.wisc.edu/~tautges/papers/hexmod-uwmath.pdf · Presentation to UW-Madison Math Dept. Topology Group, April 16,

Operation #2: Face Open-Collapse

Dual (projected):

Primal:a

bc

d

c

d

f

ea

b

a

b

a

b c/f

d/esplit ab, abcd, aefb pull dc through

merge d-e, c-f, ad-ae, bc-bf, (abcd)’-(aefb)’, (abcd)-(aefb)

break 2 1-faces stitch 1-face pairs

c

d

f

e

f

e

Dual (3d arrangement): Minkowski sum of 2 dual surfs ?

Page 20: Presentation to UW-Madison Math Dept. Topology Group ...homepages.cae.wisc.edu/~tautges/papers/hexmod-uwmath.pdf · Presentation to UW-Madison Math Dept. Topology Group, April 16,

Operation #2: Face Open-Collapse

Dual (3d arrangement): introduce void collapse void

• 3d view shows more clearly what’s happening– (if you can visualize it, which isn’t easy…)

• Surgery on dual surfaces, and on cell complex• Removes one of the dual surfaces

Page 21: Presentation to UW-Madison Math Dept. Topology Group ...homepages.cae.wisc.edu/~tautges/papers/hexmod-uwmath.pdf · Presentation to UW-Madison Math Dept. Topology Group, April 16,

Compound OperationsAP + FOC Can Be Applied In Sequence

AP FOC FOC

0) b)a) c)

• 0-a, 0-b, 0-c previously viewed as 3 unrelated oper ations• AP, FOC describes these AND other compound operations• 0-b (“chord push”) = AP + FOC• 0-c (“triple chord push”) = AP + FOC + FOC

Page 22: Presentation to UW-Madison Math Dept. Topology Group ...homepages.cae.wisc.edu/~tautges/papers/hexmod-uwmath.pdf · Presentation to UW-Madison Math Dept. Topology Group, April 16,

• AP, FOC can be applied in sequence “around” a hex p air:

• Results in 2 concentrichex rings, 4 hexes apiece

Operation #3: Face Shrink(The Long Way…)

• “Uncross”:

• Can uncross again…

Page 23: Presentation to UW-Madison Math Dept. Topology Group ...homepages.cae.wisc.edu/~tautges/papers/hexmod-uwmath.pdf · Presentation to UW-Madison Math Dept. Topology Group, April 16,

Operation #3: Face Shrink(An Easier Way…)

• Is it really a distinct operation?– Yes – toroidal region of modification

• What about operations 4.. inf ?– Can form additional handles by joining tori…

Page 24: Presentation to UW-Madison Math Dept. Topology Group ...homepages.cae.wisc.edu/~tautges/papers/hexmod-uwmath.pdf · Presentation to UW-Madison Math Dept. Topology Group, April 16,

Reproducing Bern’s Operations(0,0)-(0,3) / (1-7 flip)

AP FS

Page 25: Presentation to UW-Madison Math Dept. Topology Group ...homepages.cae.wisc.edu/~tautges/papers/hexmod-uwmath.pdf · Presentation to UW-Madison Math Dept. Topology Group, April 16,

Reproducing Bern’s Operations(2,1)-(1,2)

FS

FOC

FOC-TCP

Page 26: Presentation to UW-Madison Math Dept. Topology Group ...homepages.cae.wisc.edu/~tautges/papers/hexmod-uwmath.pdf · Presentation to UW-Madison Math Dept. Topology Group, April 16,

Reproducing Bern’s Operations

FS, FOC, FOC, -FOC, -AP, -FOC, -AP

(1,1)-(1,1)

FS, FOC, -FOC, -AP, -FOC, -AP, -FOC

(0,0)-(0,0)

FS, FOC, FOC, -AP, -FOC, -FOC(2,1)-(1,2)

AP, FS(3,0)-0,3)

FS, FOC, - FOC, -AP(1,0)-(0,1)

FS(2,0)-(0,2)

Dual-based OperationsFlips

FS = Face Shrink FOC = Face Open-Collapse AP = Atomic Pillow

Page 27: Presentation to UW-Madison Math Dept. Topology Group ...homepages.cae.wisc.edu/~tautges/papers/hexmod-uwmath.pdf · Presentation to UW-Madison Math Dept. Topology Group, April 16,

IssuesThree Operations Or Two?

TCP = AP + FOC + FOCFS + FS = AP + FOC + TCP + TCP + TCP + FOC

TCP +TCP

TCPFOCAP

O

O

-FS -FS FOC

Page 28: Presentation to UW-Madison Math Dept. Topology Group ...homepages.cae.wisc.edu/~tautges/papers/hexmod-uwmath.pdf · Presentation to UW-Madison Math Dept. Topology Group, April 16,

IssuesThree Operations Or Two?

TCP = AP + FOC + FOCFS + FS = AP + FOC + TCP + TCP + TCP + FOC

TCP +TCP

TCPFOCAP

O

O

-FS -FS FOC

Group Theory???

Page 29: Presentation to UW-Madison Math Dept. Topology Group ...homepages.cae.wisc.edu/~tautges/papers/hexmod-uwmath.pdf · Presentation to UW-Madison Math Dept. Topology Group, April 16,

IssuesCompleteness

“Given any two hex meshes with the same boundary, can these operations transition between them?”

– Not proven for tetrahedral mesh flips– Does the simple arrangement of the dual make hex ca se

easier to prove?

– Things to check:• Parity flip• Boy’s surface

Page 30: Presentation to UW-Madison Math Dept. Topology Group ...homepages.cae.wisc.edu/~tautges/papers/hexmod-uwmath.pdf · Presentation to UW-Madison Math Dept. Topology Group, April 16,

IssuesSteering Modifications for Mesh Improvement

• Dual-based hex modification operations are:– Local– Reversible– Can be combined to form compound operations

• How can these modifications be used to improve mesh?

• Formulate as an algebraic topology problem?• Optimize “topological quality”

– Analogy to Kernighan-Lin operations to improve load balance

– Optimize both topological quality (irregular nodes) and geometric quality (e.g. condition no.)

Page 31: Presentation to UW-Madison Math Dept. Topology Group ...homepages.cae.wisc.edu/~tautges/papers/hexmod-uwmath.pdf · Presentation to UW-Madison Math Dept. Topology Group, April 16,

Other Potential Applications

• Conformal adaptive mesh refinement of hex meshes

• Improvement of subdivided tet meshes

• “Last mile” in any automatic hex meshing algorithm

Page 32: Presentation to UW-Madison Math Dept. Topology Group ...homepages.cae.wisc.edu/~tautges/papers/hexmod-uwmath.pdf · Presentation to UW-Madison Math Dept. Topology Group, April 16,

Conclusions

• Dual-based operations provide a more unified treatment of conformal hex mesh modifications

• Three dual-based operations can reproduce all six lifting-based flips of Bern et. al– Gives a good theoretical basis for completeness in

a restricted class of operations

• Lots of possible connections with arrangements, group theory, algebraic topology

• Opportunity for topology theory to make impact on real-world problems in FEA

Page 33: Presentation to UW-Madison Math Dept. Topology Group ...homepages.cae.wisc.edu/~tautges/papers/hexmod-uwmath.pdf · Presentation to UW-Madison Math Dept. Topology Group, April 16,

Future Directions

• Seeking collaborations with real mathematicians• Developing tools for visualizing hex meshes &

dual arrangement– Vtk, paraview-based

• Develop interactive tools for demonstrating modifications of actual meshes

• Near-term application: improvement of tet-subdivided hex meshes