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: File>Open/Import grayed out, File>Save is *.dat instead of *.sub

MA
Matthew Adams, modified 4 Years ago.

PLCT: File>Open/Import grayed out, File>Save is *.dat instead of *.sub

Youngling Posts: 19 Join Date: 8/20/15 Recent Posts
Hi there,

I originally posted this at the end of a "resolved" thread, but since it is urgent I have reposted as question.

In my build of Delwaq, "File > Open" and "File > Import" are grayed out in the Processes Library Configuration Tool, "File > Save As" tries to save a *.dat file instead of *.sub file, and choosing "Open OPL" I get the error "Datafile C:\Deltares\delft3d_ohmw_4.01.01.rc.03\delft3d\win32\waq\default\opl_proc_def.dat not found, System starts with empty database." My installed version is delft3d_ohmw_4.01.01.rc.03 on Windows 7.

Any help would be appreciated.

Matthew
MJ
Michel Jeuken, modified 4 Years ago.

RE: PLCT: File>Open/Import grayed out, File>Save is *.dat instead of *.sub

Jedi Knight Posts: 156 Join Date: 1/21/13 Recent Posts
Hi Matthew,

When you want to use the processes library, you have to copy the bin-folder of your build into the GUI-setup you have got. The file C:\Deltares\delft3d_ohmw_4.01.01.rc.03\delft3d\win32\waq\default\proc_def.dat (without opl_in it) should be on this location. After you build Delft3D, these files should be gathered from your build into the folder bin\win32\waq\default, next to the src and examples folder.

Hope this helps,
Michel
MA
Matthew Adams, modified 4 Years ago.

RE: PLCT: File>Open/Import grayed out, File>Save is *.dat instead of *.sub

Youngling Posts: 19 Join Date: 8/20/15 Recent Posts
Hi Michel,

Many thanks for your reply! I re-copied the files from the build to the GUI, just in case; this did not change things. Today I re-downloaded the GUI and build, recompiled and copied the build files to GUI folder structure in a different folder, but still the same issue.

When I compile the build (revision 5429) in VS2010/IFORT12 with options win32 and release, the bin/win32/waq/default folder has only 4 files: bloom.spe, bloominp.d09, proc_def.dat and proc_def.def. Could this be the cause of the problem?

Many thanks for any insights! If there is other information pertinent to the problem, let me know and I will post.

Thanks again,
Matthew
MJ
Michel Jeuken, modified 4 Years ago.

RE: PLCT: File>Open/Import grayed out, File>Save is *.dat instead of *.sub

Jedi Knight Posts: 156 Join Date: 1/21/13 Recent Posts
Hi Matthew,

Sorry for the delay. I've checked the Delft3D 4.01.01.rc.03 open source community setup, and in the zip-file delft3d_ohmw_4.01.01.rc.03.zip there are several other files that also should reside in <path>\win32\waq\default. So some of the files come from the setup of the GUI in the zip-file, and the others should come from the build you have made.

The PLCT should be started with the processes button, not the Open PLCT button in the Tools sub-menu.

Also be sure that you run the "substitute_delft3d_env.bat" script in the win32 directory of the GUI setup. The PLCT is started in various modes based on the plct*.ini files. The contain the absolute paths to the prod_def. You could check if these files contain the right paths (they are plain ASCII).

I hope this helps,

Michel
MA
Matthew Adams, modified 4 Years ago.

RE: PLCT: File>Open/Import grayed out, File>Save is *.dat instead of *.sub

Youngling Posts: 19 Join Date: 8/20/15 Recent Posts
Hi Michel,

Thanks very much for your response, I have narrowed down the issue to the OPL only. (Both ECO and WAQ PLCT now work correctly.) Following Arjen's post on another thread (http://oss.deltares.nl/web/delft3d/delwaq/-/message_boards/view_message/526833#_19_message_528673) and Rudy's second follow-up comment to this (I need to manually change the file paths in the INI files; "substitute_delft3d_env.bat" does not accomplish this), I was able to make the OPL button appear in Processes menu.

So now, only in OPL mode does the original issue still occur. ( "File > Open" and "File > Import" are grayed out, "File > Save As" tries to save a *.dat file instead of *.sub file, and I get the error "Datafile C:\Deltares\delft3d\win3 [text cut out] not found, System starts with empty database." )

Any thoughts on what could resolve this?

Many thanks,
Matthew
MJ
Michel Jeuken, modified 4 Years ago.

RE: PLCT: File>Open/Import grayed out, File>Save is *.dat instead of *.sub (Answer)

Jedi Knight Posts: 156 Join Date: 1/21/13 Recent Posts
Hi Matthew,

Part of the answer is that in developer mode, you are modifying or creating a new processes database. This means that you need to save a *.dat file that contains your modified or new processes. You will also need to do some FORTRAN coding to do the real math. I'll inquire the person that maintains the PLCT GUI about the grayed out import.

Michel
MA
Matthew Adams, modified 4 Years ago.

RE: PLCT: File>Open/Import grayed out, File>Save is *.dat instead of *.sub

Youngling Posts: 19 Join Date: 8/20/15 Recent Posts
Hi Michel,

Thanks for your reply! In the D Water Quality Open Processes Library User Manual (version 0.99 revision 33644, 24 october 2014), Section 4.2, it says that File >New, Open, Save etc. works on *.sub and *.0 files. Is that correct or should it work on *.dat files? I am aware that eventually the PLCT (with some delving into Fortran to actually write the equations) will yield a new processes library (*.dat).

Thanks for checking with the person who manages the PLCT GUI, and hopefully can resolve these two issues (grayed out Open/Import and should this be *.sub or *.0 instead of *.dat).

Matthew
AM
Arjen Markus, modified 4 Years ago.

RE: PLCT: File>Open/Import grayed out, File>Save is *.dat instead of *.sub (Answer)

Jedi Knight Posts: 223 Join Date: 1/26/11 Recent Posts
Hi Matthew,

I did some code diving - the Import menu item seems to be related to a different model suite, where information is transferred in a different way. But I want to explain the various files in some more detail, as I think that will give you a better understanding.

First of all ,the .sub and the .0 files are files you would normally create with the GUI in ordinary mode, not in Open/developer mode:
- The .sub file contains the selected substances, parameters and processes only. Select that file for the water quality calculations.
- The .0 file contains a hierarchy of information that allows you to go back in the selection process. As a consequence it also contains internal information.

The .dat file (the process definition file) is a file which in this mode is static: it contains the definitions of the input and output quantities for each process.

In Open/developer mode you can add to the list of processes and therefore the process definition file will change. To use an existing process definition file and change that, you need to use the Merge menu option. This will bring up a file selection dialog where you can select the process definition file of choice.

Regards,

Arjen
MA
Matthew Adams, modified 4 Years ago.

RE: PLCT: File>Open/Import grayed out, File>Save is *.dat instead of *.sub

Youngling Posts: 19 Join Date: 8/20/15 Recent Posts
Hi Arjen and Michel,

Many thanks for your helpful replies! Part of the problem was my build (which was resolved in the other thread) and part of it was my misunderstanding of how the open PLCT tool operates (creating new process definition files (.dat) rather than substance files (.sub and .0 files)). I am now making new processes in open PLCT without any issues.

Thanks again!
Matthew