Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
SYSTEMS AND METHODS OF SIMULATING DRAG-INDUCED MULTISCALE PHENOMENA
Document Type and Number:
WIPO Patent Application WO/2023/096676
Kind Code:
A1
Abstract:
An electronic apparatus performs a method of simulating visual effect of avalanche of media. The method includes: interpolating particle information of the media to a grid; simulating advection of fluid from the media; applying a computed drag force to the interpolated particle information on the grid and to the simulated advection of the fluid; interpolating updated particle information from the grid; simulating fluid projection from the media; determining whether a fluid generation condition is satisfied; in response to the determination that the fluid generation condition is satisfied: generating additional fluid from the media; and applying a fluid decaying scheme.

Inventors:
CHEN YICHEN (US)
GUO QI (US)
Application Number:
PCT/US2022/038009
Publication Date:
June 01, 2023
Filing Date:
July 22, 2022
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
TENCENT AMERICA LLC (US)
International Classes:
G06T13/60; G06F30/25; G06F30/28
Foreign References:
US8878856B12014-11-04
US20200082589A12020-03-12
US20100185420A12010-07-22
Attorney, Agent or Firm:
SUN, Yalei et al. (US)
Download PDF:
Claims:
What is claimed is:

1. A method of simulating visual effect of avalanche of media, comprising: interpolating particle information of the media to a grid; simulating advection of fluid from the media; applying a computed drag force to the interpolated particle information on the grid and to the simulated advection of the fluid; interpolating updated particle information from the grid; and simulating fluid projection from the media.

2. The method according to claim 1, further comprising: determining whether a fluid generation condition is satisfied; in response to the determination that the fluid generation condition is satisfied: generating additional fluid from the media; and applying a fluid decaying scheme.

3. The method according to claim 1, wherein applying the computed drag force to the interpolated particle information on the grid and to the simulated advection of the fluid comprises: coupling the media and the fluid in a momentum-conserving manner.

4. The method according to claim 1, wherein simulating the fluid projection from the media comprises: generating saltation or atomization fluid from a surface of the media according to a transport rate of the media.

5. The method according to claim 1, wherein interpolating the particle information of the media to the grid is separate from simulating the advection of the fluid from the media.

6. The method according to claim 1, wherein interpolating the particle information of the media to the grid is a time step according to a material point method (MPM).

7. The method according to claim 1, wherein the grid is a Eulerian grid.

8. The method according to claim 1, wherein interpolating the updated particle information from the grid is a time step according to a material point method (MPM).

9. The method according to claim 2, wherein determining whether the fluid generation condition is satisfied is according to a velocity threshold of the media.

10. The method according to claim 2, wherein the fluid decaying scheme is a modeling of a process of converting the fluid into the media.

1 1. The method according to claim 1, executing operation of each node of the grid independently in parallel.

12. The method according to claim 1, a sparse data structure is implemented.

13. An electronic apparatus comprising one or more processing units, memory coupled to the one or more processing units, and a plurality of programs stored in the memory that, when executed by the one or more processing units, cause the electronic apparatus to perform a plurality of operations of simulating visual effect of avalanche of media, comprising: interpolating particle information of the media to a grid; simulating advection of fluid from the media; applying a computed drag force to the interpolated particle information on the grid and to the simulated advection of the fluid; interpolating updated particle information from the grid; and simulating fluid projection from the media.

14. The electronic apparatus according to claim 13, wherein the plurality of operations of simulating visual effect of avalanche of media, further comprising: determining whether a fluid generation condition is satisfied; in response to the determination that the fluid generation condition is satisfied: generating additional fluid from the media; and applying a fluid decaying scheme.

15. The electronic apparatus according to claim 13, wherein applying the computed drag force to the interpolated particle information on the grid and to the simulated advection of the fluid comprises: coupling the media and the fluid in a momentum-conserving manner.

16. The electronic apparatus according to claim 13, wherein simulating the fluid projection from the media comprises: generating saltation or atomization fluid from a surface of the media according to a transport rate of the media.

17. The electronic apparatus according to claim 14, wherein determining whether the fluid generation condition is satisfied is according to a velocity threshold of the media.

18. The electronic apparatus according to claim 14, wherein the fluid decaying scheme is a modeling of a process of converting the fluid into the media.

19. A non-transitory computer readable storage medium storing a plurality of programs for execution by an electronic apparatus having one or more processing units, wherein the plurality of programs, when executed by the one or more processing units, cause the electronic apparatus to perform a plurality of operations of simulating visual effect of avalanche of media, comprising: interpolating particle information of the media to a grid; simulating advection of fluid from the media; applying a computed drag force to the interpolated particle information on the grid and to the simulated advection of the fluid; interpolating updated particle information from the grid; and simulating fluid projection from the media.

