topology optimization for computational fabricationcwang/courses/tudelftshapemodeling/...topology...

74
Topology Optimization for Computational Fabrication Jun Wu Depart. of Design Engineering [email protected]

Upload: others

Post on 23-Apr-2020

25 views

Category:

Documents


1 download

TRANSCRIPT

Topology Optimization for Computational Fabrication

Jun Wu Depart. of Design Engineering

[email protected]

Munich

Copenhagen

Delft

Computer Science

Mechanical Engineering

Industrial Design Engineering

2

Bone Chair by Joris Laarman

3

Seat

Back

4

5 www.jorislaarman.com

Schedule

โ€ข Basics of Topology Optimization (45โ€™)

โ€ข Break (15โ€™)

โ€ข Topology Optimization for Additive Manufacturing (45โ€™)

โ€ข Break (15โ€™)

โ€ข Exercises and Assignment (45โ€™)

6

Topology Optimization Examples

Airbus & EOS, 2014

Qatar national convention

Reconstructive surgery

Glaucio H. Paulino @ UIUC

Airbus APWorks, 2016 Frustum Inc.

7

Full-scale aircraft wing design

Airbus & EOS, 2014

Aage et al., Nature 2017 8

Classes of Structural optimization: Sizing, Shape, Topology

Initial

Optimized

Sizing Shape Topology

9

โ€ข Design the stiffest shape, by placing ๐Ÿ”๐ŸŽ Lego blocks into a grid of ๐Ÿ๐ŸŽ ร— ๐Ÿ๐ŸŽ

A Toy Problem

20

10

10

A Toy Problem: Possible Solutions

โ€ข Number of possible designs

โ€“ ๐ถ 200,60 =200!

60! 200โˆ’60 != 7.04 ร— 1051

โ€ข Which one is the stiffest?

Design A Design B

Design C

11

A Toy Problem: Possible Solutions

โ€ข Which one is the stiffest?

Design B

Design C

Design A

12

Design B

Design C

Design A

โ€ข Which one is the stiffest?

A Toy Problem: Possible Solutions

13

Topology Optimization Animation

๐‘“

14

Topology Optimization

Minimize: ๐‘ =1

2๐‘ˆ๐‘‡๐พ๐‘ˆ

Subject to: ๐พ๐‘ˆ = ๐น

๐‘˜

๐‘˜๐‘ข = ๐‘“

๐‘“

๐‘ข

๐‘ =1

2๐‘“๐‘ข =

1

2๐‘˜๐‘ข2 Elastic energy

Static equation

15

Topology Optimization

Minimize: ๐‘ =1

2๐‘ˆ๐‘‡๐พ๐‘ˆ

Subject to: ๐พ๐‘ˆ = ๐น

๐œŒ๐‘– = 1 (solid)0 (void)

, โˆ€๐‘–

g = ๐œŒ๐‘–๐‘– โˆ’ ๐‘‰0 โ‰ค 0

1 1 1 1 1 1 1 1 1

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

1 1 1 1 1 1 1 1 1 1

1 1 1 1

Design variables

Volume constraint

Elastic energy

Static equation

16

Topology Optimization

1 1 1 1 1 1 1 1 1

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

1 1 1 1 1 1 1 1 1 1

1 1 1 1

Compute

displacement

(KU=F)

Sensitivity

analysis

Update ๐œŒ๐‘–

Converged? No

Yes

Minimize: ๐‘ =1

2๐‘ˆ๐‘‡๐พ๐‘ˆ

Subject to: ๐พ๐‘ˆ = ๐น

๐œŒ๐‘– = 1 (solid)0 (void)

, โˆ€๐‘–

g = ๐œŒ๐‘–๐‘– โˆ’ ๐‘‰0 โ‰ค 0

17

Topology Optimization Animation

๐‘“

18

Relaxation: Discrete to Continuous

Minimize: ๐‘ =1

2๐‘ˆ๐‘‡๐พ๐‘ˆ

Subject to: ๐พ๐‘ˆ = ๐น

๐œŒ๐‘– = 1 (solid)0 (void)

, โˆ€๐‘–

g = ๐œŒ๐‘–๐‘– โˆ’ ๐‘‰0 โ‰ค 0

๐œŒ๐‘– โˆˆ [0 , 1]

โ€ข Motivation: (Difficult) binary problem โ†’ (easier) continuous problem

19

Material Interpolation

โ€ข Material properties: Youngโ€™s modulus ๐ธ, and Poisson's ratio ๐œˆ

โ€ข SIMP interpolation (Solid Isotropic Material with Penalization)

