Home_intro

intro story DELWAQ

DELWAQ

DELWAQ is the engine of the D-Water Quality and D-Ecology programmes of the Delft3D suite. It is based on a rich library from which relevant substances and processes can be selected to quickly put water and sediment quality models together.

The processes library covers many aspects of water quality and ecology, from basic tracers, dissolved oxygen, nutrients, organic matter, inorganic suspended matter, heavy metals, bacteria and organic micro-pollutants, to complex algae and macrophyte dynamics. High performance solvers enable the simulation of long periods, often required to capture the full cycles of the processes being modelled.

The finite volume approach underlying DELWAQ allows it to be coupled to both the structured grid hydrodynamics of the current Delft3D-FLOW engine and the upcoming D-Flow Flexible Mesh engine (1D-2D-3D) of the Delft3D Flexible Mesh Suite (or even other models such as TELEMAC).

'DELWAQ in open source' is our invitation to all leading experts to collaborate in further development and research in the field of water quality, ecology and morphology using Delft3D. Feel free to post your DELWAQ related questions or comments in this dedicated forum space. If you are new to DELWAQ, the tutorial (in the user manual) is a good place to start. A list of DELWAQ related publications is available here.

** PLEASE TAG YOUR POST! **

 

 

Sub groups
D-Flow Flexible Mesh
DELWAQ

Cohesive sediments & muddy systems

 


Message Boards

Error running SWAN

JT
Javier Tercero, modified 8 Years ago.

Error running SWAN

Padawan Posts: 26 Join Date: 10/8/12 Recent Posts
Hello all,

I do not know why my model doesnt work but I get this message:

C:\Users\jabanadestercero\Desktop\10Dec>rem exit
>>...End of SWAN run
*** ERROR: file 'norm_end' expected to signal a correct SWAN calculation

forrtl: severe (170): Program Exception - stack overflow
Image PC Routine Line Source
swan_4072ABCDE_de 0056B127 Unknown Unknown Unknown
swan_4072ABCDE_de 004A97A8 _SWOUTP 383 swanout1.for
swan_4072ABCDE_de 00426F5C _SWMAIN 598 swanmain.for
swan_4072ABCDE_de 00425CAB _MAIN__ 110 swanmain.for
swan_4072ABCDE_de 00588A33 Unknown Unknown Unknown
swan_4072ABCDE_de 0056B74E Unknown Unknown Unknown
kernel32.dll 77BBED6C Unknown Unknown Unknown
ntdll.dll 77A8377B Unknown Unknown Unknown
ntdll.dll 77A8374E Unknown Unknown Unknown

Maybe, it is a problem of stability or there is some condition about the angle between the grid and the waves....


Attach the files

Thank you in advance

Attachments:

Qinghua Ye, modified 8 Years ago.

RE: Error running SWAN

Jedi Council Member Posts: 610 Join Date: 3/2/11 Recent Posts
dear Javier,

Indeed the model is too big for swan 32-bit to handle, thus you see the stack overflow. There are two options, either you could use 64-bit linux version, or make your model a bit coarser. We don't have 64-bit swan version on Windows ready to use yet.

Hope this helps!

Qinghua
JT
Javier Tercero, modified 8 Years ago.

RE: Error running SWAN

Padawan Posts: 26 Join Date: 10/8/12 Recent Posts
Hi Qinghua,

Thank you for your answer.

But the size of the grid is 0.0005 grades , that is more or less 50m! I think it is too big now, so if I can extend the size.... but I will try with a coarser model.

Edit:
I tried with a coarser grid:

And why does not this model run? the size is bigger but the message is

Terminating error: Allocation problem: array AC2 and return code is 41

Is for the 32bits, as well?

Thank you in advance

Regards

Attachments:

Qinghua Ye, modified 8 Years ago.

RE: Error running SWAN

Jedi Council Member Posts: 610 Join Date: 3/2/11 Recent Posts
Hi Javier,

Your model is still too big. Just as Bert mentioned in http://oss.deltares.nl/web/delft3d/coast-/-estuary/-/message_boards/view_message/212820. I didn't mean the grid size, but the model size. You have 500*600 grids the first time, which is 300k grids. This exceeds the stack size swan can allocated. And this time you have 750*1000 grids, which is 750k grids. Still overflow... You should try 64-bit on linux platform or make your grid number less.

