elasticity & discretization - university of waterlooc2batty/courses/cs888_2014/lecture3.pdfย ยท...

52
Elasticity & Discretization Jan 14, 2014

Upload: dangnhi

Post on 19-Mar-2019

224 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Elasticity & DiscretizationJan 14, 2014

Page 2: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Schedule

โ€ข First round schedule is almost completeโ€“ if you havenโ€™t picked a paper yet, email me ASAP!

โ€ข Weโ€™ll have two round of presentations.

โ€ข For final third of the course, longer group discussions instead.

Page 3: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Elasticity

Page 4: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Elasticity

An elastic object is one that, when deformed, seeks to return to some reference of rest configuration.

Previously: discrete mass/spring models.Today: more principled, โ€œcontinuum mechanicsโ€ approach.

Generalize 1D elasticity (springs) to 3D objects.

Will roughly follow Sifakisโ€™ SIGGRAPH course: http://run.usc.edu/femdefo/sifakis-courseNotes-TheoryAndDiscretization.pdf

Page 5: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Continuum Mechanics

View the material under consideration as a continuous mass, rather than a collection of particles/atoms.

Useful model for both solids and fluids.

Not always applicable: e.g., at tiny scales, during some kinds of fracture, etc.

v.s.

Page 6: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Elasticity - Springs

Recall: (Linear) spring force is dictated by displacement, โˆ†๐‘ฅ = ๐ฟ โˆ’ ๐ฟ0, away from rest length (Hookeโ€™s law).

๐น = โˆ’๐‘˜โˆ†๐‘ฅ

This follows from its potential energy:

U =1

2๐‘˜(โˆ†๐‘ฅ)2

i.e., force acts to drive potential energy towards zero.

Page 7: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Conservative Forces

A spring force is an example of a conservative force โ€“ it depends only on the current state (path-independent).

For such forces, given potential energy ๐‘ˆ, the force is ๐น = โˆ’๐›ป๐‘ˆ.

Thus, we seek a potential energy that is zero when our 3D object is undeformed.

Page 8: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Elasticity โ€“ 3D

How can we generalize these notions to three-dimensional volumes of material?

First, need a way to describe 3D deformations.

Page 9: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Deformation Map

A function ๐œ™ that maps points from the reference configuration ( ๐‘‹) to current position in world space ( ๐‘ฅ).

๐œ™: โ„3 โ†’ โ„3

Similar to the state/transform of a rigid body, except points in the body may all have different transformations.

Page 10: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Deformation Map, ๐œ™

๐œ™: โ„3 โ†’ โ„3

๐‘‹ ๐‘ฅ

Reference/rest/undeformedconfiguration:

World/deformed configuration:

Page 11: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Deformation Gradient, ๐น =๐œ•๐œ™

๐œ•๐‘‹

๐‘‹

๐‘ฅ

Reference/rest/undeformedconfiguration:

World/deformed configuration:

๐‘‹ + ๐‘‘๐‘‹ ๐‘ฅ + ๐‘‘๐‘ฅ

๐œ™: โ„3 โ†’ โ„3

Page 12: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Deformation Gradient

Shape changes are indicated by local differences in the deformation map, ๐œ™.

This is reflected in the deformation gradient (wrt. reference configuration X.)

๐‘ญ =๐œ•๐œ™

๐œ• ๐‘‹=

๐œ•๐œ™1๐œ•๐‘‹1

๐œ•๐œ™1๐œ•๐‘‹2

๐œ•๐œ™1๐œ•๐‘‹3

๐œ•๐œ™2

๐œ•๐‘‹1

๐œ•๐œ™2

๐œ•๐‘‹2

๐œ•๐œ™2

๐œ•๐‘‹3๐œ•๐œ™3

๐œ•๐‘‹1

๐œ•๐œ™3

๐œ•๐‘‹2

๐œ•๐œ™3

๐œ•๐‘‹3

Page 13: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Deformation Gradient

For some offset position from ๐‘‹, say ๐‘‹ + ๐‘‘๐‘‹, what is the corresponding world position?

