intro story D-Flow FM

 

D-Flow Flexible Mesh

D-Flow Flexible Mesh (D-Flow FM) is the new software engine for hydrodynamical simulations on unstructured grids in 1D-2D-3D. Together with the familiar curvilinear meshes from Delft3D 4, the unstructured grid can consist of triangles, pentagons (etc.) and 1D channel networks, all in one single mesh. It combines proven technology from the hydrodynamic engines of Delft3D 4 and SOBEK 2 and adds flexible administration, resulting in:

  • Easier 1D-2D-3D model coupling, intuitive setup of boundary conditions and meteorological forcings (amongst others).
  • More flexible 2D gridding in delta regions, river junctions, harbours, intertidal flats and more.
  • High performance by smart use of multicore architectures, and grid computing clusters.
An overview of the current developments can be found here.
 
The D-Flow FM - team would be delighted if you would participate in discussions on the generation of meshes, the specification of boundary conditions, the running of computations, and all kinds of other relevant topics. Feel free to share your smart questions and/or brilliant solutions! 

 

=======================================================
We have launched a new website (still under construction so expect continuous improvements) and a new forum dedicated to Delft3D Flexible Mesh.

Please follow this link to the new forum: 
/web/delft3dfm/forum

Post your questions, issues, suggestions, difficulties related to our Delft3D Flexible Mesh Suite on the new forum.

=======================================================

** PLEASE TAG YOUR POST! **

 

 

Sub groups
D-Flow Flexible Mesh
DELWAQ
Cohesive sediments & muddy systems

 


Message Boards

RE: Not able to generate .bct file using Nesting2

AA
Akash Ashok, modified 2 Years ago.

Not able to generate .bct file using Nesting2

Youngling Posts: 1 Join Date: 8/22/17 Recent Posts
Hello,
I would bring to your notice something I have observed after the compilation of the latest version of Delft3D.

While doing the 'Nesting 2' operation (Delft3D GUI>Flow>Tools>Nesting2), with a history file generated using the latest version (64bit,), an error was coming up- '***ERROR: reading DELFT3D-FLOW his data file (DT)' . (in the .dia file).
When I did the same operation on a history file generated in a Delft3D version compiled before June 2015 (32bit version), it was working and generated the required '.bct' file.

Here is what I did:
-generated the observation file and administration file using 'Nesting 1', providing the required grid and boundary data as inputs.
-'.mdf' was run using the '.obs' file generated in the previous step.
-Nesting2 was attempted but it stopped with the above mentioned error in the '.dia' file.
History file was opened in QUICKPLOT and it showed all results for all the observation points.

In the older version:
-the same '.obs' and '.adm' files generated in the previous steps were used to run the same '.mdf' in an older version of Delft3D installed in another system.
-the history file generated in older version was used for 'Nesting2' in the old as well as latest version of Delft3D and it worked in both the versions, generating a '.bct file'.

This gives me an impression that the format of the history file is different in the two versions and NESTING 2 in the latest GUI is not compatible with the latest version of Delft3D. (64bit).
Am I right or is there something that I should know/did wrong.?
I was planning to shift to the 64bit version and remove the 32 bit version from the other PC too. Please advise me on this.

Here are the steps I had followed during installation:

Downloaded the source code from tags>7426.
Used the 64 bit compiler in Visual Basic to compile the code.
Obtained and installed the 4.03.00 GUI and license from Deltares. (64bit).
Copied the compiled code into the Deltares folder(C:\program files\Deltares) as mentioned in the installation instructions.


The software has been working fine for all the modules except for NESTING2.
KC
Kumpanart Chewapreecha, modified 2 Years ago.

RE: Not able to generate .bct file using Nesting2

Youngling Posts: 1 Join Date: 11/8/16 Recent Posts
I got similar problem. Who have a suggestion?
LC
Lin Chien, modified 2 Years ago.

RE: Not able to generate .bct file using Nesting2

Youngling Posts: 1 Join Date: 8/21/17 Recent Posts
I have the exact same problem. Any update?
Thanks
KK
Kimberley Koudstaal, modified 2 Years ago.

RE: Not able to generate .bct file using Nesting2

Youngling Posts: 1 Join Date: 3/27/17 Recent Posts
Hello,