โ€“ ๐ธ๐‘– = ๐œŒ๐‘–๐‘๐ธ

โ€“ ๐‘ โ‰ฅ 1, typically ๐‘ = 3

20

Sensitivity Analysis

โ€ข Sensitivity: The derivative of a function with respect to design variables

โ€ข๐œ•๐‘

๐œ•๐œŒ๐‘–= โˆ’

๐‘

2๐œŒ๐‘–

๐‘โˆ’1๐‘ข๐‘–

๐‘‡๐พ ๐‘ข๐‘–

โ€“ Smaller than zero

โ€ข๐œ•๐‘”

๐œ•๐œŒ๐‘–= 1

Minimize: ๐‘ =1

2๐‘ˆ๐‘‡๐พ๐‘ˆ

Subject to: ๐พ๐‘ˆ = ๐น

๐œŒ๐‘– โˆˆ [0 , 1]

g = ๐œŒ๐‘–๐‘– โˆ’ ๐‘‰0 โ‰ค 0

22

Design Update

โ€ข Mathematical programming

โ€“ Interior point method (IPOPT package)

โ€“ The method of moving asymptotes (MMA)

โ€ข Optimality criterion

โ€“ If โ€œโˆ’๐œ•๐‘

๐œ•๐œŒ๐‘–โ€ is large, increase ๐œŒ๐‘–

โ€“ Otherwise, decrease ๐œŒ๐‘–

โ€“ How to determine large or small?

โ€“ Bisection search for a threshold

Compute

displacement

(KU=F)

Sensitivity

analysis

Update ๐œŒ๐‘–

Converged? No

Yes

23

Checkerboard Patterns

24

Sensitivity Filtering by a Convolution Operation

Compute

displacement

(KU=F)

Sensitivity

analysis

Update ๐œŒ๐‘–

Converged? No

Yes

Convolution

25

Convolution Operation

26

http://cse19-iiith.vlabs.ac.in/theory.php?exp=neigh

Demo

โ€ข www.topopt.dtu.dk

27

Topology Optimization

1 1 1 1 1 1 1 1 1

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

1 1 1 1 1 1 1 1 1 1

1 1 1 1

Compute

displacement

(KU=F)

Sensitivity

analysis

Update ๐œŒ๐‘–

Converged? No

Yes

Minimize: ๐‘ =1

2๐‘ˆ๐‘‡๐พ๐‘ˆ

Subject to: ๐พ๐‘ˆ = ๐น

๐œŒ๐‘– โˆˆ [0,1], โˆ€๐‘–

g = ๐œŒ๐‘–๐‘– โˆ’ ๐‘‰0 โ‰ค 0

90%

28

Geometric Multigrid: Solving ๐พ๐‘ข = ๐‘“

โ€ข Successively compute approximations ๐‘ข๐‘š to the solution u = lim๐‘šโ†’โˆž

๐‘ข๐‘š

โ€ข Consider the problem on a hierarchy of successively coarser grids to

accelerate convergence

Relax ๐พโ„Ž๐‘ข โ„Ž โ‰ˆ ๐‘“โ„Ž

Residual ๐‘Ÿโ„Ž = ๐‘“โ„Ž โˆ’ ๐พโ„Ž๐‘ข โ„Ž

Interpolate

๐‘’ โ„Ž = ๐ผ2โ„Žโ„Ž ๐‘’2โ„Ž

Relax ๐พโ„Ž๐‘ข โ„Ž โ‰ˆ ๐‘“โ„Ž Correct ๐‘ข โ„Ž โ† ๐‘ข โ„Ž + ๐‘’ โ„Ž

Restrict

๐‘Ÿ2โ„Ž = ๐‘…โ„Ž2โ„Ž๐‘Ÿโ„Ž

Solve ๐พ4โ„Ž๐‘’4โ„Ž = ๐‘Ÿ4โ„Ž W. Briggs, A multigrid tutorial, 2000

ฮฉโ„Ž

ฮฉ2โ„Ž

ฮฉ4โ„Ž

โ‹ฎ 29

Memory-Efficient Implementation on GPU

โ€ข On-the-fly assembly

โ€“ Avoid storing matrices on the finest level

โ€ข Non-dyadic coarsening (i.e., 4:1 as opposed to 2:1)

โ€“ Avoid storing matrices on the second finest level

ฮฉโ„Ž

ฮฉ2โ„Ž

ฮฉ4โ„Ž

โ‹ฎ

Wu et al., TVCGโ€™2016

Dick et al., SMPTโ€™2011 30

High-Resolution Design

Resolution: 621ร—400ร—1000

