• No results found

Conclusion and Future Work

In document takahashi_unc_0153D_19105.pdf (Page 81-86)

I proposed a new multilevel solver for particle-based fluids. My method constructs the hierarchy based on the Cartesian grid, establishes the correspondence between solutions at particle and grid levels, and coarsens simulation elements taking boundary conditions into account. In addition, I proposed a solid boundary handling method that ensures the solvability of the PPE without increasing the size of the system and computational cost. I demonstrated that my method can be significantly faster than IISPH, and its cost scales nearly linearly unlike previous particle-based solvers.

There are several promising future research directions. Since my method is massively parallelizable, implementing the algorithm on a GPU (Chentanez and M¨uller, 2011; Chentanez and M¨uller, 2012) is a natural extension of my method. In the same way as (Ferstl et al., 2014; Dick et al., 2016), introducing the cell duplication technique would be effective to improve the convergence rate. Since my multilevel solver can better handle ill-conditioned systems, aggressively using larger time steps would be beneficial. Considering that MG solvers use coarser levels, applying coarse grid approaches (Lentine et al., 2010; Edwards and Bridson, 2014) to particle-based methods would be interesting. Although it is known that geometric MG is generally faster than algebraic MG (Briggs et al., 2000), it would be worth comparing their performance. Particularly, the smoothed aggregation technique (Tamstorf et al., 2015) would be a promising choice.

Acknowledgements

This work is supported in part by JASSO for Study Abroad, U.S. National Science Foundation, and UNC Arts and Sciences Foundation. I thank anonymous reviewers for their valuable suggestions and comments which help improving the exposition of the paper.

CHAPTER 4: Implicit Formulation for SPH-based Viscous Fluids

4.1 Introduction

Smoothed Particle Hydrodynamics (SPH) is becoming increasingly popular for simulating fluids because of its attractive features including automatic conservation of mass, implicit tracking of surfaces with frequent topology changes, and no need for grid structures or meshes. SPH has been developed in various directions, e.g., enforcing fluid incompressibility (Becker and Teschner, 2007b; Solenthaler and Pajarola, 2009; Ihmsen et al., 2014a), handling fluid-fluid and fluid-solid interactions (M¨uller et al., 2005; Solenthaler et al., 2007; Solenthaler and Pajarola, 2008; Becker et al., 2009; Akinci et al., 2012; He et al., 2012b; Ren et al., 2014), and improving computational efficiency and saving memory usage (Adams et al., 2007; Ihmsen et al., 2011; Solenthaler and Gross, 2011; Orthmann and Kolb, 2012), and is recognized as a state-of-the-art fluid solver in computer graphics (Ihmsen et al., 2014b).

Over the past decades, various SPH methods have been proposed and used for a variety of fluid effects in the literature. However, most of these SPH methods assume that fluid is inviscid or slightly viscous; thus an effective SPH method that can simulate highly viscous fluids has not yet been established although we see various viscous materials (e.g., honey, caramel sauce, melted chocolate, lava, machinery oils, and bodily fluids) and their characteristic behaviors on a daily basis. There are two main reasons for this; First, previous SPH methods, e.g., (M¨uller et al., 2003, 2005; Solenthaler et al., 2007), drop off-diagonal components of

Figure 4.1: Viscous fluids simulated with my implicit formulation. Left to right: caramel sauce coiling with a particle view in the inset; a dragon consisting of particles with different viscosities; melted chocolate buckling with a particle view in the inset.

viscous stress tensor to simplify the viscosity term and consequently fail to generate rotational viscous fluid behaviors, such as coiling and buckling, due to neglect of the boundary condition on free surfaces, while leading to inaccurate handling of variable viscosity. This is also true for XSPH (Monaghan, 1989) and artificial viscosity (Monaghan, 1992) as they are essentially same as the Laplacian form in simplifying the viscosity term. Since the simplified term is described by Laplacian operator, in this chapter I refer to this term asLaplacian form of viscosityand the original, unsimplified term asfull form of viscosity. Second, previous SPH methods, e.g., (Paiva et al., 2006; Andrade et al., 2014), suffer from a restriction on available time steps because of their explicit viscosity integration schemes. Andrade et al. (Andrade et al., 2014) proposed a condition on time steps∆t ≤0.1ρh2 (∆t: time step,ρ: fluid density,h: kernel radius, andµ: dynamic viscosity) to perform numerically stable simulations of viscous fluids with the full form, and this condition makes it difficult to simulate viscous fluids within a reasonable time when higher viscosity and resolutions (smaller kernel radii) are used.

To address the two problems above, I propose a new SPH-based method that uses implicit viscosity integration for the full form for robustly simulating highly viscous fluids. My method offers the following advantages:

• It is efficient, allowing for use of larger time steps and finer spatial resolutions than explicit integration. • It is robust and stable, even with large time steps and high viscosities.

• It can generate coiling and buckling phenomena and handle variable viscosity.

I exploit thevariational principlethat automatically enforces the boundary condition on free surfaces to derive my implicit formulation, constructing a sparse linear system with a symmetric positive definite matrix. To efficiently solve the linear system, I also propose a novel method for extracting coefficients of the matrix that includes contributions from first-ring neighbor particles and second-ring neighbor particles (neighbor particles’ neighbor particles). Figure 4.1 demonstrates viscous fluids, simulated using my implicit formulation.

In Eulerian methods, I can easily discretize the full form (divergence of Jacobian of velocity) at a time using finite difference due to the staggered stress arrangement as in (Batty and Bridson, 2008). On the other hand, in SPH, I first need to compute Jacobian of velocity, and then compute divergence of Jacobian of velocity, separately applying SPH formulations to both steps. Although computing these two steps is easy for

explicit integration (Paiva et al., 2006; Andrade et al., 2014), significant complexity is involved with implicit integration, and I need to take into account contributions from both of first-ring and second-ring neighbors to construct a linear system. Because of this complexity unique to SPH discretization and derivation of the implicit formulation, no work has been proposed regardless of the apparent simplicity of the idea in adopting implicit integration and demand for robust SPH-based simulators. To the best of my knowledge, my method is the first SPH method that uses implicit integration for the full form of viscosity, and is also the first method that extracts matrix coefficients contributed by second-ring neighbors.

4.2 Related Work

Eulerian viscous fluids. Carlson et al. (Carlson et al., 2002) first enabled stable simulations of highly viscous fluids with free surfaces by solving the Laplacian form of viscosity using implicit integration. Later, Rasmussen et al. (Rasmussen et al., 2004) proposed an implicit-explicit scheme for the full form of viscosity to correctly handle variable viscosity at the expense of numerical stability. Batty and Bridson (Batty and Bridson, 2008) proposed a fully implicit viscosity integration scheme for the full form, making it possible to take larger time steps, handle variable viscosity, and generate coiling and buckling. This method was extended by Batty and Houston (Batty and Houston, 2011) for an adaptive tetrahedral fluid simulator. In the work of Stomakhin et al. (Stomakhin et al., 2014), a viscosity term was also solved using implicit integration in the framework of Material Point Method.

Lagrangian viscous fluids. I categorize Lagrangian methods into five groups: Lagrangian Finite Element Methods (Lagrangian FEM), dimensionally reduced discrete methods, spring-based methods, deformation-based methods, and SPH methods. My method belongs to the SPH methods.

Lagrangian FEM has been used to accurately simulate viscous fluids, and various developments have been done in the literature. Bargteil et al. (Bargteil et al., 2007) proposed an efficient remeshing method to reduce the cost of time-consuming remeshing process, and Wojtan and Turk (Wojtan and Turk, 2008) improved the remeshing method of Bargteil et al. (Bargteil et al., 2007). Wicke et al. (Wicke et al., 2010) proposed a local remeshing method to keep the number of tetrahedra small. Clausen et al. (Clausen et al., 2013) proposed a Lagrangian FEM that can handle elastic, plastic, and fluid materials in a unified manner.

To accurately simulate viscous threads and sheets, Bergou et al. (Bergou et al., 2010) and Batty et al. (Batty et al., 2012) proposed dimensionally reduced discrete methods and generated coiling and buckling, respectively, limiting the dimension of materials that they can simulate.

Spring-based methods have been used because of its conceptual simplicity. Miller and Pearce (Miller and Pearce, 1989) and Terzopoulos et al. (Terzopoulos et al., 1991) proposed a spring-based model that computes repulsion and attraction forces between particles. Clavet et al. (Clavet et al., 2005) extended this model to simulate materials that exhibit elasticity, viscosity, and plasticity. Takahashi et al. (Takahashi et al., 2014) also simulated such materials in a unified framework of Position-based dynamics.

Gerszewski et al. (Gerszewski et al., 2009) proposed a deformation-based method that approximates motions of neighbor particles based on deformations of particle configurations for reproducing elastoplastic materials. Their method was extended by Zhou et al. (Zhou et al., 2013) to improve its numerical stability using implicit integration and by Jones et al. (Jones et al., 2014) to handle varying mass materials.

Desbrun and Gascuel (Desbrun and Gascuel, 1996) used SPH to simulate viscous materials. M¨uller et al. (M¨uller et al., 2003) proposed the Laplacian form of viscosity and simulated slightly viscous fluid. The Laplacian form was also used in (M¨uller et al., 2005; Solenthaler et al., 2007). Paiva et al. (Paiva et al., 2006) proposed the full form of viscosity and accurately simulated viscous fluids. The full form was also used in the work of Andrade et al. (Andrade et al., 2014). Rafiee et al. (Rafiee et al., 2007) presented a method based on a Maxwell model to simulate coiling of viscoelastic fluids. Dagenais et al. (Dagenais et al., 2012) simulated viscous fluid motions by adding extra forces that move particles to their original positions. In Astrophysics, Monaghan (Monaghan, 1997) and Laibe and Price (Laibe and Price, 2012) used pair-wise implicit formulations for artificial viscosity. Their methods consider only pair-wise particles for implicit integration, and thus can be numerically unstable. In Computational Mechanics, Fan et al. (Fan et al., 2010) proposed an implicit scheme for simulating viscous fluids using SPH. However, they computed viscous stress with gradient of velocity, not Jacobian of velocity, and hence their method is essentially equivalent to a method that uses the Laplacian form.

Paiva et al. (Paiva et al., 2006) and Andrade et al. (Andrade et al., 2014) solved the full form of viscosity. However, my method differs from theirs in that theirs used explicit integration whereas mine uses implicit integration to improve the robustness of the simulation and enable use of larger time steps with higher viscosities and finer spatial resolutions than these methods.

In document takahashi_unc_0153D_19105.pdf (Page 81-86)

Related documents