...
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).
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.
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.
% 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'
4) Roughness