20. The non-transitory computer readable storage medium according to claim 19, wherein the plurality of operations of simulating visual effect of avalanche of media, further comprising: determining whether a fluid generation condition is satisfied; in response to the determination that the fluid generation condition is satisfied: generating additional fluid from the media; and applying a fluid decaying scheme.

22

Description:
SYSTEMS AND METHODS OF SIMULATING DRAG-

INDUCED MULTISCALE PHENOMENA

CROSS-REFERENCE TO RELATED APPLICATIONS

[0001] The application is a continuation and claims priority to US Patent Application No. 17/537,230, entitled "SYSTEMS AND METHODS OF SIMULATING DRAG- INDUCED MULTISCALE PHENOMENA" filed on November 29, 2021, which is incorporated by reference herein in its entirety.

TECHNICAL FIELD

[0002] The present disclosure relates generally to image technologies, and in particular, to image processing of drag induced multiscale phenomena methods and systems.

BACKGROUND

[0003] In computer graphics, there is very few existing work on the single framework of simulation of multiscale mixed-motion avalanche and waterfall. Artists usually achieve the plausible visual effects of avalanches by only simulating smoke with specific rendering and lighting techniques, without considering the mixed motion of snow and snow smoke. For waterfall, the related work is also rare.

[0004] Artistic methods of simulating avalanche with only smoke simulation have severe defects. First, without being induced by physics-based elastoplasticity model of snow dynamics, the pure snow smoke simulation has trouble in replicating the accumulation and decaying of snow smoke based on the existing snow. Thus, the important details of phase transition are missing, making the simulation look like a cloud instead of real massive-scale snow movements. Secondly, without coupling the dynamics of both snow and snow smoke, the avalanche dynamics are only dominated by the Navier-Stokes equation, boundary condition, buoyancy, and other forces. As a result, the movements of snow and smoke are entirely independent, which causes severe visual artifacts, for instance, the declining speed of snow is much faster than snow smoke, or vice versa. SUMMARY

[0005] To overcome the defects or disadvantages of the above-mentioned methods, improved systems and methods of simulating drag-induced multiscale phenomena are needed, for example, for avalanche or waterfall.

[0006] In computer graphics, simulation of multiscale mixed-motion phenomena such as avalanches, misty waterfalls, and landslide is an important and challenging research area. The simulation of these phenomena has a broad application to create impressive special effects of games and films.

[0007] In the present disclosure, systems and methods are implemented to simulate avalanches numerically in a unified computational framework by taking advantage of the power of, for example, the Material Point Method (MPM) and the advection-projection method. In some embodiments, the elastoplastic media are simulated by using MPM to achieve high fidelity and the fluid is simulated by following the advection-projection method. Additionally, based on the physical rules of saltation/atomization of the elastoplastic media, a novel algorithm is also implemented to transit fluid-like motions (e.g., the snow smoke of avalanche, the mist of a waterfall, dust of landslide, etc.) between the elastoplastic media, and couple the dynamics of the elastoplastic media with the generated fluid-like layer using an adjustable sub-stepping scheme. In some embodiments, realistic visual results are created with a novel computational scheme by harnessing the power of Graphics Processing Unit (GPU) and sparse data structure.

[0008] According to a first aspect of the present application, a method of simulating visual effect of avalanche of media, comprising: interpolating particle information of the media to a grid; simulating advection of fluid from the media; applying a computed drag force to the interpolated particle information on the grid and to the simulated advection of the fluid; interpolating updated particle information from the grid; and simulating fluid projection from the media.

[0009] In some embodiments, the method of simulating visual effect of avalanche of media further includes: determining whether a fluid generation condition is satisfied; in response to the determination that the fluid generation condition is satisfied: generating additional fluid from the media; and applying a fluid decaying scheme. [0010] According to a second aspect of the present application, an electronic apparatus includes one or more processing units, memory and a plurality of programs stored in the memory. The programs, when executed by the one or more processing units, cause the electronic apparatus to perform the one or more methods as described above.

[0011] According to a third aspect of the present application, a non-transitory computer readable storage medium stores a plurality of programs for execution by an electronic apparatus having one or more processing units. The programs, when executed by the one or more processing units, cause the electronic apparatus to perform the one or more methods as described above.

[0012] Note that the various embodiments described above can be combined with any other embodiments described herein. The features and advantages described in the specification are not all inclusive and, in particular, many additional features and advantages will be apparent to one of ordinary skill in the art in view of the drawings, specification, and claims. Moreover, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter.

