-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Yakumoo edited this page Aug 31, 2023
·
8 revisions
Welcome to the hasegawa_wakatani wiki!
This repository contains scripts for simulating the Hasegawa-Wakatani turbulence model. Few Direct Numerical Simulation (DNS) algorithms are implemented for solving in 2D space or using a single poloidal mode.
The main dependencies are:
- Jax : accelerated array library
- Diffrax : numerical differential equation solvers
- Xarray : for saving the data simulation
-
neumann
boundary make thefindiff_2d
simulation freeze - when using GPU, you might face a out of memory error during plotting. Solution: plot with the CPU with
python -m hasegawa_wakatani path_to_zarr.zarr --cpu
- if the simulation crashes with a out of memory error, you can try to force splitting the simulation with the command line:
python -m hasegawa_wakatani path_to_yaml.yaml
then callpython -m hasegawa_wakatani path_to_zarr.zarr --tf TF
with a increasingTF
- Ozgur Gurcan's repo
- Pierre Morel
- Other awesome projects: hw2d, PhiFlow