Forum

SWAN, WAVE module error with computational grid.

Clayton Soares, modified 3 Years ago.

SWAN, WAVE module error with computational grid.

Youngling Posts: 4 Join Date: 5/26/21 Recent Posts
Hi everyone am facing an issue with the wave module.

Summary of the problem: 
# Delft3D 4.04.01, MSWindows  
#Delft3D-FLOW GUI, Version 3.59.01.57433, Aug 16 2018
#Deltares, Delft3D-WAVE GUI, Version 4.95.00.48953, Dec 13 2016,



I have two grids one finer midres.grd (450m-100m), which I use in the flow module and one coarse inner_wave.grd (4500m-950m) which I use in the wave module (obviously they lie in the same domain)
The midres.grd ( which works well on just flow module)
and inner_wave.grd(which crashes even if run standalone), most of my settings are the default for wave module.

when run online coupled or standalone, these are the errors
Error: *** ERROR: SWAN file PRINT contains ERRORS
ERROR: *** ERROR: SWAN file PRINT contains ERRORS
Wave exited abnormally

The error in the Print file is
Print file error : 
3 comp. grid points on one line
Grid angle <0 or >180 degrees

Looking at the error it seems like there is something wrong in the computational grid and I cannot figure what it could be. When I created the grid, I took notice of all relevant properties (orthogonality, aspect ratio, smoothness and resolution) and stayed within limits (therefore I suppose the flow module worked well) am starting to think am missing something small and obvious here. 
   
What I tried, among other things:

I tried using the same grid as midres.grd in the wave module, unfortunately, it  still dint work 
Also tried using a coarser version of the midres.grd in the wave module. 


I am attaching my grid files and .mdw file below, if anyone could help out, would be great! thank you ! and Happy new year. 

 

