null

Message Boards

Configuration of process library

Martin Schueder, modified 5 Years ago.

Configuration of process library

Padawan Posts: 52 Join Date: 10/8/13 Recent Posts
Hello,

I have encountered 2 problems when trying to create and install a custom process library for use in WAQ:

1) When I select "Open OPL" from the open process library configuration tool, I get an error message saying "Datafile C:\Delft3D\delft3d_ohmw_4.01.00.rc not found, system starts with an empty database". This message shows every time, but I ignore it because I want to create a process library from scratch so the existence of an empty library does not seem problematic (as per the open PLCT tutorial). I complete the open PLCT tutorial and save my progress as a small database named proc_def.dat. When go into "Open OPL" again at a later time, the options to File->Open and File->Import are greyed out. I cannot open my previous database (the one created in the tutorial for instance) for editing. How would I be able to edit my custom database generated in OPL configuration?

Also the only option for saving while in the OPL tool is a .dat file. The open PLCT manual says the PLCT file will have a *.0 extension. Is there any known explanation for that? Perhaps this is related to my inability to open previous sessions.

2) I am able to install my proc_def.dat and D3Dwaq_OpenPL.dll in PLCT to gain access to my library in light of my other problem. However, in WAQ when I try to select processes for the model, the error "Configuration WAQ cannot be found in Process Library file" displays. This makes sense as the license configuration during my Open PLCT session showed "Configuration: OPL" in the main window. How would I actually be able to use a from-scratch library when a) WAQ only lets you chose ECO or WAQ configurations when defining processes and b) it appears any user generated library (i.e. a library created from an empty library) must have an OPL configuration?

Any help or guidance is much appreciated,

Summary

1) Why can I not open a previously user generated database file when in OPL?
2) How can i give a user generated process library an ECO or WAQ configuration for acceptance by the WAQ processes configuration when the default seems to be OPL configuration

Martin
Christophe Thiange, modified 5 Years ago.

RE: Configuration of process library

Jedi Knight Posts: 125 Join Date: 11/15/12 Recent Posts
Hi Martin,

We're looking into the issue and will post a workaround soon. Keep checking the forum.

Christophe
AM
Arjen Markus, modified 5 Years ago.

RE: Configuration of process library

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

I have looked into the issues you raised. You hit an option we do not use often ourselves, so that it was left out of the menu. In the attached zip-file you will find three files:
- d3d_menu_ohmw.xml - should replace the one in menu\default. It defines an extra button for the Processes menu, so that you can select the OPL configuration.
- plct_opl.ini and plct_opl_dev.ini - should be placed in waq/default. These files specify where (Open-)PLCT get its files from at start-up. By removing the installation path it will look for these files in the _current_ directory.

Hope this helps, otherwise let us know.

Regards,

Arjen
Martin Schueder, modified 5 Years ago.

RE: Configuration of process library

Padawan Posts: 52 Join Date: 10/8/13 Recent Posts
Hi,

I very much appreciate your efforts in creating new .ini and .xml files for me. I hope it is not due to my own lack of understanding but even with these files I have yet to be successful.

1) The .ini files in the .zip provided specify under System:

nefis_data_file=.\opl_proc_def.dat
nefis_definition_file=.\opl_proc_def.def
algaedb=C:\Program Files (x86)\Deltares\Delft3D 4.01.00.rc.12\win32\waq\default\bloom.spe
defaulthome=C:\Program Files (x86)\Deltares\Delft3D 4.01.00.rc.12\win32\waq


My Delft3D program is on the directory C:\Deltares\Delft3D_ohmw.4.01.00.rc.12\win32 so it is not surprising that Open PLCT was not able to find the data files when executed and thus failed to open. When I re-executed substitute_delft3d_env.bat the .ini file then was automatically re-written to specify:

nefis_data_file=C:\Deltares\Delft3D_4.01.00.rc.12\win32\waq\default\opl_proc_def.dat
nefis_definition_file=C:\Deltares\Delft3D_4.01.00.rc.12\win32\waq\default\opl_proc_def.dat
algaedb=C:\Deltares\Delft3D_4.01.00.rc.12\win32\waq\default\bloom.spe
defaulthome=C:\Deltares\Delft3D_4.01.00.rc.12\win32\waq


This reflected my true directory format. After this environment substitute, Open PLCT was able to run with the same error as I originally encountered: "Datafile C:\Deltares\Delft3D_4.01.00.rc.12\w... not found, system starts with an empty database"

I created a file named "opl_proc_def.dat" in the directory specified in the nefis_data_file call so the call for nefis data file would not return an error. I no longer receive a warning upon start up of the Open PLCT.

