A java implementation of the trento_p program (written by Riccardo Rigon and David Tamanini in c).

The aim of this class is to project and verify sewer pipes (not under pressure). This class is designed to work in two modality:

  1. Project, which calculate the pipes diameter, and depth, of a point network.
  2. Verify, which calculate the discharge of a pipes network.

For more details about the computational method see trento_p manual

Parameters

The model needs several parameter, the necessary parameters are:

  1. pAccuracy,
  2. pTest, which indicate if the program runs in verify or project mode.
And also, only for the project mode:
  1. pA
  2. pN
  3. pTau
  4. pAlign
The other parameters can be not set because they have a default value.

Inputs

As input the module needs a FeatureCollection,inPipesFC, with LineString as geometry, and with several fields that characterize the pipe.

Usually The input network is obtained from a shp file. It's necessary that the geometries of the shape are LineString and each line (which is a pipe) must have the following fields:

  1. ID, is the identifier name of the pipe .
  2. Drain Area, which is the amount of area which drain in this pipe and is in ha = 10^{-2} km^2 .
  3. initial Elevation of the terrain (at the first extreme), is in meter over the see level.
  4. Final Elevation of the terrain(at the second extreme), is in meter over the see level.
  5. The Runoff coefficient.
  6. The average residence time,per unit area.
  7. Ks, Gauckler-Strickler coefficient.
  8. Minimum pipe slope (%).
  9. Pipe section type: 1=circular, 2=rectangular, 3=trapezoidal.
  10. Average state slope computed as the weighted mean of the state elevation; the weights are the areas at the same height within the state.
  11. Diameter to verify (in verify mode).
  12. Slope to verify (in verify mode).

All of this value are caractherized a pipe so are stored in a Pipe object.

If the mode is project there is also the inDiameters array, which contains a set of commercial pipes diameter. If the mode is verify there is another input fields: inRain, which contains the rain data.

Outputs

If the mode is project the output is a network stored in a FeatureCollection.

The geometries are LineString and are obtained from inPipesFC. In each feature are stored from a Pipe :

  1. ID, is the identifier name of the pipe.
  2. ID pipe where drain, which is the ID of the pipe where the current pipe drains.
  3. Drain Area, which is the amount of area which drain in this pipe and is in ha = 10^{-2} km^2.
  4. initial Elevation of the terrain (at the first extreme), is in meter over the see level.
  5. Final Elevation of the terrain(at the second extreme), is in meter over the see level.
  6. The Runoff coefficient.
  7. The average residence time,per unit area.
  8. Ks, Gauckler-Strickler coefficient.
  9. Minimum pipe slope (%).
  10. Pipe section type: 1=circular, 2=rectangular, 3=trapezoidal.
  11. Average state slope computed as the weighted mean of the state elevation; the weights are the areas at the same height within the state.
  12. Diameter to verify (in verify mode).
  13. Slope to verify (in verify mode),.
  14. Discharge in Q[l/s].
  15. Udometric coefficient [l/s ha].
  16. Residence time [min].
  17. tP[min].
  18. Time at the maximum discharge [min].
  19. Mean of the speed in the pipe,[m/s] .
  20. Pipe slope,{field of the property.
  21. Diameter in cm,{field of the property.
  22. Empthy degree,{field of the property.
  23. Initial pipe depth, is the depth of the dig.
  24. Final pipe depth, is the depth of the dig.
  25. Initial free surface depth.
  26. Final free surface depth.
  27. The area of the sub basin with the current pipe as outlet.
  28. The tiotal length of thr subnetwork.
  29. The mean length of the sub network pipes.
  30. The variance of the subnetwork pipes.

  1. Project: A fetureCollection ({@link #outPipesFC}) with the net (as in the {@link #inPipesFC}) and with the result as a field of features.
  2. Verify: A matrix which contains the discharg at each time for each pipe.