# Example 07: Density flow in a rectangular channel

## Purpose

To calculate the density currents in a rectangular tank. In this example density currents are simulated in closed tank with flat bottom. Initial concentration is given and additional concentration boundaries are not given.

## Creation of calculation grid and setting initial conditions

Create the calculation grid using [Grid] [Select Algorithm to Create Grid] and then select [Gird Generator for Nays3DV] in select grid creating algorithm window.

Then the grid creation window will appear.

In grid creation window, give channel shape parameters as shown in Figure 105.

Then we can give channel bed condition. As here we use the default condition flat(no bar) no modifications are needed.

If new grids are added or width is varied it is possible to set them. As in this example no grids added and no width variations, no modifications are needed in them.

Initial water surface profile tab is used to give downstream depth, water surface slope and initial water surface purtavation. It can be seen as shown in Figure 106 . After setting all the parameters click on [Create Grid]. Here the bed is given as a sloped bed varying linearly in x direction. Figure 106 : Grid creation : Water surface elevation and Depth

Then the grid is created and a confirmation message box will appear asking to map the geographic data as shown in Figure 107 and click on [Yes]. Figure 107 : Grid creation : Mapping geographic data to the grid

This will map the geographic data to the grid and the mapped grid can be seen as shown in Figure 108. Figure 108 : Grid creation : Mapping geographic data to the grid

Now save the project with [File] [Save project as .ipro].

## Setting the calculation conditions and simulation

Set the calculation conditions with [Calculation Condition], [Setting].

Calculation condition window will open.

Set computational parameters as shown in Figure 109.

Then give hydraulic boundary conditions. Since the boundary conditions are closed boundaries , boundary condition window is inactive as shown in Figure 110.

Then give initial and Boundary concentrations as shown in Figure 111.

Here initial density distribution is given in calculation conditions. For that the i, j, k start and end locations of the purturbed concentration should be given as shown in above figure.

Then the time and iteration parameters are give as shown in Figure 112.

Then give the physical parameters as given in Figure 113.

After setting the calculation conditions, save the project by clicking on save tab. Now start simulation by, [Simulation] [Run]. Simulation will start and after some time it will finish showing the message the solver finished the calculation.

## Visualization of results

Open 3D post processing window by selecting, [Calculation Results] [Open new 3D Post-Processing Window].

In this example, isosurface concentration with arrows are plotted. For that, go to [Object Browser] - [Isosurfaces] and right click on isosurfaces. Then click on [Add]. Isosurface setting window will appear as shown in Figure 114.

In the isosurface setting window, give physical value as concentration, and value setting as 0.015. Value setting can be done using the min and max value as a guide and can set to a value in between. Then the color has to be set and if no color is set, the isosruface cannot be seen as the default color is white.

created isosurface can be seen as shown in Figure 115.