Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

3) The final grid is created based on this larger grid. Rotation is taken into account and cells above a certain threshold (Z max) are deleted.  This step is carried out by the function MakeRectangularGrid.

Figure: code Code structure of the routines needed  to create a rectangular grid in Dashboard

...

3) The different bathymetric data sets are used in the order defined. Dashboard applies a linear interpolation from the grid the bathymetry is defined on to the grid it needs to be calculated on. On top of that Dashboard takes into account model offset and can apply an internal diffusion in order to overcome possible undefined cells (NaNs).

Figure: code Code structure of the routines needed to create a bathymetry in Dashboard

3) Make open boundaries and create boundary conditions

Make open boundaries

Open boundary Boundary conditions for Delft3D-FLOW can be created with Delft Dashboard. The basic procedure to create open boundaries will contain of three stepsfive steps. The master function of this routine is ddb_generateBoundaryLocationsDelft3DFLOW.

1) All the relevant variables (grid, bathymetry, number of boundaries and source) are loaded from the interface in Dashboard (getHandles).

2) A specific number of open boundaries is created on the grid. The function determines if a cross-section is 'open' based on the Z max defined in Dashboard.  This step is carried out by the function findBoundarySectionsOnStructuredGrid.

3) The open boundaries are initialized. This means the different boundary types (eg. water level or Riemann) are activated with default values (delft3dflow_initializeOpenBoundary).
4) The *.bca file is written in the working directory.
5) The view in Dashboard is updated with the recently formed open boundaries. The name of the boundaries can be seen when Boundaries is selected in the Model menu.

Image Added

Figure: Code structure of the routines needed  to create open boundaries in Dashboard

Generate boundary conditions

It is also possible to generate astronomic boundary conditions for Delft3D-FLOW with Delft Dashboard. The basic procedure to generate boundary conditions will contain of x steps. The master function of this routine is ddb_generateBoundaryConditionsDelft3DFLOW.

1) All the relevant variables (grid, bathymetry, number of boundaries and source) are loaded from the interface in Dashboard (getHandles).

2) Determine the coordinates of the end of each boundary in longitude and latitude. 

3) Generation of the amplitude and phases based on the coordinates. It reads the values from the tide models defined (default TPXO 7.2) and applies a linear interpolation to the coordinates of interest. Diffusion is used to overcome any NaN's. This step is carried out by the function readTideModel.
4) The *.bnd file is written in the working directory.

% This will determine the amplitude and phases per location
% a) Makes on row of x's and y's
% b) Calculates ampltiudes and phases with readtidemodel
% -> this includes a diffusion if there are NaNs
% -> uses a linear interpolation to boundary locations
% c) default is a water level type, can be changed in 'boundaries'

Figure: Code structure of the routines needed  to generate boundary conditions in Dashboard

4) Roughness