BRIEF DESCRIPTION OF THE DRAWINGS

[0013] So that the present disclosure can be understood in greater detail, a more particular description may be had by reference to the features of various embodiments, some of which are illustrated in the appended drawings. The appended drawings, however, merely illustrate pertinent features of the present disclosure and are therefore not to be considered limiting, for the description may admit to other effective features.

[0014] Figure 1 illustrates the workflow of a multiscale time stepping method for simulating avalanche of elastoplastic media, in accordance with some implementations of the present disclosure.

[0015] Figure 2 illustrates simulation result comparison reflecting the advantages of the saltation fluid generation scheme, in accordance with some implementations of the present disclosure. [0016] Figure 3 illustrates simulation result comparison reflecting the advantages of the fluid-decaying scheme, in accordance with some implementations of the present disclosure.

[0017] Figure 4 illustrates simulation result comparison reflecting the advantages of the coupling scheme, in accordance with some implementations of the present disclosure.

[0018] Figure 5 illustrates simulation result of waterfall effects modeled using the multiscale approach discussed in Figure 1, in accordance with some implementations of the present disclosure.

[0019] Figure 6 is a block diagram illustrating an exemplary process of simulating visual effect of avalanche of media in accordance with some implementations of the present disclosure.

[0020] Figure 7 is a schematic diagram of an exemplary hardware structure of an image processing apparatus in accordance with some implementations of the present disclosure.

[0021] In accordance with common practice, the various features illustrated in the drawings may not be drawn to scale. Accordingly, the dimensions of the various features may be arbitrarily expanded or reduced for clarity. In addition, some of the drawings may not depict all of the components of a given system, method or device. Finally, like reference numerals may be used to denote like features throughout the specification and figures.

DETAILED DESCRIPTION

[0022] Reference will now be made in detail to specific implementations, examples of which are illustrated in the accompanying drawings. In the following detailed description, numerous non-limiting specific details are set forth in order to assist in understanding the subject matter presented herein. But it will be apparent to one of ordinary skill in the art that various alternatives may be used without departing from the scope of claims and the subject matter may be practiced without these specific details. For example, it will be apparent to one of ordinary skill in the art that the subject matter presented herein can be implemented on many types of electronic devices. [0023] Before the embodiments of the present application are further described in detail, names and terms involved in the embodiments of the present application are described, and the names and terms involved in the embodiments of the present application have the following explanations.

[0024] Time step: small steps used for advancing in real time to compute the solution for an unsteady flow problem where the properties of the flow vary with time. The time between each iterative solve is specified, for instance, the solver will start doing the solution in the specified time intervals and will continue until the specified final time. Time step is the incremental change in time for solving the governing equations while time interval is the period of time elapsing while the phenomenon is happening.

[0025] MPM: Material Point Method is a simulation method of material movement and deformation including the following steps: Particle to grid transfer (P2G); Grid velocities computation; Degrees of freedom Identification; Grid forces computing; Grid velocity updating; Particle deformation gradient; Grid to particle transfer (G2P); Particle advection; Grid resetting; and Repeating the above processes.

[0026] Elastoplasticity: the stress state of exhibiting both elastic and plastic properties, typically as a result of being stretched beyond an elastic limit of a material.

[0027] Sparse data structure: a data structure that stores only non-zero values assuming the rest of the values are zeros. In some instances, most of the values within the data structure are zeros. That approach saves memory and computing time.

[0028] Some prior methods of simulating avalanche have several defects. For example, artistic methods of simulating avalanche with only smoke simulation have severe disadvantages.

[0029] In another simulation method, during the generation of the snow smoke, the method follows an experience-based formula, which is not physically correct and has faulty units. Furthermore, that method only uses the body forces to couple the snow and snow smoke, without direct momentum exchange between different layers. In addition, coupling body forces are not physically accurate as explicit two-way momentum exchange scheme, which possibly cause the loss of visual details of massive-scale avalanches. Additionally, when simulating snow, the model used in the simulation does not follow the rigorous elastoplasticity model based on soil mechanics. The realistic snow motion can hardly be created without accurate models. Finally, that method is only implemented on the Central Processing Unit (CPU) and is slow in terms of computational cost.

[0030] Another approach for simulating water with spray/droplets also has defects. That method does not address the explicit two-way coupling with momentum exchange among water and spray/droplets. Additionally, the method uses a semi -Lagrangian scheme to advent the spray quantities, which would create severe numerical viscosity and energy dissipation.

[0031] In some embodiments, the multiscale mixed-motion avalanche is mainly considered as being composed of snow and snow smoke. The multiscale mixed-motion waterfall is mainly considered as being composed of liquid and droplet/spray.

