• InfoWorks WS Pro

Setting up the Multi Solute Water Quality object

Set up an MSQ object.


Tutorial resources

These downloadable resources will be used to complete this tutorial:

iwsp2023M19U02_Sttng_MSQ_Obj.zip

Step-by-step guide

Multi Solute Water Quality (MSQ) allows you to model several interacting chemicals in the water system. This exercise models Contaminant A and Contaminant B, which then react to produce Contaminant C within the distribution network. The set of equations to implement is already available, and the necessary research on modelling complex interactions between solutes is done.

First, create a new solute data group object:

  1. From the Model Group, right-click MSQ Model.
  2. Select New > Solute Data Group.
  3. Click OK.
  4. Right-click the new Solute Data Group.
  5. Select New > Solute Data.
  6. In the popup, enter the name “MSQ Example”.
  7. Click OK.
  8. In the Model Group, double-click the MSQ Example solute object to open it.

The InfoWorks WS Pro interface, Model Group, with the newly created MSQ Example solute object selected and called out.

  1. In the bottom left of the Solute Data dialog box, now renamed “MSQ Example”, deselect Enable Basic.
  2. Select Enable MSQ to make the MSQ tabs active.

In the MSQ Example dialog box, Basic Water Quality tab, Enable Basic is deselected and Enable MSQ is selected.

  1. Click the MSQ Solutes tab.
  2. In the first row, set the WQ Solute ID as A.

Solute IDs are used in property sheets and in the results, and must be unique within this grid.

  1. In the same row, set the WQ Solute Description as A.
  2. In the second row, set the WQ Solute ID as B.
  3. Set WQ Solute Description as B.
  4. Set the third WQ Solute ID as C.
  5. Set WQ Solute Description as C.
  6. For all three rows, from the Solute Type drop-down, select Bulk (Dissolved).

This specifies that the solute is present in the bulk liquid, rather than on the pipe walls.

The MSQ Example dialog box, MSQ Solutes tab, with Bulk (Dissolved) selected in the Solute Type column for solutes A, B and C.

  1. For all three rows, leave the Initial Concentration for Unset Links and Nodes set to zero.
  2. Select the MSQ Constants tab.

Optional constants IDs can be defined to make equations easier to read. The constant IDs are replaced by the associated numerical values when the engine acts upon the equations.

  1. In the first row, specify the WQ Constant ID as Mass A.
  2. Set the WQ Constant Description as Molecular Mass A.
  3. Set the WQ Constant Value as 1.
  4. In the second row, set the WQ Constant ID as Mass B.
  5. Set the WQ Constant Description as Molecular Mass B.
  6. Set the WQ Constant Value as 1.
  7. In the third row, specify the WQ Constant ID as Mass C.
  8. Set the WQ Constant Description as Molecular Mass C.
  9. Set the WQ Constant Value as 2.

In the MSQ Example dialog box, MSQ Constants tab, three constant IDs, descriptions, and values are entered in the table.

  1. Select the MSQ Variables tab, which defines the variable IDs.
  2. In a text editor, open the MSQ_Variable.txt file for this exercise.
  3. Copy the script provided.
  4. In the MSQ Example dialog box, on the MSQ Variables tab, paste the script into the text box.

In the MSQ Example dialog box, the MSQ Variables tab with the script from MSQ_Variable.txt copied and pasted into the text box.

  1. Select the MSQ Reservoir Equations tab, which defines how solutes change over time within reservoirs.
  2. Copy and paste the script provided in the MSQ_Reservoir_Equations.txt file.
  3. Select the MSQ Pipe Equations tab, which defines how solutes change over time in pipes.
  4. Copy and paste the script provided in the MSQ_Pipe_Equations.txt file.
  5. Click Test MSQ to ensure that there are no errors.
  6. Click Save.

Now that the MSQ model has been set up, the next step is to dose the network with the contaminants.