I've run into a similar problem. Although I haven't found why it occurs/how to solve it, I did find a workaround solution with Matlab:

- Run the same model on an older version of D3D for a short period (just to get the hisfile of the older version), lets call this file his2
- the hisfile of the new d3d version is his1.
- Load both your HISfiles into matlab with vs_use
- then, with vs_put you can replace the data in his2 with the data of his1, thus generating an hisfile with the "older version" but with the new version data.

For my specific case i found that i had to replace everything in the his-series and his-info series. Below is my partial matlab script that i've used to do so.

I hope this can help you out as well!

Kimberley



MATLAB SCRIPT

% load his files
trih01 = vs_use([dir1,'trih-',runid,'.dat'],[dir1,'trih-',runid,'.def']); %model output
trih02 = vs_use([dir2,'trih-',runid,'.dat'],[dir2,'trih-',runid,'.def']); %model output older version

% load all his parameters of his-series and his-info-series
his1s = vs_let(trih01,'his-series',{0},'*',{0,0});
his2s = vs_let(trih02,'his-series',{0},'*',{0,0});
his1i = vs_let(trih01,'his-info-series',{0},'*',{0,0});
his2i = vs_let(trih02,'his-info-series',{0},'*',{0,0});

% replace in his-series
% nr = length time array
names = fieldnames(his1);

for a = 1:length(names)
vs_put(trih02,'his-series',{1:nr},names{a},his1.([names{a}]));
end

vs_put(trih02,'his-info-series',{1:nr},'ITHISC',his1i.ITHISC);
GS
Gholamreza Shiravani, modified 1 Year ago.

RE: Not able to generate .bct file using Nesting2

Padawan Posts: 65 Join Date: 6/25/16 Recent Posts

Hi,

could you tell me how can I rewrite the matlab structs into a NEFIS Format as .dat and .def files?

 

Regards

Renan Ribeiro, modified 2 Years ago.

RE: Not able to generate .bct file using Nesting2

Padawan Posts: 55 Join Date: 3/23/11 Recent Posts
Hello everyone,

Another option is to use a matlab function available at OpenEarth Tools, called nesthd2.m, below follow an input example

folder=pwd;
nesthd2('runid','Level2',...
    'inputdir',folder,...
    'admfile',[folder '\Level1_to_Level2.adm'],...
    'hisfile',[folder '\trih-Level1.dat']);



Kind regards,
Renan Ribeiro
FR
Fernando Roversi, modified 2 Years ago.

RE: Not able to generate .bct file using Nesting2

Youngling Posts: 1 Join Date: 8/17/15 Recent Posts
Hi Renan,

I was facing same problem. In my case I only had to include ('opt','hydro') in your code to work.
.bct files were successfully generated!

Thanks!
YK
Yahia Kala, modified 1 Year ago.

RE: Not able to generate .bct file using Nesting2

Youngling Posts: 12 Join Date: 7/11/13 Recent Posts

Hi All, I wasn't able to get the OET nesting code to work, but I was able to implement Kimberley's workaround - thanks!

 

It would be great if this was resolved in the Delft3D code.

 

Cheers,

Yahia

MS
Mohsin Siddique, modified 1 Year ago.

RE: Not able to generate .bct file using Nesting2

Youngling Posts: 2 Join Date: 5/14/15 Recent Posts

Dear all, 

I am facing the same problem with nesting (2). nesting (1) works fine.

Thanks to Renan's code works I could generate the *.bct file.

I slightly modified as suggested by Fernando because it does not generate *.bcc file (transport).

folder=pwd;
nesthd2('runid','Domain1',...
    'inputdir',folder,...
    'admfile',[folder '\nesthd1.adm'],...
    'hisfile',[folder '\trih-Domain0.dat'],...
    'opt','hydro');

**Domain 1 and Domain 0 refers to detailed and overall models repectively. 

 I tried delftdashboard directly (it also uses openearthtool) but did not work and gave some errors. Also used some old nesthd2.exe but in vain.

 

If anybody could successfully apply nesting (2) directly from the GUI of Delft3d, then kindly share the experience & know-how.

 

P.S. I am a new user of Delft3D and my version is 4.03.01.

Best Regards

Mohsin