[0032] In some embodiments, systems and methods are implemented to automate the generation of the entire multiscale effects, such as avalanches and waterfalls.

[0033] In some embodiments, systems and methods disclosed herein provide a unified framework to simulate multiple multiscale effects utilizing the modem MPM framework and advection-projection method.

[0034] In some embodiments, systems and methods disclosed herein is based on a physically sound assumption of transition (e.g., saltation process, droplet atomization) among elastoplastic media and drag-induced smoke/spray.

[0035] In some embodiments, systems and methods disclosed herein enable a two- way coupling with direct momentum exchange among the elastoplastic media and the drag- induced smoke/spray.

[0036] In some embodiments, systems and methods disclosed herein are highly parallelizable on either CPU or GPU.

[0037] In some embodiments, systems and methods disclosed herein can serve as an efficient tool to generate visually plausible effects for multiscale mixed-motion phenomena utilizing the MPM solver and advection-projection fluid solver. Notably, the systems and methods can be used to create multiscale mixed-motion avalanche, or waterfall in visual effects in one single framework. [0038] In some embodiments, systems and methods disclosed herein provides the features including the transition (e.g., snow to snow smoke, liquid to spray, etc.) and the substepped two-way coupled dynamics between different substances.

[0039] For the single-substance simulation, the systems and methods disclosed herein provide a high-fidelity simulation.

[0040] In some embodiments, systems and methods disclosed herein are based on the physically correct constitutive models and latest MPM techniques for simulating snow and weakly-compressible liquid.

[0041] In some embodiments, systems and methods disclosed herein utilize the advection-project scheme with a matrix-free geometric-multi grid-preconditioned conjugate gradient (GMGPCG) solver, MarCormack advection, and advection-reflection scheme for simulating smoke or spray.

[0042] Due to a physically sound criterion for the transition of substances (e.g., saltation, droplet atomization), the systems and methods disclosed herein can create a subtle simulation of multiscale mixed-motion phenomena with physically sound assumptions.

[0043] In some embodiments, the implementation disclosed herein is based on GPU, ensuring faster computation efficacy than traditional CPU implementations.

[0044] In some embodiments, the implementation disclosed herein is built on the sparse data structure, which enables a much more efficient memory usage and therefore this tool allows the users to conduct simulations on a much larger scale than some previous methods.

[0045] In some embodiments of the system and method disclosed herein, avalanche snow and waterfall are both modeled as elastoplastic media, which are discretized by the Material Point Method (MPM), which is a hybrid Lagrangian/Eulerian method. MPM is a numerical algorithm to simulate how materials move and deform. MPM particles are not individual particles, but a continuous piece of material, or a subset of the whole simulated material domain. Lagrangian is a mesh-based method or a particle based method by putting a mesh over an object and track the properties and movement of each particle in the mesh. MPM is Lagrangian in the sense that actual particles of material are tracked in a mesh, for example, the properties including mass, velocity, volume, and position for a collection of material particles are tracked. In addition, all stress based forces are computed on the Eulerian grid, and the material state has to be transferred to the Eulerian configuration to incorporate the effects of material forces. Eulerian is a grid based method by superimposing a fixed grid on an object and as the object moves, what happens in a particular cell of the grid is tracked. Then, these effects are transferred back to the material particles and moved in the normal Lagrangian way. The introduction of Lagrangian method makes advection trivial compared to pure Eulerian methods (such as grid-based fluid simulation).

[0046] MPM is a hybrid method of Lagrangian and Eulerian by treating the object as a collection of particles at some points and as a grid at other points. MPM solves the controlling equation on a background of Eulerian grid. In some instances, the grid can be destroyed after each solve and reinitialized in the beginning of the next time step. The grid is just a temporary place holder that’s used for calculations and gets wiped clean each time step. The particles store their individual properties including position, mass, volume, velocity, etc. The particles’ information is transferred to the grid when computing how the particles would move in the next time period At. The grid incorporates all of the particles and computes the new velocities by performing gradient calculations. In MPM, each time the particle velocities are transferred to the grid, the grid has to perform both grid interpolation, for example, mapping particles to the grid according to weight functions, and gradient calculations based on the weight functions to determine how the particles would move. The new velocities are transferred back to the particles and the particles are advected, for example, the particles move to their next new positions and the process repeats. In each time step of MPM, particles transfer their mass and momentum to the grid nodes. In some examples, after the grid solve, velocities are transferred back to particles for them to perform the advection step.

Interpolation functions are required for both of transfers. From a finite element view, the Eulerian grid is the computational mesh while particles act as quadrature points. In some instances, the interpolation functions are defined over grid nodes.

[0047] In some embodiments, discretization is the process of transferring continuous functions, models, variables, and equations into discrete form. This process is usually carried out as a step of making the elastoplastic media suitable for numerical evaluation and implementation on computers. In order to solve continuous models, a computational domain should be discretized in a discrete manner and the equations should be solved at points in the domain. There are two ways to discretize the domain. The discrete elements such as mesh or unstructured particles are attached to the fluid and move with the fluid velocity in the Lagrangian approach. The domain is voxelized into fixed discrete elements and fluid is free to move between the discrete elements in the Eulerian approach, for example, fluid properties are tracked at nodes at cell centers or between cells.

[0048] In some embodiments, the corresponding snow smoke during avalanche, and spray during waterfall are modeled as fluid using a semi -staggered Eulerian grid and/or advection-projection method. In some examples, a fluid projection method operates as a two- stage fractional step scheme, and uses multiple calculation steps for each numerical time-step to numerically solve time-dependent incompressible fluid-flow problems. In some embodiments, in a first predictor step, using a suitable advection method, the system is progressed in time to a mid-time-step position, solving transport equations for mass and momentum. In the first step, an initial projection may be implemented such that the mid-time- step velocity field is enforced as divergence free. In a second corrector step then progressed, the time-centered estimates of the velocity, density, etc. are used to form final time-step state. The divergence restraint on the velocity field is enforced in a then applied projection and the system has now been updated to the new time. In some examples, variables are collocated to reduce the partial differential equations (PDEs) to separate scalar equations but every other time step is staggered by half a grid cell. The staggering allows central differences to be used without concerns about stability. With the collocated grid, all variables (transport properties) are located on the same point of the grid.

[0049] In some embodiments, several multiscale components are used to integrate the MPM and the advection-projection method simulation systems into one system.

[0050] Figure 1 illustrates the workflow 100 of a multiscale time stepping method for simulating avalanche of elastoplastic media, in accordance with some implementations of the present disclosure. At the beginning 102 of the time stepping method, the method completes the MPM Particle to Grid (P2G) time step 104 and the fluid advection step 106 separately. In the P2G time step 104, the particle quantities are transferred to the grid. In some embodiments, a weight function is used in the transfer of the quantities, for example, each particle contributes mass and momentum to a particular voxel in the grid proportional to its distance from the grid cell. In particular, this step computes grid mass and momentum. In some embodiments, the fluid advection step 106 utilizes an advection-project scheme with a matrix-free geometric-multigrid-preconditioned conjugate gradient (GMGPCG) solver, MarCormack advection, and/or advection-reflection scheme for simulating smoke or spray. In some embodiments, data smoothing is a method for processing one- or two-dimensional covariates. The extension to multiple covariates requires exponentially increasing computational memory and complexity. GMGPCG solver provides a matrix-free implementation of a conjugate gradient (CG) method for the regularized least squares problem resulting from smoothing with multivariate and scattered data. It further provides matrix-free preconditioned versions of the CG-algorithm. The main advantage of GMGPCG solver is that algorithms are performed matrix-free and require a small amount of memory. In some embodiments, MacCormack advection method is a discretization scheme for the numerical solution of hyperbolic partial differential equations in computational fluid dynamics. In some embodiments, in an advection-reflection scheme, the energy-dissipating projection operator applied at the end of a simulation step of an advection-projection method for fluid simulation is replaced by an energy-preserving reflection operator applied at midstep, which leads to a reduction in energy loss, and in turn yields vastly improved detailpreservation.

[0051] In some embodiments, after the completion of the MPM Particle to Grid (P2G) step 104 and the fluid advection step 106, on the Eulerian grid, drag force is computed and applied 108 to the MPM system and the fluid system, respectively. The details on how to compute the drag force 108 are further described below, for example, momentum exchange between the fluid and the elastoplastic media is implemented. In some embodiments, aside from the conversion between the saltation and/or atomization fluid and the elastoplastic media, their momentum also undergoes constant exchange when the two phases share the same physical space. To model the coupling between the two phases in a momentumconserving manner, a drag force model is adopted. In some embodiments, MPM allows a direct application of drag forces to grid nodes of elastoplastic media. Corresponding to the drag force density in a continuum equation, a drag force model is used in a discrete setting. In some examples, the fluid can take a larger time step than the elastoplastic media. For a fluid time step At f n from t n to t n+1 , one elastoplastic media timestep is divided into K substeps, i.e. ^^ =1 rit s nk = At f n . On grid nodes where fluid and sediment materials are present, drag force density is calculated as

[0052] where c is the fluid volume fraction, p f is fluid intrinsic density, u is fluid velocity, v is elastoplastic media velocity, and f^ is the drag force of the fluid on the elastoplastic media. The term A 5, is the cross-sectional area of an imaginary spherical geometry. Subscript i means the above parameters are on a grid i. Ci denotes the empirical coefficient and % denotes the empirical exponent. For high Reynolds number fluids, Ci = 0.39 and % =3.7. Ci is adjusted for controlling the overall strength of the drag force.

[0053] In some embodiments, as the time proceeds from t n0 to t llk , the total momentum change on the elastoplastic media is APi sd n = =1 i sd nk At s nk . To enforce total momentum conservation in the fluid- elastoplastic media system, fi fd n = -APi sd n 1 / At f n when applying the drag force to fluid. As a result APi fd n =- APi sd n-1 is always satisfied, for example, any momentum change to the elastoplastic media caused by the drag force should always be negated and applied to the fluid in the upcoming fluid step. APi fd n is momentum change on the fluid.

[0054] In some embodiments, after the drag force is computed 108, the method then computes the MPM Grid to Particle (G2P) time step 110 and the fluid projection step 112 separately. In some embodiments, in the G2P time step, new particle velocities are computed and mapped from the grid to the applicable particle. In some embodiments, fluid projection or generation from elastoplastic media is implemented. As the elastoplastic media interact with the surrounding air, the media’s surface experiences saltation and/or atomization, where individual particles of the media are separated from the majority of the media and are carried away by the wind. In some embodiments, a mathematical model of the saltation/atomization the process is implemented as: where Q is the transport rate g • cm 1 ■ s d ), C g is a controlling scalar for easy artistic control, C trans is a transition constant that is measured to be 680 cm • s -1 , p air is the density of the air, v t is the velocity threshold, below which there is no saltation/atomization, v media is the velocity of the elastoplastic media, and g is the size of the gravity acceleration. The saltation/atomization fluid is introduced to the simulation system by increasing the density of fluid according to the transport rate.

[0055] In some embodiments, the model above only applies to the portion of the elastoplastic media near the surface. The surface of the elastoplastic media is identified by observing that in the MPM algorithm, the locations of the surface of the elastoplastic media receives a smaller mass during the particle to grid transfer. Saltation or atomization is never induced in the interior of the media. In addition, since the saltation/atomization fluid’s density is significantly lower than that of the elastoplastic media, the mass loss of the elastoplastic media is negligible.

[0056] Next, if the fluid generation criteria 114 introduced in the above model is satisfied, additional fluid flow is introduced to the system in the generating fluid step 116. After that, the fluid decaying scheme 118 discussed below is used to model the fluid conversion to elastoplastic media. The fluid decaying scheme 118 is introduced when the fluid generation criteria 114 is not satisfied or no longer satisfied after the generating fluid step 116. After the fluid decaying scheme 118 is processed, the end 120 of the time stepping method is reached.

[0057] In modeling the fluid conversion to elastoplastic media process, after the initial phase of transition, the kinetic energy of the saltation/atomization fluid is dissipated. Eventually, particles of the elastoplastic media carried by the wind fall onto the surface of the bulk media and get homogenized. For the same reason that mass loss is not modeled during transition, the mass gain is not modeled in this reverse transition process. Instead, in some embodiments, the decaying of the saltation/atomization fluid is explicitly modeled using an exponential decay scheme.

[0058] In some embodiments, parallelization is implemented in the systems and methods disclosed herein. Since the saltation/atomization, the decaying, and the coupling processes are entirely local, each grid node’s operation can be executed independently and parallelized trivially.

[0059] In some embodiments, the multiscale simulation disclosed herein utilizing the MPM-based elastoplasticity solver and the fluid solver can be implemented on the multithreaded CPU or GPU on a single or multiple machines. In some experiment, the method was tested successfully on a single NVIDIA GeForce RTX 3060Ti GPU. [0060] The multiscale phenomena simulation systems and methods disclosed herein have many advantages. Traditionally, avalanche, waterfall, and landslide have primarily been modeled by artists with limited effects. When, where, and how much fluid is generated are entirely directed at the artist’s direction. The physics-based model introduced herein provides automation to the generation of the entire multiscale effects. Figure 2 to Figure 5 demonstrate the ability of the systems and methods disclosed herein to model the multiscale phenomena of avalanche and waterfall.

[0061] Figure 2 illustrates simulation result comparison reflecting the advantages of the saltation fluid generation scheme (See also steps 114 and 116 in Figure 1), in accordance with some implementations of the present disclosure. In Figure 2, the snow only avalanche simulation is shown on the left, and an avalanche simulation with both snow and snow smoke disclosed in the present multiscale simulation model is shown on the right. Snow smoke is automatically generated using the current approach disclosed in steps 114 and 116 of Figure 1.

[0062] Figure 3 illustrates simulation result comparison reflecting the advantages of the fluid-decaying scheme (See also step 118 in Figure 1), in accordance with some implementations of the present disclosure. In Figure 3, the simulation without conversion of snow smoke to snow via decaying is shown on the left. From the left simulation of Figure 3, the snow smoke lingers unphysically even after the snow comes to an entire rest. In contrast, the multiscale simulation with the decaying regime as discussed in step 118 of Figure 1 is shown on the right of Figure 3. From the right simulation of Figure 3, the snow smoke naturally disappears after the snow comes to a complete stop.

[0063] Figure 4 illustrates simulation result comparison reflecting the advantages of the coupling scheme (See also step 108 in Figure 1), in accordance with some implementations of the present disclosure. In Figure 4, the simulation without the snowsmoke drag force is shown on the left. From the left simulation of Figure 4, the snow smoke passes through the snow with no influence. In contrast, the multiscale simulation with the snow-smoke drag force as discussed in step 108 of Figure 1 is shown on the right of Figure 4. From the right simulation of Figure 4, the snow smoke naturally causes a large plastic deformation in the snow. [0064] Figure 5 illustrates simulation result of waterfall effects modeled using the multiscale approach discussed in Figure 1, in accordance with some implementations of the present disclosure.

[0065] Figure 6 is a block diagram illustrating an exemplary process 600 of simulating visual effect of avalanche of media in accordance with some implementations of the present disclosure.

[0066] The process 600 of simulating visual effect of avalanche of media includes a step 602 of interpolating particle information of the media to a grid.

[0067] The process 600 includes a step 604 of simulating advection of fluid from the media.

[0068] The process 600 then includes a step 606 of applying a computed drag force to the interpolated particle information on the grid and to the simulated advection of the fluid.

[0069] The process 600 additionally includes a step 608 of interpolating updated particle information from the grid.

[0070] The process 600 additionally includes a step 610 of simulating fluid projection from the media.

[0071] In some embodiments, the process 600 further includes a step 612 of determining whether a fluid generation condition is satisfied; in response to the determination that the fluid generation condition is satisfied: the process 600 also includes a step 614 of generating additional fluid from the media; and a step 616 of applying a fluid decaying scheme.

[0072] In some embodiments, the step 606 of applying the computed drag force to the interpolated particle information on the grid and to the simulated advection of the fluid includes: coupling the media and the fluid in a momentum-conserving manner, such as the step 108 of the momentum exchange between the fluid and the elastoplastic media described in Figure 1.

[0073] In some embodiments, the step 610 of simulating fluid projection from the media includes: generating saltation or atomization fluid from a surface of the media according to a transport rate of the media, such as the steps 114 and 116 of fluid generation from elastoplastic media described in Figure 1. [0074] In some embodiments, the step 602 of interpolating the particle information of the media to the grid is separate from the step 604 of simulating the advection of the fluid from the media.

[0075] In some embodiments, the step 602 of interpolating the particle information of the media to the grid is a time step according to a material point method (MPM).

[0076] In some embodiments, the grid is a Eulerian grid.

[0077] In some embodiments, the step 608 of interpolating the updated particle information from the grid is a time step according to a material point method (MPM).

[0078] In some embodiments, the step 612 of determining whether the fluid generation condition is satisfied is according to a velocity threshold of the media, such as the step 114 of fluid generation from elastoplastic media described in Figure 1.

[0079] In some embodiments, the fluid decaying scheme in step 616 is a modeling of a process of converting the fluid into the media, such as step 118 of fluid conversion into elastoplastic media described in Figure 1.

[0080] In some embodiments, executing operation of each node of the grid independently in parallel. For example, because the saltation/atomization, the decaying, and the coupling processes are entirely local, each grid node’s operation can be executed independently and parallelized trivially.

[0081] In some embodiments, a sparse data structure is implemented for the method of simulating the visual effect of avalanche of the media. For example, the implementation is built on the sparse data structure, which enables a much more efficient memory usage and therefore this tool allows the users to conduct simulations on a much larger scale than previous methods.

[0082] Further embodiments also include various subsets of the above embodiments combined or otherwise re-arranged in various other embodiments.

