Bringing frame fields from research to industrial usage Franck - - PowerPoint PPT Presentation

bringing frame fields from research to industrial usage
SMART_READER_LITE
LIVE PREVIEW

Bringing frame fields from research to industrial usage Franck - - PowerPoint PPT Presentation

9 Bringing frame fields from research to industrial usage Franck Ledoux FRAMES 2019, July, 1-2 2019, Louvain-La-Neuve, Belgium 9 A quick presentation of my context (http://www-hpc.cea.fr/index-en.htm) Modeling radiation-matter interaction CEA


slide-1
SLIDE 1

9

Bringing frame fields from research to industrial usage

Franck Ledoux

FRAMES 2019, July, 1-2 2019, Louvain-La-Neuve, Belgium

slide-2
SLIDE 2

A quick presentation of my context (http://www-hpc.cea.fr/index-en.htm)

Modeling radiation-matter interaction Modeling seismic risks Sizing the Megajoule Laser experiments

CEA is a French National Laboratory Focusing on research and development for energy solutions Participation in research and innovation for HPC through the "Simulation Program" supported by its Direction des Applications Militaires(CEA / DAM). With software development including meshing tools

For CEA mathematicians and physicists For French organisms we collaborate with

9

slide-3
SLIDE 3

2(+1) main types of simulations

LAGRANGE Moving meshes Pure material cells and moving vertices |Cells| = Millions to hundred of millons EULER Static meshes with possibly local refinement (AMR) Mixed-material cells |Cells| = dozens of millions to billions ALE Adaptive Lagrange Euler Moving mesh and mixed-material cells But movement is controled by the numerical code

Meshes for numerical simulation

slide-4
SLIDE 4

The Sod shock tube problem 1-dimensional Riemann problem, with the following parameters for an ideal gaz

! is the density P is the pressure v is the velocity

4

Meshing for Lagrange Hydrodynamics code – Sod use case

slide-5
SLIDE 5

5

Meshing for Lagrange Hydrodynamics code – Sod use case

slide-6
SLIDE 6

6

Meshing for Lagrange Hydrodynamics code – Sod use case

slide-7
SLIDE 7

7

Meshing for Lagrange Hydrodynamics code – Sod use case

slide-8
SLIDE 8

Meshing for Lagrange Hydrodynamics code – Sedov use case

Propagation of a spherical shock wave from a point source energy (sphere center).

Two meshes of the same domain filled of gaz LAGRANGE STRATEGY ALE STRATEGY

slide-9
SLIDE 9

Megajoule Laser Experiments (http://www-lmj.cea.fr/)

Equivalent to the American National Ignition Facility (NIF) at LLNL The principle is to produce fusion reactions within a Deuterium-Tritium mixture contained in a microcapsule using powerful lasers. You get then a very dense plasma but only for very short periods of time. Goal: achieve inertial confinement fusion (ICF) through indirect drive with ignition of a central hotspot.

10

slide-10
SLIDE 10

13

Example of Lagrange simulation for LMJ experiences

slide-11
SLIDE 11

t

14

Example of Lagrange simulation for LMJ experiences

slide-12
SLIDE 12

t

15

Example of Lagrange simulation for LMJ experiences

slide-13
SLIDE 13

t

Lagrange simulations with large deformations Full hexahedral meshes Strong size and direction control

16

Example of Lagrange simulation for LMJ experiences

slide-14
SLIDE 14

What do our users expect?

CEA | October 26th 2012 | PAGE 14

The mesh is a parameter that physicists want to control

Depends on the simulation (physics and numerics concerns) But some usual expected features of hexahedral meshes

  • 1. Block structure
  • 2. Geometric boundary alignment
  • 3. Low distortion of the cells
  • 4. Element size control
slide-15
SLIDE 15

What we do for our users?

Software for CAD modeling and block-structured quad/hex meshing

22

Software for mesh processing

  • Parallel mesh data structure
  • Parallel meshing
  • Quantity projection
  • Euler to Lagrange remeshing
slide-16
SLIDE 16

What we do for our users?

Software for CAD modeling and block-structured quad/hex meshing

22

Can we bring frame field results from research to our tools?

slide-17
SLIDE 17

Outline

Magix3D - CEA tool dedicated to hexahedral block meshing Frame field research at CEA from 2013 On-going works for bringing frame field technology to our users

2D cross fields 3D frame fields

9

slide-18
SLIDE 18

| PAGE 18

MAGIX3D A tool dedicated to hexahedral block meshing

slide-19
SLIDE 19

A GUI software dedicated to block-structured hex meshing

Tailored to physicists requirements, who want to control the meshing process Simple geometric functionalities and advanced hex meshing capabilities 3 launch modes: station, client-server and batch

19

Geometry Topology Mesh

Magix3D – A tool dedicated to hexahedral block meshing

slide-20
SLIDE 20

A GUI software dedicated to block-structured hex meshing

20

Magix3D – A tool dedicated to hexahedral block meshing 2D to 3D capabilities

slide-21
SLIDE 21

A GUI software dedicated to block-structured hex meshing

21

Magix3D – A tool dedicated to hexahedral block meshing Non-conforming blocking Size control

slide-22
SLIDE 22

A GUI software dedicated to block-structured hex meshing

22

Magix3D – A tool dedicated to hexahedral block meshing Blocking operations

Single block creation Multi-block cutting Multi-block splitting via O-grid patterns Geometric classification Smoothing

slide-23
SLIDE 23

132 blocks 1.5 hours 92 blocks 1 hour 174 blocks 2 hours

A simple CAD model with Magix3D

23

29 blocks 15 mins Model Block Structure |B| Average time 59 blocks 25 mins 62 blocks 30 mins

slide-24
SLIDE 24

Can our meshing research help us?

slide-25
SLIDE 25

Frame fields at CEA – since 2013

13

Nicolas Kowalski’s PHD. Domain partitioning using frame fields: applications to quadrilateral and hexahedral meshing. Defended in 2013. Advisors P. Frey (UPMC) & F. Ledoux (CEA)

Generation of full-quad structured meshes in 2D

Hexahedral block structure appears Only 3 and 5-valence vertices Theoretical ground offers guarantees

slide-26
SLIDE 26

Frame fields at CEA – since 2013

13

It didn’t work in 3D

No guarantee to get a block structure Numerically sensitive Limited to simple examples

[Huang et al. 11] Jin Huang, Yiying Tong, Hongyu Wei, and Hujun Bao. Boundary aligned smooth 3d cross- frame field. ACM Trans. Graph., 30(6):143, 2011. [Li et al. 12] Y. Li, Y. Liu, W. Xu, W. Wang, and B. Guo. All-hex meshing using singularity-restricted field. ACM Trans. Graph., 31(6):177:1–177:11, 2012. [Kowalski et al. 15] N. Kowalski, F. Ledoux, and P. Frey. Smoothness driven frame field generation for hexahedral meshing. Computer Aided Design, 2015.

Nicolas Kowalski’s PHD. Domain partitioning using frame fields: applications to quadrilateral and hexahedral meshing. Defended in 2013. Advisors P. Frey (UPMC) & F. Ledoux (CEA)

slide-27
SLIDE 27

Frame fields at CEA – since 2013

13

Try to make it work in 3D, still without any success

3-5 singularity lines

[Vie16] Ryan Viertel, Matt Staten and Franck Ledoux, Analysis of Non-Meshable Automatically Generated Frame Fields, research note at 25th International Meshing Roundtable, 2016.

A B

A B

Singularity line in the generated frame field

A B

Extruded model along one linear direction

slide-28
SLIDE 28

Frame fields at CEA – since 2013

13

Try to make it work in 3D, still without any success

3-5 singularity lines Ski jump configuration

slide-29
SLIDE 29

Frame fields at CEA – since 2013

13

Try to make it work in 3D, still without any success

3-5 singularity lines Ski jump configuration So we have relaxed to hex-dominant meshing (but remains to control locality at least)

slide-30
SLIDE 30

Frame fields at CEA – since 2013

13

Try to make it work in 3D, still without any success

3-5 singularity lines Ski jump configuration So we have relaxed to hex-dominant meshing (but remains to control locality at least) Took a look at Polycubes 158 blocks

slide-31
SLIDE 31

Frame fields at CEA – since 2013

13

Try to make it work in 3D, still without any success

3-5 singularity lines Ski jump configuration So we have relaxed to hex-dominant meshing (but remains to control locality at least) Took a look at Polycubes

Try to put 2D results in our meshing software for surface meshing

For unstructured quad(-dominant) meshing via an indirect approach (idem work to do) For blocking

slide-32
SLIDE 32

A simple CAD model with Magix3D, Polycube and Frame fields

32

Frame fields Hand made Polycbue

NO NO

slide-33
SLIDE 33

33

Frame fields – Focus on failure cases

But what can we bring to the final users RIGHT NOW ? 2D Automatic meshing

  • Curved block structure
  • Unstructured full-quad with size control and boudary alignment

3D Blocking

  • 3D interactive approach - Use frame field to define a new tool
  • Hex-dominant meshing – must be evaluated by users.

AND AFTER

  • Polycube and frame fields studies
slide-34
SLIDE 34

Towards a robust surface blocking method

Ana-Maria Vintescu’s Post-doc (since January 2019)

slide-35
SLIDE 35

2D Frame field Generation

35

Frame fields for 2D block structure

cross field computation remeshing singularity graph extraction

slide-36
SLIDE 36

How to trace singularity lines?

Define 3/5-indexed slots at each singularity point (field singularity and non-convex geometric corners) Try and connect all of them

Use the frame field geometry to create lines

Slot 1 Slot 3 Slot 2

Sequential strategy

Single line tracing Singularity ball radius Heun’s integration

Simultaneous strategy

All lines at the same time

  • Ortho. connecting distance

RK4 integration

slide-37
SLIDE 37

Singularity graph extraction issues

Thin blocks

Strong impact of

the mesh resolution Tolerance parameters (sing. ball & connect. distance)

Streamline tracing error increases near singularities Streamlines can spiral infinitely Streamline tracing algorithms tend to produce thin blocks

Spiral streamlines

slide-38
SLIDE 38

Graph-based tracing

Dijkstra algorithm to compute shortest paths from each slot to the

  • thers (boundary edges are possible exit slots)

Generate an oriented graph G=(V,E) where

  • V = slots + some boundary points, and
  • E = shortest path from each slot to the others

Integer Linear Programming for filtering edges of G

Minimizing the sum of selected edge weights 1 edge per slot exactly

Slot 1 Slot 3 Slot 2

  • Starting from a triangle slot – source
  • Walk along triangle centers (u,v0,v1...) visiting adjacent triangles
  • Distance as the angle difference between the (previous and
  • Get the shortest paths towards the slots of other singularities

(or boundary) - targets 1 boolean unknown per edge (0-remove, 1-keep) Forbid intersection between edges

slide-39
SLIDE 39

Graph-based tracing

|T| = 7 219 |T| = 102 707

Benefits

No spiral streamlines Improved accuracy with mesh refinement

Drawback

Computationally more expensive

Short-time future work

Generation of high-order blocks Evaluation of a triangular mesh size adaption process

Medium-time future work

Try and diminish the computational cost of the method Integration to Magix3D for automatic surface blocking

slide-40
SLIDE 40

Design of an interactive tool for hexahedral mesh blocking

Simon Calderan’s Phd (started in November 2018)

“Dual-based user-guided hexahedral block generation using frame fields”, Simon Caldéran (CEA), Franck Ledoux (CEA), Guillaume Hutzler, submitted to IMR 2019.

slide-41
SLIDE 41

3D Interactive blocking from frame fields

Input: a valid model and frame field

  • No 3-5 singularity line
  • No jump
  • Refined enough
slide-42
SLIDE 42

3D Interactive blocking from frame fields

Build dual surfaces

  • Select one point and one direction to build a single surface
slide-43
SLIDE 43

3D Interactive blocking from frame fields

Extract primal blocks

  • Check the dual structure validity
  • If invalid dual structure, goes back to dual sheet

creation Build dual surfaces

slide-44
SLIDE 44

3D Interactive blocking from frame fields

Create final mesh Extract primal blocks Build dual surfaces

slide-45
SLIDE 45

3D Interactive blocking from frame fields

Create final mesh Extract primal blocks Build dual surfaces

[1] Z. Zheng and R. Wang and S. Gao and Y. Liao and M. Ding, Dual Surface Based Approach to Block Decomposition of Solid Models, Proceedinds of the 26th International Meshing Roundtable, 2018. [2] K. Takayama , Dual Sheet Meshing: An Interactive Approach to Robust Hexahedralization, Computer Graphics Forum, published by the Eurographics Association, DOI= 10.1111/cgf.13617, 2019. [3] Marco Livesu and all, Loopy Cuts: Surface-Field Aware Block Decomposition for Hex-Meshing , Preprint, March 2019.

slide-46
SLIDE 46

Dual surface insertion in action

Surface-style representation Intersected tetrahedra

Successive creations of dual surfaces

slide-47
SLIDE 47

Dual surface creation

Input: a point (so a tet) and a direction Propagation in the physical tetrahedral mesh following the frame field along cut edges Numerically sensitive à needs control filter near singularity lines

Breadth-first traversal by successive waves

slide-48
SLIDE 48

Dual surface creation

Input: a point (so a tet) and a direction Propagation in the physical tetrahedral mesh following the frame field along cut edges Numerically sensitive à needs control filter near singularity lines

No filter Topological filter + Geometric filter (90 degrees) Topological filter + Geometric filter (45 degrees)

slide-49
SLIDE 49

Dual Structure validation – Rules on dual zones

dual surfaces dual surfaces tetrahedra dual zones

slide-50
SLIDE 50

Dual Structure validation – Rules on dual zones

dual surfaces dual surfaces tetrahedra dual zones

Only one or two dual surfaces à not a dual hex

slide-51
SLIDE 51

Dual Structure validation – Rules on dual zones

dual surfaces dual surfaces tetrahedra dual zones

Only one or two dual surfaces à not a dual hex A boundary dual zone can not contain a field singularity

slide-52
SLIDE 52

Dual Structure validation – Rules on dual zones

dual surfaces dual surfaces tetrahedra dual zones

Only one or two dual surfaces à not a dual hex A boundary dual zone can not contain a field singularity

slide-53
SLIDE 53

Dual Structure validation – Rules on dual zones

Only one or two dual surfaces à not a dual hex A boundary dual zone can not contain a field singularity or two geometric corners

slide-54
SLIDE 54

Dual Structure validation – Rules on dual zones

Only one or two dual surfaces à not a dual hex A boundary dual zone can not contain a field singularity or two geometric corners A dual zone can not contain two field singularities

slide-55
SLIDE 55

Some first results

slide-56
SLIDE 56

Ski Jump zone

Pattern insertion via user selection

3-5 singularity lines

Interactive line modification but how to modify the frame

field then? See « Symmetric Moving Frames », E. Corman, K. Crane, ACM ToG, July 2019 or « Singularity-constrained octahedral fields for hexahedral meshing », H. Liu and all, ACM ToG, 2018.

Model splitting using stable frame fields direction

Limitations and future work for interactive 3D blocking

slide-57
SLIDE 57

Conclusion about using frame fields for our tools

Quad blocking

  • close to get expected robustness

Hexahedral-dominant meshing requirements:

  • Constraint some boundaries for assembly models
  • Control hexahedra location

Hexahedral block meshing

  • Remains a lot of work for automation
  • Interactivity will help us but is not the key
slide-58
SLIDE 58

Thank you