SMS

Performing a Silent Install of XMS

This blog post provides information on older password and hardware lock configurations.
Information on new local and flex codes may be found here.

Are you an IT administrator needing to perform a silent install of GMS, SMS, or WMS in a classroom or office? Some classrooms and offices have multiple students or employees changing machines regularly. Non-administrator users are often unable to change the licensing password, lock, or server when these license settings are stored in the global area of the registry. Because of this, we changed the license settings so they are now stored in the user area of the registry. This means that each user account requires this to be setup.

This silent install (or quiet install) workaround requires each user to have the rights to modify the registry. If registry access is restricted, a network administrator can do this by opening the Group Policy Management Editor and creating a startup script that automatically runs the batch file whenever the computer is restarted.

Note: Editing the Registry in Windows is a very advanced administration step. Please always create a backup of the Registry before making changes.

It can be a burden have to manually update the network lock server address in HKEY_CURRENT_USER for each user on each computer. The silent install process is simplified by creating a Windows Registry file that contains the license information and a batch file that can be executed to insert the registry information and launch WMS. The batch file automatically updates the registry for the user and then opens the WMS application. This is the safest way to edit the registry key, as well. The batch file can then be placed on each computer that needs to be updated, and the individual users can execute it as needed.

This workaround uses WMS as an example. This information also applies to GMS and SMS. You can see an example of a registry file in step 1 and the batch file in step 2, below.

  1. Create a file, “Netenble.001.reg”, as follows, replacing "license" with the name or IP address of the network lock server. For example, if the network lock server was at 127.0.0.27, you would use “127.0.0.27”:
    Windows Registry Editor Version 5.00M
    [HKEY_CURRENT_USER\Software\EMRL\WMS]
    "Netenble.001"="license"

    Note: This information was created using Windows 7. Because different Windows versions can have different REG file formats, we recommend you install WMS on one machine, register it to the correct network lock server, then export the [HKEY_CURRENT_USER\Software\EMRL\WMS] registry key. Open the registry file in the text editor and remove every line except those similar to those shown in the image above, and save the file as “Netenble.001.reg”.
  2. Create a file, “wms11.bat”, that will update the registry and start WMS: reg import Netenble.001.reg
    wms.exe
  3. Place these two files in the WMS folder in the image that will be distributed to the affected computers. For example, for the 64-bit version of WMS 11.0, the default location for the folder is “C:\Program Files\WMS 11.0 64-bit\”.
  4. Create a desktop shortcut to the batch file for the convenience of the user. If doing this via a startup script in the Group Policy Management Editor, this step can be skipped.

This silent install workaround can save you significant time as a network administrator. Try it out today!

Creating SRH-2D Pressure Zones with Overtopping

Do you have a location in your SRH-2D project for a box culvert or pressure zone with overtopping?

It is a common feature added to many SRH-2D models. Depending on how the pressure zone is created in SMS, this can be a tricky process for SRH-2D to handle. Here are some steps and tips for creating this feature successfully in SMS.

1 Use Quadrilateral Elements

Create quadrilateral elements between the boundaries of the pressure zone. Using quadrilateral elements tends to increase the stability and reliability of the SRH-2D model run. Quadrilateral elements can be created in one of two ways.

The first is to create the quadrilateral elements when creating the 2D mesh. Create a polygon for the area between and around the pressure zone. Assign this polygon with the Patch mesh type in the 2D Mesh Polygon Properties dialog.

The second method is to create the quadrilateral elements directly in the mesh using the Split/Merge tool and the Switch Element tool. This can be time-consuming, so it is only recommended for small adjustments.

2 Create Voids

Create voids in the mesh on either side of the pressure zone. There are two options for creating these voids, but one option seems to work better.

The first option, and the more stable one, is to create the voids on either side of the pressure zone when generating the mesh. Create the voids as polygons and assign them the None mesh type.

The second option is to generate the mesh then use the Select Elements tool to select and delete the elements where the voids should be. Using this method requires renumbering the mesh nodes. There is a risk that you will not be able to delete all of the nodes related to the elements which can make your mesh unusable to SRH-2D.

3 Assign Boundary Conditions

Two arcs are needed to define the pressure zone. Each arc should be created on an SRH-2D boundary condition coverage. When creating the arcs, make certain all 2D mesh elements between the arcs are quadrilateral elements. Also, it is advisable to have at least one row of quadrilateral elements just past the downstream arc.

Once the arcs have been drawn, select both arcs and open the SRH-2D Linear BC dialog. Set both arcs to the Pressure type and turn on the Overtopping option.

Both the boundary condition coverage and the 2D mesh can be added to your SRH-2D simulation to have a pressure zone with overtopping included in the results.

Try out adding a pressure zone in the community edition of SMS today!

Blog tags: 

Converting Units

Seeing which units are being used in a project or for a particular object within the project is fairly easy. Converting the units from, for example, U.S. feet to meters, can introduce problems into a project if you do not do it in the correct way.

Reproject