The ERROR snippet 

  $***************************** MODEL INPUT *****************************
    
  $
    
  SET   LEVEL =   0.00  NOR =  90.00    DEPMIN =   0.05 _
         MAXMES = 1000   MAXERR = 2 _
        GRAV =    9.81  RHO =  1025.00  INRHOG =      1 _
        NAUT
    
  $
    
  MODE NONST
    
  CGRID CURV   44   56          EXCEPT  0.0    0.0         _
        CIR                         36       0.05       1.00   24
 Resolution in sigma-space: df/f =  0.1329
    
  $
    
  READ COOR 1. 'TMP_grid2swan01' _
   4   0   1 FREE
 **  Heading lines  **
 -> x-coordinates                                                                   
 **  Heading lines  **
 -> y-coordinates                                                                   
    
  $
    
  INPGRID _
  BOTTOM CURV 0. 0.   44   56
    
  READINP BOTTOM 1.0   'BOTNOW' 4 0 FREE
 ** Error            : Grid angle <0 or >180 degrees
  16  6    478455.3125   6012640.0000  17  6    479977.4375   6013789.0000  17  7         0.0000         0.0000
 ** Error            : Grid angle <0 or >180 degrees
  17  6    479977.4375   6013789.0000  17  7         0.0000         0.0000  16  7    477268.8750   6014210.5000
 ** Error            : Grid angle <0 or >180 degrees
  17  7         0.0000         0.0000  16  7    477268.8750   6014210.5000  16  6    478455.3125   6012640.0000
 ** Error            : 3 comp. grid points on one line
  16  7    477268.8750   6014210.5000  17  7         0.0000         0.0000  17  8         0.0000         0.0000
 ** Error            : 3 comp. grid points on one line
  17  7         0.0000         0.0000  17  8         0.0000         0.0000  16  8    476081.2500   6015796.5000
 ** Error            : Grid angle <0 or >180 degrees
  17  8         0.0000         0.0000  16  8    476081.2500   6015796.5000  16  7    477268.8750   6014210.5000
 ** Error            : Grid angle <0 or >180 degrees
  16  8    476081.2500   6015796.5000  16  7    477268.8750   6014210.5000  17  7         0.0000         0.0000
 ** Error            : 3 comp. grid points on one line
  16  8    476081.2500   6015796.5000  17  8         0.0000         0.0000  17  9         0.0000         0.0000
 ** Error            : 3 comp. grid points on one line
  17  8         0.0000         0.0000  17  9         0.0000         0.0000  16  9    474898.3750   6017398.5000
 ** Error            : Grid angle <0 or >180 degrees
  17  9         0.0000         0.0000  16  9    474898.3750   6017398.5000  16  8    476081.2500   6015796.5000
 ** Error            : Grid angle <0 or >180 degrees
  16  9    474898.3750   6017398.5000  16  8    476081.2500   6015796.5000  17  8         0.0000         0.0000
 ** Error            : 3 comp. grid points on one line
  16  9    474898.3750   6017398.5000  17  9         0.0000         0.0000  17 10         0.0000         0.0000
 ** Error            : 3 comp. grid points on one line
  17  9         0.0000         0.0000  17 10         0.0000         0.0000  16 10    473726.0000   6019016.5000
 ** Error            : Grid angle <0 or >180 degrees
  17 10         0.0000         0.0000  16 10    473726.0000   6019016.5000  16  9    474898.3750   6017398.5000
 ** Error            : Grid angle <0 or >180 degrees
  16 10    473726.0000   6019016.5000  16  9    474898.3750   6017398.5000  17  9         0.0000         0.0000
 ** Error            : Grid angle <0 or >180 degrees
  16 11    472570.0312   6020650.5000  16 10    473726.0000   6019016.5000  17 10         0.0000         0.0000
 ** Error            : Grid angle <0 or >180 degrees
  17  6    479977.4375   6013789.0000  18  6    481390.5000   6014855.0000  18  7         0.0000         0.0000
 ** Error            : 3 comp. grid points on one line
  18  6    481390.5000   6014855.0000  18  7         0.0000         0.0000  17  7         0.0000         0.0000
 ** Error            : 3 comp. grid points on one line
  18  7         0.0000         0.0000  17  7         0.0000         0.0000  17  6    479977.4375   6013789.0000
 ** Error            : Grid angle <0 or >180 degrees
  17  7         0.0000         0.0000  17  6    479977.4375   6013789.0000  18  6    481390.5000   6014855.0000
 ** Error            : 3 comp. grid points on one line
  17  7         0.0000         0.0000  18  7         0.0000         0.0000  18  8         0.0000         0.0000
 ** Error            : 3 comp. grid points on one line
  18  7         0.0000         0.0000  18  8         0.0000         0.0000  17  8         0.0000         0.0000
 ** Error            : 3 comp. grid points on one line
  18  8         0.0000         0.0000  17  8         0.0000         0.0000  17  7         0.0000         0.0000
 ** Error            : 3 comp. grid points on one line
  17  8         0.0000         0.0000  17  7         0.0000         0.0000  18  7         0.0000         0.0000
 ** Error            : 3 comp. grid points on one line
  17  8         0.0000         0.0000  18  8         0.0000         0.0000  18  9         0.0000         0.0000
 ** Error            : 3 comp. grid points on one line
  18  8         0.0000         0.0000  18  9         0.0000         0.0000  17  9         0.0000         0.0000
 ** Error            : 3 comp. grid points on one line
  18  9         0.0000         0.0000  17  9         0.0000         0.0000  17  8         0.0000         0.0000
 ** Error            : 3 comp. grid points on one line
  17  9         0.0000         0.0000  17  8         0.0000         0.0000  18  8         0.0000         0.0000
 ** Error            : 3 comp. grid points on one line
  17  9         0.0000         0.0000  18  9         0.0000         0.0000  18 10    476727.6562   6021155.0000
 ** Error            : 3 comp. grid points on one line...
​​​​​​​.............................................................
Clayton Soares, modified 3 Years ago.

RE: SWAN, WAVE module error with computational grid.

Youngling Posts: 4 Join Date: 5/26/21 Recent Posts
To anyone that was looking for the answer, I solved it by simply not cutting my grids anymore for the wave module. I left the shadow region in, this eliminated the problem. 

basically, I was cutting my grids using a polygon I made which represented the land boundary.