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. 
 

** PLEASE TAG YOUR POST! **

 

 

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

 


« Back to .bct

RE: Not able to generate .bct file using Nesting2

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Not able to generate .bct file using Nesting2
64bit format nesting 64 bit d-flow history file .bct nesting2
Answer (Unmark)
12/4/17 6:37 AM
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.
RE: Not able to generate .bct file using Nesting2
Answer (Unmark)
12/6/17 6:58 PMas a reply to Akash Ashok.
I got similar problem. Who have a suggestion?
RE: Not able to generate .bct file using Nesting2
Answer (Unmark)
1/23/18 1:09 PMas a reply to Akash Ashok.
I have the exact same problem. Any update?
Thanks
RE: Not able to generate .bct file using Nesting2
nesthd2 .bct
Answer (Unmark)
1/25/18 3:13 PMas a reply to Akash Ashok.
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);
RE: Not able to generate .bct file using Nesting2
nesting nesthd2 nesting2
Answer (Unmark)
2/10/18 1:53 AMas a reply to Akash Ashok.
Hello everyone,

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

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



Kind regards,
Renan Ribeiro