Coast / Estuary

Coastal systems are among the most dynamic physical systems on earth and are subject to a large variety of forces. The morphodynamic changes occurring to coastlines worldwide are of great interest and importance. These changes occur as a result of the erosion of sediments, its subsequent transport as bed load or suspended load, and eventual deposition. 
Estuaries are partly enclosed water bodies that have an open connection to the coast. Estuaries generally have one or more branching channels, intertidal mudflats and/or salt marshes. Intertidal areas are of high ecological importance and trap sediments (sands, silts, clays and organic matter).
Within the Delft3D modelling package a large variation of coastal and estuarine physical and chemical processes can be simulated. These include waves, tidal propagation, wind- or wave-induced water level setup, flow induced by salinity or temperature gradients, sand and mud transport, water quality and changing bathymetry (morphology). Delft3D can also be used operationally e.g. storm, surge and algal bloom forecasting. 
On this discussion page you can post questions, research discussions or just share your experience about modelling coastal and/or estuarine systems with Delft3D FM. 




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




RE: Not able to generate .bct file using Nesting2

Akash Ashok, modified 6 Months ago.

Not able to generate .bct file using Nesting2

Youngling Posts: 1 Join Date: 8/22/17 Recent Posts
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.
64bit format nesting 64 bit d-flow history file .bct nesting2
Kumpanart Chewapreecha, modified 6 Months 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?
Lin Chien, modified 5 Months 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?
Kimberley Koudstaal, modified 4 Months ago.

RE: Not able to generate .bct file using Nesting2

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

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!



% 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)

nesthd2 .bct
Gholamreza Shiravani, modified 16 Days ago.

RE: Not able to generate .bct file using Nesting2

Youngling Posts: 1 Join Date: 6/25/16 Recent Posts


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



Renan Ribeiro, modified 4 Months ago.

RE: Not able to generate .bct file using Nesting2

Padawan Posts: 53 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

    'admfile',[folder '\Level1_to_Level2.adm'],...
    'hisfile',[folder '\trih-Level1.dat']);

Kind regards,
Renan Ribeiro
nesting nesthd2 nesting2
Fernando Roversi, modified 3 Months 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!

Yahia Kala, modified 3 Days ago.

RE: Not able to generate .bct file using Nesting2

Youngling Posts: 9 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.