top of page

Planned Project: Evaporation and Condensation simulation

​

Planned Goal: Create a simulation for simple evaporation and condensation between liquid and gas state using SPH and grid based fluid simulation.

​

Methodology:

​

1 - Using SPH to simulate liquid state. Constants of the particle are based on water. SPH is done using algorithm 1 from the reference SPH paper. 3000+ particles are simulated. Time step is picked at less than 1/600 of a second and 10 updates are done before drawing 1 frame.

​

F = pressure + viscosity + gravity + wall

​

2 - Using grid to simulate gas state. Simulated using Eulerian frame of reference. Pressure is solved using conjugated gradient with Eigen matrix library. Temperature is diffused through the system to generate thermal buoyancy and particle movement. 

​

Buoyancy = thermal expansion * (-g) * (difference in temperature)

​

thermal expansion can be approximated using PV = nRT

​

dT/dt = advection - diffusion

​

du/dt = -convection + viscosity - pressure + buoyancy

​

3 - Evaporation and condensation can be done by transporting heat between gas and liquid. When evaporation happens, the liquid particle will be destroyed. Opposite is true during condensation. Since heat is conducted through surface area, marching cube will be used to generate the surface triangles to obtain the area for heat transfer. Heat transfer will be distributed among the particles.

​

dQ/dt = -k surface integral( heat flux * dS ) 

​

4 - Optimization by using spatial hash table to improve neighbor search in SPH. Multi-threading was implemented to improve computation time.

​

Current Progress: Finished with 1, 2 and 4. As of now, the computer is still rendering the gas simulation (Eigen is very slow). Just began working on the final part of combining the 2 models together.

​

Machine: CPU - core i7 8700k GPU - RTX 2080

​

Reference paper:

​

Fluid Simulation For Computer Graphics: A Tutorial in Grid Based and Particle Based Methods

http://users.encs.concordia.ca/~grogono/Graphics/fluid-5.pdf

​

SPH Fluids in Computer Graphics

https://cg.informatik.uni-freiburg.de/publications/2014_EG_SPH_STAR.pdf

​

Evaporation and Condensation of SPH-based Fluids

http://www.cg.informatik.uni-siegen.de/sites/www.cg.informatik.uni-siegen.de/files/data/Research/EvaporationCondensationSPH/evaporationcondensationsph.pdf

​

Modeling the Motion of a Hot, Turbulent Gas

http://graphics.cs.cmu.edu/nsp/course/15-464/Spring07/papers/fosterGas.pdf

​

Eigen: http://eigen.tuxfamily.org/index.php?title=Main_Page

bottom of page