Reprojecting the data involves moving the data from one coordinate system to another. So if your data is in a UTM coordinate system in meters and the rest of your project is in a State Plane projection that uses U.S. survey feet, reprojecting can change the data to match. Conceptually, the data will remain in the same location, but the data will be adjusted to the new units.

To reproject a dataset:

  1. Right-click on the dataset in the Project Explorer and select Reproject.
  2. In the Reproject dialog, the current projection is shown on the left. On the right side, set the new projection and units.

When converting units through reprojection, keep in mind that Z values (elevations) don’t always convert correctly. Round off errors sometimes occur when reprojecting data. In general, reproject does well in changing the X and Y units. The Z value, if it has been set as the bathymetry, typically also converts units well using the reproject option. Other datasets often do not convert between units using the reproject method.

When converting from rasters to scatter sets, the elevation is usually recognized and converted correctly.

Dataset Calculator

Datasets units can be converted using the Dataset Calculator. This is often necessary when the data has been reprojected, but not all of the datasets can be converted using that method. For example, a velocity dataset or conductivity data.

To convert a dataset with the Dataset Calculator:

  1. Select the desired dataset in the Project Explorer.
  2. Select the Data Calculator macro, or the Data Calculator command or the Dataset Toolbox command in the Data menu.
  3. Select the dataset to convert, then multiple or divide the dataset by the conversion value.

There are a few numbers it is useful to have when doing these conversions:

  • 0.304800609601 meters is equal to one U.S. Survey foot
  • 3.28083333333 U.S. Survey feet are equal to one meter
  • 0.3048 meters is equal to one International foot
  • 3.28083989501 International feet are equal to one meter

Note that there are many datasets that will not work with the Data Calculator.

In the end, make certain all the data being used in your model is in the correct units. Having mismatched units will typically create model errors and generate inaccurate results.

Try reprojecting data or using the Data Calculator to convert units in GMS, SMS, or WMS today!
Blog tags: 

Converting an RMA2 Project to SRH-2D

Do you have an older RMA2 or FESWMS project that you want to convert to an SRH-2D project in SMS? Older model lack the support and many of the features of newer models. In some cases, older models will no longer run with newer operating systems. So converting older projects over helps ensure the accuracy and stability of your results.

Converting projects from an older model is not automatic. Typically, portions of the model will need to be rebuilt. Here is an example of how to convert an older RMA2 model to an SRH-2D model.

Start with creating the SRH-2D mesh.

  1. Load the RMA2 project into the current version of SMS.
  2. Right-click on the RMA2 mesh, and select Duplicate. The duplicated mesh will be used for SRH-2D. The existing RMA2 mesh will be needed, so do not delete it.
  3. Select the duplicated mesh to make it active.
  4. Select the Data | Switch Current Model menu command.
  5. In the Select Current Model dialog, select the Generic Mesh option. The is the mesh type that SRH-2D supports. Be careful to not confuse the Generic Mesh option with the Generic Model option.
  6. Click Yes when warned that there may be data loss.
  7. Click Yes when warned that you are changing from a quadratic mesh to a linear mesh.

Next, you’ll need to define the boundary conditions.

  1. Select the RMA2 mesh to make it active.
  2. Select the Data | Mesh → Map menu command.
  3. In the Mesh → Map dialog, select the Nodestrings → Arc options.
  4. Select the Create New Coverage button.
  5. In the New Coverage dialog, select SRH-2D Boundary Conditions for the Coverage Type.
  6. When done, a new coverage will appear in the Project Explorer with feature arcs in the location of the nodestrings from the RMA2 project.
  7. Select each feature arc in turn and set boundary condition parameters that approximate those in the RMA2 model. Review the RMA2 boundary conditions if needed. Additional boundary conditions can also be added if desired.

You need to define the materials next.

  1. Select the RMA2 mesh to make it active.
  2. Select the Data | Mesh → Map menu command.
  3. In the Mesh → Map dialog, select the Material Regions → Polygons options.
  4. Select the Create New Coverage button.
  5. In the New Coverage dialog, select SRH-2D Materials for the Coverage Type.
  6. When done, a new coverage will appear the Project Explorer with polygons on the assigned materials in the RMA2 project.
  7. Review the material properties and the assigned materials for each polygon to make certain they converted correctly.

Finally, build the SRH-2D model simulation.

  1. Right-click in an empty space in the Project Explorer and select New Simulation | SRH-2D
  2. Link the SRH-2D mesh, boundary condition coverage, and material coverage to the new simulation.
  3. Right-click on the new simulation and select Model Control.
  4. Set the SRH-2D model control to approximate the conditions in the RMA2 model. Review the RMA2 model control if needed.

At this point, the RMA2 mesh could be removed and the SRH-2D model should be ready to run, though some tweaking may be necessary. Refer to the SRH-2D Troubleshooting Guide if needed.

Converting other models, such as FESWMS, follow a similar process to that described above. Try out this conversion process with your older projects today in SMS.

Blog tags: 

Pages