๐‘ฅ + ๐‘‘๐‘ฅ = ๐œ™ ๐‘‹ + ๐‘‘๐‘‹ โ‰ˆ ๐œ™ ๐‘‹ +๐œ•๐œ™

๐œ• ๐‘‹๐‘‘๐‘‹ = ๐‘ฅ + ๐‘ญ๐‘‘๐‘‹

Deformation gradient describes how particle positions have changed relative to one another.

Translation

Relative deformation

Taylor expandโ€ฆ

Page 14: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Deformation Gradient

Examples of deformations:

Translation: ๐‘ฅ = ๐œ™( ๐‘‹) = ๐‘ก + ๐‘‹ implies ๐น = ๐ผ.

Uniform Scaling: ๐‘ฅ = ๐œ™ ๐‘‹ = ๐‘ ๐‘‹ implies ๐น = ๐‘ ๐ผ.

Rotation: ๐‘ฅ = ๐œ™ ๐‘‹ = ๐‘…๐‘‹ implies ๐น = ๐‘….

Page 15: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

One Possible Potential Energy

What if we use ๐น directly to construct a potential energy?

U ๐น =๐‘˜

2๐น โˆ’ ๐ผ ๐น

2

Resulting forces will drive ๐น towards ๐ผ, i.e., a deformation that is (just) a translation.

Whatโ€™s wrong with this?

Page 16: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Strain Measures

Want a deformation measure that ignores rotation (and translation), but captures other deformations.

Can we extract this from ๐น?

Recall: Rotation matrices are orthogonal, ๐‘…๐‘‡๐‘… = ๐ผ.

So a useful measure is Green/Lagrange strain tensor, E =1

2(๐น๐‘‡๐น โˆ’ ๐ผ).

Ignores translation and rotation, retains shear/stretch/compression.

Page 17: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Strain Measures

But, Green strain is nonlinear (quadratic), so more costly.

For small deformations, use small/infinitesimal/Cauchy strain:

๐œ– =1

2(๐น๐‘‡ + ๐น) โˆ’ ๐ผ

(A linearization of Green strain.)

Many other strain tensors exist (and these two have many names)โ€ฆ

Page 18: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Equations of Motion

Consider F=ma for a small, continuous blob of material.

ฮฉ

๐น๐‘๐‘œ๐‘‘๐‘ฆ๐‘‘๐‘‹ + ๐œ•ฮฉ

๐‘‡๐‘‘๐‘† = ฮฉ

๐œŒ ๐‘ฅ๐‘‘๐‘‹

F: body forces that act throughout the material (e.g. gravity, magnetism, etc.) force per unit volume (i.e., force density).

๐‘‡: tractions, i.e., force per unit area acting on a surface.

ฮฉ is the region of material being considered.

Page 19: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Traction

Traction T is the force (vector) per unit area on a small piece of surface.

๐‘‡( ๐‘‹, ๐‘›) = lim๐ดโ†’0

๐น

๐ด

Cauchyโ€™s postulate:

Traction is a function of position ๐‘‹ and normal ๐‘›.

i.e., doesnโ€™t depend on curvature or other properties.

Consists of normal/pressure component along ๐‘›, and tangential/shear components perpendicular to it.

๐‘› ๐‘‡

Page 20: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Traction

Consider the internal traction on any slice through a volume of material.

This describes the forces acting on this plane between the two โ€œsidesโ€.

Note: T(x,n) = -T(x,-n)

Page 21: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Traction

We can characterize internal forces by considering tractions on 3 perpendicular slices (i.e., normals along x, y, z directions).

3 components per traction along 3 axes gives us 9 components.

This gives us the Cauchy stress tensor, ๐œŽ.

Traction on any plane can be recovered with: ๐‘‡ = ๐œŽ๐‘›

Page 22: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Stress

The 3x3 stress tensor describes the forces acting within a material.

๐œŽ =

๐œŽ๐‘ฅ๐‘ฅ ๐œŽ๐‘ฅ๐‘ฆ ๐œŽ๐‘ฅ๐‘ง๐œŽ๐‘ฆ๐‘ฅ ๐œŽ๐‘ฆ๐‘ฆ ๐œŽ๐‘ฆ๐‘ง๐œŽ๐‘ง๐‘ฅ ๐œŽ๐‘ง๐‘ฆ ๐œŽ๐‘ง๐‘ง

๐œŽ can be shown to be symmetric, i.e., ๐œŽ๐‘ฆ๐‘ฅ = ๐œŽ๐‘ฅ๐‘ฆ, etc. (from conservation of angular momentum.)

Page 23: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Stress โ€“ Meaning?

Diagonal components correspond to compression/extension.

Off-diagonal components correspond to shears.

Page 24: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Equations of motion

ฮฉ

๐น๐‘๐‘œ๐‘‘๐‘ฆ๐‘‘๐‘‹ + ๐œ•ฮฉ

๐‘‡๐‘‘๐‘† = ฮฉ

๐œŒ ๐‘ฅ๐‘‘๐‘‹

โ€ข Plug in ๐‘‡ = ๐œŽ๐‘›โ€ฆ

ฮฉ

๐น๐‘๐‘œ๐‘‘๐‘ฆ๐‘‘๐‘‹ + ๐œ•ฮฉ

๐œŽ๐‘›๐‘‘๐‘† = ฮฉ

๐œŒ ๐‘ฅ๐‘‘๐‘‹

โ€ข Integrate by parts (divergence theorem) to eliminate surface integral:

ฮฉ

๐น๐‘๐‘œ๐‘‘๐‘ฆ๐‘‘๐‘‹ + ฮฉ

๐›ป โˆ™ ๐œŽ๐‘‘๐‘‹ = ฮฉ

๐œŒ ๐‘ฅ๐‘‘๐‘‹

In the limit, ๐น๐‘๐‘œ๐‘‘๐‘ฆ + ๐›ป โˆ™ ๐œŽ = ๐œŒ ๐‘ฅ, for every infinitesimal point.

Page 25: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Big Picture โ€“ So Far

โ€ข Deformation map ๐œ™ describes map from rest to world state

โ€ข Deformation gradient ๐น describes deformations (minus translation)

โ€ข Strains ๐œ– or E describe deformation (minus rotation)

โ€ข Stress ๐œŽ describes forces in material

โ€ข PDE ๐น๐‘๐‘œ๐‘‘๐‘ฆ + ๐›ป โˆ™ ๐œŽ = ๐œŒ ๐‘ฅ describes how to apply stress to get motion

โ€ข (Later, will discretize the PDE to get discrete equations to solve.)

Missing step!

Page 26: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Constitutive models

Strain E/ ๐œ– describes deformations of a body.

Stress ๐œŽ describes (resulting) forces within a body.

Constitutive models dictate the stress-strain relationship in a material. (Why rubber responds differently than concrete.)

i.e., Given some deformation, what stresses (forces) does it induce?

(e.g., linear spring force, F=-kx. )

Page 27: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Linear elasticity - simplest isotropic model

Hookeโ€™s law in 3D, for small strain, ๐œ–.

Potential Energy:

๐‘ˆ ๐น = ๐œ‡๐œ–: ๐œ– +๐œ†

2tr2(๐œ–)

Stress:๐œŽ = 2๐œ‡๐œ– + ๐œ†tr(๐œ–)๐ผ

๐œ‡, ๐œ† are the Lamรฉ parameters, one choice of โ€œelastic moduliโ€.

โ€œtrโ€ is the trace operator (sum of diagonals)

โ€œ:โ€ is a tensor double dot product, where ๐ด:๐ต = tr(๐ด๐‘‡๐ต)

Page 28: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Linear Elasticity

โ€ข Can see it is linear by expressing in matrix/vector form

โ€ข Flatten 3x3 tensors ๐œ– and ๐œŽ into vectors.

โ€ข Isotropy and symmetry of ๐œ–/๐œŽ reduce 81 coeffs down to 2 independent parameters.

๐œŽ๐‘ฅ๐‘ฅ๐œŽ๐‘ฅ๐‘ฆ๐œŽ๐‘ฅ๐‘ง๐œŽ๐‘ฆ๐‘ฅ๐œŽ๐‘ฆ๐‘ฆ๐œŽ๐‘ฆ๐‘ง๐œŽ๐‘ง๐‘ฅ๐œŽ๐‘ง๐‘ฆ๐œŽ๐‘ง๐‘ง

= 9๐‘ฅ9 ๐‘๐‘œ๐‘’๐‘“๐‘“๐‘–๐‘๐‘–๐‘’๐‘›๐‘ก ๐‘š๐‘Ž๐‘ก๐‘Ÿ๐‘–๐‘ฅ

๐œ–๐‘ฅ๐‘ฅ๐œ–๐‘ฅ๐‘ฆ๐œ–๐‘ฅ๐‘ง๐œ–๐‘ฆ๐‘ฅ๐œ–๐‘ฆ๐‘ฆ๐œ–๐‘ฆ๐‘ง๐œ–๐‘ง๐‘ฅ๐œ–๐‘ง๐‘ฆ๐œ–๐‘ง๐‘ง

Page 29: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Other Elastic moduli

More common/intuitive (but interconvertible) parameter pair is Poissonโ€™s ratio, ๐œˆ, and Youngโ€™s modulus, E, or Y. (Careful overloading E).

๐œ‡ =๐‘Œ

2(1 + ๐œˆ)

andโ€ฆ

๐œ† =๐‘Œ๐œˆ

(1 + ๐œˆ)(1 โˆ’ 2๐œˆ)

Page 30: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Elastic Moduli โ€“ Youngโ€™s modulus

Youngโ€™s modulus:

โ€ข Ratio of stress-to-strain along an axis.

โ€ข Should be consistent with linear spring.

Page 31: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Elastic moduli โ€“ Poissonโ€™s ratio

โ€ข Poissonโ€™s ratio is negative ratio of transverse to axial strain.โ€ข If stretched in one direction, how much does it compress in the others?

โ€ข Expresses tendency to preserve volume.

โ€ข 0.5 = incompressible (e.g., rubber)

โ€ข 0 = no compression (e.g., cork)

โ€ข Negative is possible, though weird...

Page 32: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

The โ€œlinearโ€ in linear elasticity

โ€ข Describes the stress-strain relationship.

โ€ข But, strain itself could still be either linear (small strain, ๐œ–) or nonlinear (Green strain, E) in the deformation.

Use E instead of ๐œ– with the same equations gives:

๐‘ˆ ๐น = ๐œ‡๐ธ: ๐ธ +๐œ†

2tr2(๐ธ)

Better for larger deformations/rotations. (AKA St. Venant Kirchhoff model)

Page 33: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Other models

โ€ข Corotational linear elasticity:โ€ข Try to factor out the rotational part of strain, treat the remainder with linear

elasticity.

โ€ข Weโ€™ll see this idea in the โ€œInteractive Virtual Materialsโ€ paper

โ€ข Neo-Hookean elasticity:โ€ข St.V-K breaks down under large compression (stops resisting)

โ€ข Neo-Hookean is a nonlinear model that corrects this

Page 34: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Common Discretization

Methods

Page 35: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Discretization

Need to turn our continuous modelโ€ฆ

๐น๐‘๐‘œ๐‘‘๐‘ฆ + ๐›ป โˆ™ ๐œŽ = ๐œŒ ๐‘ฅ

โ€ฆinto a discrete model that approximates it (and thus can be computed).

Common choices: Finite difference (FDM), finite volume (FVM), and finite element methods (FEM).

Iโ€™ll give a brief flavour, butโ€ฆ โ€ข Thereโ€™s a truly vast literature. (See e.g. Numerical PDE course, CS778.)

Page 36: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Discretization

โ€ข Notice: Time integration schemes (FE, RK2, BE, etc.) are just discretizations of time derivatives, along the 1D time axis.

โ€ข We will distinguish time discretization from spatial discretization.

Page 37: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Finite differences

Dice the domain into a grid of sample points

holding the relevant data.

Replace all (continuous) derivatives with finite approximations.

e.g., ๐‘‘๐‘ฆ

๐‘‘๐‘ฅโ‰ˆ๐‘ฆ ๐‘ฅ + โˆ†๐‘ฅ โˆ’ ๐‘ฆ ๐‘ฅ

โˆ†๐‘ฅ

Page 38: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Finite differences

Quite common for fluidsโ€ฆ less so for elastic solids.

Some graphics papers use FDM for solids: e.g., โ€œAn efficient multigrid method for the simulation of high-resolution elastic solidsโ€

Advantages: maybe simpler, grid structure offers various optimizations, cache coherent memory accessesโ€ฆDisadvantages: trickier for irregular shapes, boundary conditions

Page 39: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Finite volume

โ€ข Divide the domain up into a set of non-overlapping โ€œcontrol volumes.โ€

โ€ข Could be irregular, tetrahedra, hexahedra, general polyhedral, etc.

โ€ข Apply the relevant equations to each discrete control volume.

Figure from the DistMesh gallery:http://persson.berkeley.edu/distmesh/gallery_images.html

Page 40: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Finite volume

Instead of differential/strong form, return to the integral form of equationsโ€ฆ

ฮฉ

๐น๐‘๐‘œ๐‘‘๐‘ฆ๐‘‘๐‘‹ + ฮฉ

๐›ป โˆ™ ๐œŽ๐‘‘๐‘‹ = ฮฉ

๐œŒ ๐‘ฅ๐‘‘๐‘‹

Convert divergence terms into surface integrals by divergence thโ€™m.

e.g. ฮฉ ๐›ป โˆ™ ๐œŽ๐‘‘๐‘‹ = ๐œ•ฮฉ๐œŽ โˆ™ ๐‘›๐‘‘๐‘†

โ‰ˆ

๐‘“๐‘Ž๐‘๐‘’๐‘  ๐‘“

(๐œŽ๐‘“โˆ™ ๐‘›๐‘“)๐ฟ๐‘“

Integrate remaining terms to get volume-averaged quantities per cell.

๐‘›๐ฟ

Page 41: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Finite volume

Convenient for conserved quantities: โ€ข Exact โ€œflowโ€ leaving one cell enters the next.

โ€ข E.g. liquid volume,

Easily applied to irregular shapes.โ€ข โ€ฆIF you have a mesh of the domain.

Particularly common in fluids/CFD.

See e.g., โ€œFinite Volume Methods. for the Simulation of Skeletal Muscleโ€ for a nice step by step description of FVM applied to elasticity in graphics.

Page 42: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Finite element methods

Core idea: Canโ€™t solve the infinite dimensional, continuous problem โ€“instead find a solution that we can represent, in some finite dimensional subspace.

Concretely, choose a representation of functions on a discrete mesh, and weโ€™ll try to find the โ€œbestโ€ solution that it can describe.

Page 43: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Finite elements โ€“ basis functions

In 1D, consider the space of functions representable by (piecewise) linear interpolation on a set of grid points.

Just a linear combination of scaled and translated โ€œhatโ€ functions at each gridpoint, called a basis function.

Many others bases possible (e.g. higher order polynomials).

Page 44: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Finite elements

Then, any function ๐‘ข in this space can be described by:

๐‘ข ๐‘ฅ =

๐‘˜=1

๐‘›

๐‘ข๐‘˜๐‘ฃ๐‘˜(๐‘ฅ)

where ๐‘ข๐‘– are the coefficients, and ๐‘ฃ๐‘˜ ๐‘ฅ are the basis functions, (โ€œhatsโ€ in our case.)

To find a solution to a problem, want to find the discrete set of coefficients, ๐‘ข๐‘˜. (Recover the actual shape by interpolation.)

Page 45: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Higher dimensional spaces

This generalizes to higher dimensions.

e.g., two dimensions:

2D mesh with numbered nodes. 2D linear basis function.

Page 46: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Finite elements

1D model problem: ๐‘‘2๐‘ข

๐‘‘๐‘ฅ2= ๐‘“ on [0,1], with ๐‘ข 0 = 0, ๐‘ข 1 =0.

For given ๐‘“, find ๐‘ข.

For a proper solution, it will also be true that

๐‘‘2๐‘ข

๐‘‘๐‘ฅ2๐‘ฃ๐‘‘๐‘ฅ = ๐‘“๐‘ฃ๐‘‘๐‘ฅ

for โ€œtest functionsโ€ ๐‘ฃ (that are smooth and satisfy the BC).

Page 47: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Finite elements

Integrate LHS by parts to get:

๐‘‘๐‘ข

๐‘‘๐‘ฅ

๐‘‘๐‘ฃ

๐‘‘๐‘ฅ๐‘‘๐‘ฅ = ๐‘“๐‘ฃ ๐‘‘๐‘ฅ

This is called the weak form of the PDE.

Now, we will replace ๐‘ข, ๐‘“, and ๐‘ฃ with our space of discrete, piece-wise linear functions.

Page 48: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Finite elements

Specifically:

โ€ข ๐‘ข ๐‘ฅ = ๐‘˜=1๐‘› ๐‘ข๐‘˜๐‘ฃ๐‘˜(๐‘ฅ)

โ€ข ๐‘“ ๐‘ฅ = ๐‘˜=1๐‘› ๐‘“๐‘˜๐‘ฃ๐‘˜(๐‘ฅ)

โ€ข ๐‘ฃ ๐‘ฅ = ๐‘ฃ๐‘— ๐‘ฅ for j = 1 to n

From our simple (hat) basis functions, we can exactly find the inner products:

๐‘ฃ๐‘— , ๐‘ฃ๐‘˜ = ๐‘ฃ๐‘—๐‘ฃ๐‘˜ ๐‘‘๐‘ฅ

๐œ™(๐‘ฃ๐‘—๐‘ฃ๐‘˜) = ๐‘‘๐‘ฃ๐‘—๐‘‘๐‘ฅ

๐‘‘๐‘ฃ๐‘˜๐‘‘๐‘ฅ

๐‘‘๐‘ฅ

Page 49: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Finite elements

Plug in, do some manipulation, and ๐‘‘๐‘ข

๐‘‘๐‘ฅ

๐‘‘๐‘ฃ

๐‘‘๐‘ฅ= ๐‘“๐‘ฃ becomes a set of n

discrete equations of the form:

Unknown coefficients

Known inner products

Known inner products

๐‘˜=1

๐‘›

๐‘ข๐‘˜ ๐œ™ ๐‘ฃ๐‘— , ๐‘ฃ๐‘˜ =

๐‘˜=1

๐‘›

๐‘“๐‘˜ ๐‘ฃ๐‘— , ๐‘ฃ๐‘˜

Known input data

Page 50: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Final system

Letting ๐ฎ be the vector of unknown coefficients, and ๐› the RHS vector, this becomes a matrix equation:

L๐ฎ = ๐›

where the entries of L are just the ๐œ™ ๐‘ฃ๐‘— , ๐‘ฃ๐‘˜ โ€™s we defined.

See paper โ€œGraphical Modeling and Animation of Brittle Fractureโ€ for details of an early application of FEM to elasticity in graphics.

Page 51: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Example

Page 52: Elasticity & Discretization - University of Waterlooc2batty/courses/CS888_2014/Lecture3.pdfย ยท away from rest length (Hookeโ€™s law). =โˆ’๐‘˜โˆ† This follows from its potential energy:

Discretization

โ€ข For FDM/FVM/FEM, much like mass springs, we get a (possibly nonlinear) system of equations to solve for data stored on a discrete mesh/grid.

โ€ข However: โ€ข we can use physically meaningful parameters.

โ€ข as the mesh resolution increases, we can approach a true/real solution.

โ€ข behaviour is independent of the mesh structure (under refinement!)