Large Steps in Cloth Simulation. Safeer C Sushil Kumar Meena Guide: Prof. Parag Chaudhuri

Similar documents
Simulation in Computer Graphics Elastic Solids. Matthias Teschner

What make cloth hard to simulate?

Soft Bodies. Good approximation for hard ones. approximation breaks when objects break, or deform. Generalization: soft (deformable) bodies

Finite Difference and Finite Element Methods

Game Physics. Game and Media Technology Master Program - Utrecht University. Dr. Nicolas Pronost

Span & Linear Independence (Pop Quiz)

An Overview of Fluid Animation. Christopher Batty March 11, 2014

Fluid Animation. Christopher Batty November 17, 2011

Problem Set # 1 Solution, 18.06

System of Linear Equations

Chapter Four Holt Physics. Forces and the Laws of Motion

Modeling and Solving Constraints. Erin Catto Blizzard Entertainment

Fact: Every matrix transformation is a linear transformation, and vice versa.

Functions of Several Variables

General Physics I, Spring Vectors

Gyroscopic matrixes of the straight beams and the discs

Solving Ax = b w/ different b s: LU-Factorization

Time scales. Notes. Mixed Implicit/Explicit. Newmark Methods [ ] [ ] "!t = O 1 %

Identification Methods for Structural Systems. Prof. Dr. Eleni Chatzi Lecture March, 2016

Simultaneous Linear Equations

Numerical Solution Techniques in Mechanical and Aerospace Engineering

MTH 464: Computational Linear Algebra

ME8230 Nonlinear Dynamics

Review of Coordinate Systems

Span and Linear Independence

Introduction to PDEs and Numerical Methods Lecture 7. Solving linear systems

Computational Methods. Systems of Linear Equations

Kinematics 1D Kinematics 2D Dynamics Work and Energy

Chapter 5. Work and Energy. continued

Sparse Linear Systems. Iterative Methods for Sparse Linear Systems. Motivation for Studying Sparse Linear Systems. Partial Differential Equations

Optimization of Linear Systems of Constrained Configuration

Lecture IV: Time Discretization

11.2 Basic First-order System Methods

Math 313 Chapter 1 Review

EE16B, Spring 2018 UC Berkeley EECS. Maharbiz and Roychowdhury. Lectures 4B & 5A: Overview Slides. Linearization and Stability

2.1 Gaussian Elimination

Problem 1: Find the Equation of Motion from the static equilibrium position for the following systems: 1) Assumptions

Multidisciplinary System Design Optimization (MSDO)

LINEAR ALGEBRA KNOWLEDGE SURVEY

2t t dt.. So the distance is (t2 +6) 3/2

5. FVM discretization and Solution Procedure

Implementing Baraff & Witkin s Cloth Simulation

Dynamics and Time Integration

Modeling Mechanical Systems

Quintic beam closed form matrices (revised 2/21, 2/23/12) General elastic beam with an elastic foundation

Potential Energy. Serway 7.6, 7.7;

CSL361 Problem set 4: Basic linear algebra

Pose Tracking II! Gordon Wetzstein! Stanford University! EE 267 Virtual Reality! Lecture 12! stanford.edu/class/ee267/!

Virtual Reality & Physically-Based Simulation

Lecture 31. EXAMPLES: EQUATIONS OF MOTION USING NEWTON AND ENERGY APPROACHES

7.4. The Inverse of a Matrix. Introduction. Prerequisites. Learning Outcomes

Vector/Matrix operations. *Remember: All parts of HW 1 are due on 1/31 or 2/1

Physics for Scientists and Engineers. Chapter 5 Force and Motion

Numerical methods for the Navier- Stokes equations

x x2 2 + x3 3 x4 3. Use the divided-difference method to find a polynomial of least degree that fits the values shown: (b)

ALGEBRAIC FLUX CORRECTION FOR FINITE ELEMENT DISCRETIZATIONS OF COUPLED SYSTEMS

ME 230 Kinematics and Dynamics

ECEN 615 Methods of Electric Power Systems Analysis Lecture 18: Least Squares, State Estimation

Eigenvalues and Eigenvectors

Structural Dynamics. Spring mass system. The spring force is given by and F(t) is the driving force. Start by applying Newton s second law (F=ma).

Lecture 9 Approximations of Laplace s Equation, Finite Element Method. Mathématiques appliquées (MATH0504-1) B. Dewals, C.

Static & Dynamic. Analysis of Structures. Edward L.Wilson. University of California, Berkeley. Fourth Edition. Professor Emeritus of Civil Engineering

Differential Equations

Preliminary Examination in Numerical Analysis

Notes on Cellwise Data Interpolation for Visualization Xavier Tricoche

Computational Techniques Prof. Sreenivas Jayanthi. Department of Chemical Engineering Indian institute of Technology, Madras

MATH 350: Introduction to Computational Mathematics

Game Physics: Basic Concepts

Passive Dynamics and Particle Systems COS 426

Kinematics and Dynamics

Final exam (practice) UCLA: Math 31B, Spring 2017

The Bernoulli theorem relating velocities and pressures along a streamline comes from the steady momentum equation for a constant density fluid,

Linear Algebra Primer

the spring is compressed and x is the compression

(Linear equations) Applied Linear Algebra in Geoscience Using MATLAB

2 Regularized Image Reconstruction for Compressive Imaging and Beyond

OCR Physics Specification A - H156/H556

DISPENSA FEM in MSC. Nastran

HW 3. Due: Tuesday, December 4, 2018, 6:00 p.m.

Image Registration Lecture 2: Vectors and Matrices

Advanced Vibrations. Distributed-Parameter Systems: Approximate Methods Lecture 20. By: H. Ahmadian

VISUAL PHYSICS ONLINE DYNAMICS CONSERVATION OF ENERGY AND MOMENTUM COLLISIONS / EXPLOSIONS

Linear Algebra: Matrix Eigenvalue Problems

Chapter 2 Mechanical Equilibrium

where C f = A ρ g fluid capacitor But when squeezed, h (and hence P) may vary with time even though V does not. Seems to imply C f = C f (t)

Exam in TMA4215 December 7th 2012

Control Systems. Internal Stability - LTI systems. L. Lanari

Outline. Advances in STAR-CCM+ DEM models for simulating deformation, breakage, and flow of solids

8-15. Stop by or call (630)

LECTURE 14: DEVELOPING THE EQUATIONS OF MOTION FOR TWO-MASS VIBRATION EXAMPLES

Math 21b. Review for Final Exam

One Dimensional Dynamical Systems

Introduction to PDEs and Numerical Methods Tutorial 1: Overview of essential linear algebra and analysis

Introductory Physics. Week 2015/05/29

3.032 Problem Set 1 Fall 2007 Due: Start of Lecture,

CHAPTER 8: Matrices and Determinants

Chapter Two: Numerical Methods for Elliptic PDEs. 1 Finite Difference Methods for Elliptic PDEs

On the modified conjugate gradient method in cloth simulation

MAA507, Power method, QR-method and sparse matrix representation.

5 Handling Constraints

Transcription:

Large Steps in Cloth Simulation Safeer C Sushil Kumar Meena Guide: Prof. Parag Chaudhuri

Introduction Cloth modeling a challenging problem. Phenomena to be considered Stretch, shear, bend of cloth Interaction of cloth with itself (while collision) Interaction of cloth with other objects (collision, sliding). Interaction with fluid. Such ranges of phenomena to be considered make the problem challenging.

Introduction Most other method take small steps to avoid numerical instability in the solution. This system uses implicit integration as opposed to direct integration method in most other methods. This allows to have large time steps while maintaining stability.

Simulator Architecture Cloth represented as triangular mesh of particles n particles. Position of particle i, x i R 3. Geometrical state of all particles, x R 3n. Force acting on particle i, f i R 3. Force acting on cloth, f R 3n.

Triangular Mesh http://www.mathworks.com/matlabcentral/fx_files/25555/1/mesh3.png

Forces and Energy overview Stretch force Resist in-plane compression/ stretch. A cloth typically does not stretch. Coefficient of stiffness very high for our case. Shear and bend force. Corresponding three damping forces. Additional forces Gravity, air drag. User given mouse forces (for interactive behavior).

Constraints overview Individual particles velocity/position can be constrained in any dimensions. Constraints due to cloth s interaction with other solid objects. Cloth/cloth interactions.

Implicit Integration Equation of motion: (x -> position, v -> velocity, M -> Mass Matrix) Forward Euler method: Implicit backward Euler method:

Implicit Integration Contd Taylor series approximation to first order: Final implicit equation: Unknowns: f o Derivative of f w.r.t x. Derivative of f w.r.t v. To be evaluated: Δ v

Representation of Energy and Force E(x) scalar potential energy. f = E/ x and f/ x can be calculated. Handling E as single monolithic function becomes difficult. E(x) = Σ α E α (x), where each E α depend on few elements of x. Formulate vector condition C(x) and define energy as k/2c(x) T C(x). {k stiffness constant} Condition vector is analogous to x for spring energy equation E= 1 / 2 kx 2. This formulation helps in representation.

Force and Force Derivatives f i = - E c / x i. Similarly, derivative of f i w.r.t x can be taken. Since, C does not depend of v derivative of f w.r.t v is zero. Now, only task is to formulate C for different forces.

Stretch Forces (u i, v i ) fixed plane coordinates of particle, when cloth is at zero stretch/bend/shear. W(u,v) mapping from plane coordinates to world coordinates. Stretch can be measured with derivatives w u = w / u and w v = w / v at that point.

Stretch Forces contd Consider triangle with particles (i, j, k). Consider Δx 1 = x j x i and Δx 2 = x k x i. Define similarly Δu 1, Δu 2, Δv 1 and Δv 2. Assuming w u and w v constant over a triangle, Δx 1 = w u Δu 1 + w v Δv 1, and Δx 2 = w u Δu 2 + w v Δv 2. These equations can be solved to get w u and w v.

Stretch Forces contd Condition vector Where, a area of the triangle, generally, b u = b v = 1 but b u can be increased if we want to stretch cloth in u direction.

Shear Forces Extent of shear in a triangle can be measured by w ut w v. Since stretch coefficient is very high, shear angle can be approximated as w ut w v. Condition vector is simply, C(x) = aw u (x) T w v (x).

Bend Forces Bend is measured as angle between pairs of adjacent triangles, θ. Condition number is simply, C(x) = θ.

Additional Forces Air drag per-triangle basis. Gravity on all particles. User given forces (mouse drag) given to particles selected by user.

Damping So far, forces depended only on the position. But for realistic cloth features, damping forces which depend on velocity also are important. A damping force, d, should be in the direction of f, the force which it is damping: C(x) / x. Strength should be proportional to velocity: Ċ(x), derivative of condition vector w.r.t time.

Damping contd Final equation of force is, We also need to calculate, d i / x j and d i / v j. Please note that in this case d i / v j is not zero and needs to be considered. Above quantities can be easily calculated (not mentioning the derivation for the purpose of simplicity).

Constraints (Mass Modification) A constraint can be imposed by making mass infinite, or inverse mass zero. Remember: we need M -1. Represent mass of a particle as 3x3 diagonal matrix with diagonals 1/m i. Make row 3 zero to constraint particle in z direction.

Constraints (Mass Modification) contd Constraint can be in any direction. If p and q are direction in which particle is constraint, then inverse mass matrix is 1/m i (I pp T qq T ). Replace M -1 in the equation of motion with W (3nX3n matrix). If z i is the change in velocity we wish to enforce on constraint particle i, instead of zero, final equation becomes

Implementation Use Conjugate Gradient method to solve the equation. Ax = b. Where A has to be symmetric and positive definite. Without constraints, just multiply left by M (W -1 )

Implementation contd With constraints W -1 is singular. Use of normal equations: For solving Ax = b, multiply both sides by A T. (A T A)x = A T b A T A is now symmetric. Involves the cost of multiplication. Alternative, use modified CG method as mentioned in the paper (see references). We are not attempting that method.

Conjugate Gradient Method f(x) = 1 / 2 x T Ax x T b f (x) = Ax-b r k = b Ax k

Conjugate Gradient Method http://en.wikipedia.org/wiki/conjugate_gradient_method

Implementation Target Simulation of a simple cloth (like flag) without constraints and collisions, but with air drag. Optional: Solving system with constraints.

Reference