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

reading output files without matlab

VY
veli yumruktepe, modified 7 Years ago.

reading output files without matlab

Padawan Posts: 42 Join Date: 2/7/12 Recent Posts
Dear all,

I would like to use my delft3d-flow output files, trim*.dat, with integration to other programs I use such as fortran and idl. Therefore I do not want to use matlab or quickplot. Is there a reference where I can learn how to know the dimensions and variables of the outputs created.


Thanks
Veli
GD
Gerben de Boer, modified 7 Years ago.

RE: reading output files without matlab

Youngling Posts: 10 Join Date: 4/13/11 Recent Posts
Delft3D produces NEFIS files, a binary scientific data format like netCDF and HDF.

Native NEFIS libraries exist in C and Matlab. These libraries are part of the Delft3D code.

NEFIS has inquire function to find dimensions and variables.

* We have a free matlab function called vs_trim2nc in OpenEarthTools to transform a NEFIS trim* or trih* file to netCDF for further use, using the native NEFIS matlab libraries.

* There is also a fortran conversion program executable available at request from Delft3D support, built on the native NEFIS C libraries.

* In OpenEarthTools someone started to make a python wrapper for the native NEFIS C libraries.
MB
Matt Brennan, modified 7 Years ago.

RE: reading output files without matlab

Youngling Posts: 3 Join Date: 2/11/13 Recent Posts
"Native NEFIS libraries exist in C and Matlab. These libraries are part of the Delft3D code."

How can these libraries be accessed? Is there a .dll that can be passed on to a colleague who doesn't have Delft3D installed but would like to access Delft3D model output from NEFIS files?
Bert Jagers, modified 7 Years ago.

RE: reading output files without matlab

Jedi Knight Posts: 201 Join Date: 12/22/10 Recent Posts
Hi Matt,

Adri was referring to the Delft3D open source repository.
The source code of the NEFIS library is included in the source code tree under
src\utils_lgpl\nefis folder
The solution file contains projects for building NEFIS both as static and dynamic libraries.
The NEFIS API is documented in the NEFIS_User_Manual.pdf that comes with the Delft3D installation.

Bert
Adri Mourits, modified 7 Years ago.

RE: reading output files without matlab

Yoda Posts: 1224 Join Date: 1/3/11 Recent Posts
Hi Veli,

The Delft3D setup contains two small tools that can be used on nefis output files (Menu -> Utilities):
  • VSI is a tool to inspect a nefis file
  • VS (ViewSel) is a script/command line based tool that can be used to extract data from a nefis file. Also works in batch mode.


Regards,

Adri
XW
Xu Wei, modified 1 Year ago.

RE: reading output files without matlab

Youngling Posts: 1 Join Date: 12/25/17 Recent Posts

hi, have you succeed in useing fortran and idl to turn delft3d-flow output files into netcdf or other file formats? 

ST
Sarah Margaret Trimble, modified 1 Year ago.

RE: reading output files without matlab

Youngling Posts: 3 Join Date: 5/24/18 Recent Posts

Hi Xu, I also need to convert my trim & trih files to netcdf -- and I may have found the answer to our problems in the Flow user manual. However, I have not yet tried this solution so I cannot guarantee it works.

Flow user manual (pg. 146: first attached image) indicates there is a keyword in the MDF file that can be used to switch output file type to netcdf, with more detailed instructions in section A.1.4 (pg. 408: second attached image). I will update this thread if I'm successful.

 

- Sarah T