[0083] Herein, an image processing apparatus of the embodiments of the present application is implemented with reference to descriptions of accompanying drawings. The image processing apparatus may be implemented in various forms, for example, different types of computer devices such as a server or a terminal (for example, a desktop computer, a notebook computer, or a smartphone). A hardware structure of the image processing apparatus of the embodiments of the present application is further described below. It may be understood that Figure 7 merely shows an exemplary structure, rather than all structures, of the image processing apparatus, and a partial or entire structure shown in Figure 7 may be implemented according to requirements.

[0084] Referring to Figure 7, Figure 7 is a schematic diagram of an optional hardware structure of an image processing apparatus according to an embodiment of the present application, and in an actual application, may be applied to the server or various terminals running an application program. An image processing apparatus 700 shown in Figure 7 includes: at least one processor 701, a memory 702, a user interface 703, and at least one network interface 704. Components in the image processing apparatus 700 are coupled together by means of a bus system 705. It may be understood that the bus 705 is configured to implement connection and communication between the components. The bus system 705, besides including a data bus, may further include a power bus, a control bus, and a status signal bus. However, for a purpose of a clear explanation, all buses are marked as the bus system 705 in Figure 7.

[0085] The user interface 703 may include a display, a keyboard, a mouse, a trackball, a click wheel, a key, a button, a touchpad, a touchscreen, or the like.

[0086] It may be understood that the memory 702 may be a volatile memory or a nonvolatile memory, or may include both a volatile memory and a non-volatile memory.

[0087] The memory 702 in the embodiments of the present application is configured to store different types of data to support operations of the image processing apparatus 700. Examples of the data include: any computer program, such as an executable program 7021 and an operating system 7022, used to perform operations on the image processing apparatus 700, and a program used to perform the image processing method of the embodiments of the present application may be included in the executable program 7021.

[0088] The image processing method disclosed in the embodiments of the present application may be applied to the processor 701, or may be performed by the processor 701. The processor 701 may be an integrated circuit chip and has a signal processing capability. In an implementation process, each step of the image processing method may be completed by using an integrated logic circuit of hardware in the processor 701 or an instruction in a software form. The foregoing processor 701 may be a general-purpose processor, a digital signal processor (DSP), another programmable logic device, a discrete gate, a transistor logic device, a discrete hardware component, or the like. The processor 701 may implement or execute methods, steps, and logical block diagrams provided in the embodiments of the present application. The general purpose processor may be a microprocessor, any conventional processor, or the like. The steps in the method provided in the embodiments of the present application may be directly performed by a hardware decoding processor, or may be performed by combining hardware and software modules in a decoding processor. The software module may be located in a storage medium. The storage medium is located in the memory 702. The processor 701 reads information in the memory 702 and performs steps of the image processing method provided in the embodiments of the present application by combining the information with hardware thereof.

[0089] In some embodiments, simulating the visual effect of avalanche of the media can be accomplished on a group of servers or a cloud on a network.

[0090] In one or more examples, the functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over, as one or more instructions or code, a computer-readable medium and executed by a hardware-based processing unit. Computer- readable media may include computer-readable storage media, which corresponds to a tangible medium such as data storage media, or communication media including any medium that facilitates transfer of a computer program from one place to another, e.g., according to a communication protocol. In this manner, computer-readable media generally may correspond to (1) tangible computer-readable storage media that is non-transitory or (2) a communication medium such as a signal or carrier wave. Data storage media may be any available media that can be accessed by one or more computers or one or more processors to retrieve instructions, code and/or data structures for implementation of the implementations described in the present application. A computer program product may include a computer-readable medium.

[0091] The terminology used in the description of the implementations herein is for the purpose of describing particular implementations only and is not intended to limit the scope of claims. As used in the description of the implementations and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will also be understood that the term “and/or” as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items. It will be further understood that the terms “comprises” and/or “comprising,” when used in this specification, specify the presence of stated features, elements, and/or components, but do not preclude the presence or addition of one or more other features, elements, components, and/or groups thereof.

[0092] It will also be understood that, although the terms first, second, etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, a first electrode could be termed a second electrode, and, similarly, a second electrode could be termed a first electrode, without departing from the scope of the implementations. The first electrode and the second electrode are both electrodes, but they are not the same electrode.

[0093] The description of the present application has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications, variations, and alternative implementations will be apparent to those of ordinary skill in the art having the benefit of the teachings presented in the foregoing descriptions and the associated drawings. The embodiment was chosen and described in order to best explain the principles of the invention, the practical application, and to enable others skilled in the art to understand the invention for various implementations and to best utilize the underlying principles and various implementations with various modifications as are suited to the particular use contemplated. Therefore, it is to be understood that the scope of claims is not to be limited to the specific examples of the implementations disclosed and that modifications and other implementations are intended to be included within the scope of the appended claims.