The material

The source tarball swan4151.tar.gz contains the SWAN source code and consists of the following files:

main program : swanmain.ftn  
pre-processing routines : swanpre1.ftn  
  $\,\,$ swanpre2.ftn  
  $\,\,$ SwanBndStruc.ftn90  
computational routines : swancom1.ftn  
  $\,\,$ swancom2.ftn  
  $\,\,$ swancom3.ftn  
  $\,\,$ swancom4.ftn  
  $\,\,$ swancom5.ftn  
post-processing routines : swanout1.ftn  
  $\,\,$ swanout2.ftn  
  $\,\,$ SwanVTKWriteHeader.ftn90  
  $\,\,$ SwanVTKWriteData.ftn90  
  $\,\,$ SwanVTKPDataSets.ftn90  
service routines : swanser.ftn  
  $\,\,$ SwanIntgratSpc.ftn90  
routines for Bragg $\,\,$  
scattering : SwanBraggScat.ftn90  
routines for QCM : SwanQCM.ftn90  
routines for ST6 package : SdsBabanin.ftn90  
routines for support    
parallel MPI runs : swanparll.ftn  
routines for unstructured $\,\,$  
grids : SwanReadGrid.ftn90  
  $\,\,$ SwanReadADCGrid.ftn90  
  $\,\,$ SwanReadTriangleGrid.ftn90  
  $\,\,$ SwanReadEasymeshGrid.ftn90  
  $\,\,$ SwanInitCompGrid.ftn90  
  $\,\,$ SwanCheckGrid.ftn90  
  $\,\,$ SwanCreateEdges.ftn90  
  $\,\,$ SwanGridTopology.ftn90  
  $\,\,$ SwanGridVert.ftn90  
  $\,\,$ SwanGridCell.ftn90  
  $\,\,$ SwanGridFace.ftn90  
  $\,\,$ SwanPrintGridInfo.ftn90  
  $\,\,$ SwanFindPoint.ftn90  
  $\,\,$ SwanPointinMesh.ftn90  
  $\,\,$ SwanBpntlist.ftn90  
  $\,\,$ SwanPrepComp.ftn90  
  $\,\,$ SwanVertlist.ftn90  
  $\,\,$ SwanCompUnstruc.ftn90  
  $\,\,$ SwanDispParm.ftn90  
  $\,\,$ SwanPropvelX.ftn90  
  $\,\,$ SwanSweepSel.ftn90  
  $\,\,$ SwanPropvelS.ftn90  
  $\,\,$ SwanTranspAc.ftn90  
  $\,\,$ SwanTranspX.ftn90  
  $\,\,$ SwanGradDepthorK.ftn90  
  $\,\,$ SwanGradVel.ftn90  
  $\,\,$ SwanDiffPar.ftn90  
  $\,\,$ SwanGSECorr.ftn90  
  $\,\,$ SwanInterpolatePoint.ftn90  
  $\,\,$ SwanInterpolateAc.ftn90  
  $\,\,$ SwanInterpolateOutput.ftn90  
  $\,\,$ SwanConvAccur.ftn90  
  $\,\,$ SwanConvStopc.ftn90  
  $\,\,$ SwanThreadBounds.ftn90  
  $\,\,$ SwanFindObstacles.ftn90  
  $\,\,$ SwanCrossObstacle.ftn90  
  $\,\,$ SwanComputeForce.ftn90  
routines for parallel, $\,\,$  
unstructured grids : SwanParallel.ftn90  
modules and subroutines $\,\,$  
for netCDF : nctablemd.ftn90  
  $\,\,$ agioncmd.ftn90  
  $\,\,$ swn_outnc.ftn90  
couplers : couple2adcirc.ftn90  
  $\,\,$ swan2coh.ftn90  
routines for installation : ocpids.ftn  
command reading routines : ocpcre.ftn  
miscellaneous routines : ocpmix.ftn  
general modules : swmod1.ftn  
  $\,\,$ swmod2.ftn  
modules for XNL : m_constants.ftn90  
  $\,\,$ m_fileio.ftn90  
  $\,\,$ serv_xnl4v5.ftn90  
  $\,\,$ mod_xnl4v5.ftn90  
modules for unstructured $\,\,$  
grids : SwanGriddata.ftn90  
  $\,\,$ SwanGridobjects.ftn90  
  $\,\,$ SwanCompdata.ftn90  
modules for spectral $\,\,$  
partitioning : SwanSpectPart.ftn  
routines for the fast    
Fourier transform : fftpack51.ftn90  

The SWAN source code is written in Fortran 90. Some routines are written in fixed form and depending on your system, the extension may be for or f. Other routines are written in free form and are indicated by extension f90. The conversion from ftn or ftn90 to one of these extensions can be done automatically or manually; see Chapter 3.


You are allow to make changes in the source code of SWAN, but Delft University of Technology will not support modified versions of SWAN. If you want your modifications to be implemented in the authorized version of SWAN (the version on the SWAN homepage), you need to submit these changes to the SWAN team (e-mail: m.zijlema@tudelft.nl).


As a part of the package, fftpack51 is the Fast Fourier Transform library translated to Fortran 90 by John Burkardt of Florida State University.


The SWAN source code is additionally accompanied by the following files:

installation procedures : INSTALL.README  
  $\,\,$ Makefile  
  $\,\,$ macros.inc  
  $\,\,$ which.cmd  
  $\,\,$ platform.pl  
  $\,\,$ switch.pl  
run procedures : SWANRUN.README  
  $\,\,$ swanrun  
  $\,\,$ swanrun.bat  
machinefile for parallel $\,\,$  
MPI runs : machinefile  
for concatenation of $\,\,$  
multiple hotfiles : swanhcat.ftn  
  $\,\,$ hcat.nml  
edit file : swan.edt  
Matlab scripts for $\,\,$  
unstructured grids : plotunswan.m  
  $\,\,$ plotgrid.m  

On the SWAN homepage, you also find some test cases with some output files for making a configuration test of SWAN on your computer. You may compare your results with those in the provided output files. See Chapter 6 for further details.

The SWAN team 2024-09-09