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 when running model with culvert version - code or compilation issue?

LM
Luke Mosley, modified 5 Years ago.

Error when running model with culvert version - code or compilation issue?

Youngling Posts: 12 Join Date: 4/8/15 Recent Posts
Hello,

I am trying to implement a culvert model and when I run the model I get this fatal error:

***************************************
*** Culvert data included
***************************************
*** ERROR Culvert input file must have version number 01.02
*** ERROR Flow exited abnormally

My culvert file (attached) seems to have this version number. I checked for any error messages in culvert module during compilation (log below) and I can't see any errors:

*****************************************
Output
Compiling with Intel(R) Visual Fortran Compiler XE 12.0.5.221 [IA-32]...
ifort /nologo /debug:full /Od /Qauto /module:"bin/Debug/" /object:"Debug/" /Fd"Debug\vc100.pdb" /traceback /check:bounds /libs:dll /threads /dbglibs /c /dll /Qvc10 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\\bin" "C:\DELFT3D\5.01.00.2163\src\plugins_lgpl\plugin_culvert\src\plugin_culvert.f90"
Linking...
Link /OUT:"bin/Debug\plugin_culvert.dll" /INCREMENTAL:NO /NOLOGO /MANIFEST /MANIFESTFILE:"C:\DELFT3D\5.01.00.2163\src\plugins_lgpl\plugin_culvert\bin\Debug\plugin_culvert.dll.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"bin/Debug/plugin_culvert.pdb" /SUBSYSTEM:WINDOWS /IMPLIB:"bin/Debug/plugin_culvert.lib" /DLL "Debug/plugin_culvert.obj"
Link: executing 'link'
Creating library bin/Debug/plugin_culvert.lib and object bin/Debug/plugin_culvert.exp

Embedding manifest...
mt.exe /nologo /outputresource:"C:\DELFT3D\5.01.00.2163\src\plugins_lgpl\plugin_culvert\bin\Debug\plugin_culvert.dll;#2" /manifest "C:\DELFT3D\5.01.00.2163\src\plugins_lgpl\plugin_culvert\bin\Debug\plugin_culvert.dll.intermediate.manifest"
Performing Post-Build Event...
..\..\scripts_lgpl\win32\oss-install_debug.cmd plugin_culvert
oss-install_debug...
Source : package/engine plugin_culvert
"installing plugin_culvert . . ."
1 file(s) copied.

plugin_culvert - 0 error(s), 0 warning(s)

*********************************

Any idea if this is a compilation issue or where I should check? I compiled the code version 5.01.00.2163 and examples without culverts seem to run OK.

Do I need to copy culvert_plugin bin files somewhere once I have compiled code?

Kind regards

Luke
Adri Mourits, modified 5 Years ago.

RE: Error when running model with culvert version - code or compilation iss (Answer)

Yoda Posts: 1212 Join Date: 1/3/11 Recent Posts
Hi Luke,

This does not look like a compilation error.
After compilation, the plugin_culvert.dll should be place in the same directory as d_hydro.exe, flow2d3d.dll, etc., in subdirectory "...\win32\flow2d3d\bin" of the installation directory.

It seems that another culvert input file is read then you expect.

There is one line missing in your culvert input file, inside the [Culvert] block:
WetArea = 1.0

Regards,

Adri
LM
Luke Mosley, modified 5 Years ago.

RE: Error when running model with culvert version - code or compilation iss (Answer)

Youngling Posts: 12 Join Date: 4/8/15 Recent Posts
Hi Adri.

Thanks very much for those tips. To let you the problem seems to have been solved by (a) compiling release version rather than debug version. Previously I had issue with an error with a windows system file called xcopy, I just needed to add %windows\system32% to path in environment variables and then release version compiled with no errors, and (b) I adapted a previous delft .ini file to a culvert file rather than typing from scratch in a text editor. Not sure quite why it didn't work before (is delft sensitive to tabs or spaces?) but seems to be fine now.

Kind regards

Luke
Adri Mourits, modified 5 Years ago.

RE: Error when running model with culvert version - code or compilation iss (Answer)

Yoda Posts: 1212 Join Date: 1/3/11 Recent Posts
Hi Luke,

Thanks for your reply; good to hear it works.

Yes, Delft3D is sensitive to white spaces. We are making progress, but to be safe you should avoid them in paths and file names.

Regards,

Adri
AA
Andi Afif, modified 1 Year ago.

RE: Error when running model with culvert version - code or compilation iss

Youngling Posts: 7 Join Date: 3/23/18 Recent Posts
Dear all,I get the same problem too but little bit differences. When I try to implement a culvert model and when I run the model I get this error

***************************************
*** Culvert data included
***************************************
*** ERROR Can not open shared library .dll
*** ERROR Flow exited abnormally
Even though I was put the plugin_culvert.dll in the same directory as d_hydro.exe, flow2d3d.dll, etc., in subdirectory "...\win64\dflow2d3d\bin" of the installation directory.
Do you know why it happens?
Regards,
Andi