See some nice convection in your terminal:
Convecterm uses the stokes-flow equations with eulerian advection-diffusion to give you some nice convective behavior in your terminal. It has temperature-dependent viscosity, and (obviously) temperature-dependent densities. It uses 1st order space-time finite-differences in a pretty stock-standard way. It does not use any dynamic memory calls, which was a deliberate choice.
It's pretty sensitive to parameter changes, so take it easy when playing with them.
- Make sure the CC variable in the Makefile is set to your preferred compiler
- then just:
make
./convecterm
- Figure out why the dt is so sensitive. Anything much < or > than 1e-4 for the dt makes the model not solve.
- This is why calc_dt is not used :(