#Element 14.2m

Time: 12 minutes

31

33

Larsen et al. 1997 Negative Poisson's ratio

Sigmund &Torquato 1996 Negative thermal expansion

Sigmund 2000

Alexandersen et al. 2016 Maute & Pingen

Electric actuator

Natural convection Fluid flow 34

A General Formulation

1 1 1 1 1 1 1 1 1

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

1 1 1 1 1 1 1 1 1 1

1 1 1 1

Solve state

equation

Sensitivity

analysis

Update ๐œŒ๐‘–

Converged? No

Yes

Minimize: ๐‘(๐œŒ)

Subject to: ๐œŒ๐‘– โˆˆ [0,1], โˆ€๐‘–

๐‘”๐‘–(๐œŒ) โ‰ค 0

35

Outline

โ€ข Basics of Topology Optimization

โ€ข Topology Optimization for Additive Manufacturing

36

Additive Manufacturing: Complexity is free

Joshua Harker Scott Summit TU Delft & MX3D, 2015

37

Complexity is free? โ€ฆ Not really!

โ€ข Printer resolution: Minimum geometric feature size

โ€ข Layer-upon-layer: Supports for overhang region

โ€ข Shell-infill composite

Supports Infill Tiny details

Ralph Mรผller

Paul Crompton

Concept Laser GmhH mpi.fs.tum.de

38

Outline

โ€ข Basics of Topology Optimization

โ€ข Topology Optimization for Additive Manufacturing

โ€“ Geometric feature control by density filters

โ€“ Geometric feature control by alternative parameterizations

39

Messerschmidt-Bรถlkow-Blohm (MBB) beam

40

Messerschmidt-Bรถlkow-Blohm (MBB) beam

41

Geometric feature control by density filters

(An incomplete list)

Minimum feature size, Guestโ€™04 Coating structure, Clausenโ€™15

Self-supporting design, Langelaarโ€™16 Porous infill, Wuโ€™16

Reference

42

Infill in 3D Printing: Regular Structures

43 www.makerbot.com

3dplatform.com

Infill in Bone: Porous Structures

44

Can we apply the principle of bone to 3D printing?

45

Topology Optimization Applied to Design Infill

Infill in the bone Topology optimization

No similarity in structure

46

Topology Optimization Applied to Design Infill

โ€ข Materials accumulate to โ€œimportantโ€ regions

โ€ข The total volume ๐œŒ๐‘–๐‘ฃ๐‘–๐‘– โ‰ค ๐‘‰0 does not restrict local material

distribution

Infill in the bone Infill by standard

topology optimization 47

Bone-like Infill in 2D

Cross-section of a human femur

48

Approaching Bone-like Structures: The Idea

โ€ข Impose local constraints to avoid fully solid regions

Min: c =1

2๐‘ˆ๐‘‡๐พ๐‘ˆ

s.t. : ๐พ๐‘ˆ = ๐น

๐œŒ๐‘– โˆˆ [0,1], โˆ€๐‘–

๐œŒ๐‘–๐‘– โ‰ค ๐‘‰0

๐œŒ๐‘– โ‰ค ๐›ผ, โˆ€๐‘–

๐œŒ๐‘– = ๐‘—โˆˆ๐›บ๐‘–

๐œŒ๐‘—

๐‘—โˆˆ๐›บ๐‘–1

Local-volume measure

๐›บ๐‘–

๐œŒ๐‘– = 0.0

๐œŒ๐‘– = 0.6

๐œŒ๐‘– = 1.0

49

Constraints Aggregation (Reduce the Number of Constraints)

๐œŒ๐‘– โ‰ค ๐›ผ, โˆ€๐‘– max๐‘–=1,โ€ฆ,๐‘›

๐œŒ๐‘– โ‰ค ๐›ผ lim๐‘โ†’โˆž

๐œŒ ๐‘ = ๐œŒ๐‘– ๐‘

๐‘–

1

๐‘ โ‰ค ๐›ผ

Too many constraints! A single constraint But non-differentiable

A single constraint and differentiable Approximated with ๐‘ =16

50

Optimization Process: The same as in the standard topopt

โ€ข Impose local constraints to avoid fully solid regions

Min: c =1

2๐‘ˆ๐‘‡๐พ๐‘ˆ

s.t. : ๐พ๐‘ˆ = ๐น

๐œŒ๐‘– โˆˆ [0,1], โˆ€๐‘–

๐œŒ๐‘–๐‘– โ‰ค ๐‘‰0

๐œŒ๐‘– โ‰ค ๐›ผ, โˆ€๐‘–

๐œŒ๐‘– = ๐‘—โˆˆ๐›บ๐‘–

๐œŒ๐‘—

๐‘—โˆˆ๐›บ๐‘–1

Local-volume measure

๐›บ๐‘– 51

Compute

displacement

(KU=F)

Sensitivity

analysis

Update ๐œŒ๐‘–

Converged? No

Yes

A Test Example

52

Effects of Filter Radius and Local Volume Upper Bound

๐›ผ, ๐‘ = (0.6, 76.9) (0.5, 96.0) 0.4, 130.0

(0.6, 73.9) (0.5, 91.2) 0.4, 119.8

R=6

R=12

53

Local + Global Volume Constraints

๐›ผ, ๐›ผ๐‘ก๐‘œ๐‘ก๐‘Ž๐‘™ , ๐‘ = (0.6, 0.56, 76.9) (0.6, 0.50, 79.1) 0.6, 0.40, 94.0

R=6

54

Result: 2D Animation

55

Result: 2D Animation

56

โ€ข Porous structures are significantly stiffer (126%) in case of force variations

Robustness wrt. Force Variations

c = 30.54 c = 36.72 cโ€™= 45.83 cโ€™ =36.23

Local volume constraints Total volume constraint

57

โ€ข Porous structures are significantly stiffer (180%) in case of material deficiency

Robustness wrt. Material Deficiency

Local volume constraints

c = 93.48 c = 76.83

Total volume constraint

cโ€™= 134.84 cโ€™ =242.77

58

Bone-like Infill in 3D

Optimized bone-like infill Infill in the bone

Wu et al., TVCGโ€™2017 59

FDM Prints

60

Chair

61

Video

63

Geometric feature control by density filters

(An incomplete list)

Minimum feature size, Guestโ€™04 Coating structure, Clausenโ€™15

Self-supporting design, Langelaarโ€™16 Porous infill, Wuโ€™16

Reference

64

Concurrent Shell-Infill Optimization

Wu et al., CMAME 2017 65

Outline

โ€ข Basics of Topology Optimization

โ€ข Topology Optimization for Additive Manufacturing

โ€“ Geometric feature control by density filters

โ€“ Geometric feature control by alternative parameterizations

66

Geometric feature control by alternative parameterizations

(An incomplete list)

Offset surfaces, Musialskiโ€™15

1 1 1 1 1 1 1 1 1

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

1 1 1 1 1 1 1 1 1 1

1 1 1 1

Reference: Voxel discretization

Ray representation, Wuโ€™16

Skin-frame, Wangโ€™13

Voxel, Prรฉvostโ€™13

Adaptive rhombic, Wuโ€™16

Voronoi cells, Luโ€™14

67

Overhang in Additive Manufacturing

โ€ข Support structures are needed beneath overhang surfaces

http://www.sd3d.com/portfolio/o-orientation-of-print/

https://www.protolabs.com/blog/tag/direct-metal-laser-sintering/ 69

Support Structures in Cavities

โ€ข Post-processing of inner supports is problematic

Print

direction

Inner supports

Outer supports

70

Infill & Optimization Shall Integrate

Solid,

Unbalanced

Optimized,

Balanced

With infill,

Unbalanced 71

The Idea

โ€ข Rhombic cell: to ensure self-supporting

โ€ข Adaptive subdivision: as design variable in optimization

Print

direction

Adaptive subdivision Rhombic cell 72

Self-Supporting Rhombic Infill: Workflow

0.4X

Initialization

Optimization

73

Compute

displacement

(KU=F)

Sensitivity

analysis

Update

subdivision

Converged? No

Yes

Self-Supporting Rhombic Infill: Results

โ€ข Optimized mechanical properties, compared to regular infill

โ€ข No additional inner supports needed

Optimization process Reference Print

Wu et al., CADโ€™2016 74

Mechanical Tests

Under same force (62 N) Under same displacement (3.0 mm)

Dis.

2.11 mm

Dis.

4.08 mm

Force

90 N

Force

58 N

75

Bone-inspired infill Self-supporting infill

Outline

โ€ข Basics of Topology Optimization

โ€ข Topology Optimization for Additive Manufacturing

โ€“ Geometric feature control by density filters

โ€“ Geometric feature control by alternative parameterizations

76

Topology Optimization

โ€ข Lightweight

โ€ข Free-form shape

โ€ข Customization

โ€ข Mechanically optimized

Additive Manufacturing

โ€ข Customization

โ€ข Geometric complexity

77

Thank you for your attention!

Jun Wu Depart. of Design Engineering, TU Delft

www.jun-wu.net

[email protected]