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

compiling 03_flow_wave example in ubuntu

RE
Ricardo Enciso, modified 9 Years ago.

compiling 03_flow_wave example in ubuntu

Youngling Posts: 6 Join Date: 8/18/11 Recent Posts
Hello,

Before, thanks for the timely response. Just a day ago to create the executables in ubuntu 32 bits, the first example I compiled 01_standard However, in the second example, 02_descomposition, I produced two warming, the third being the reason for consultation is as follows:

root@cato-HP-Pavilion-dv6700-Notebook-PC:/home/cato/delft3trunk/examples/03_flow-wave# export PATH=$buildpath/bin:$PATH
root@cato-HP-Pavilion-dv6700-Notebook-PC:/home/cato/delft3trunk/examples/03_flow-wave# export LD_LIBRARY_PATH=$buildpath/lib:$LD_LIBRARY_PATH

root@cato-HP-Pavilion-dv6700-Notebook-PC:/home/cato/delft3trunk/examples/03_flow-wave# sh run_flow2d3d.sh

--------------------------------------------------------------------------------
- Delft3D
- Deltares, Delft3D-WAVE Version 3.04.01.1189, Jan 20 2012, 12:24:15
- Open source
-
--------------------------------------------------------------------------------
*** MESSAGE: Delft3D-WAVE runs online with Delft3D-FLOW
Waiting for initialisation from FLOW
Executing "/home/cato/delft3trunk/bin/intel/flow/bin/d_hydro.exe TMP_config_flow2d3d_4137.xml" ...
--------------------------------------------------------------------------------
Deltares, FLOW2D3D Version 5.00.00.1189, Jan 20 2012, 12:23:56
libflow2d3d.so entry Flow2D3D::Run
--------------------------------------------------------------------------------

Part I - Initialisation Time Dep. Data module...
runid : r17
Part II - Creating intermediate files...
Part III - Initialisation of the Execution module...
Part IV - Reading complete MD-file...
Part V - Initialisation & checking input...
Part VI - Initialisation & checking second part...
Part VII - Initialisation output...
*** MESSAGE: Connected to the following 1 FLOW domain(s):
r17
Initialising grids and grid mappings
Waiting for communication with Delft3D-FLOW ...
Part VIII - Start Simulation...

Time to finish 0s, 0.0% completed, time steps left 180
*****************************************************************
* Start of Delft3D-WAVE ...
Start loop over SWAN grids, time = 0.000
Allocate input fields
Allocate and read SWAN depth
Get flow fields, domain 1 :
Time 0.000 found on com-file, group CURTIM
Write SWAN depth file
Write SWAN velocity file
Write SWAN wind file
Deallocate input fields
Write SWAN input
<<Run SWAN...
swan.sh is /home/cato/delft3trunk/examples/03_flow-wave/../../bin/intel/wave/bin/swan.sh
Using swan executable /home/cato/delft3trunk/examples/03_flow-wave/../../bin/intel/wave/bin/swan_4072ABCDE_del_l64_i11_omp.exe

SWAN batchfile executed for Delft3D
Performing computation for: r17.swn
/home/cato/delft3trunk/examples/03_flow-wave/../../bin/intel/wave/bin/swan_4072ABCDE_del_l64_i11_omp.exe: 1: Syntax error: "(" unexpected
mv: no se puede efectuar `stat' sobre «PRINT»: No existe el archivo o el directorio
*** WARNING: unable to run SWAN using "swan.sh". Trying with "swan.bat" ...
sh: swan.bat: not found
>>...End of SWAN run
*** ERROR: file 'norm_end' expected to signal a correct SWAN calculation

Any suggestions would be very grateful.
Adri Mourits, modified 9 Years ago.

RE: compiling 03_flow_wave example in ubuntu

Yoda Posts: 1221 Join Date: 1/3/11 Recent Posts
Hi Ricardo,

WAVE writes the input files for SWAN. Then SWAN is executed. It seems that SWAN does not like the input file. Do you see something strange in the file named "INPUT"? Is a file named "PRINT" or "Errfile" created and containing information?

Regards,

Adri
RE
Ricardo Enciso, modified 9 Years ago.

RE: compiling 03_flow_wave example in ubuntu

Youngling Posts: 6 Join Date: 8/18/11 Recent Posts
Hi thanks for replying:

I wrote the vi INPUT and found:

$***************************** HEADING *********************************
$
PROJECT 'Frisian Inlet ' ' '
'nieuw golfgrid '
' '
' '
$
$***************************** MODEL INPUT *****************************
$
SET LEVEL = 0.00 NOR = 90.00 DEPMIN = 0.05 _
MAXMES = 1000 MAXERR = 2 _
GRAV = 9.81 RHO = 1025.00 INRHOG = 1 _
NAUT
$
MODE NONST
CGRID CURV 145 80 EXCEPT 0.0 0.0 _
CIR 36 0.05 1.00 24
$
READ COOR 1. 'TMP_grid2swan01' _
4 0 1 FREE
$
INPGRID _
BOTTOM CURV 0. 0. 145 80
READINP BOTTOM 1.0 'BOTNOW' 4 0 FREE
INPGRID _
CURREN CURV 0. 0. 145 80
READ CUR FAC= 1. _
'CURNOW' IDLA=4 FREE
$
$
$
INPGRID _
WIND CURV 0. 0. 145 80
READ WIN FAC= 1. _
'WNDNOW' IDLA=4 FREE
$
$
$
BOUN SHAPE JONSWAP 3.30 PEAK DSPR POWER
BOUN SIDE N CCW _
CON PAR 2.00 7.00 340.00 4.00
BOUN SHAPE JONSWAP 3.30 PEAK DSPR POWER
BOUN SIDE W CCW _
CON PAR 2.00 7.00 340.00 4.00
BOUN SHAPE JONSWAP 3.30 PEAK DSPR POWER
BOUN SIDE E CCW _
CON PAR 2.00 7.00 340.00 4.00
$
GEN3
BREAK CON 1.00 0.73
FRIC JON 0.0670
LIM 10 1
NUM DIR cdd= 0.50 SIGIM css= 0.50
$
NUM ACCUR 0.020 0.020 0.020 98.000 15
$
$***************************** OUTPUT REQUEST **************************
$
QUANTITY HSIGN excv=-999.0
QUANTITY DIR excv=-999.0
QUANTITY TM01 excv=-999.0
QUANTITY DEPTH excv=-999.0
QUANTITY VELOC excv=-999.0
QUANTITY TRANSP excv=-999.0
QUANTITY DSPR excv=-999.0
QUANTITY DISSIP excv=-999.0
QUANTITY LEAK excv=-999.0
QUANTITY QB excv=-999.0
QUANTITY XP excv=-999.0
QUANTITY YP excv=-999.0
QUANTITY DIST excv=-999.0
QUANTITY UBOT excv=-999.0
QUANTITY STEEPW excv=-999.0
QUANTITY WLENGTH excv=-999.0
QUANTITY FORCES excv=-999.0
QUANTITY RTP excv=-999.0
QUANTITY PDIR excv=-999.0
QUANTITY WIND excv=-999.0
QUANTITY TPS excv=-999.0
QUANTITY TM02 excv=-999.0
QUANTITY TMM10 excv=-999.0
QUANTITY DHSIGN excv=-999.0
QUANTITY DRTM01 excv=-999.0
QUANTITY SETUP excv=-999.0
$
TABLE 'COMPGRID' NOHEAD 'SWANOUT1' _
HSIGN DIR TM01 DEPTH VELOC TRANSP _
DSPR DISSIP LEAK QB XP YP _
DIST UBOT STEEPW WLENGTH FORCES RTP _
PDIR WIND
$
TABLE 'COMPGRID' NOHEAD 'SWANOUT2' _
TPS TM02 TMM10 DHSIGN DRTM01 SETUP _
$
$
$
$
TEST ITEST= 0 ITRACE= 0
COMPUTE STAT 20050101.000000
STOP

Now the files that were generated are these are with their respective extension:

WINDNOW
swan.inp
r17.swn
INPUT
CURNOW
BOTNOW
trih-r17.def
trih-r17.dat
com-r17.def
com-r17.dat
TMP_grid2swan01
trim-r17.def
trim-r17.dat
tri-diag.r17
TMP_r17.grd
TMP_r17.bch
TMP_r17.bcc
TIM_config_flow2d3d_15809.xml

I appreciate your support..
Adri Mourits, modified 9 Years ago.

RE: compiling 03_flow_wave example in ubuntu

Yoda Posts: 1221 Join Date: 1/3/11 Recent Posts
Hi Ricardo,

That looks OK.
Can you try replacing the first line in the file "swan.sh" being used? It now reads:
#!/bin/sh
What happens if you replace it by:
#!/bin/bash

Please double check that the "swan.sh" you changed is the one being used, for example by adding an additional echo-statement.

Regards,

Adri
JF
Jose Manuel Fernandez Jaramillo, modified 9 Years ago.

RE: compiling 03_flow_wave example in ubuntu

Youngling Posts: 5 Join Date: 4/26/11 Recent Posts
I had the same problem and I sent a solution by e-mail that is already in the trunk version. in the script "third_party_open/swan/scripts/swan.sh" It was assumed by default to call swan 64bits. With the new scritp it recognizes that your machine is 32bits and then call the proper swan version.
RE
Ricardo Enciso, modified 9 Years ago.

RE: compiling 03_flow_wave example in ubuntu

Youngling Posts: 6 Join Date: 8/18/11 Recent Posts
Thanks Joe and Adri:

As said by Jose, the problem was in the swan.sh in Case Initcializacion, when calling: "swan_4072ABCDE_del_l32_i11_mpi.exe" and other "swan_4072ABCDE_del_l32_i11_omp.exe" should be in l32 but was in l64 and therefore not module running the swan.

Thank you very much for your support and patience.
HL
Hardy Lee, modified 3 Years ago.

RE: compiling 03_flow_wave example in ubuntu

Youngling Posts: 11 Join Date: 10/7/15 Recent Posts
I know it's an old threat, but I met similar problems when I run examples/03_flow-wave using "mpirun -np 2 d_hydro.exe config_d_hydro.xml & wave.exe r17.mdw 1". The swan_sh.log generated in the model folder says the following:

screen output of swan.sh is written to this file
and will be overwritten everytime that swan.bat is executed

swan.sh is /home/lee/delft3d/trunk/bin/lnx64/swan/scripts/swan.sh
Using swan executable /intel/swan/bin/swan_4072ABCDE_del_l64_i11_omp.exe

SWAN batchfile executed for Delft3D

***ERROR: Delft3D profile not yet executed; can\'t run SWAN
Performing computation for: r17.swn

*** ERROR: SWAN executable does not exist
/intel/swan/bin/swan_4072ABCDE_del_l64_i11_omp.exe

In my case, the solution is to modify delft3d/trunk/bin/lnx64/swan/scripts/swan.sh.

Modify line 50: export ARCH=intel to export ARCH=trunk/bin/lnx64, and add a new line: export D3D_HOME=/home/lee/delft3d

I hope this will be helpful.
Adri Mourits, modified 3 Years ago.

RE: compiling 03_flow_wave example in ubuntu

Yoda Posts: 1221 Join Date: 1/3/11 Recent Posts
Hi Hardy,

You are right: both "ARCH" and "D3D_HOME" must be correctly defined when using Delft3D-WAVE. In your case the clean definitions should be:
ARCH=lnx64
D3D_HOME=/home/lee/delft3d/trunk/bin

Two additions:
1. Each source code version contains example models with scripts showing how they should be defined
2. Currently we are switching to scripts near the binaries, automatically detecting the correct values for ARCH and D3D_HOME. It is already in the trunk (check the run.bat/run.sh scripts in the examples), but not yet in a tagged version.

Regards,

Adri