2) My GUI still does not contain an "OPL" button in the PLCT menu even though the .xml file you have given me now resides in C:\Deltares\Delft3D_4.01.00.rc.12\win32\menu\default and the button is clearly described in line 406 of the .xml. Although I do not think this is the case due to the file's use of $D3D_HOME and $ARCH variables, is it possible that it is not working for me due to a conflict between my current directory structure and the one you have coded?

My thanks,

Martin
Martin Schueder, modified 5 Years ago.

RE: Configuration of process library

Padawan Posts: 52 Join Date: 10/8/13 Recent Posts
Hi,

I think I have fixed the problem.

The attached .xml file d3d_menu_ohmw.xml needed to be renamed d3d_menu.xml to reflect the name of my Directory C:\Deltares\Delft3D_4.01.00.rc.12\win32. The OPL button now appears in the PLCT and my original issues have been resolved.

Thank you again,

Martin
Martin Schueder, modified 5 Years ago.

RE: Configuration of process library

Padawan Posts: 52 Join Date: 10/8/13 Recent Posts
A new problem now arises:

In the PLCT after I choose my substances from an OPL configured data base I created according to the OPLCT manual tutorial, plct.exe crashes every time I try to save my .0 substance file.

I am not sure how to progress from here...

Martin
AM
Arjen Markus, modified 5 Years ago.

RE: Configuration of process library

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

hm, this is something we will have to look into - I am a trifle late in replying as I was away for a few days.

Regards,

Arjen
AM
Arjen Markus, modified 5 Years ago.

RE: Configuration of process library

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

I think I found the problem in the code - something technical and stupid. We can send you a new version tomorrow so that you can test it.

Regards,

Arjen
AM
Arjen Markus, modified 5 Years ago.

RE: Configuration of process library

Jedi Knight Posts: 223 Join Date: 1/26/11 Recent Posts
The new version is available at: http://oss.deltares.nl/documents/183920/23b89310-f18d-4e45-86b7-5758785b66a8

Let us know how things go with this one.

Regards,

Arjen
Martin Schueder, modified 4 Years ago.

RE: Configuration of process library

Padawan Posts: 52 Join Date: 10/8/13 Recent Posts
Arjen,

This has fixed the problem and I am now using processes from a custom made process library in my WAQ .scn file successfully.

Thank you for your dedicated help,

Martin
AM
Arjen Markus, modified 4 Years ago.

RE: Configuration of process library

Jedi Knight Posts: 223 Join Date: 1/26/11 Recent Posts
Good to hear that - should you encounter other issues, let us know.

Regards,

Arjen
FF
Fabricio Fiengo, modified 4 Years ago.

RE: Configuration of process library

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

I am trying to modify the existent library of Delwaq in order to include radionuclides in the micro-pollutant library, everything goes well until I press save in the process window then plct crashes. I followed all the steps mentioned above but they do not solve the problem. Could you tell me please how could I solve this problem?

Thank you very much in advanced

Best regards

Fabricio
Rudy Schueder, modified 4 Years ago.

RE: Configuration of process library

Padawan Posts: 52 Join Date: 10/8/13 Recent Posts
Fabricio,

When I recompiled my code in mid-March 2015 to update the executables, I encountered the same problem as you, and following the steps in this previous solution was no longer effective. Did you perhaps compile your code between December 2014 and present day? I think that might be the source of my own problem...

Rudy
FF
Fabricio Fiengo, modified 4 Years ago.

RE: Configuration of process library

Youngling Posts: 8 Join Date: 10/14/14 Recent Posts
Hello Rudy,

Last week, I compiled the code but i did not replace the exe ,nor dll. I changed the plct executable as suggested and after some trials I succeed to edit the library
but now when I try to use the new library delwaq 1 gives errors, I posted today my problem with more details

Regards

Fabricio

PS. sorry for the late reply
Rudy Schueder, modified 4 Years ago.

RE: Configuration of process library (Answer)

Padawan Posts: 52 Join Date: 10/8/13 Recent Posts
Hi Fabricio,

Thanks for the reply, I will follow your newest post for updates. In the meantime I plan to use my other computer with the Delft3D configuration mentioned in my earlier posts above (compiled in November 2014). In this way I will hopefully be able to create definitions and libraries on one computer and install them on the computer using the March compilation for model simulations.

I will update if I can make any progress.

Rudy
MA
Matthew Adams, modified 4 Years ago.

RE: Configuration of process library

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

I've encountered the same problem as above. "File > Open" and "File > Import" are grayed out in the Processes Library Configuration Tool, and choosing "Open OPL" I get the error "Datafile C:\Deltares\delft3d_ohmw_4.01.01. not found, System starts with empty database." My installed version is delft3d_ohmw_4.01.01.rc.03. I have attempted the fixes listed on this thread (replacing the 3 files, including the paths in the System section of the ini files, and replacing plct.exe, but to no avail.

Any help would be appreciated.

Matthew