NaysDw2 ver 1.1.24020101 released
Tags: iric, solver, naysdw2
Published: 2024-02-16 02:43:17

## NaysDw2 has been updated.

NaysDw2 ver 1.1.24020101 was released on February 1, 2024.

### Summary of changes

#### Functional improvements and new features added

* Added the ability to smoothly copy a grid by specifying the calculation results to be read when selecting a solver.
* Advanced mode has been added, which allows you to specify any scalar from the calculation results to be read in.
* A figure of the driftwood input range has been added to the Calculation Conditions dialog.

#### Bug Fixes

* Fixed a bug that prevented reading the initial position of driftwood from text data.
* Fixed a bug that polygon items were sometimes not added to the object browser when the post-processing window was opened.


Projects created with the previous version are still available.
The details of each are organized as follows.

## Change in the method of specifying the read target and copying the grid

For improved convenience and implementation of advanced mode, the method of specifying read target has been changed to the same method as EvaTRiP_Pro.

Previously, you had to manually copy the grid after creating a new project and specify the path of the CGNS file to be read in the calculation conditions.

The new method is easier to understand because you can specify the read target in the dialog that iRIC displays when you create a new project, and then copy the grid as is.

In this method, the iRIC GUI reads the read target and displays the following information, so there is no need to open the read target and check it.
* Solver name
* Solver version
* grid type
* grid size
* Number of results

### New method of operation

When you start a new NaysDw2 project, a dialog box for selecting a CGNS file for input will appear.

![1](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hdyqt133pywqjqdg30yv.png)

Select Case1.cgn of the project you want to load from the`... `button.
(The image shows the result of the debugging calculation when it is specified.


![2](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2ll2lm0dvp8ygksmr224.png)

Press `OK` and you will be asked "Do you want to import grid from the CGNS file?" and select `Yes` to import the grid.

![3](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/on7l7ewog85z7hn3ly5a.png)

Basically, you will get an error message, but it is a specification, so don't worry about it and press `Yes`.

![4](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6m4tmv5vvrxx81vcrl7c.png)

You have successfully imported the grid.

![5](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yb5hvgks8mgwq5vyd008.png)

If you want to change the import target later, you can do so from the `CGNS file name to import flow calculation results` item in the `Basic Settings` group of the Calculation Conditions dialog.
However, the grid will not be updated, so please import manually.



## About Advanced Mode

Advanced mode is a mode that allows you to specify any scalar other than velocity and bathymetry required for calculation with NaysDw2 to be copied from the read target and output to the NaysDw2 calculation results.
The number of scalars that can be read is as follows

| type of scalar | number of scalars that can be read|
|:-|-:|
| scalars with "time" as a dimension (e.g. flow rate) | 2 |
| real Scalar with node | 5 |
| real Scalar with cell | 5 |
| integer Scalar with cell | 5 |

Previously, only fixed flow, elevation, and river bed fluctuation could be read, but this allows various reference information to be visualized together.

### Usage

1. check the `Enable Advanced Mode` checkbox in the `+Advanced Mode` group in the Calculation Conditions dialog. 2.
2. in `Specify parameters for tracking calculations`, select a scalar name for velocity and depth from the pull-down list
2. for other optional scalars, check the `Enable` checkbox in each scalar and select the scalar name from the pull-down list

* The flow velocity is stored separately in the CGNS file in the X-axis direction and in the Y-axis direction. Please select the correct combination with X and Y at the end of the scalar name.

![6](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d6cox9ogbwzyroz9nrgq.png)

* When advanced mode is enabled, the `velocity used to track driftwood` in the `Basic Settings` group is disabled and the velocity specified in advanced mode is used to track the driftwood.

* If you are loading a calculation with multiple velocities (e.g. Nays2D+), you can load it as a reference in addition to the velocities used in the NaysDw2 calculation. In this case, specify the velocities in the X and Y directions of the velocities you want to read as a scalar at an arbitrary grid point.

![7](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h680qb4li3w2lgop0y0r.png)

## Bug fixes

### Ability to read initial driftwood location from text data

Fixed a bug in the `Flowwood supply conditions` group setting that did not read location information from the file specified by the `initial driftwood placement location information file name` even if the group was set to place the driftwood in the initial state.

### Polygon section of the object browser

If no driftwood existed in the grid at the time step selected in the toolbar, a polygon item was not added to the object browser when the post-processing window was opened, and the driftwood polygon was not displayed in that post-processing window even after changing to the time step where the driftwood existed. This bug has been fixed.