Regards,

Qinghua
AH
Abbas Hooshmand, modified 5 Years ago.

RE: Error running SWAN

Youngling Posts: 4 Join Date: 3/5/15 Recent Posts
Hello,

I am using Delft3D 4.01.00 on windows 7 (64-bit). I am getting a stack over flow error when running Delft3D wave. I was told that this version of D3D support 64-bin for windows 7. Is that right? Do I have to run it on a Linux machine to have 64-bit capabilities or coarsen the grids? Thanks.

Abbas
Qinghua Ye, modified 5 Years ago.

RE: Error running SWAN

Jedi Council Member Posts: 610 Join Date: 3/2/11 Recent Posts
Hi Abbas,

The present standard Delft3D consists of 32-bit for windows version and 64-bit for Linux version (with official support from Deltares). However, with open source code, you may compile a 64-bit version for windows, which has been internally tested and should work fine.

Hope this will help a bit?

Greetings,

Qinghua
AH
Abbas Hooshmand, modified 5 Years ago.

RE: Error running SWAN

Youngling Posts: 4 Join Date: 3/5/15 Recent Posts
Hi Qinghua,

Thank you for your reply. We might want to install the 64-bit version for Windows 7 at some point. For now, I am thinking to use domain decomposition and divide the whole domain into 3-4 sub-domains.

We can also refine the grid locally and keep it coarse at less important areas. Or, we can nest a fine grid inside a coarser grid.

From all these options, domain decomposition makes more sense since we are going to run D3D flow with the gird at some point. What are your thoughts on that? Thanks a bunch.

Abbas
Qinghua Ye, modified 5 Years ago.

RE: Error running SWAN

Jedi Council Member Posts: 610 Join Date: 3/2/11 Recent Posts
Hi Abbas,

Indeed we have a lot of successful applications using Domain Decomposition technique. Thus it is a good approach to fulfill your wish, in my opinion.

Good luck,

Qinghua
AH
Abbas Hooshmand, modified 5 Years ago.

RE: Error running SWAN

Youngling Posts: 4 Join Date: 3/5/15 Recent Posts
Hi Qinghua,

I learned that Domain Decomposition is not supported in D3D-wave and it can be used just in D3D flow. I guess the best option is to nest some finer grids near the coastal areas. Or, we can feed XBeach with near coast coarser grids and use much finer grids in XBeach.

Abbas
Qinghua Ye, modified 5 Years ago.

RE: Error running SWAN

Jedi Council Member Posts: 610 Join Date: 3/2/11 Recent Posts
Hi Abbas,

It is possible to use one or more domains (from FLOW Domain Decomposition) to couple with wave model (with nesting).

I am not sure I answered your question.

Cheers,

Qinghua
LG
luca grispiani, modified 4 Years ago.

RE: Error running SWAN

Youngling Posts: 1 Join Date: 11/6/16 Recent Posts
Good afternoon Deltares comunity.

Sometimes I got the error below during the run of the Deltares3D-Wave (standalone)

I understood that maybe it could be depending on the size of the model.

Should I reduce it?

Moreover, in the file Errfile, I got this:
Terminating error: Allocation problem: array AC2 and return code is 41
What does it mean?
Where Could I check the kind of the error?

I realy appreciate any help.

Regards, Luca

[indent]
Starting Delft3D-WAVE computation ...
--------------------------------------------------------------------------------
- Delft3D
- Deltares, Delft3D-WAVE Version 3.05.01.6740M, Nov 09 2016, 14:43:15
- Open source
-
--------------------------------------------------------------------------------
*** MESSAGE: Delft3D-WAVE runs stand alone
Done reading input
Initialising grids and grid mappings
Start loop over SWAN grids, time = -999.000
Allocate input fields
Allocate and read SWAN depth
Write SWAN depth file
Deallocate input fields
Write SWAN input
<<Run SWAN...
SWAN batchfile executed for Delft3D
Using swan.bat in directory C:\Deltares\win32\swan\scripts\
Using C:\Deltares\\win32\swan\bin\swan_4072ABCDE_del_w64_i11_omp.exe
Performing wave computation for: esdb.swn
1 file copiati.

SWAN is preparing computation

Number of threads during execution of parallel region = 4

