SMS

Fixing Negative Water Depth

If you've worked with an SRH-2D model in the Surface-water Modeling System (SMS), you may have noticed that there will be times that some nodes appear to have a negative water depth. This can be problematic because it often doesn't reflect the true nature of the body of water. SRH-2D simulations default their calculations to be cell-centered, while meshes calculate data from the nodes. Inactive cells are set to have a null value of -999, but if you're working with meshes, the nodes that touch the inactive cells will interpolate with the value of -999, thus causing a negative water depth to generate on that node. If this is something you want to avoid, here are some ways to eliminate a negative water depth.

Example of negative depths in an SRH-2D project

The first way to eliminate these negative water depth values from your SRH model when working with a mesh is to run your simulation as normal, and then use the Data Calculator in the Data Set Toolbox to truncate the data to a more desirable number, often this number will be zero. Follow these steps to truncate the data:

  1. Open the Data Set Toolbox under the Data menu.
  2. Under the Math section, select the Data Calculator.
  3. Find the dataset you are wanting to truncate, which will be labeled with "d#".
  4. Enter the following formula into the Calculator: "trunc(x,a,b)" where x is the dataset to be truncated, and where all the data will be greater than or equal to a, and less than or equal to b.
  5. Change the Output dataset name to one that suits your project.
  6. Click Compute, then close the Data Set Toolbox.

Make the new truncated dataset active in the Project Explorer, and note that the new minimum water depth is zero.

Example of truncated values in an SRH-2D project

Another way to get rid of negative water depths is to use an unstructured grid (UGrid). Ugrids use the same cell centered calculations that SRH-2D does, so you won't run into the same issues with how the data is interpolated. If you have already created your simulation on a mesh, you can follow these steps to convert to a UGrid:

  1. In the Project Explorer, right-click the desired mesh and select Convert | Mesh → Ugrid.
  2. If desired, change the Output grid name to something that suits your project.
  3. Remove the mesh from the simulation by right-clicking on the mesh name under the SRH-2D Simulations folder and selecting Remove.
  4. Drag the newly converted UGrid under Sim in the SRH-2D Simulations folder.
  5. Run the simulation again.

SRH has now recalculated the data with the UGrid with only cell-centered interpolation, which should remove any unintended negative water depth calculations.

Go to SMS and try out these ways to eliminate negative water depth today!

Blog tags: 

Filling Missing Raster Data

Do you have a raster that has holes in it? The Fill Nodata can fix small holes in raster data. Available in GMS, SMS, and WMS. In this article, we will explore the ways that the Fill Nodata tool can be used in WMS.

The Fill Nodata tool fills in small areas or gaps in a raster where no elevation data exists. It is located in the Rasters/Fill Nodata section of the Toolbox. The tool will interpolate an elevation to raster cells that are classified as "NODATA". Then the tool will create a new raster in the project that has the fillable no data areas filled.

Example of the File Nodata tool

These holes in the raster can occur for a number of reasons, one of the most common being that the data is incomplete. WMS is flexible enough that it can use a raster with small amounts of missing data for most simulations. However, it is recommended that you have data that is as complete as possible to ensure the generated model is as accurate. Therefore using the Fill Nodata tool can help ensure the accuracy of your model.

The Fill Nodata tool has a few input parameters to keep in mind. The input raster is the most important parameter. This needs to be a raster that has been imported into the project. The maximum distance to interpolate determines how far out WMS will look to fill data. It will use pixel units to do this. The number of 3x3 average filter smoothing iterations to run determines how many smoothing interactions will be run after the interpolation has been calculated. Additional interactions can help in improving the fill data.

Keep in mind that the tool was not intended to create data for large regions of missing data cells, especially regions on the border of the raster. If you have a large area of missing data, it would be best to use other processes to fill in the missing data, such as downloading the missing data and merging it with your raster.

The Fill Nodata tool is one of thetools provided in WMS to let you modify and edit raster data. Try out the Fill Nodata tool in WMS today!

Blog tags: 

Converting a 2D Mesh to a CAD Surface

Using CAD files can be a useful way to transfer project data between different modeling software that may not support all of the same file types. The Surface-water Modeling System (SMS) supports the conversion of terrain in the form of scatter surfaces and mesh surfaces to and from CAD data for easy transfer between systems that utilize CAD data.

To save a terrain from SMS as a CAD surface file:

  1. Deselect everything in the Project Explorer that doesn't contain the terrain data you want to work with. Depending on the amount of data currently in the Project Explorer, the simplest way to achieve this may be to right-click on an empty section of the Project Explorer and select "Uncheck All".
  2. Reselect the terrain data in the Project Explorer.
  3. Right-click in any empty space in the Project Explorer and select "Save as CAD". A save window will pop up and you'll be able to name the CAD surface file and choose where it will save outside of SMS.

The CAD surface data will then also appear in the Project Explorer. Once you assign a name to the file, you should be able to import it into your CAD software and make modifications. This file set will contain all the necessary surface data, including elevation, node, and element information.

Using CAD Faces to 2D Scatter Triangles

When importing CAD surface data into SMS, you'll need to convert it into a form that SMS can recognize so you can make changes and use the information stored in the file. To convert the data back into a form you can use within SMS, you just need to right-click on the CAD data under the CAD Data file folder in the project explorer. Then, select the "Convert → CAD Faces → 2D Scatter Triangles" command.

Head over to SMS and see how using CAD data can benefit your project today!

Blog tags: 

Working with ADCIRC Levees in SMS

As a oceanic modeler working with hydrodynamic modeling, you may have an ADCIRC levee structure in your project that you need to check or fix. Fortunately, SMS provides a couple of tools that can assist you with this task. These tools are part of the SMS Toolbox and allow you to test and verify that levees are working properly. In this article, we'll take a closer look at these tools and how they can be used to enhance your surface-water projects.

To access the ADCIRC levee tools, you can open the Toolbox and expand the ADCIRC folder. The first tool available is called Fix Levee Crest Elevations. This tool checks the ADCIRC boundary conditions coverage that contains the levee arcs. It compares the Z crest attributes against a set of elevation lines, which are known as check lines. The tool will perform a check on any selected levee arc or all levee arcs if none of them have been selected previously. If the elevation values are outside of the check lines, the tool will adjust them to fix the values.

Another tool in the toolbox is the Check/Fix Levee Ground Elevations. This tool checks the elevations of an ADCIRC domain based on the crest elevations defined in an ADCIRC boundary conditions coverage. If necessary, the tool will lower the elevations of a domain based on the elevations defined in the boundary condition coverage. This tool also creates a new dataset that can be mapped as an elevation for the 2D mesh if desired.

Example of the Check/Fix Levee Ground Elevations tool

Both of these tools check the validity of the levee. If the levee does not line up with a hole in the mesh, the tool will determine it to be invalid. If the tool determines the levee to be valid, it will run, and the output datasets will be loaded onto the input domain mesh in SMS.

The ADCIRC levee tools are just some of the tools available in the SMS Toolbox. Additional tools will be added in the future to enhance the capabilities of the toolbox. By using the Toolbox for your surface-water projects in SMS, you can easily test and verify the effectiveness of levees and ensure that they are functioning as they should be.

In conclusion, if you need to check or fix an ADCIRC levee structure in your project, SMS provides helpful tools in its toolbox to assist you. These tools, such as Fix Levee Crest Elevations and Check/Fix Levee Ground Elevations, allow you to test and verify the effectiveness of levees, ensuring that they function correctly. So, try out the SMS toolbox today for your surface-water projects, and make your work easier!

Blog tags: 

Pages