Extra processing flows - Extra Calculations
The parameter calculation flow is used to calculate and assign value to those read-only properties of the device
An example, in a protection ditch, we may be interested in the value of the flow at the end of the device.
In such a situation, bear in mind that the value can only be accessed after the network has been calculated.
To obtain the value of the final flow, we have to search the hydraulic calculation data and collect this information.
To obtain this value follow this example:
- Add a IF sub flow to the main flow and use the < property strong>CALCULATE:
CALCULATE - is a Required Property that indicates that the modeler must process something related to hydraulic dimensioning, without modeling some geometry
- Add a TryCatch, to prevent calculation errors and then create the calculation logic:
- The logic:
- HidraulicSections - use the tool Get Property
- vazao (Final Flow) - use the tool Define Variable
Explaining:
- ListHydraulicSectionChannel - list of hydraulic sections
- Last - gets the last item in the list
- HCalcIni - Hydraulic calculations at the beginning of the plan (or dimensioning)
- QEsc - Actual flow flowing in the section (see hydraulic sections)
- Final Flow (Set the value of the "Final Flow" property) - use the tool Set Parameter
Where the final flow rate is a defined property:
- The result: