Automated Sampling and Control of Gaseous Simulations

Size: px
Start display at page:

Download "Automated Sampling and Control of Gaseous Simulations"

Transcription

1 Noname manuscript No. (will be inserted by the editor) Automated Sampling and Control of Gaseous Simulations Ruoguan Huang John Keyser Received: date / Accepted: date Abstract In this work, we describe a method that automates the sampling and control of gaseous fluid simulations. Several recent approaches have provided techniques for artists to generate high resolution simulations based on a low resolution simulation. However, often in applications the overall flow in the low resolution simulation that an animator observes and intends to preserve is composed of even lower frequencies than the low resolution itself. In such cases, attempting to match the low resolution simulation precisely is unnecessarily restrictive. We propose a new sampling technique to efficiently capture the overall flow of a fluid simulation, at the scale of user s choice, in such a way that the sampled information is sufficient to represent what is virtually perceived and no more. Thus, by applying control based on the sampled data, we ensure that in the resulting high resolution simulation, the overall flow is matched to the low resolution simulation and the fine details on the high resolution are preserved. The samples we obtain have both spatial and temporal continuity that allows smooth keyframe matching and direct manipulation of visible elements such as smoke density through temporal blending of samples. We demonstrate that a user can easily configure a simulation with our system to achieve desired results. Keywords Eulerian simulation Simulation control Poisson disk sampling Bilateral sampling Ruoguan Huang Texas A&M University hrg@cs.tamu.edu John Keyser Texas A&M University keyser@cs.tamu.edu 1 Introduction Fluid simulation has been an area of great interest within the computer graphics community. As quality and efficiency have improved, fluid-based visual effects have been widely applied in industry. This has led to a stronger desire to have control over the simulation, while still preserving a behavior that seems realistic. Despite improvements in simulation techniques, large fluid simulations are still notoriously slow to compute. This makes the prospect of controlling and directing such simulations problematic. Users can specify initial conditions and other parameters, but it can take hours to see the overall effect those conditions produce. To improve the rate of feedback and thus convergence to an acceptable result, artists often first run a lower-resolution simulation (which will be much faster) to adjust parameters and settings. Once an acceptable simulation has been found, a higher resolution simulation is produced. Simply using the same parameters as the lower resolution can cause problems, since the small differences in the simulation (e.g. from artificial viscosity or object boundary effects) can quickly lead to much larger and visually significant differences. Adding artificial noise and vortices provides detail, but not the realism of a higher-resolution simulation. Keyframe matching can provide good results, but it can be problematic to determine good keyframes and ensure that the simulation is not overspecified, removing desired detail. In this paper we present improvements for automatically matching a high resolution gaseous fluid simulation to a lower resolution simulation. Specifically, we show that our automated system requires minimal user editing and tweaking and a relatively low additional computational overhead to provide necessary control for achieving desired visual effects. Our approach fol-

2 2 Ruoguan Huang, John Keyser lows the general framework of Huang et al. [9], where control is achieved by sampling data from a low resolution preview simulation at a set of match points in a user-selected region and then matching a high resolution to the match points. In many cases, the method of Huang et al. requires that the user provide rather specific placement (spatial and temporal) and detailed properties of match points to produce desired results. Even with the help of user direction, the statically positioned match points are usually inefficient and sometimes inaccurate in how well they capture the constantly flowing motion of fluids. To better and more efficiently capture interesting fluid features, we propose a new method for dynamically sampling arbitrary types of data from a simulation with the goal of achieving spatially and temporally more continuous sampling. With this dynamic sampling, we can easily incorporate temporal blending in the matching stage to achieve much smoother and hence more plausible control effects. This is key to manipulating directly visible fluid components (e.g. gaseous density), supporting discontinuous control (e.g. keyframe matching), and allowing artistic direction. Among the key features of our method are: Automated sampling detects and captures the prominent features of fluids and follows the flow, resulting in smoother more accurate control without tedious manual editing. Temporal sampling and blending allow seamless keyframe matching and plausible density manipulation, and handle various other sudden and drastic changes in control. Our density control preserves edges presented in the density field by using bilateral density sampling that reduces the blurring of high frequency details in the high resolution. 2 Previous Work Our method is based on a Eulerian fluid simulation framework. Interest in fluid dynamics simulations in computer graphics increased significantly with the work of Foster and Metaxas [5,6] and the subsequent Stable Fluids approach introduced by Stam [27]. Stam s method used an implicit solver, making the simulation unconditionally stable, and thus allowing coarse grid resolutions and large time steps. There has been a tremendous amount of follow-on work which has presented improvements in various aspects of the simulation, and a thorough discussion of this work is beyond the scope of this paper. While particle-based (Lagrangian) simulations have also become popular [16], Fig. 1 Example of our controlled simulation with temporal blending. On each row from left to right are low resolution preview, controlled simulation, uncontrolled high resolution simulation. The top row shows images taken at the time we start to apply control. Before that simulation in the middle is uncontrolled, hence it looks exactly the same as the high resolution simulation at right. The bottom row shows images taken approximately 150 frames later when the applied control is fully in effect. The middle now resembles the preview at left. Eulerian simulations continue to be widely used, particularly for gaseous and incompressible situations. Controlling fluid simulation was first investigated by Foster and Metaxas [6] and later by Foster and Fedkiw [4], and has been addressed by a number of other researchers. Rasmussen et al. [22] proposed a production model using particles to control liquid simulations. Shi and Yu have proposed methods for matching smoke [25] and liquids [26] to changing target shapes. Pighin et al. [21] have combined Eulerian and Lagrangian representations to create a system for interactively manipulating fluid flows. Their method parameterizes a fluid simulation from advected particle paths, allowing finegrained control of the system by manipulating these paths. Hong and Kim [8] use a geometric potential field to generate forces to match target shapes. Schpok et al. [24] control the simulation by manipulation of automatically extracted simulation features. Angelidis et al. [1] and Kim et al. [12] provide path control for smoke simulations.

3 Automated Sampling and Control of Gaseous Simulations 3 A few recent methods approach the problem described from a different perspective, namely that high frequency detail is added into a coarse simulation, thus giving the appearance of a higher-resolution simulation. Kim et al. [11] use a wavelet-based method to generate fine turbulent details within a fluid simulation. Schechter and Bridson [23] similarly upsample a lower resolution simulation and add turbulent detail. Narain et al. [17] also use a procedural method to add in turbulence, but in addition they identify locations for additional turbulence based on the energy computation in the fluid simulation. Pfaff et al. [20] add the procedural turbulence by generating and advecting turbulence particles based on the simulation. Finally, He et al. [7] improve the Second Vorticity Confinement method [28] to produce detailed turbulence effect on a coarse grid. Closer to our approach, several algorithms have focused on the keyframe concept. Treuille et al. [31] proposed a fluid control system based on user-defined smoke density keyframes. The fluid system is controlled by parametric wind and vortex fields that are manipulated to make the simulation achieve the specified keyframes. The amount of adjustment to the vector field is minimized via a non-linear optimization. This optimization is expensive, and dimensionality grows with the length of the simulation. The approach was practical only for 2D simulation, but McNamara et al. [15] improved on it by using a discrete adjoint method for gradient calculation. They achieve much faster convergence for control parameters, thus enabling fine-grain keyframe control on larger 3D fluid animations. Instead of optimization, Fattal and Lischinksi [2] introduce new terms into the standard flow equations, offering a closed form solution for the control parameters. Matching target densities using only advection is usually not enough, and so they propose smoke gathering, diffusing the error field. This allows complex smoke animations to be controlled with little additional expense. Later, Thürey et al. [29] in their particle based method, also apply correcting forces through Lagragian particles extracted from coarser simulations to control the low frequencies of higher resolution simulations. Sharing the same motivation, Nielsen et al. [18, 19] create a direct coupling between a low resolution preview simulation and a higher resolution final simulation. The high resolution simulation is created by incorporating an upsampled velocity field from the low-resolution simulation as additional constraints into pressure projection. In their earlier paper, Nielsen et al. [18] introduce the method, and present the multigrid framework used to solve it. In their later paper, Nielsen and Christensen [19] extend the earlier work to support more efficient timevarying computation, and use density to help determine the level of control to provide. Though density is used to help determine control, the actual adjustments are made only to the vector field. Yuan et al. [32] also provide a guiding simulation that does not directly correct density. Their method extracts flow patterns from a low resolution simulation and uses a pattern-based guiding force to force the higher resolution simulation to match. Huang et al. [9] control a high resolution simulation based on data sampled at user selected regions in a low resolution simulation. The match points that they use to cover and sample select regions, have finite support and fairly scarce distribution which allow quick local adjustment and leave room for high frequency features to develop. In terms of sampling a simulation, match points resemble control particles that are discussed by Thürey et al. in [29]. Control particles can be generated from a Lagrangian simulation and hence themselves already carry the nature of fluids, yet they rely on fully simulated particle-based fluid dynamics. Match points work in a more general way and are better for matching scalar values such as density, yet they are nontrivial to configure and their static positions are sometimes insufficient for tracking fluid motions. 3 Review of Preview Based Control We begin with an initial (low resolution) simulation called the preview. Our goal is to produce a high resolution final simulation that is adjusted to match the behavior of the preview at specified regions and times. Our method follows the approach outlined in Huang et al. [9] and we give an overview of that method here as background. In broad terms, we will run a low-resolution fluid simulation, sample the vector and scalar data from that simulation, and then run a high-resolution simulation in which we match the sample data collected at lower resolution. 3.1 Sampling the Flow Equations The inviscid equations for incompressible flow u are u = 0 (1) u = f (u )u p t (2) and density d advected by the flow is defined as d t = S (u )d + k d 2 d (3) As mentioned earlier, instead of precisely matching all details of the low resolution simulation, we want to be able to control the scale and locations at which the

4 4 Ruoguan Huang, John Keyser final will match to the preview. Thus, we sample the properties of the preview at specified locations, scales, and times, and use these samples for matching, later. We call these samples match points. Each match point is defined by a position x i, a scale r i, and a matching function m r i. We will refer to a match point by its position x i. To sample the simulation in scale space, we convolve the simulation data with a Gaussian kernel of the given scale. We sample scalar d and vector data D separately as follows: d r i = 1 G r (x i, x)d(x) (4) Gr x D r i,1 = 1 G r (x i, x)d(x) (5) Gr x D r i,2 = 1 G r (x i, x)d(x) (x x i ) (6) Gr x G is the Gaussian weight function with radius r: G r (x i, x) = e r xi x 2 (7) Note that we obtain two pieces of information from D, direction D 1 and angular momentum around x i with unit mass D 2, to measure both linear and angular motion in the vector field. In the matching process, we sample the final (unmatched) simulation at the same points specified in the keyframe. The difference between the final and the keyframe will be used to modify (match) the final. 3.2 Controlling the Simulation Matching is done in two passes at each timestep. In the first pass, a step of the simulation is taken at high resolution, and that simulation is sampled at the x i and scale(s) r. For scalar data we obtain the (weighted) current value d r i and for vector data determine Dr i,1 and D r i,2. The computations are performed in the same way as for the samples from the preview (see equations 4, 5, and 6). The weighted errors: δ r i = m r i (d r i d r i ) (8) r i,1 = m r i (D r i,1 D r i,1 ) (9) r i,2 = m r i (D r i,2 D r i,2 ) (10) will represents the amount of control that needs to be applied to the high resolution simulation at the match point. The idea of matching is that we want to modify the high resolution simulation by the control amounts. Notice that in Equation 2 f accounts for external forces and in Equation 3 S defines a density source (or sink). The controls will have the same effect as introducing additional f and S to the system. The matching will be created by spreading the control amount over the region around the match points with a spatial blending function G. G r(x i, x) = G r (x i, x) x (G r(x i, x)) 2 (11) Thus, for a point x in space, we increase the density value at x by δi rg r(x i, x). A similar process is used to spread directional velocity control r i,1, but simple vector addition is used in the sum. Applying control on the curl is slightly more complicated. For a point, p, the change in the vector value due to curl control is: G r(x i, p)( r i,1 (x i p)) (12) 4 Improving Sampling The spatial and temporal placement and the weight m i r of match points dictate the result of control as both the sampling and matching processes rely heavily on these match points. However, the temporally and spatially invariant match points described by Huang et al. [9] raise several issues. The match points need to cover the specified regions and be aligned with prominent features. Automatic regular placement of sample points tends to provide poor overall placement, and generally requires oversampling to cover all areas of interest. While it is possible for a user to manually specify a configuration of samples, it is often tedious to place every match point by hand and provide sufficient coverage as well as accurate alignment. The sample points are set up with static positions that are inefficient and inaccurate for capturing the constantly flowing motion of fluids. The user can set up one group of match points for each period of time or simply cover the whole domain with match points, yet neither is ideal in term of efficiency. If the user intends to hit certain keyframes instead of matching a whole sequence, the weight m i r for each individual match point needs to be set to vary over time to avoid abrupt changes in the result. To address these issues, we propose four improvements to the sampling methodology. We describe below methods for automatically determining features to focus samples on, for generating good distributions of sample points, for allowing sample points to move over time, and for using a different filter for the samples. 4.1 Detecting Prominent Features in Simulations The most prominent visual component in a gaseous fluid simulation tends to be density. Density is often

5 Automated Sampling and Control of Gaseous Simulations 5 rendered (e.g. as smoke) and in most simulations intended for realism it affects the velocity field through forces like gravity. Within vector data (usually the fluid velocity field) vortices not only are a fundamental element of fluids, but also provide strong visual detail. Thus, we look at density and vortices to determine whether a location is suited for placing a match point. We assume that the user has browsed through a low resolution preview simulation and specified a general region R for matching. In implementations, we allow a user to define R, e.g. as the projected volume from a selected region in screen space, but the user can also simply set the whole domain to be of interest and let our system detect all the features for a complete match. We consider a position x R to be a candidate position to place a match point if any of following three inequality conditions is satisfied. d(x) > d min (13) d(x) d(x) > d min (14) u(x) > ω min (15) where d min, d min, ω min are pre-defined minimum values close to 0. That is, we identify points with high density, large difference in density from the final, or high vorticity as candidates for placing samples. Given a candidate position x, we next determine the radius r of the match point based on the gradient of density and vorticity. This ensures that the sample will be taken at a scale that matches the scale of a feature. r = max { { dmax min d(x), } ω max u(x), r max }, r min (16) where d max and ω max are pre-defined maximum values to cap the change, within the support of the match point, in density and vorticity, respectively. We clip the radius r using user defined maximum radius, r max, as the ceiling and the size of the Eulerian grid cell of the low resolution simulation, r min, as the floor. 4.2 Modified Poisson Disk Distribution Given the above criterion for determining good positions to place match points and what their radii should be, we employ a modified dart-throwing Poisson disk distribution algorithm [14, 13] to fill the user specified region R with match points. The traditional dart throwing algorithm generates uniformly distributed points, and rejects points that do not satisfy the minimum separation with already generated points [13]. This process continues until no more points can be added. In our case, complete separation of match points is unnecessary and we instead allow some overlapping (a discussion of how much overlapping is allowed between samples is given by Huang et al. [9]). Thus, we enforce a smaller minimum distance between match points than their actual radii combined. More specifically, we accept a newly generated match point at position x, that satisfies Equations 13, 14, or 15, with radius r determined by Equation 16 if x x i < α min (r + r i ) α min [0, 1] (17) and the overlap is not so great as to prevent convergence (see [9]). In our experiments, we find that α min = 0.6 performs well in most cases. The resulting distribution is not uniform as produced by a traditional dart throwing algorithm. Instead, the match points with differing radii are densely distributed to cover regions with prominent features, and yet moderately separated to guarantee convergence. 4.3 Advecting Sample Points As mentioned before, statically positioned match points do not follow the flow of a fluid simulation. We therefore advect the match points generated from the dart throwing algorithm through the velocity field of the low resolution preview simulation. We do not need to advect these particles by running a costly complete Lagrangian particle simulation. Instead, we simply use first order Eulerian integration to update the position of each match point with the velocity field u. More importantly, match points that follow Lagrangian particle physics are not necessarily aligned with prominent features because they have a much more scarce distribution and larger radii. After advection, the match points do not necessarily meet the requirements of the modified Poisson disk distribution or the properties of featured positions and gradient based radii. We wish to avoid resampling the region R because our goal is to maintain as much spatial and temporal continuity as we can of the match points, imitating a Lagrangian particle system. Thus, we perform the following steps to fix the distribution and properties of match points. 1. Recalculate the radius r i for each match point using Equation Obtain samples from the preview simulation and sort the match points (typically by the sampled density value d r i, though other prioritizations can be used). 3. Assign an integer value a i to every match point to track its age. a i is increased by one each time step.

6 6 Ruoguan Huang, John Keyser 4. Remove any match point x i if a i > a m and it does not satisfy any of Equations 13, 14, or Remove any match point that violates the minimum distance constraint described by Equation 17 or the convergence limits [9], starting from the match point with the lowest density sample. 6. Remove any match point that violates boundary conditions, i.e. crossed a boundary. 7. Apply several more iterations of the modified dartthrowing algorithm to fill the gaps in R. Age tracking is intended to avoid repeated activation and deactivation of control in an area with density that borders on the pre-defined threshold. We wish to keep a match point that is under a mature age a m, even if it fails the density and vorticity tests. We will also use age to modify the control weight m r i to buffer sudden activation of control (see Section 5.2). These steps will bring back the desired distribution while preserving the continuity needed for smooth control. 4.4 Bilateral Density Sampling We sample the data from the low resolution preview simulation through these match points that are purposely placed to capture key features of fluids. Following Huang et al. [9], we had used a Gaussian weighted function for sampling, although any other function with similar isotropic fall off should work as well. However, when sampling gaseous densities, we encounter an issue analogous to filtering in the area of computer vision the assumption of slow spatial variations fails at edges, which are consequently blurred by low-pass filtering [30]. When a match point is placed across a density edge in the preview simulation, the adjustment made in the high resolution is spread out within the support of the match point in a Gaussian weighted fashion regardless of the edge. Normally, we rely on the similarities between the preview and the high resolution simulation. But in cases where drastic differences are presented in the high resolution simulation, the edge from the preview is completely lost. Inspired by bilateral filtering [30] in computer vision, we use a bilateral Gaussian weighted function to improve edge preservation for density matching. We obtain two density samples through a match point at position x i with radius r, one for each side of the edge, as follows: d r i,1 = 1 G r (x i, x)h(x i, x)d(x) (18) Gr x d r i,2 = 1 G r (x i, x)(1 H(x i, x))d(x) (19) Gr x H is a radially symmetric closeness function with geometric spread σ h : H(x i, x) = e d(xi) d(x) 2 σ 2 h (20) Note that the sum of Equation 18 and 19 is a standard Gaussian function. We use these bilateral samples for density matching in high resolution in Section Impoved Matching The matching process modifies the high resolution simulation so that it agrees with the preview at the match points. In prior work [9], matching followed a fixed process that effectively forced a simulation to match the preview at precisely the given frame. This could cause significant problems if a match point was introduced later in a simulation, in that the simulation would visibly jump to meet the sample. As a result, generally the entire region of interest would need to be matched through an entire simulation in order for the simulation to match at the desired timestep. We propose two improvements, temporal blending and age weighting, that help support matching without visible jumps in the simulation. Furthermore, we describe matching with bilateral match points, giving higher quality results. 5.1 Temporal Blending of Samples When keyframes are specified several frames apart, control may introduce a sudden density/force into the system. This could be extremely unrealistic and jarring, and therefore we wish to apply control over a period of time, effectively providing a temporal blend to the control. If we wish to apply control at some point prior to the keyframe time, we need to account for the expected change within the velocity field itself. We can approximate the effect by advecting our match points themselves backward through the velocity field. This process effectively repositions all of the match points at some earlier point in time, and the control process is applied at those repositioned points. Note that this accounts for only advection (when other forces will also be active), and perhaps more importantly the convergence guarantees would no longer apply. For these reasons, the control applied at earlier timesteps should be limited, for example by reducing the weight m r i at earlier timesteps and not iterating the control process to convergence. Our method circumvents these difficulties with an advected Poisson disk distribution. Match points are

7 Automated Sampling and Control of Gaseous Simulations 7 advected through the velocity field and their positions are continuous in space and time. These attributes eliminate the need for advecting the points backward. Convergence is automatically guaranteed due to the well maintained distribution. To match a keyframe at time t 1, we start to apply control at time t 0 < t 1. For a frame at time t [t 0, t 1 ], we apply control through match points with the weight m r i = M(t), where M is a blending function that increases monotonically from 0 to 1 as t approaches the keyframe time t 1, e.g. a linear version M(t) = t t0 t 1 t Age-weighted Density Control Compared to velocity, density is directly visible and the control needs to be more subtle. For density control, temporal blending of samples applies even for matching a whole simulation sequence. To smoothly match the sampled density from the preview simulation, we vary the control weight of a match point based on its age (introduced in Section 4.3). When the dart throwing algorithm generates new match points x i, we do not want it to apply maximum density control immediately. Instead, we increase the match points weights over time to the maximum value. Thus, we determine the weight m r i of match point x i with age a i as follows: { m r ai /a i = m if a i < a m (21) 1 otherwise Similar to the example we give for keyframe matching, this is a linear blending function although it can be replaced by other types of monotonically increasing functions for different effects. We combine age weight and temporal weight in a multiplicative fashion for temporally varying density control. 5.3 Bilateral Spread of Density Control In this section, we derive the spatial blending function to apply density control using the bilateral samples mentioned in Section 4.4. Assume we have differences Q 1 = δi,1 r and Q 2 = δi,2 r between the bilateral samples of the preview and the final at match point x i. In order to make the final match the preview, the sampled final values must therefore increase by Q 1 and Q 2, respectively. That is, we need to have Q 2 = x Q 1 = x G r (x i, x)h(x i, x)q x (22) G r (x i, x)(1 H(x i, x))q x (23) where Q x is the increase in density at point x. We wish to find the amount to apply via a bilateral Gaussian spread to result in the correct overall change. However, because there are two constraints to meet, we instead formulate the problem with two unknowns, Q 1 and Q 2. Q x = Q 1G 1 (x) + Q 2G 2 (x) (24) where G 1 (x) = G r (x i, x)h(x i, x) and G 2 (x) = G r (x i, x)(1 H(x i, x)) for the sake of convenience and simplicity. The idea behind Equation 24 is that we wish spread two separated amounts, Q 1 and Q 2, such that a point x gets more contribution from the amount that represents the same side of the edge it resides on. Substituting into Equation 22 and 23, we have: Q 1 = AQ 1 + BQ 2 (25) Q 2 = BQ 1 + CQ 2 (26) where A = x (G 1(x)) 2, B = x G 1(x)G 2 (x) and C = x (G 2(x)) 2. Solving for Q 1 and Q 2, we get: Q 1 = BQ 2 CQ 1 B 2 AC Q 2 = BQ 1 AQ 2 B 2 AC (27) (28) Thus, for each point in space, x, we would increase the density value at x by Q 1G 1 (x) + Q 2G 2 (x). In practice, if match point x i covers an area with relatively smooth density distribution, the closeness function H evaluates close to 1. This brings the denominator B 2 AC close to 0. In such cases, we revert back to Equation 11 for a standard Gaussian spread. 6 Results We have implemented our automated sampling and control system within an Eulerian fluid smoke simulator. All simulations were run on a PC with Intel Core i7 Processor at 4.5GHz. We employ BFECC [10] and monotonic cubic interpolation [3] for advection. Identical time steps were used in low and high resolution. We have defined a few constants as minima for selecting regions in Section 4.1. For the thresholds in Equation 13, 14 and 15, we have found that even small amount of density (0.01 when density is normalized to [0,1]) is perceivable after rendering. Thus, in our examples we use small values (0.01) for d min, d min and ω min, to avoid floating point error and ensure all visible effects are matched. We illustrate our method with the following examples. Please refer to the accompanying video for more examples, and more complete version of the simulations. In all of our examples except the user interface demo, no manual configuration of match points is needed. All match points are automatically generated by our sampling method described in Section 4.

8 8 Ruoguan Huang, John Keyser Fig. 2 On the left is the low resolution preview simulation. The second column is the results of [9]. 2a is without density control and 2b is with. The third column is our results. 3a is without density control, 3b and 3c are with. 3b uses a standard Gaussian kernel while 3c uses a bilateral kernel. On the right is the uncontrolled high resolution simulation. Figure 2 shows an example of simulation using our automated sampling method with bilateral density sampling and compares it to the method of Huang et al. [9] that covers the domain with uniformly placed match points with fixed positions. Arrows indicate one place where differences are more obvious. The comparison between the two methods (Figure 2.2a and Figure 2.3a) without density control shows that our advected match points cause the flow to more closely match desired behaviors instead of waiting for the differences to appear and then correcting them. Feature detection based sampling significantly reduces the number of match points used, and therefore requires much less computational overhead. The number of match points used in this example by our method is approximately one fourth of that used in [9], which brings down the extra time (relative to an uncontrolled simulation) spent on the control process from 80% to 20%. The density control of Huang et al. [9] (Figure 2.2b) shows some areas with unmatched density while the result of our method (Figure 2.3c) with age-based density control and temporal blending smoothly matches the preview. The comparison between Gaussian (Figure 2.3b) and bilateral (Figure 2.3c) density sampling and distribution methods shows that the result using bilateral kernels produces a closer match to the shape of the smoke in the preview simulation than the one using Gaussians. The effect of Gaussian kernels seems to reduce the intensity of the smoke to match the preview, yet makes no change to its overall shape. The effectiveness of bilateral density sampling is further demonstrated in Figure 3. In this example, we set up a simulation with constant u = 0 everywhere and refresh the distribution of match points every frame. The results after just one iteration demonstrate the preservation of edges by bilateral kernels compared to the blurring effect of Gaussians. With further iterations, the advantage of bilateral kernels is even clearer. To show each individual match point more clearly, the match points generated in (only) this example are restricted to have a larger

9 Automated Sampling and Control of Gaseous Simulations 9 Fig. 4 On the left is the animated character of smoke. On the right is the corresponding frame from the motion sequence. Fig. 3 Bilateral density sampling and matching on a static density field. Each row presents from left to right: the preview, the result using Bilateral kernels, the result using Gaussian kernels. The first and second row show the results after one iteration with match points displayed along the first. The third is after 50 iterations. minimum distance than used in other examples. In the accompanying video, we slow down the matching process so that the faster convergence rate will be obvious. Figure 1 shows that the user can easily configure the control of a simulation in selected regions and times. The control is set up to start in the middle of the simulation and is effective only in the projected volume from a selected region in screen space. The user can also modify settings on a time line to determine the interval and curve at which the control weights m r i ramp up as the simulation approaches the first fully controlled frame. The result, as set up, is uncontrolled for the first part of the simulation, and then starts to shift towards the preview, and after a short transition, becomes completely matched to the preview. Figure 4 shows the animation of a walking character of smoke. We apply modified Poisson disk distribution to fill the hull of the character with match points, and sample the density and velocity by discretizing the space on a coarse grid. We then use the sampled data to drive the smoke animation in higher resolution. We provide the timings and the number of match points used in Table 1. 7 Conclusion We have presented a collection of techniques that allow preview-based control of gaseous fluid simulations to be handled in a more automated and more accurate manner. Methods presented for identifying key features in a simulation, automatic Poisson sampling, and advection of match points allow simulations to be matched more accurately and with fewer match points than with uniform sampling, and with far more ease of use than manual placement. Methods for temporal blending and age weighting allow for smooth transitions into a controlled region/time of the simulation. Finally, a bilateral approach to sampling and matching is presented that allows sharp gradients within the simulation to be calculated much more accurately. Together, these methods allow a user to have a much more usable, efficient, and accurate control method. There are several avenues that would be good to explore in the future: 1. Automatically determining control weights to handle very drastic change in the preview simulation without involving the user. 2. Extending our sampling and matching methods to an arbitrary style of control such as artistic direction. 3. Adapting our method to Lagrangian frameworks, and perhaps liquid simulations. Acknowledgements This publication is based in part on work supported by NSF Grant IIS and by Award Number KUS- CI , made by King Abdullah University of Science and Technology (KAUST). References 1. Angelidis, A., Neyret, F., Singh, K., Nowrouzezahrai, D.: A controllable, fast and stable basis for vortex based

10 10 Ruoguan Huang, John Keyser Crossing Bar Rotating Bar Smoke Column Stairs Huang et al. N/A N/A Ours Simulation Number of Match Points Huang et al. N/A N/A Number of Match Points Ours Table 1 The top three rows give timing information in average seconds per frame for the method of Huang et al. [9], our new approach presented here, and the high resolution simulation without any control. The bottom rows present the average number of match points used per frame in the two methods. smoke simulation. In: Proceedings of the Eurographics/ACM SIGGRAPH Symposium on Computer Animation, pp (2006) 2. Fattal, R., Lischinski, D.: Target-driven smoke animation. ACM Trans. Graph. 23(3), (2004) 3. Fedkiw, R., Stam, J., Jensen, H.W.: Visual simulation of smoke. Proc. of ACM SIGGRAPH 01 pp (2001) 4. Foster, N., Fedkiw, R.: Practical animation of liquids. Proceedings of ACM SIGGRAPH 01 pp (2001) 5. Foster, N., Metaxas, D.: Realistic animation of liquids. Graphical Models and Image Processing (58(5)), (1996) 6. Foster, N., Metaxas, D.: Controlling fluid animation. Computer Graphics International pp (1997) 7. He, S., Lau, R.W.H.: Synthetic controllable turbulence using robust second vorticity confinement. Comput. Graph. Forum 32, (2013) 8. Hong, J.M., Kim, C.H.: Controlling fluid animation with geometric potential: Research articles. Comput. Animat. Virtual Worlds 15(3-4), (2004) 9. Huang, R., Melek, Z., Keyser, J.: Preview-based sampling for controlling gaseous simulations. In: Proceedings of the 2011 ACM SIGGRAPH/Eurographics Symposium on Computer Animation, pp (2011) 10. Kim, B., Liu, Y., Llamas, I., Rossignac, J.: Advections with significantly reduced dissipation and diffusion. IEEE Transactions on Visualization and Computer Graphics 13, (2007) 11. Kim, T., Thürey, N., James, D., Gross, M.: Wavelet turbulence for fluid simulation. ACM Trans. Graph. 27, 50:1 50:6 (2008) 12. Kim, Y., Machiraju, R., Thompson, D.: Path-based control of smoke simulations. In: Proceedings of the Eurographics/ACM SIGGRAPH Symposium on Computer Animation, pp (2006) 13. Lagae, A., Dutré, P.: A comparison of methods for generating poisson disk distributions. Comput. Graph. Forum 27(1), (2008) 14. McCool, M., Fiume, E.: Hierarchical poisson disk sampling distributions. In: Proceedings of the conference on Graphics interface 92, pp (1992) 15. McNamara, A., Treuille, A., Popović, Z., Stam, J.: Fluid control using the adjoint method. ACM Transactions on Graphics 23(3), (2004) 16. Müller, M., Charypar, D., Gross, M.: Particle-based fluid simulation for interactive applications. In: Proceedings of the 2003 ACM SIGGRAPH/Eurographics symposium on Computer animation, pp (2003) 17. Narain, R., Sewall, J., Carlson, M., Lin, M.C.: Fast animation of turbulence using energy transport and procedural synthesis. ACM Trans. Graph. 27, 166:1 166:8 (2008) 18. Nielsen, M.B., Christensen, B.B., Zafar, N.B., Roble, D., Museth, K.: Guiding of smoke animations through variational coupling of simulations at different resolutions. In: Proceedings of the 2009 ACM SIGGRAPH/Eurographics Symposium on Computer Animation, pp (2009) 19. Nielsen, M.B., Christiansen, B.B.: Improved variational guiding of smoke animations. Computer Graphics Forum 29, (2010) 20. Pfaff, T., Thürey, N., Cohen, J., Tariq, S., Gross, M.: Scalable fluid simulation using anisotropic turbulence particles. ACM Trans. Graph. 29, 174:1 174:8 (2010) 21. Pighin, F., Cohen, J.M., Shah, M.: Modeling and editing flows using advected radial basis functions. In: Proc. ACM SIGGRAPH/Eurographics Symposium on Computer Animation, pp (2004) 22. Rasmussen, N., Enright, D., Nguyen, D., Marino, S., Sumner, N., Geiger, W., Hoon, S., Fedkiw, R.: Directable photorealistic liquids. In: SCA 04: Proceedings of the 2004 ACM SIGGRAPH/Eurographics symposium on Computer animation, pp (2004) 23. Schechter, H., Bridson, R.: Evolving sub-grid turbulence for smoke animation. In: Proceedings of the 2008 ACM SIGGRAPH/Eurographics Symposium on Computer Animation, pp. 1 7 (2008) 24. Schpok, J., Dwyer, W., Ebert, D.S.: Modeling and animating gases with simulation features. In: Proceedings of the Eurographics/ACM SIGGRAPH Symposium on Computer Animation, pp (2005) 25. Shi, L., Yu, Y.: Controllable smoke animation with guiding objects. ACM Trans. Graph. 24(1), (2005) 26. Shi, L., Yu, Y.: Taming liquids for rapidly changing targets. In: Proceedings of the 2005 ACM SIG- GRAPH/Eurographics symposium on Computer animation, pp (2005) 27. Stam, J.: Stable fluids. Proc. of ACM SIGGRAPH 99 pp (1999) 28. Steinhoff, J., Fan, M., Wang, L., Dietz, W.: Convection of concentrated vortices and passive scalars as solitary waves. J. Sci. Comput. 19(1-3), (2003) 29. Thürey, N., Keiser, R., Pauly, M., Rüde, U.: Detailpreserving fluid control. In: Proceedings of the 2006 ACM SIGGRAPH/Eurographics symposium on Computer animation, pp (2006) 30. Tomasi, C., Manduchi, R.: Bilateral filtering for gray and color images. In: Proceedings of the Sixth International Conference on Computer Vision, pp. 839 (1998) 31. Treuille, A., McNamara, A., Popović, Z., Stam, J.: Keyframe control of smoke simulation. ACM Transactions on Graphics 22(3), (2003) 32. Yuan, Z., Chen, F., Zhao, Y.: Pattern-guided smoke animation with lagrangian coherent structure. In: Proceedings of the 2011 SIGGRAPH Asia Conference, pp. 136:1 136:8 (2011)

An Efficient Adaptive Vortex Particle Method for Real-Time Smoke Simulation

An Efficient Adaptive Vortex Particle Method for Real-Time Smoke Simulation 2011 12th International Conference on Computer-Aided Design and Computer Graphics An Efficient Adaptive Vortex Particle Method for Real-Time Smoke Simulation Shengfeng He 1, *Hon-Cheng Wong 1,2, Un-Hong

More information

Procedural Synthesis using Vortex Particle Method for Fluid Simulation

Procedural Synthesis using Vortex Particle Method for Fluid Simulation Volume 28 (2009), Number 7 Procedural Synthesis using Vortex Particle Method for Fluid Simulation Jong-Chul Yoon 1, Hyeong Ryeol Kam 2, Jeong-Mo Hong 3, Shin Jin Kang 4 and Chang-Hun Kim 2 1 FXGear Inc.

More information

Navier-Stokes & Flow Simulation

Navier-Stokes & Flow Simulation Last Time? Navier-Stokes & Flow Simulation Implicit Surfaces Marching Cubes/Tetras Collision Detection & Response Conservative Bounding Regions backtracking fixing Today Flow Simulations in Graphics Flow

More information

Smoke Simulation using Smoothed Particle Hydrodynamics (SPH) Shruti Jain MSc Computer Animation and Visual Eects Bournemouth University

Smoke Simulation using Smoothed Particle Hydrodynamics (SPH) Shruti Jain MSc Computer Animation and Visual Eects Bournemouth University Smoke Simulation using Smoothed Particle Hydrodynamics (SPH) Shruti Jain MSc Computer Animation and Visual Eects Bournemouth University 21st November 2014 1 Abstract This report is based on the implementation

More information

Navier-Stokes & Flow Simulation

Navier-Stokes & Flow Simulation Last Time? Navier-Stokes & Flow Simulation Pop Worksheet! Teams of 2. Hand in to Jeramey after we discuss. Sketch the first few frames of a 2D explicit Euler mass-spring simulation for a 2x3 cloth network

More information

CGT 581 G Fluids. Overview. Some terms. Some terms

CGT 581 G Fluids. Overview. Some terms. Some terms CGT 581 G Fluids Bedřich Beneš, Ph.D. Purdue University Department of Computer Graphics Technology Overview Some terms Incompressible Navier-Stokes Boundary conditions Lagrange vs. Euler Eulerian approaches

More information

Simulation of Swirling Bubbly Water using Bubble Particles

Simulation of Swirling Bubbly Water using Bubble Particles Noname manuscript No. (will be inserted by the editor) Simulation of Swirling Bubbly Water using Bubble Particles Ho-Young Lee Jeong-Mo Hong Chang-Hun Kim Received: date / Accepted: date Abstract The effect

More information

Adarsh Krishnamurthy (cs184-bb) Bela Stepanova (cs184-bs)

Adarsh Krishnamurthy (cs184-bb) Bela Stepanova (cs184-bs) OBJECTIVE FLUID SIMULATIONS Adarsh Krishnamurthy (cs184-bb) Bela Stepanova (cs184-bs) The basic objective of the project is the implementation of the paper Stable Fluids (Jos Stam, SIGGRAPH 99). The final

More information

Overview of Traditional Surface Tracking Methods

Overview of Traditional Surface Tracking Methods Liquid Simulation With Mesh-Based Surface Tracking Overview of Traditional Surface Tracking Methods Matthias Müller Introduction Research lead of NVIDIA PhysX team PhysX GPU acc. Game physics engine www.nvidia.com\physx

More information

Computer animation for fluid simulation of a high viscous fluid melting

Computer animation for fluid simulation of a high viscous fluid melting 2 nd WIETE Annual Conference on Engineering and Technology Education 2011 WIETE Pattaya, Thailand, 25-28 January 2011 Computer animation for fluid simulation of a high viscous fluid melting S. Lertkulvanich

More information

Navier-Stokes & Flow Simulation

Navier-Stokes & Flow Simulation Last Time? Navier-Stokes & Flow Simulation Optional Reading for Last Time: Spring-Mass Systems Numerical Integration (Euler, Midpoint, Runge-Kutta) Modeling string, hair, & cloth HW2: Cloth & Fluid Simulation

More information

A Geometric Approach to Animating Thin Surface Features in SPH Water

A Geometric Approach to Animating Thin Surface Features in SPH Water A Geometric Approach to Animating Thin Surface Features in SPH Water Taekwon Jang et al. Computer Animation and Social Agents 2013 (CASA) Jong-Hyun Kim 2013. 11.08 Abstract We propose a geometric approach

More information

Animating smoke with dynamic balance

Animating smoke with dynamic balance COMPUTER ANIMATION AND VIRTUAL WORLDS Comp. Anim. Virtual Worlds 2005; 16: 405 414 Published online in Wiley InterScience (www.interscience.wiley.com). DOI: 10.1002/cav.87 Natural Phenomena and Special

More information

Feedback Control of Fire Simulation based on Computational Fluid Dynamics

Feedback Control of Fire Simulation based on Computational Fluid Dynamics Feedback Control of Fire Simulation based on Computational Fluid Dynamics Syuhei Sato UEI Research (DWANGO Co., ltd.) Keisuke Mizutani Hokkaido University Tomoyuki Nishita UEI Research Hiroshima Shudo

More information

Pattern-Guided Smoke Animation with Lagrangian Coherent Structure

Pattern-Guided Smoke Animation with Lagrangian Coherent Structure Pattern-Guided Smoke Animation with Lagrangian Coherent Structure Zhi Yuan Kent State University Fan Chen Kent State University Ye Zhao Kent State University (a) (b) (c) (d) Figure 1: Pattern-based fluid

More information

REVIEWS ON PHYSICALLY BASED CONTROLLABLE FLUID ANIMATION

REVIEWS ON PHYSICALLY BASED CONTROLLABLE FLUID ANIMATION REVIEWS ON PHYSICALLY BASED CONTROLLABLE FLUID ANIMATION Saithip Limtrakul 1 *, Wisut Hantanong 1, Pizzanu Kanongchaiyos 1 and Tomoyuki Nishita 2 1 Department of Computer Engineering, Faculty of Engineering,

More information

Lagrangian methods and Smoothed Particle Hydrodynamics (SPH) Computation in Astrophysics Seminar (Spring 2006) L. J. Dursi

Lagrangian methods and Smoothed Particle Hydrodynamics (SPH) Computation in Astrophysics Seminar (Spring 2006) L. J. Dursi Lagrangian methods and Smoothed Particle Hydrodynamics (SPH) Eulerian Grid Methods The methods covered so far in this course use an Eulerian grid: Prescribed coordinates In `lab frame' Fluid elements flow

More information

Supplemental Material Deep Fluids: A Generative Network for Parameterized Fluid Simulations

Supplemental Material Deep Fluids: A Generative Network for Parameterized Fluid Simulations Supplemental Material Deep Fluids: A Generative Network for Parameterized Fluid Simulations 1. Extended Results 1.1. 2-D Smoke Plume Additional results for the 2-D smoke plume example are shown in Figures

More information

Water. Notes. Free surface. Boundary conditions. This week: extend our 3D flow solver to full 3D water We need to add two things:

Water. Notes. Free surface. Boundary conditions. This week: extend our 3D flow solver to full 3D water We need to add two things: Notes Added a 2D cross-section viewer for assignment 6 Not great, but an alternative if the full 3d viewer isn t working for you Warning about the formulas in Fedkiw, Stam, and Jensen - maybe not right

More information

CS-184: Computer Graphics Lecture #21: Fluid Simulation II

CS-184: Computer Graphics Lecture #21: Fluid Simulation II CS-184: Computer Graphics Lecture #21: Fluid Simulation II Rahul Narain University of California, Berkeley Nov. 18 19, 2013 Grid-based fluid simulation Recap: Eulerian viewpoint Grid is fixed, fluid moves

More information

Realtime Water Simulation on GPU. Nuttapong Chentanez NVIDIA Research

Realtime Water Simulation on GPU. Nuttapong Chentanez NVIDIA Research 1 Realtime Water Simulation on GPU Nuttapong Chentanez NVIDIA Research 2 3 Overview Approaches to realtime water simulation Hybrid shallow water solver + particles Hybrid 3D tall cell water solver + particles

More information

Continued Investigation of Small-Scale Air-Sea Coupled Dynamics Using CBLAST Data

Continued Investigation of Small-Scale Air-Sea Coupled Dynamics Using CBLAST Data Continued Investigation of Small-Scale Air-Sea Coupled Dynamics Using CBLAST Data Dick K.P. Yue Center for Ocean Engineering Department of Mechanical Engineering Massachusetts Institute of Technology Cambridge,

More information

Realistic Animation of Fluids

Realistic Animation of Fluids 1 Realistic Animation of Fluids Nick Foster and Dimitris Metaxas Presented by Alex Liberman April 19, 2005 2 Previous Work Used non physics-based methods (mostly in 2D) Hard to simulate effects that rely

More information

Particle-based Fluid Simulation

Particle-based Fluid Simulation Simulation in Computer Graphics Particle-based Fluid Simulation Matthias Teschner Computer Science Department University of Freiburg Application (with Pixar) 10 million fluid + 4 million rigid particles,

More information

A Novel Algorithm for Incompressible Flow Using Only a Coarse Grid Projection

A Novel Algorithm for Incompressible Flow Using Only a Coarse Grid Projection A Novel Algorithm for Incompressible Flow Using Only a Coarse Grid Projection Michael Lentine Stanford University Industrial Light + Magic Wen Zheng Stanford University Ronald Fedkiw Stanford University

More information

Guide Shapes for High Resolution Naturalistic Liquid Simulation

Guide Shapes for High Resolution Naturalistic Liquid Simulation Guide Shapes for High Resolution Naturalistic Liquid Simulation Michael B. Nielsen Weta Digital (a) Robert Bridson University of British Columbia Weta Digital (b) (c) (d) Figure 1: A boat emerges from

More information

Simple Silhouettes for Complex Surfaces

Simple Silhouettes for Complex Surfaces Eurographics Symposium on Geometry Processing(2003) L. Kobbelt, P. Schröder, H. Hoppe (Editors) Simple Silhouettes for Complex Surfaces D. Kirsanov, P. V. Sander, and S. J. Gortler Harvard University Abstract

More information

Physically Based Simulation and Animation of Gaseous Phenomena in a Periodic Domain

Physically Based Simulation and Animation of Gaseous Phenomena in a Periodic Domain Physically Based Simulation and Animation of Gaseous Phenomena in a Periodic Domain Andrew Nealen Department of Computer Science, University of British Columbia CPSC 533b: Algorithmic Animation, Project

More information

This work is about a new method for generating diffusion curve style images. Although this topic is dealing with non-photorealistic rendering, as you

This work is about a new method for generating diffusion curve style images. Although this topic is dealing with non-photorealistic rendering, as you This work is about a new method for generating diffusion curve style images. Although this topic is dealing with non-photorealistic rendering, as you will see our underlying solution is based on two-dimensional

More information

1.2 Numerical Solutions of Flow Problems

1.2 Numerical Solutions of Flow Problems 1.2 Numerical Solutions of Flow Problems DIFFERENTIAL EQUATIONS OF MOTION FOR A SIMPLIFIED FLOW PROBLEM Continuity equation for incompressible flow: 0 Momentum (Navier-Stokes) equations for a Newtonian

More information

Level set methods Formulation of Interface Propagation Boundary Value PDE Initial Value PDE Motion in an externally generated velocity field

Level set methods Formulation of Interface Propagation Boundary Value PDE Initial Value PDE Motion in an externally generated velocity field Level Set Methods Overview Level set methods Formulation of Interface Propagation Boundary Value PDE Initial Value PDE Motion in an externally generated velocity field Convection Upwind ddifferencingi

More information

CS 231. Fluid simulation

CS 231. Fluid simulation CS 231 Fluid simulation Why Simulate Fluids? Feature film special effects Computer games Medicine (e.g. blood flow in heart) Because it s fun Fluid Simulation Called Computational Fluid Dynamics (CFD)

More information

Driven Cavity Example

Driven Cavity Example BMAppendixI.qxd 11/14/12 6:55 PM Page I-1 I CFD Driven Cavity Example I.1 Problem One of the classic benchmarks in CFD is the driven cavity problem. Consider steady, incompressible, viscous flow in a square

More information

Editing Fluid Animation using Flow Interpolation

Editing Fluid Animation using Flow Interpolation Editing Fluid Animation using Flow Interpolation SYUHEI SATO, DWANGO Co., Ltd., Dwango CG Research YOSHINORI DOBASHI, Hokkaido University and Dwango CG Research TOMOYUKI NISHITA, Dwango CG Research and

More information

Real-time controllable fire using textured forces

Real-time controllable fire using textured forces Vis Comput (2012) 28:691 700 DOI 10.1007/s00371-012-0684-1 ORIGINAL ARTICLE Real-time controllable fire using textured forces Jake Lever Taku Komura Published online: 5 May 2012 Springer-Verlag 2012 Abstract

More information

More Animation Techniques

More Animation Techniques CS 231 More Animation Techniques So much more Animation Procedural animation Particle systems Free-form deformation Natural Phenomena 1 Procedural Animation Rule based animation that changes/evolves over

More information

Texture Advection Based Simulation of Dynamic Cloud Scene

Texture Advection Based Simulation of Dynamic Cloud Scene Texture Advection Based Simulation of Dynamic Cloud Scene Shiguang Liu 1, Ruoguan Huang 2, Zhangye Wang 2, Qunsheng Peng 2, Jiawan Zhang 1, Jizhou Sun 1 1 School of Computer Science and Technology, Tianjin

More information

Vector Field Visualisation

Vector Field Visualisation Vector Field Visualisation Computer Animation and Visualization Lecture 14 Institute for Perception, Action & Behaviour School of Informatics Visualising Vectors Examples of vector data: meteorological

More information

Controllable Smoke Animation With Guiding Objects

Controllable Smoke Animation With Guiding Objects Controllable Smoke Animation With Guiding Objects LIN SHI and YIZHOU YU University of Illinois at Urbana-Champaign This article addresses the problem of controlling the density and dynamics of smoke (a

More information

Post Processing, Visualization, and Sample Output

Post Processing, Visualization, and Sample Output Chapter 7 Post Processing, Visualization, and Sample Output Upon successful execution of an ADCIRC run, a number of output files will be created. Specifically which files are created depends upon how the

More information

Adaptive Particles for Incompressible Fluid Simulation (Technical Report tamu-cs-tr )

Adaptive Particles for Incompressible Fluid Simulation (Technical Report tamu-cs-tr ) Adaptive Particles for Incompressible Fluid Simulation (Technical Report tamu-cs-tr 2007-7-2) Woosuck Hong Dept. of Computer Science Texas A&M University wshong@cs.tamu.edu Donald H. House Visualization

More information

CFD MODELING FOR PNEUMATIC CONVEYING

CFD MODELING FOR PNEUMATIC CONVEYING CFD MODELING FOR PNEUMATIC CONVEYING Arvind Kumar 1, D.R. Kaushal 2, Navneet Kumar 3 1 Associate Professor YMCAUST, Faridabad 2 Associate Professor, IIT, Delhi 3 Research Scholar IIT, Delhi e-mail: arvindeem@yahoo.co.in

More information

LATTICE-BOLTZMANN METHOD FOR THE SIMULATION OF LAMINAR MIXERS

LATTICE-BOLTZMANN METHOD FOR THE SIMULATION OF LAMINAR MIXERS 14 th European Conference on Mixing Warszawa, 10-13 September 2012 LATTICE-BOLTZMANN METHOD FOR THE SIMULATION OF LAMINAR MIXERS Felix Muggli a, Laurent Chatagny a, Jonas Lätt b a Sulzer Markets & Technology

More information

Simulating Smoke with an Octree Data Structure and Ray Marching

Simulating Smoke with an Octree Data Structure and Ray Marching Simulating Smoke with an Octree Data Structure and Ray Marching Edward Eisenberger Maria Montenegro Abstract We present a method for simulating and rendering smoke using an Octree data structure and Monte

More information

Motion Synthesis and Editing. Yisheng Chen

Motion Synthesis and Editing. Yisheng Chen Motion Synthesis and Editing Yisheng Chen Overview Data driven motion synthesis automatically generate motion from a motion capture database, offline or interactive User inputs Large, high-dimensional

More information

An Adaptive Sampling Approach to Incompressible Particle-Based Fluid

An Adaptive Sampling Approach to Incompressible Particle-Based Fluid EG UK Theory and Practice of Computer Graphics (2009) Ik Soo Lim, Wen Tang (Editors) An Adaptive Sampling Approach to Incompressible Particle-Based Fluid Woosuck Hong 1, Donald H. House 2 and John Keyser

More information

Volcanic Smoke Animation using CML

Volcanic Smoke Animation using CML Volcanic Smoke Animation using CML Ryoichi Mizuno Yoshinori Dobashi Tomoyuki Nishita The University of Tokyo Tokyo, Japan Hokkaido University Sapporo, Hokkaido, Japan {mizuno,nis}@nis-lab.is.s.u-tokyo.ac.jp

More information

Mid-Year Report. Discontinuous Galerkin Euler Equation Solver. Friday, December 14, Andrey Andreyev. Advisor: Dr.

Mid-Year Report. Discontinuous Galerkin Euler Equation Solver. Friday, December 14, Andrey Andreyev. Advisor: Dr. Mid-Year Report Discontinuous Galerkin Euler Equation Solver Friday, December 14, 2012 Andrey Andreyev Advisor: Dr. James Baeder Abstract: The focus of this effort is to produce a two dimensional inviscid,

More information

Computer Project 3. AA Computational Fluid Dyanmics University of Washington. Mishaal Aleem March 17, 2015

Computer Project 3. AA Computational Fluid Dyanmics University of Washington. Mishaal Aleem March 17, 2015 Computer Project 3 AA 543 - Computational Fluid Dyanmics University of Washington Mishaal Aleem March 17, 2015 Contents Introduction........................................... 1 3.1 Grid Generator.......................................

More information

CS205b/CME306. Lecture 9

CS205b/CME306. Lecture 9 CS205b/CME306 Lecture 9 1 Convection Supplementary Reading: Osher and Fedkiw, Sections 3.3 and 3.5; Leveque, Sections 6.7, 8.3, 10.2, 10.4. For a reference on Newton polynomial interpolation via divided

More information

ALE Seamless Immersed Boundary Method with Overset Grid System for Multiple Moving Objects

ALE Seamless Immersed Boundary Method with Overset Grid System for Multiple Moving Objects Tenth International Conference on Computational Fluid Dynamics (ICCFD10), Barcelona,Spain, July 9-13, 2018 ICCFD10-047 ALE Seamless Immersed Boundary Method with Overset Grid System for Multiple Moving

More information

Chapter 6. Semi-Lagrangian Methods

Chapter 6. Semi-Lagrangian Methods Chapter 6. Semi-Lagrangian Methods References: Durran Chapter 6. Review article by Staniford and Cote (1991) MWR, 119, 2206-2223. 6.1. Introduction Semi-Lagrangian (S-L for short) methods, also called

More information

BACK AND FORTH ERROR COMPENSATION AND CORRECTION METHODS FOR REMOVING ERRORS INDUCED BY UNEVEN GRADIENTS OF THE LEVEL SET FUNCTION

BACK AND FORTH ERROR COMPENSATION AND CORRECTION METHODS FOR REMOVING ERRORS INDUCED BY UNEVEN GRADIENTS OF THE LEVEL SET FUNCTION BACK AND FORTH ERROR COMPENSATION AND CORRECTION METHODS FOR REMOVING ERRORS INDUCED BY UNEVEN GRADIENTS OF THE LEVEL SET FUNCTION TODD F. DUPONT AND YINGJIE LIU Abstract. We propose a method that significantly

More information

EE795: Computer Vision and Intelligent Systems

EE795: Computer Vision and Intelligent Systems EE795: Computer Vision and Intelligent Systems Spring 2012 TTh 17:30-18:45 WRI C225 Lecture 04 130131 http://www.ee.unlv.edu/~b1morris/ecg795/ 2 Outline Review Histogram Equalization Image Filtering Linear

More information

Mid-level Smoke Control for 2D Animation

Mid-level Smoke Control for 2D Animation Mid-level Smoke Control for 2D Animation Alfred Barnat Zeyang Li James McCann Nancy S. Pollard Carnegie Mellon University Stanford University Adobe Systems, Inc. Carnegie Mellon University Figure 1: Our

More information

Wavelet Turbulence for Fluid Simulation

Wavelet Turbulence for Fluid Simulation Wavelet Turbulence for Fluid Simulation Theodore Kim Cornell University Nils Thu rey ETH Zurich Doug James Cornell University Markus Gross ETH Zurich Figure 1: A 50 100 50 smoke simulation with eight turbulence

More information

Filters. Advanced and Special Topics: Filters. Filters

Filters. Advanced and Special Topics: Filters. Filters Filters Advanced and Special Topics: Filters Dr. Edmund Lam Department of Electrical and Electronic Engineering The University of Hong Kong ELEC4245: Digital Image Processing (Second Semester, 2016 17)

More information

T6: Position-Based Simulation Methods in Computer Graphics. Jan Bender Miles Macklin Matthias Müller

T6: Position-Based Simulation Methods in Computer Graphics. Jan Bender Miles Macklin Matthias Müller T6: Position-Based Simulation Methods in Computer Graphics Jan Bender Miles Macklin Matthias Müller Jan Bender Organizer Professor at the Visual Computing Institute at Aachen University Research topics

More information

Abstract. Introduction. Kevin Todisco

Abstract. Introduction. Kevin Todisco - Kevin Todisco Figure 1: A large scale example of the simulation. The leftmost image shows the beginning of the test case, and shows how the fluid refracts the environment around it. The middle image

More information

Filtering Images. Contents

Filtering Images. Contents Image Processing and Data Visualization with MATLAB Filtering Images Hansrudi Noser June 8-9, 010 UZH, Multimedia and Robotics Summer School Noise Smoothing Filters Sigmoid Filters Gradient Filters Contents

More information

Non-Photorealistic Rendering

Non-Photorealistic Rendering 15-462 Computer Graphics I Lecture 22 Non-Photorealistic Rendering November 18, 2003 Doug James Carnegie Mellon University http://www.cs.cmu.edu/~djames/15-462/fall03 Pen-and-Ink Illustrations Painterly

More information

Continuum-Microscopic Models

Continuum-Microscopic Models Scientific Computing and Numerical Analysis Seminar October 1, 2010 Outline Heterogeneous Multiscale Method Adaptive Mesh ad Algorithm Refinement Equation-Free Method Incorporates two scales (length, time

More information

Overview. Applications of DEC: Fluid Mechanics and Meshing. Fluid Models (I) Part I. Computational Fluids with DEC. Fluid Models (II) Fluid Models (I)

Overview. Applications of DEC: Fluid Mechanics and Meshing. Fluid Models (I) Part I. Computational Fluids with DEC. Fluid Models (II) Fluid Models (I) Applications of DEC: Fluid Mechanics and Meshing Mathieu Desbrun Applied Geometry Lab Overview Putting DEC to good use Fluids, fluids, fluids geometric interpretation of classical models discrete geometric

More information

ELEC Dr Reji Mathew Electrical Engineering UNSW

ELEC Dr Reji Mathew Electrical Engineering UNSW ELEC 4622 Dr Reji Mathew Electrical Engineering UNSW Review of Motion Modelling and Estimation Introduction to Motion Modelling & Estimation Forward Motion Backward Motion Block Motion Estimation Motion

More information

FLUENT Secondary flow in a teacup Author: John M. Cimbala, Penn State University Latest revision: 26 January 2016

FLUENT Secondary flow in a teacup Author: John M. Cimbala, Penn State University Latest revision: 26 January 2016 FLUENT Secondary flow in a teacup Author: John M. Cimbala, Penn State University Latest revision: 26 January 2016 Note: These instructions are based on an older version of FLUENT, and some of the instructions

More information

Multi-Domain Pattern. I. Problem. II. Driving Forces. III. Solution

Multi-Domain Pattern. I. Problem. II. Driving Forces. III. Solution Multi-Domain Pattern I. Problem The problem represents computations characterized by an underlying system of mathematical equations, often simulating behaviors of physical objects through discrete time

More information

Constrained Diffusion Limited Aggregation in 3 Dimensions

Constrained Diffusion Limited Aggregation in 3 Dimensions Constrained Diffusion Limited Aggregation in 3 Dimensions Paul Bourke Swinburne University of Technology P. O. Box 218, Hawthorn Melbourne, Vic 3122, Australia. Email: pdb@swin.edu.au Abstract Diffusion

More information

Edge and local feature detection - 2. Importance of edge detection in computer vision

Edge and local feature detection - 2. Importance of edge detection in computer vision Edge and local feature detection Gradient based edge detection Edge detection by function fitting Second derivative edge detectors Edge linking and the construction of the chain graph Edge and local feature

More information

Interactive Fluid Simulation using Augmented Reality Interface

Interactive Fluid Simulation using Augmented Reality Interface Interactive Fluid Simulation using Augmented Reality Interface Makoto Fuisawa 1, Hirokazu Kato 1 1 Graduate School of Information Science, Nara Institute of Science and Technology, 8916-5 Takayama, Ikoma,

More information

FLUID SIMULATION BY PARTICLE LEVEL SET METHOD WITH AN EFFICIENT DYNAMIC ARRAY IMPLEMENTATION ON GPU

FLUID SIMULATION BY PARTICLE LEVEL SET METHOD WITH AN EFFICIENT DYNAMIC ARRAY IMPLEMENTATION ON GPU FLUID SIMULATION BY PARTICLE LEVEL SET METHOD WITH AN EFFICIENT DYNAMIC ARRAY IMPLEMENTATION ON GPU Yasuhiro Matsuda The University of Tokyo Yoshinori Dobashi Hokkaido University Tomoyuki Nishita The University

More information

Scalable Fluid Simulation using Anisotropic Turbulence Particles

Scalable Fluid Simulation using Anisotropic Turbulence Particles Scalable Fluid Simulation using Anisotropic Turbulence Particles Tobias Pfaff1 Nils Thuerey1 1 Jonathan Cohen2 ETH Zurich 2 Sarah Tariq2 Markus Gross1 NVIDIA Figure 1: Our method easily scales from an

More information

ENHANCING THE CONTROL AND PERFORMANCE OF PARTICLE SYSTEMS THROUGH THE USE OF LOCAL ENVIRONMENTS. Abstract

ENHANCING THE CONTROL AND PERFORMANCE OF PARTICLE SYSTEMS THROUGH THE USE OF LOCAL ENVIRONMENTS. Abstract ENHANCING THE CONTROL AND PERFORMANCE OF PARTICLE SYSTEMS THROUGH THE USE OF LOCAL ENVIRONMENTS Daniel O. Kutz Richard R. Eckert State University of New York at Binghamton Binghamton, NY 13902 Abstract

More information

A Survey of Light Source Detection Methods

A Survey of Light Source Detection Methods A Survey of Light Source Detection Methods Nathan Funk University of Alberta Mini-Project for CMPUT 603 November 30, 2003 Abstract This paper provides an overview of the most prominent techniques for light

More information

Robust Simulation of Sparsely Sampled Thin Features in SPH-Based Free Surface Flows

Robust Simulation of Sparsely Sampled Thin Features in SPH-Based Free Surface Flows Copyright of figures and other materials in the paper belong to original authors. Robust Simulation of Sparsely Sampled Thin Features in SPH-Based Free Surface Flows Xiaowei He et al. ACM SIGGRAPH 2015

More information

Interaction of Fluid Simulation Based on PhysX Physics Engine. Huibai Wang, Jianfei Wan, Fengquan Zhang

Interaction of Fluid Simulation Based on PhysX Physics Engine. Huibai Wang, Jianfei Wan, Fengquan Zhang 4th International Conference on Sensors, Measurement and Intelligent Materials (ICSMIM 2015) Interaction of Fluid Simulation Based on PhysX Physics Engine Huibai Wang, Jianfei Wan, Fengquan Zhang College

More information

CUDA. Fluid simulation Lattice Boltzmann Models Cellular Automata

CUDA. Fluid simulation Lattice Boltzmann Models Cellular Automata CUDA Fluid simulation Lattice Boltzmann Models Cellular Automata Please excuse my layout of slides for the remaining part of the talk! Fluid Simulation Navier Stokes equations for incompressible fluids

More information

Fluid Simulation. [Thürey 10] [Pfaff 10] [Chentanez 11]

Fluid Simulation. [Thürey 10] [Pfaff 10] [Chentanez 11] Fluid Simulation [Thürey 10] [Pfaff 10] [Chentanez 11] 1 Computational Fluid Dynamics 3 Graphics Why don t we just take existing models from CFD for Computer Graphics applications? 4 Graphics Why don t

More information

Thermal Coupling Method Between SPH Particles and Solid Elements in LS-DYNA

Thermal Coupling Method Between SPH Particles and Solid Elements in LS-DYNA Thermal Coupling Method Between SPH Particles and Solid Elements in LS-DYNA Jingxiao Xu 1, Jason Wang 2 1 LSTC 2 LSTC 1 Abstract Smooth particles hydrodynamics is a meshfree, Lagrangian particle method

More information

A Multigrid Fluid Pressure Solver Handling Separating Solid Boundary Conditions

A Multigrid Fluid Pressure Solver Handling Separating Solid Boundary Conditions Eurographics/ ACM SIGGRAPH Symposium on Computer Animation (2011) A. Bargteil and M. van de Panne (Editors) A Multigrid Fluid Pressure Solver Handling Separating Solid Boundary Conditions Nuttapong Chentanez

More information

Surface Reconstruction. Gianpaolo Palma

Surface Reconstruction. Gianpaolo Palma Surface Reconstruction Gianpaolo Palma Surface reconstruction Input Point cloud With or without normals Examples: multi-view stereo, union of range scan vertices Range scans Each scan is a triangular mesh

More information

Animation of Fluids. Animating Fluid is Hard

Animation of Fluids. Animating Fluid is Hard Animation of Fluids Animating Fluid is Hard Too complex to animate by hand Surface is changing very quickly Lots of small details In short, a nightmare! Need automatic simulations AdHoc Methods Some simple

More information

The 3D DSC in Fluid Simulation

The 3D DSC in Fluid Simulation The 3D DSC in Fluid Simulation Marek K. Misztal Informatics and Mathematical Modelling, Technical University of Denmark mkm@imm.dtu.dk DSC 2011 Workshop Kgs. Lyngby, 26th August 2011 Governing Equations

More information

EECS150 - Digital Design Lecture 14 FIFO 2 and SIFT. Recap and Outline

EECS150 - Digital Design Lecture 14 FIFO 2 and SIFT. Recap and Outline EECS150 - Digital Design Lecture 14 FIFO 2 and SIFT Oct. 15, 2013 Prof. Ronald Fearing Electrical Engineering and Computer Sciences University of California, Berkeley (slides courtesy of Prof. John Wawrzynek)

More information

Lagrangian and Eulerian Representations of Fluid Flow: Kinematics and the Equations of Motion

Lagrangian and Eulerian Representations of Fluid Flow: Kinematics and the Equations of Motion Lagrangian and Eulerian Representations of Fluid Flow: Kinematics and the Equations of Motion James F. Price Woods Hole Oceanographic Institution Woods Hole, MA, 02543 July 31, 2006 Summary: This essay

More information

Image Base Rendering: An Introduction

Image Base Rendering: An Introduction Image Base Rendering: An Introduction Cliff Lindsay CS563 Spring 03, WPI 1. Introduction Up to this point, we have focused on showing 3D objects in the form of polygons. This is not the only approach to

More information

Vector Visualization

Vector Visualization Vector Visualization Vector Visulization Divergence and Vorticity Vector Glyphs Vector Color Coding Displacement Plots Stream Objects Texture-Based Vector Visualization Simplified Representation of Vector

More information

Procedural Fluid Modeling of Explosion Phenomena Based on Physical Properties

Procedural Fluid Modeling of Explosion Phenomena Based on Physical Properties Eurographics/ ACM SIGGRAPH Symposium on Computer Animation (2011) A. Bargteil and M. van de Panne (Editors) Procedural Fluid Modeling of Explosion Phenomena Based on Physical Properties Genichi Kawada

More information

CUDA Particles. Simon Green

CUDA Particles. Simon Green CUDA Particles Simon Green sdkfeedback@nvidia.com Document Change History Version Date Responsible Reason for Change 1.0 Sept 19 2007 Simon Green Initial draft Abstract Particle systems [1] are a commonly

More information

Grid-less Controllable Fire

Grid-less Controllable Fire Grid-less Controllable Fire Neeharika Adabala 1 and Charles E. Hughes 1,2 1 School of Computer Science 2 School of Film and Digital Media, University of Central Florida Introduction Gaming scenarios often

More information

The Immersed Interface Method

The Immersed Interface Method The Immersed Interface Method Numerical Solutions of PDEs Involving Interfaces and Irregular Domains Zhiiin Li Kazufumi Ito North Carolina State University Raleigh, North Carolina Society for Industrial

More information

Ship in a Bottle. 1 Modeling and Rendering the Water. Saket Patkar and Bo Zhu

Ship in a Bottle. 1 Modeling and Rendering the Water. Saket Patkar and Bo Zhu Ship in a Bottle Saket Patkar and Bo Zhu 1 Modeling and Rendering the Water We decided to get the basic ocean surface through a particle level set fluid simulation. The fluid simulator can only handle

More information

Chapter 3: Computer Animation Reminder: Descriptive animation. Procedural animation : Examples. Towards methods that generate motion?

Chapter 3: Computer Animation Reminder: Descriptive animation. Procedural animation : Examples. Towards methods that generate motion? Chapter 3 : Computer Animation (continued) Chapter 3: Computer Animation Reminder: Descriptive animation Describes a single motion, with manual control Ex: direct kinematics with key-frames, inverse kinematics

More information

Rigid Body Dynamics, Collision Response, & Deformation

Rigid Body Dynamics, Collision Response, & Deformation Rigid Body Dynamics, Collision Response, & Deformation Pop Worksheet! Teams of 2. SOMEONE YOU HAVEN T ALREADY WORKED WITH What are the horizontal and face velocities after 1, 2, and many iterations of

More information

Experiments with Edge Detection using One-dimensional Surface Fitting

Experiments with Edge Detection using One-dimensional Surface Fitting Experiments with Edge Detection using One-dimensional Surface Fitting Gabor Terei, Jorge Luis Nunes e Silva Brito The Ohio State University, Department of Geodetic Science and Surveying 1958 Neil Avenue,

More information

Medical Image Segmentation using Level Sets

Medical Image Segmentation using Level Sets Medical Image Segmentation using Level Sets Technical Report #CS-8-1 Tenn Francis Chen Abstract Segmentation is a vital aspect of medical imaging. It aids in the visualization of medical data and diagnostics

More information

convolution shift invariant linear system Fourier Transform Aliasing and sampling scale representation edge detection corner detection

convolution shift invariant linear system Fourier Transform Aliasing and sampling scale representation edge detection corner detection COS 429: COMPUTER VISON Linear Filters and Edge Detection convolution shift invariant linear system Fourier Transform Aliasing and sampling scale representation edge detection corner detection Reading:

More information

Chapter 7. Conclusions and Future Work

Chapter 7. Conclusions and Future Work Chapter 7 Conclusions and Future Work In this dissertation, we have presented a new way of analyzing a basic building block in computer graphics rendering algorithms the computational interaction between

More information

Sketch-based Interface for Crowd Animation

Sketch-based Interface for Crowd Animation Sketch-based Interface for Crowd Animation Masaki Oshita 1, Yusuke Ogiwara 1 1 Kyushu Institute of Technology 680-4 Kawazu, Iizuka, Fukuoka, 820-8502, Japan oshita@ces.kyutech.ac.p ogiwara@cg.ces.kyutech.ac.p

More information

An Improved Study of Real-Time Fluid Simulation on GPU

An Improved Study of Real-Time Fluid Simulation on GPU An Improved Study of Real-Time Fluid Simulation on GPU Enhua Wu 1, 2, Youquan Liu 1, Xuehui Liu 1 1 Laboratory of Computer Science, Institute of Software Chinese Academy of Sciences, Beijing, China 2 Department

More information

Computer Vision 2. SS 18 Dr. Benjamin Guthier Professur für Bildverarbeitung. Computer Vision 2 Dr. Benjamin Guthier

Computer Vision 2. SS 18 Dr. Benjamin Guthier Professur für Bildverarbeitung. Computer Vision 2 Dr. Benjamin Guthier Computer Vision 2 SS 18 Dr. Benjamin Guthier Professur für Bildverarbeitung Computer Vision 2 Dr. Benjamin Guthier 1. IMAGE PROCESSING Computer Vision 2 Dr. Benjamin Guthier Content of this Chapter Non-linear

More information