Migration status

  • Home Page: Activity map.

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

plct crashes during edition

FF
Fabricio Fiengo, modified 5 Years ago.

plct crashes during edition

Youngling Posts: 8 Join Date: 10/14/14 Recent Posts
Dear Deltares,

Currently I am trying to include extra process in the default process library; however I have some problems with plct. Everything goes fine until I try to save/cancel in the edit process window.
After several trials finally I succeed to implement some of the process I need (I worked with plct v 5.04.01.29071), but now I am not able to add more because plct crashes. I read a previous post where it was suggested to overwrite the plct with a new version (according to the about menu 5.04.03.36949M), it also crashes from time to time, but I was able to conclude.

When I run the precompiled version of delwaq provided with the GUI delwaq 1 mentions no warning and no errors and delwaq 2 mentions 1 error related to the procal.f
"'ERROR : requested module not in process library DLL'" this is what I was expecting because I add the process to the library but I still need to include the new subroutine for the new process in procal.f.

The problem happens when I try to run the same input files with delwaq 1 from the source code (tag 2399), the lst file mentions 39 warning and 1 error, and the lsp file starts with
error opening nefis file(s):c:\Program Files (x86)\Deltares\Delft3D 4.01.00\win32\waq\default\proc_def
error number: 8034
Using process definition file : c:\Program Files (x86)\Deltares\Delft3D 4.01.00\win32\waq\default\proc_def
Version number : 0.00
Serial : 3

Later on, I tried with another exercise I did using the processes available in the default library , it used to work with the precompiled version and the source code, but now it only works with the GUI and not anymore with the source code. Delwaq1’s lsp file provides the same error.
I thought It was a problem related with the plct version because I am no able to open the new proc_def.dat file with the version 5.04.01.29071 anymore, then I tried to go back to this version but it crashes continuously and I am not able to workaround it or even know if this is the reason.

Could you give me some ideas about what do I wrong, why does plct crashes and how could I solve it?
Thank you very much in advanced

Best regards

Fabricio

PC details
Win7 64bits
AM
Arjen Markus, modified 5 Years ago.

RE: plct crashes during edition

Jedi Knight Posts: 223 Join Date: 1/26/11 Recent Posts
That is a lot of questions and I will try to address them one by one.

1. There is something wrong in the PLCT executable and sofar we have been unable to figure out what is causing the problems. It is happening since we moved to a new version ofthe compiler. When I tried to rebuild it with the old compiler, something quite unexpected went wrong, in a completely unrelated area.

2. When PLCT does its job and you instruct the DELWAQ2 program to use the process library (the DLL) you created, then there is no need to adjust the routine PROCAL. That is taken care of by loading the routine from the DLL. Could it be that you are missing that bit?

3. The messages in the LSP file are new to me. Something seems to have been corrupted. We will have to check this out. Could you send us the proc_def.def and proc_def.dat files?
FF
Fabricio Fiengo, modified 5 Years ago.

RE: plct crashes during edition

Youngling Posts: 8 Join Date: 10/14/14 Recent Posts
Dear Arjen,

After install the GUI in another computer and using the plct V5040129071, I could continue. Then I used the new proc_def.dat to run delwaq1 from the src and the errors and warnings got with the proc_def.dat built with plct V5040336948m disappeared. Of course I still have the missing library error. You are right about the use of plct for loading the dll (following the instructions detailed in the open process library users guide), but I would like to be able to debug the new routine as well, this is the reason why I was thinking to add a new process in procal.f.

1. Attending your request, I attach the proc_def.dat and the proc_def.def build with the different versions of plct (the src is able to run with V5040129071 and plct V5040129071 cannot read the dat file built with V5040336948m)

2. The precompiled GUI version runs with both

Thank you very much in advanced

Kind regards

Fabricio
AM
Arjen Markus, modified 5 Years ago.

RE: plct crashes during edition

Jedi Knight Posts: 223 Join Date: 1/26/11 Recent Posts
Yes, debugging is much easier if you have the routine within the main program. The structure of procal is not that difficult, so it should be easy to add a new routine.

Thanks for the files. I will have a look at this.