2025-12-12 12:12:31 +01:00
2025-11-28 10:38:05 +01:00
2025-12-12 12:12:31 +01:00
2025-12-12 09:41:07 +01:00

How to build and run SWAN and REEF3D

SWAN

The SWAN setup is combining wind and swell, so this should be a representative case. It has two files, representing two steps of nesting (100 m and 50 m resolutions). Therefore, we should run n1 first and only run n2 after n1 is finished.

  1. Get the bathymetry file: scp ekman:/work/bast/lfs/wave-models/Hellerflesa.bot hellerflesa/swan/Hellerflesa.bot
  2. In hellerflesa/swan/Hellerflesa_n1 submit run.sh.
  3. In hellerflesa/swan/Hellerflesa_n2 submit run.sh (this nests into niva_1.nst created by the first run).

REEF3D

The REEF3D setup takes the Hs (significant wave height) from the SWAN simulation above, and we insert the offshore wave peak period (Tp) for showcasing the diffraction pattern.

When one needs to use a shorter peak period of waves (shorter waves as well), one needs to refine the grid, as we would like to keep 30-50 cells per wavelength (corresponding to Tp).

In hellerflesa/reef3d:

  1. Get the bathymetry file: scp ekman:/work/bast/lfs/wave-models/geo.dat hellerflesa/reef3d/geo.dat
  2. First submit 01-run-divemesh.sh (takes only seconds).
  3. Then submit 02-run-reef3d.sh.

The two steps are in separate job scripts because DIVEMesh seems to use OpenMP and REEF3D uses MPI.

If you change number of cores, also adapt "M 10" in ctrl.txt and control.txt.

Description
How to build and run SWAN and REEF3D
Readme 50 KiB
Languages
Shell 100%