Shallow Viscoelastic Flow Simulation on GPU

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current digital image editing technologies face challenges in simulating realistic and efficient behavior of natural paint media, particularly in real-time and high-resolution scenarios, due to the inefficiencies of sparse solvers for fluid simulations on parallel hardware like GPUs, especially when dealing with viscoelastic and viscous fluids.

Innovation Solution

The implementation of a shallow fluid simulation technique using the lattice Boltzmann method (LBM) with a viscoelastic force model, which accounts for shear displacement and rest height parameters, allows for efficient simulation of paint behavior on a virtual canvas, enabling realistic and interactive simulation of various paint types, including watercolors and oil paints, on GPUs.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If sparse solvers are used for fluid simulation, then simulation accuracy is improved, but parallelization capability deteriorates

Engineering Contradiction:
Improvesimulation accuracyVSAvoidparallelization capability
Core Design Contradiction:
Measurement precisionVSExtent of automation

Solution Approach 1:

The fluid domain is segmented into discrete grid cells, and the simulation is divided into separate advection and projection steps that can be independently parallelized. Each grid cell's computation is separated and can be executed concurrently on GPU threads, resolving the contradiction between accuracy and parallelization capability.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

An intermediate velocity field is introduced between the advection and projection steps. This intermediate field allows the projection step to be reformulated as a local computation rather than a global sparse system solve, enabling parallelization while maintaining the accuracy required for realistic fluid simulation.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Stability of the object's composition

If implicit solvers are used for stable simulation of viscous fluids, then simulation stability is improved, but computational cost deteriorates

Engineering Contradiction:
Improvesimulation stabilityVSAvoidcomputational cost
Core Design Contradiction:
Stability of the object's compositionVSPower

Solution Approach 1:

The simulation dynamically adjusts the number of projection iterations based on the viscosity of the fluid being simulated. For low-viscosity fluids like water, fewer iterations are performed, reducing computational cost. For high-viscosity fluids, more iterations are performed to maintain stability, optimizing the balance between stability and computational expense.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The projection step uses parameter-based control where the relaxation factor and iteration count are adjusted according to fluid properties. This allows the same algorithm to efficiently handle both stable viscous flows and less stable inviscid flows without requiring expensive implicit solvers in all cases.

Inventive Principle:
Principle #35Parameter changes

3Measurement precision

If high resolution simulation is performed, then image quality is improved, but processing time deteriorates

Engineering Contradiction:
Improveimage qualityVSAvoidprocessing time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The traditional CPU-based sequential solver is replaced with a GPU-based parallel computing system. The GPU's massive parallel architecture processes all grid cells simultaneously, achieving high-resolution simulation in real-time by substituting the computational mechanism rather than optimizing the algorithm alone.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

Solution Approach 2:

The simulation uses periodic boundary conditions and time-stepping that allows results from one frame to inform the next, enabling real-time interactive simulation at high resolution. The periodic nature of the computation pipeline on GPU allows for efficient memory access patterns and sustained high throughput.

Inventive Principle:
Principle #19Periodic action

Applied Scientific Principles

This section explains which scientific principles are used to turn an abstract innovation direction into a practical engineering solution.

Function Achieved in This Case

This approach enables realistic and high-resolution simulation of paint behavior in real-time, supporting both surface and media flow, and allows for the simultaneous simulation of different paint types on the same canvas, enhancing the digital image editing experience with improved performance on GPUs.

Implementation Method 1

The fluid simulation technique may comprise an implementation of the lattice Boltzmann method (LBM)

Methodology Applied
Scientific EffectLattice Boltzmann method:

Implementation Method 2

The viscoelastic force may be determined by determining a strain on the fluid using parameters representative of a shear displacement of the fluid and a rest height of the fluid

Methodology Applied
Scientific EffectViscoelasticity: Viscoelasticity

Data Source

PatentUS8219370B1Simulation of shallow viscoelastic flows
Publication Date: 2012.07.10 ADOBE INC
  • US8219370B1 patent drawing
  • US8219370B1 patent drawing
  • US8219370B1 patent drawing

AI summary

A method, system, and computer-readable storage medium are disclosed for simulating shallow viscoelastic flows. In one embodiment, input representing a deposition of a fluid in a shallow bed may be received. The fluid may have a set of fluid properties including a viscoelastic property. In one embodiment, a motion of the fluid in the shallow bed may be simulated. The motion may be simulated based on the set of fluid properties including the viscoelastic property. The simulation of the motion may comprise determining a viscoelastic force acting on the fluid based on the viscoelastic property.