iteration 1; sweep 1
+iteration 1; sweep 2
+iteration 1; sweep 3
+iteration 1; sweep 4
accuracy OK in 0.66 % of wet grid points ( 99.00 % required)

iteration 2; sweep 1
+iteration 2; sweep 2
+iteration 2; sweep 3
+iteration 2; sweep 4
accuracy OK in 98.92 % of wet grid points ( 99.00 % required)

iteration 3; sweep 1
+iteration 3; sweep 2
+iteration 3; sweep 3
+iteration 3; sweep 4
accuracy OK in 99.35 % of wet grid points ( 99.00 % required)

+SWAN is processing output request 1
+SWAN is processing output request 2
1 file copiati.

C:\Users\proprietario\Dropbox\tesi\software\Estaca_de_bares\tentativo7_1>rem exit
>>...End of SWAN run
*** ERROR: file 'norm_end' expected to signal a correct SWAN calculation


forrtl: severe (170): Program Exception - stack overflow
Image PC Routine Line Source
swan_4072ABCDE_de 00000001401D7D87 Unknown Unknown Unknown
swan_4072ABCDE_de 00000001400D00AE SWOEXF 4403 swanout1.for
swan_4072ABCDE_de 00000001400C068C SWOUTP 383 swanout1.for
swan_4072ABCDE_de 000000014002CE1A SWMAIN 598 swanmain.for
swan_4072ABCDE_de 000000014002B764 MAIN__ 110 swanmain.for
swan_4072ABCDE_de 00000001401D4FBC Unknown Unknown Unknown
swan_4072ABCDE_de 00000001401B2AE5 Unknown Unknown Unknown
kernel32.dll 00000000777859CD Unknown Unknown Unknown
ntdll.dll 00000000778BA561 Unknown Unknown Unknown[/indent]
Adri Mourits, modified 4 Years ago.

RE: Error running SWAN

Yoda Posts: 1221 Join Date: 1/3/11 Recent Posts
Hi Luca,

The file "Errfile" is produced by SWAN.

I'm surprised that you run into this problem: Your output says you are using the 64bit version of SWAN. That means that during the SWAN simulation the total amount of memory on your machine is not enough for this simulation and all other processes on your machine.

You can use the Microsoft taskmanager to look what process is using a lot of memory. Depending on that information, solutions might be:
- Close other processes (and/or other simulation runs) on your machine
- Add more memory to your machine
- Decrease the size of your SWAN model

Regards,

Adri
MG
Max Griggs, modified 2 Months ago.

RE: Error running SWAN

Youngling Posts: 1 Join Date: 12/10/20 Recent Posts
Hi All,

New Delft user here. Attempting to model the effects of multiple obstacles on deepwater waves.

I am attempting to run d3d-WAVE (64-bit Windows) to simply model wave conditions in an open grid with no obstacles. When doing so on a grid with 1200x400 at 5m resolution I encounter the following error:

*** ERROR: file 'norm_end' expected to signal a correct SWAN calculationforrtl: severe (170): Program Exception - stack overflow
Image              PC                Routine            Line        Source             
swan_4072ABCDE_de  00000001401D7D87  Unknown               Unknown  Unknown
swan_4072ABCDE_de  00000001400D00AE  SWOEXF                   4403  swanout1.for
swan_4072ABCDE_de  00000001400C068C  SWOUTP                    383  swanout1.for
swan_4072ABCDE_de  000000014002CE1A  SWMAIN                    598  swanmain.for
swan_4072ABCDE_de  000000014002B764  MAIN__                    110  swanmain.for
swan_4072ABCDE_de  00000001401D4FBC  Unknown               Unknown  Unknown
swan_4072ABCDE_de  00000001401B2AE5  Unknown               Unknown  Unknown
KERNEL32.DLL       00007FF8B1C07BD4  Unknown               Unknown  Unknown
ntdll.dll          00007FF8B218CE51  Unknown               Unknown  Unknown

As I understand, this is due to the grid size being too large/ lack of computer memory. However, after some testing I can see that the simulation is only using using up to 25% of available memory and the computation only runs through 2 iterations (at a relatively fast pace) to then give me this memory.
My issue is that I ideally need a high resolution grid that is about 10km long. Is there a way to somehow get around this without reducing the size/ resolution of the grid? I have seen many others with the same issue, but only in the 32-bit version.
Many thanks,Max