This code simulated Model Waleffe flow in a retangular domain.
To build:
- Edit Makefile to point to netcdf & fftw
make;make install
If starting fresh, a random initial condition will be generated. If state relaminarises then run at higher Re, and use that initial condition to start a run with the original value of Re.
To run.
- Copy main.info, main.out & parameter.inp to folder.
- Run ./main.out
- vel_energy.dat keeps a running output of the total energy.
- Delete RUNNING file to softly kill run.
- For parallel simulation edit _Np in parallel.h & recompile.
To control.
- program/parameters.f90 contains information regarding resolution.
- main.info has a copied of the parameters used at compilation.
- Recompile.
- Parameter.inp contains parameters such as Re, Lx, Lz, and more. These don't require you to recompile and can be changed in the local run directory.
To plot output.
- For python use functions in Analysis.py. For example,
plot_XZ
,plot_ZY_xavg
, etc. - In matlab
[x,z,u]=GridUy('state.cdf.in','U',0.)
extracts theU
field at y=0, then usecontourf(x,z,u)
to visualise.
Questions? Feel free to contact me.