Skip to content

grkooij/trickle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

trickle

Trickle is a 2D Godunov-type fluid simulation that employs the Roe Riemann solver to solve the Euler equations. It uses flat reconstruction and adaptive time-stepping. Boundary conditions are periodic by default.

How to use

By default the initial conditions create a Kelvin-Helmholtz instability setup. Define your own initial conditions in initialise.py. Make sure pressure is always positive and density is never negative. After this, define your simulation properties in constants.py. Run the simulation with python trickle.py. If you experience issues with NaN's in the simulation domain, it's likely that the CFL variable should be lowered.

Note

The simulation code is not yet highly optimized, or parallelized. This functionality will be added later.

Example

Example snapshot result for the 2D KH instability: kh

About

Godunov-type fluid simulation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages