SlideShare a Scribd company logo
1 of 17
Download to read offline
powered by
EnginSoft SpA - Via della Stazione, 27 - 38123 Mattarello di Trento | P.I. e C.F. IT00599320223
A HYDRAULIC SCILAB TOOLBOX
FOR WATER DISTRIBUTION SYSTEMS
Authors: M. Venturin
Keywords: Hydraulic system; Scilab; Xcos; Xcos + Modelica
Abstract: The purpose of this paper is to show the possibilities offered by
Scilab/Xcos to model hydraulic time-dependent systems. In
particular, we develop a new Xcos module combined with the use of
Modelica language to show how water distribution systems can be
modeled and studied. In this paper we construct a reduced library
composed by few elements: reservoirs, pipes and nodes. The library
can be easily extended to obtain a more complete toolbox. The
developed library is tested on a simple well-known hydraulic circuit.
Contacts info@openeering.com
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0
Unported License.
A hydraulic system toolbox
www.openeering.com page 2/17
1. Introduction
Studying water distribution systems (WDS) is very important for a correct supply of water. These
studies can guarantee an adequate water pressure at each location of frequent use and can
reduce the total costs of water distribution systems.
Studying of water distribution systems requires a simulation tool that can be based on the following
(at least) elements that are the basic building blocks of any network:
1. Pipes;
2. Node or junctions;
3. Storage tanks and reservoirs.
Moreover, the developed library can be straightforward extended with other elements like pumps
and valves that are typically found in a hydraulic network.
Solving the network problem consists of finding the flow of water in each pipe and pressure level at
each node. The required input data are:
1. The network layout;
2. The governing equations which describe the physics of the system;
3. The consumer’s demand;
Here, in this work, we consider only the numerical modeling of the hydraulic part. The library is
developed in Scilab/Xcos with the use of Modelica features. For more real-case applications the
interested reader can contact the Openeering team.
Typically, the WDS problem is often associated to a multiobjective optimization problem where we
want to maximize the minimum of the pressure level at nodes and minimize the total cost of the
entire network. For optimizing the network we need to couple the hydraulics simulator with an
appropriate multiobjective optimization tool. In Scilab, this can be done in a unified language since
the hydraulic part can be modeled in Xcos/Modelica while the optimization part can be done using
the available multiobjective optimization toolbox.
The paper is organized as follows. First we presented the basic modeling strategy, then the
constitutive laws of the network elements and finally we presented an application of the developed
library to simulate a simple hydraulic circuit. Comparison results are done with respect to the
Epanet [1] software.
A hydraulic system toolbox
www.openeering.com page 3/17
2. The problem description
In this tutorial we analyze the distribution network shown in Figure 1. It consists of 8 pipes, 6
junction nodes at different levels and one reservoir.
Figure 1: Network layout.
This model can be used as an example of water distribution systems where it is possible to detect
negative value for the pressure. These negative values indicate situations where there is a deficit
of pressure and this should be avoid in real situations. Finding the best combination of pipes can
be easily done with our model if we couple it with an optimization algorithm. An example of this
process is done in [2].
Figure 2: Actual piezometric line and pressure levels
A hydraulic system toolbox
www.openeering.com page 4/17
The characteristics of the nodes are shown in Table 1 where we report elevation and customer’s
demand at each node.
Table 1: Nodes data
Node Demand (m^3/h) Elevation (ft)
1 --- 210
2 100 150
3 100 160
4 120 155
5 270 150
6 330 165
7 200 160
Pipes properties are reported in Table 2.
Table 2: Pipes data
Pipe Length (ft) Diameter (in)
1 1000 18
2 1000 10
3 1000 16
4 1000 4
5 1000 16
6 1000 10
7 1000 10
8 1000 1
A hydraulic system toolbox
www.openeering.com page 5/17
3. Library modeling
In this section we describe the basic library modeling approach. The Modelica developed package
is named “WDS” (Water Distribution System) and it is contained in the file “WDS.mo”. In this file we
develop the library in the Modelica language 2.0 where the balance between equations and
variables is not required for any local element.
A version of the file, using Modelica language 3.0, can be found in the file “WDS_new.mo” and it is
described in Appendix A.
The implementation of the toolbox is done in Scilab/Xcos through the use Modelica features. The
first step is to identify through and across system variables and the use of the “passive sign
convention1
” for all elements.
For our problem we choose:
the volumetric flow rate [GPM] as the through variable;
the total head [ft] as an across variable.
the elevation [ft] as an across variable.
Hence, our modeling is characterized by one through variable and two across variables.
This is implemented in the connector class named “Pin”:
connector Pin "Inlet port"
Real H "Total head [ft]";
flow Real q "Volumetric flow [GPM]";
Real z "Elevation [ft]";
end Pin;
The previous class implements the basic conservation laws for a two pins element:
Flux of the element = Flux element at the input node
= - Flux element at the output node
and
Head drop = Head at the input node
- Head at the output node
and
Delta Elevation = Elevation at the input node
– Elevation at the output node
1 In the “user convention” the through variable enters the positive terminal of a component (in Scilab is denoted by the black square).
A hydraulic system toolbox
www.openeering.com page 6/17
4. Element constitutive laws and properties
In this section we summarize the constitutive laws and properties that have been used to develop
the toolbox.
4.1. Some constants
Here we report some constants that are used in the development of the constitutive laws of the
elements available in the library. Here we list the constants we use:
is the number;
is the minimum time used in the definition of the junction element;
is the specific gravity or relative density that is the ratio between the substance density
and the density of water at 4° [C];
is the conversion pressure factor;
is the unit conversion factor used in the hydraulic pipe element;
is the conversion of 1 [ft3
/s] to 1 [US gallon per minute];
.is the minimum value used in the modeling of the hydraulic resistance element.
The library constants are defined as follows:
package Constants "Simulation library constants"
constant Real pi = 3.14159265358979323846 "pi";
constant Real tmin = 1 "Minimum simulation time for linearization [s]";
constant Real SG = 1 "Specific gravity";
constant Real pheadconst = 2.3041475 "Unit conversion";
constant Real k = 1.318 "Unit conversion";
constant Real Qconv = 448.8312 "Unit conversion";
constant Real Qmin = 1e-8 "Minimum flow [ft^3/s]";
end Constants;
4.2. Reservoir elements
The equations of a generic reservoir element fix the total head and the elevation given the user
input specification , i.e.
The total head equation: [ft];
The elevation equation: [ft];
The Modelica implementation is done in the class “Reservoir”:
model Reservoir
Pin Outlet;
parameter Real Zval = 210. "Elevation [ft]";
equation
Outlet.H = Zval "Total head";
Outlet.z = Zval "Elevation";
end Reservoir;
A hydraulic system toolbox
www.openeering.com page 7/17
4.3. Junction elements
A junction of a node is an element where it is possible to specify elevation and customer’s
demand .
The element is composed of the following two equations:
The elevation equation that fixes the elevation [ft];
The flux equation that fixes the customer’s demand [GPM].
In our implementation the load (customer’s demand) is modeled in a time dependent manner such
that the customer’s demand is reached after the time . There is a transition zone in which the
initial load is zero; this guarantees that at the initial time everything is in equilibrium.
The level pressure is obtained from the equation (conversion from head feet to pressure in psi):
where:
is the pressure level [psi];
is the conversion factor;
is the specific gravity or relative density [-];
is the node head [ft]
is the node element total head [ft];
is the node elevation [ft];
The Modelica implementation is done in the class “Junction”:
model Junction
Pin Inlet;
parameter Real Zval = 150. "Elevation [ft]";
parameter Real Qval = 100. "Base Demand [GPM]";
Real Pressure "Pressure [psi]";
Real Qflux "Current time base demand [GPM]";
protected
constant Real tmin = WDS.Constants.tmin;
constant Real SG = WDS.Constants.SG;
constant Real pheadconst = WDS.Constants.pheadconst;
equation
Qflux = if time<tmin then (Qval/tmin)*time else Qval "Current flux";
Inlet.q = Qflux "Flux at the inlet";
Inlet.z = Zval "Elevation";
Pressure = (Inlet.H - Zval) * SG / pheadconst "Pressure head";
end Junction;
A hydraulic system toolbox
www.openeering.com page 8/17
4.4. Hydraulic pipe
Hydraulic resistor in pipe is modeled using the Hazen-William friction loss equation:
where:
is the discharge [ft3
/s];
is the energy slope [ft/ft];
is the hydraulic radius [ft];
is the fluid velocity [ft/s];
is the hydraulic diameter [ft];
is the pipe length [ft];
is the energy head loss [ft];
is the H-W coefficient [-]
is the unit conversion factor.
This equation relates and . As a note, a linear version of the equation is used if the flow is
under a pre-fixed flow tolerance .
The Modelica implementation is done in the class “Pipe”:
model Pipe
Pin Inlet;
Pin Outlet;
parameter Real Lval = 1000. "Pipe length [ft]";
parameter Real Dval = 12. "Pipe diameter [in]";
parameter Real Cval = 130. "Hazen-Williams coefficient [-]";
Real q "Fluid through the element [GPM]";
Real Dh "Hydraulic diameter [ft]";
Real Rh "Hydraulic radius [ft]";
Real A "Area [ft^2]";
Real Qdisc "Discharge [ft^3/s]";
Real v "Velocity [ft/s]";
Real S "Energy slope [ft/ft]";
Real hf "Energy loss [ft]";
// - Linearize version due to numerical derivative problems
Real vmin "Minimum velocity [ft/s]";
Real Smin "Minimum energy slope [ft/ft]";
Real hfmin "Minimum energy loss [ft]";
protected
constant Real pi = WDS.Constants.pi;
constant Real k = WDS.Constants.k;
constant Real Qconv = WDS.Constants.Qconv;
constant Real Qmin = WDS.Constants.Qmin;
equation
Inlet.q = q "Flux inlet";
Outlet.q = -q "Flux outlet";
Dh = Dval / 12. "Hydraulic diameter [ft]";
A hydraulic system toolbox
www.openeering.com page 9/17
Rh = Dh / 4. "Hydraulic radius [ft]";
A = pi * Dh^2 / 4. "Area [ft^2]";
Qdisc = q / Qconv "Discharge [ft^3/s]";
v = abs(Qdisc) / A "Velocity [ft^3/s]";
S = (v/(k*Cval*Rh^0.63))^(1./0.54) "Energy slope [ft/ft]";
hf = sign(Qdisc) * S * Lval "Energy loss [ft]";
// Evaluate linearize version
vmin = Qmin / A;
Smin = (vmin/(k*Cval*Rh^0.63))^(1./0.54);
hfmin = Smin * Lval;
// Inlet.H - Outlet.H = hf "Pressure head"; // Not a good choice in
numerical analysis
Inlet.H - Outlet.H = if abs(Qdisc) < Qmin then hfmin*(Qdisc/Qmin) else
hf "Pressure head";
end Pipe;
A hydraulic system toolbox
www.openeering.com page 10/17
5. Example
The Xcos scheme of the problem is reported in Figure 3. See the Appendix B for the element
specifications.
Figure 3: The simulation network.
In Figure 4 we plot the pressure level in each node.
Figure 4: Simulation results
The results are compared with those obtained using Epanet [1], see Appendix D and E. From the
tables reported in the Appendixes the results are very close.
A hydraulic system toolbox
www.openeering.com page 11/17
6. Conclusion
Here, we have developed a Scilab/Xcos toolbox for hydraulic simulation. The toolbox will be
extended in the future by providing further elements. For more real-case applications the interested
reader can contact the Openeering team.
7. References
[1] Epanet software and user manual, http://www.epa.gov/nrmrl/wswrd/dw/epanet.html.
[2] Matteo Nicolini: A Two-Level Evolutionary Approach to Multi-criterion Optimization of Water
Supply Systems. Evolutionary Multi-Criterion Optimization, Third International Conference, EMO
2005, Guanajuato, Mexico, March 9-11, 2005, Proceedings: 736-751
A hydraulic system toolbox
www.openeering.com page 12/17
Appendix A – Library in new Modelica style
The connector
connector Pin "Inlet port"
Real H "Total head [ft]";
flow Real q "Volumetric flow [GPM]";
Real z "Elevation [ft]";
end Pin;
is not a valid connector since the number of flow variables and the number of non-flow variables do
not correspond. In new Modelica style it is required that the number of flow variables in a connector
is equal to the number of non-causal, non-flow variables (variables without prefix flow, input,
output, stream, parameter and constant) in order to guarantee that the model has balanced
equations.
Here, we propose a simple solution by introducing a support flow variable (dummy). The definition
of the new connector becomes:
connector Pin "Inlet port"
Real H "Total head [ft]";
flow Real q "Volumetric flow [GPM]";
Real z "Elevation [ft]";
flow Real dummy;
end Pin;
Then, it is only necessary to modify the element “Pipe” by introducing the following equations:
// dummy part
Inlet.dummy = 0 "Flux inlet";
Outlet.dummy = 0 "Flux outlet";
A more correct approach should be based on stream and input/output connectors but this is
beyond the scope of this tutorial.
A hydraulic system toolbox
www.openeering.com page 13/17
Appendix B – Library description
In the following table we report all the developed elements of our water distribution system (WDS)
library.
Element Required parameters Xcos element
Junction
Pipe
Reservoir
A hydraulic system toolbox
www.openeering.com page 14/17
Appendix C – Software installation and testing
The “hydraulic system toolbox” is available to registered users only. For downloading the library
visit:
http://www.openeering.com/registered_users_area
Registration is free and automatic.
To load the library into the Xcos environment type
--> exec loader.sce
from the main directory. The new set of palette is loaded in your Xcos system.
Figure 5: The Aeraulic library in Xcos
Open the Xcos model file " Example_HydraulicNet.xcos" and run it. Remember that to run an
Xcos model with Modelica blocks, a C compiler should be installed in your system. Check if a
compiler is available in your system with the Scilab command "haveacompiler()".
Then analysis of the data is done using the function "Example_ProcessData.sce", the plot can
be generated using the function "Example_PlotData.sce".
The directory “other” contains the Epanet example and the Modelica libraries used to produce this
article.
A hydraulic system toolbox
www.openeering.com page 15/17
Appendix D – Epanet results
In the following we report the results obtained using Epanet software [1].
Page 1 03/05/2012 15.17.54
**********************************************************************
* E P A N E T *
* Hydraulic and Water Quality *
* Analysis for Pipe Networks *
* Version 2.0 *
**********************************************************************
Input File: Example_HydraulicNet.net
Link - Node Table:
----------------------------------------------------------------------
Link Start End Length Diameter
ID Node Node ft in
----------------------------------------------------------------------
1 1 2 1000 18
2 2 3 1000 10
3 2 4 1000 16
4 4 5 1000 4
5 4 6 1000 16
6 6 7 1000 10
7 3 5 1000 10
8 7 5 1000 1
Node Results:
----------------------------------------------------------------------
Node Demand Head Pressure Quality
ID GPM ft psi
----------------------------------------------------------------------
2 100.00 209.57 25.81 0.00
3 100.00 208.74 21.12 0.00
4 120.00 209.26 23.51 0.00
5 270.00 208.32 25.27 0.00
6 330.00 209.06 19.09 0.00
7 200.00 208.75 21.12 0.00
1 -1120.00 210.00 0.00 0.00 Reservoir
A hydraulic system toolbox
www.openeering.com page 16/17
Link Results:
----------------------------------------------------------------------
Link Flow VelocityUnit Headloss Status
ID GPM fps ft/Kft
----------------------------------------------------------------------
1 1120.00 1.41 0.43 Open
2 336.88 1.38 0.82 Open
3 683.12 1.09 0.31 Open
4 32.56 0.83 0.94 Open
5 530.56 0.85 0.19 Open
6 200.56 0.82 0.31 Open
7 236.88 0.97 0.43 Open
8 0.56 0.23 0.43 Open
A hydraulic system toolbox
www.openeering.com page 17/17
Appendix E – Simulation results
Here, we report the simulation results obtained using our modeling approach.
------------------------------------------------------
Link Start End Length Diam. H-Z
ID node node Const.
------------------------------------------------------
1 1 2 1000 18 130
2 2 3 1000 10 130
3 2 4 1000 16 130
4 4 5 1000 4 130
5 4 6 1000 16 130
6 6 7 1000 10 130
7 3 5 1000 10 130
8 7 5 1000 1 130
------------------------------------------------------
-------------------------------------------
Link Flow Velocity Headloss
-------------------------------------------
1 1120.00000 1.41209 0.43422
2 336.87830 1.37614 0.82184
3 683.12160 1.09005 0.30847
4 32.56250 0.83136 0.94130
5 530.55910 0.84661 0.19317
6 200.55920 0.81928 0.31455
7 236.87840 0.96764 0.42811
8 0.55916 0.22842 0.43364
-------------------------------------------
-------------------------------------------------
NODE Demand Head pressure
-------------------------------------------------
1 -1120.00000 210.00000 0.00000
2 100.00000 209.56578 25.85155
3 100.00000 208.74394 21.15487
4 120.00000 209.25731 23.54767
5 270.00000 208.31601 25.30915
6 330.00000 209.06414 19.12383
7 200.00000 208.74965 21.15735
-------------------------------------------------

More Related Content

What's hot

Fuzzy Logic Controller
Fuzzy Logic ControllerFuzzy Logic Controller
Fuzzy Logic Controllervinayvickky
 
Lyapunov stability analysis
Lyapunov stability analysisLyapunov stability analysis
Lyapunov stability analysisVanshVarshney
 
Lecture 16 ME 176 7 Root Locus Technique
Lecture 16 ME 176 7 Root Locus TechniqueLecture 16 ME 176 7 Root Locus Technique
Lecture 16 ME 176 7 Root Locus TechniqueLeonides De Ocampo
 
Chapter 3 mathematical modeling
Chapter 3 mathematical modelingChapter 3 mathematical modeling
Chapter 3 mathematical modelingBin Biny Bino
 
Basics mathematical modeling
Basics mathematical modelingBasics mathematical modeling
Basics mathematical modelingcyndy
 
Modern Control - Lec 05 - Analysis and Design of Control Systems using Freque...
Modern Control - Lec 05 - Analysis and Design of Control Systems using Freque...Modern Control - Lec 05 - Analysis and Design of Control Systems using Freque...
Modern Control - Lec 05 - Analysis and Design of Control Systems using Freque...Amr E. Mohamed
 
Optimal control systems
Optimal control systemsOptimal control systems
Optimal control systemsmasmuhtadi
 
POWER SYSTEM SIMULATION - 2 LAB MANUAL (ELECTRICAL ENGINEERING - POWER SYSTEMS)
POWER SYSTEM SIMULATION - 2 LAB MANUAL (ELECTRICAL ENGINEERING - POWER SYSTEMS) POWER SYSTEM SIMULATION - 2 LAB MANUAL (ELECTRICAL ENGINEERING - POWER SYSTEMS)
POWER SYSTEM SIMULATION - 2 LAB MANUAL (ELECTRICAL ENGINEERING - POWER SYSTEMS) Mathankumar S
 
Conversion of transfer function to canonical state variable models
Conversion of transfer function to canonical state variable modelsConversion of transfer function to canonical state variable models
Conversion of transfer function to canonical state variable modelsJyoti Singh
 
CSI and vSI fed induction motor drives
CSI and vSI fed induction motor drivesCSI and vSI fed induction motor drives
CSI and vSI fed induction motor drivesraviarmugam
 
Cholesky method and Thomas
Cholesky method and ThomasCholesky method and Thomas
Cholesky method and Thomasjorgeduardooo
 
Presentation on DC-DC converter for EV
Presentation on DC-DC converter for EVPresentation on DC-DC converter for EV
Presentation on DC-DC converter for EVUdayaKumar120822
 
Introduction of control engineering
Introduction of control engineeringIntroduction of control engineering
Introduction of control engineeringAshvani Shukla
 
Power point presentation on Industrial Automation
Power point presentation on Industrial AutomationPower point presentation on Industrial Automation
Power point presentation on Industrial AutomationJaiPrakash337
 
Power Line Carrier Communication seminar
Power Line Carrier Communication seminarPower Line Carrier Communication seminar
Power Line Carrier Communication seminarAishwary Verma
 
State space analysis shortcut rules, control systems,
State space analysis shortcut rules, control systems, State space analysis shortcut rules, control systems,
State space analysis shortcut rules, control systems, Prajakta Pardeshi
 

What's hot (20)

Laplace transforms
Laplace transformsLaplace transforms
Laplace transforms
 
Fuzzy Logic Controller
Fuzzy Logic ControllerFuzzy Logic Controller
Fuzzy Logic Controller
 
Lyapunov stability analysis
Lyapunov stability analysisLyapunov stability analysis
Lyapunov stability analysis
 
Lecture 16 ME 176 7 Root Locus Technique
Lecture 16 ME 176 7 Root Locus TechniqueLecture 16 ME 176 7 Root Locus Technique
Lecture 16 ME 176 7 Root Locus Technique
 
Chapter 3 mathematical modeling
Chapter 3 mathematical modelingChapter 3 mathematical modeling
Chapter 3 mathematical modeling
 
Basics mathematical modeling
Basics mathematical modelingBasics mathematical modeling
Basics mathematical modeling
 
Laplace transform
Laplace transformLaplace transform
Laplace transform
 
Modern Control - Lec 05 - Analysis and Design of Control Systems using Freque...
Modern Control - Lec 05 - Analysis and Design of Control Systems using Freque...Modern Control - Lec 05 - Analysis and Design of Control Systems using Freque...
Modern Control - Lec 05 - Analysis and Design of Control Systems using Freque...
 
Optimal control systems
Optimal control systemsOptimal control systems
Optimal control systems
 
POWER SYSTEM SIMULATION - 2 LAB MANUAL (ELECTRICAL ENGINEERING - POWER SYSTEMS)
POWER SYSTEM SIMULATION - 2 LAB MANUAL (ELECTRICAL ENGINEERING - POWER SYSTEMS) POWER SYSTEM SIMULATION - 2 LAB MANUAL (ELECTRICAL ENGINEERING - POWER SYSTEMS)
POWER SYSTEM SIMULATION - 2 LAB MANUAL (ELECTRICAL ENGINEERING - POWER SYSTEMS)
 
Conversion of transfer function to canonical state variable models
Conversion of transfer function to canonical state variable modelsConversion of transfer function to canonical state variable models
Conversion of transfer function to canonical state variable models
 
CSI and vSI fed induction motor drives
CSI and vSI fed induction motor drivesCSI and vSI fed induction motor drives
CSI and vSI fed induction motor drives
 
Cholesky method and Thomas
Cholesky method and ThomasCholesky method and Thomas
Cholesky method and Thomas
 
Class 9 mathematical modeling of thermal systems
Class 9   mathematical modeling of thermal systemsClass 9   mathematical modeling of thermal systems
Class 9 mathematical modeling of thermal systems
 
Presentation on DC-DC converter for EV
Presentation on DC-DC converter for EVPresentation on DC-DC converter for EV
Presentation on DC-DC converter for EV
 
Introduction of control engineering
Introduction of control engineeringIntroduction of control engineering
Introduction of control engineering
 
circuit breakers
circuit breakerscircuit breakers
circuit breakers
 
Power point presentation on Industrial Automation
Power point presentation on Industrial AutomationPower point presentation on Industrial Automation
Power point presentation on Industrial Automation
 
Power Line Carrier Communication seminar
Power Line Carrier Communication seminarPower Line Carrier Communication seminar
Power Line Carrier Communication seminar
 
State space analysis shortcut rules, control systems,
State space analysis shortcut rules, control systems, State space analysis shortcut rules, control systems,
State space analysis shortcut rules, control systems,
 

Viewers also liked

Modeling an ODE: 3 different approaches - Part 3
Modeling an ODE: 3 different approaches - Part 3Modeling an ODE: 3 different approaches - Part 3
Modeling an ODE: 3 different approaches - Part 3Scilab
 
Customizing Xcos with new Blocks and Palette
Customizing Xcos with new Blocks and PaletteCustomizing Xcos with new Blocks and Palette
Customizing Xcos with new Blocks and PaletteScilab
 
Scilab is not naive
Scilab is not naiveScilab is not naive
Scilab is not naiveScilab
 
Modeling an ODE: 3 different approaches - Part 1
Modeling an ODE: 3 different approaches - Part 1Modeling an ODE: 3 different approaches - Part 1
Modeling an ODE: 3 different approaches - Part 1Scilab
 
Modeling an ODE: 3 different approaches - Part 2
Modeling an ODE: 3 different approaches - Part 2Modeling an ODE: 3 different approaches - Part 2
Modeling an ODE: 3 different approaches - Part 2Scilab
 
ScilabTEC 2015 - Embedded Solutions
ScilabTEC 2015 - Embedded SolutionsScilabTEC 2015 - Embedded Solutions
ScilabTEC 2015 - Embedded SolutionsScilab
 
Introduction to Control systems in scilab
Introduction to Control systems in scilabIntroduction to Control systems in scilab
Introduction to Control systems in scilabScilab
 
Optimization in scilab
Optimization in scilabOptimization in scilab
Optimization in scilabScilab
 
Scilab Presentation for Tech Talk Tuesday 21 July 2015
Scilab Presentation for Tech Talk Tuesday 21 July 2015Scilab Presentation for Tech Talk Tuesday 21 July 2015
Scilab Presentation for Tech Talk Tuesday 21 July 2015TBSS Group
 
Scilab Technical Talk at NTU, TP and HCMUT (Dr Claude Gomez)
Scilab Technical Talk at NTU, TP and HCMUT (Dr Claude Gomez)Scilab Technical Talk at NTU, TP and HCMUT (Dr Claude Gomez)
Scilab Technical Talk at NTU, TP and HCMUT (Dr Claude Gomez)TBSS Group
 
Optimization
OptimizationOptimization
OptimizationManas Das
 
Programming in Ansi C
Programming in Ansi CProgramming in Ansi C
Programming in Ansi CPriya Chauhan
 
Scilab Modelica conference 20150921
Scilab Modelica conference 20150921Scilab Modelica conference 20150921
Scilab Modelica conference 20150921Scilab
 
COMPARATIVE STUDY OF MATLAB AND ITS OPEN SOURCE ALTERNATIVE SCILAB
COMPARATIVE STUDY OF MATLAB AND ITS OPEN SOURCE ALTERNATIVE SCILABCOMPARATIVE STUDY OF MATLAB AND ITS OPEN SOURCE ALTERNATIVE SCILAB
COMPARATIVE STUDY OF MATLAB AND ITS OPEN SOURCE ALTERNATIVE SCILABWildan Maulana
 
ScilabTEC 2015 - Bavarian Center for Agriculture
ScilabTEC 2015 - Bavarian Center for AgricultureScilabTEC 2015 - Bavarian Center for Agriculture
ScilabTEC 2015 - Bavarian Center for AgricultureScilab
 
ScilabTEC 2015 - KIT
ScilabTEC 2015 - KITScilabTEC 2015 - KIT
ScilabTEC 2015 - KITScilab
 
Scilab pour l'enseignement des mathématiques
Scilab pour l'enseignement des mathématiquesScilab pour l'enseignement des mathématiques
Scilab pour l'enseignement des mathématiquesScilab
 
ScilabTEC 2015 - CNES
ScilabTEC 2015 - CNESScilabTEC 2015 - CNES
ScilabTEC 2015 - CNESScilab
 
ScilabTEC 2015 - University of Luxembourg
ScilabTEC 2015 - University of LuxembourgScilabTEC 2015 - University of Luxembourg
ScilabTEC 2015 - University of LuxembourgScilab
 

Viewers also liked (20)

Modeling an ODE: 3 different approaches - Part 3
Modeling an ODE: 3 different approaches - Part 3Modeling an ODE: 3 different approaches - Part 3
Modeling an ODE: 3 different approaches - Part 3
 
Customizing Xcos with new Blocks and Palette
Customizing Xcos with new Blocks and PaletteCustomizing Xcos with new Blocks and Palette
Customizing Xcos with new Blocks and Palette
 
Scilab is not naive
Scilab is not naiveScilab is not naive
Scilab is not naive
 
Modeling an ODE: 3 different approaches - Part 1
Modeling an ODE: 3 different approaches - Part 1Modeling an ODE: 3 different approaches - Part 1
Modeling an ODE: 3 different approaches - Part 1
 
Modeling an ODE: 3 different approaches - Part 2
Modeling an ODE: 3 different approaches - Part 2Modeling an ODE: 3 different approaches - Part 2
Modeling an ODE: 3 different approaches - Part 2
 
ScilabTEC 2015 - Embedded Solutions
ScilabTEC 2015 - Embedded SolutionsScilabTEC 2015 - Embedded Solutions
ScilabTEC 2015 - Embedded Solutions
 
Introduction to Control systems in scilab
Introduction to Control systems in scilabIntroduction to Control systems in scilab
Introduction to Control systems in scilab
 
Optimization in scilab
Optimization in scilabOptimization in scilab
Optimization in scilab
 
Scilab Presentation for Tech Talk Tuesday 21 July 2015
Scilab Presentation for Tech Talk Tuesday 21 July 2015Scilab Presentation for Tech Talk Tuesday 21 July 2015
Scilab Presentation for Tech Talk Tuesday 21 July 2015
 
Scilab Technical Talk at NTU, TP and HCMUT (Dr Claude Gomez)
Scilab Technical Talk at NTU, TP and HCMUT (Dr Claude Gomez)Scilab Technical Talk at NTU, TP and HCMUT (Dr Claude Gomez)
Scilab Technical Talk at NTU, TP and HCMUT (Dr Claude Gomez)
 
Optimization
OptimizationOptimization
Optimization
 
Programming in Ansi C
Programming in Ansi CProgramming in Ansi C
Programming in Ansi C
 
Scilab Modelica conference 20150921
Scilab Modelica conference 20150921Scilab Modelica conference 20150921
Scilab Modelica conference 20150921
 
COMPARATIVE STUDY OF MATLAB AND ITS OPEN SOURCE ALTERNATIVE SCILAB
COMPARATIVE STUDY OF MATLAB AND ITS OPEN SOURCE ALTERNATIVE SCILABCOMPARATIVE STUDY OF MATLAB AND ITS OPEN SOURCE ALTERNATIVE SCILAB
COMPARATIVE STUDY OF MATLAB AND ITS OPEN SOURCE ALTERNATIVE SCILAB
 
ScilabTEC 2015 - Bavarian Center for Agriculture
ScilabTEC 2015 - Bavarian Center for AgricultureScilabTEC 2015 - Bavarian Center for Agriculture
ScilabTEC 2015 - Bavarian Center for Agriculture
 
ScilabTEC 2015 - KIT
ScilabTEC 2015 - KITScilabTEC 2015 - KIT
ScilabTEC 2015 - KIT
 
Scilab pour l'enseignement des mathématiques
Scilab pour l'enseignement des mathématiquesScilab pour l'enseignement des mathématiques
Scilab pour l'enseignement des mathématiques
 
Scilab vs matlab
Scilab vs matlabScilab vs matlab
Scilab vs matlab
 
ScilabTEC 2015 - CNES
ScilabTEC 2015 - CNESScilabTEC 2015 - CNES
ScilabTEC 2015 - CNES
 
ScilabTEC 2015 - University of Luxembourg
ScilabTEC 2015 - University of LuxembourgScilabTEC 2015 - University of Luxembourg
ScilabTEC 2015 - University of Luxembourg
 

Similar to Hydraulic Scilab toolbox for water distribution systems

Aeraulic toolbox for Xcos
Aeraulic toolbox for XcosAeraulic toolbox for Xcos
Aeraulic toolbox for XcosScilab
 
DigSILENT PF - 06 irena additional exercises
DigSILENT PF - 06 irena  additional exercisesDigSILENT PF - 06 irena  additional exercises
DigSILENT PF - 06 irena additional exercisesHimmelstern
 
Pressure drop analysis of flow through pin fin channel
Pressure drop analysis of flow through pin fin channelPressure drop analysis of flow through pin fin channel
Pressure drop analysis of flow through pin fin channelIRJET Journal
 
Liquid Flow Control by Using Fuzzy Logic Controller
Liquid Flow Control by Using Fuzzy Logic ControllerLiquid Flow Control by Using Fuzzy Logic Controller
Liquid Flow Control by Using Fuzzy Logic Controllerijtsrd
 
Design & Construction of Switched Mode Power Supplies
Design & Construction of Switched Mode Power Supplies Design & Construction of Switched Mode Power Supplies
Design & Construction of Switched Mode Power Supplies Sachin Mehta
 
Final_Presentation_Humpback_Hydro
Final_Presentation_Humpback_HydroFinal_Presentation_Humpback_Hydro
Final_Presentation_Humpback_HydroMark Legacy
 
Closed Loop Control of Hybrid Boosting Converter for Renewable Energy Applica...
Closed Loop Control of Hybrid Boosting Converter for Renewable Energy Applica...Closed Loop Control of Hybrid Boosting Converter for Renewable Energy Applica...
Closed Loop Control of Hybrid Boosting Converter for Renewable Energy Applica...IRJET Journal
 
A STUDY ON PERFORMANCE OF DIFFERENT OPEN LOOP PID TUNNING TECHNIQUE FOR A LIQ...
A STUDY ON PERFORMANCE OF DIFFERENT OPEN LOOP PID TUNNING TECHNIQUE FOR A LIQ...A STUDY ON PERFORMANCE OF DIFFERENT OPEN LOOP PID TUNNING TECHNIQUE FOR A LIQ...
A STUDY ON PERFORMANCE OF DIFFERENT OPEN LOOP PID TUNNING TECHNIQUE FOR A LIQ...IJITCA Journal
 
A STUDY ON PERFORMANCE OF DIFFERENT OPEN LOOP PID TUNNING TECHNIQUE FOR A LI...
A STUDY ON PERFORMANCE OF DIFFERENT OPEN LOOP  PID TUNNING TECHNIQUE FOR A LI...A STUDY ON PERFORMANCE OF DIFFERENT OPEN LOOP  PID TUNNING TECHNIQUE FOR A LI...
A STUDY ON PERFORMANCE OF DIFFERENT OPEN LOOP PID TUNNING TECHNIQUE FOR A LI...IJITCA Journal
 
A Study on Performance of Different Open Loop PID Tunning Technique for a Liq...
A Study on Performance of Different Open Loop PID Tunning Technique for a Liq...A Study on Performance of Different Open Loop PID Tunning Technique for a Liq...
A Study on Performance of Different Open Loop PID Tunning Technique for a Liq...IJITCA Journal
 
Optimization of Closure Law of Guide Vanes for an Operational Hydropower Plan...
Optimization of Closure Law of Guide Vanes for an Operational Hydropower Plan...Optimization of Closure Law of Guide Vanes for an Operational Hydropower Plan...
Optimization of Closure Law of Guide Vanes for an Operational Hydropower Plan...Dr. Amarjeet Singh
 
Implementation of Linear Controller for a DC-DC Forward Converter
Implementation of Linear Controller for a DC-DC Forward ConverterImplementation of Linear Controller for a DC-DC Forward Converter
Implementation of Linear Controller for a DC-DC Forward Converterijceronline
 
Design and Control of a Hydraulic Servo System and Simulation Analysis
Design and Control of a Hydraulic Servo System and Simulation AnalysisDesign and Control of a Hydraulic Servo System and Simulation Analysis
Design and Control of a Hydraulic Servo System and Simulation AnalysisIJMREMJournal
 
A LOW VOLTAGE DYNAMIC SYNCHRONOUS DC-DC BUCK-BOOST CONVERTER FOUR SWITCHES
A LOW VOLTAGE DYNAMIC SYNCHRONOUS DC-DC BUCK-BOOST CONVERTER FOUR SWITCHES A LOW VOLTAGE DYNAMIC SYNCHRONOUS DC-DC BUCK-BOOST CONVERTER FOUR SWITCHES
A LOW VOLTAGE DYNAMIC SYNCHRONOUS DC-DC BUCK-BOOST CONVERTER FOUR SWITCHES P singh
 
On the Impact of Timer Resolution in the Efficiency Optimization of Synchrono...
On the Impact of Timer Resolution in the Efficiency Optimization of Synchrono...On the Impact of Timer Resolution in the Efficiency Optimization of Synchrono...
On the Impact of Timer Resolution in the Efficiency Optimization of Synchrono...IJPEDS-IAES
 
1D Simulation of intake manifolds in single-cylinder reciprocating engine
1D Simulation of intake manifolds in single-cylinder reciprocating engine1D Simulation of intake manifolds in single-cylinder reciprocating engine
1D Simulation of intake manifolds in single-cylinder reciprocating engineJuan Manzanero Torrico
 
Summer Training 2015 at Alternate Hydro Energy Center
Summer Training 2015 at Alternate Hydro Energy CenterSummer Training 2015 at Alternate Hydro Energy Center
Summer Training 2015 at Alternate Hydro Energy CenterKhusro Kamaluddin
 

Similar to Hydraulic Scilab toolbox for water distribution systems (20)

Aeraulic toolbox for Xcos
Aeraulic toolbox for XcosAeraulic toolbox for Xcos
Aeraulic toolbox for Xcos
 
DigSILENT PF - 06 irena additional exercises
DigSILENT PF - 06 irena  additional exercisesDigSILENT PF - 06 irena  additional exercises
DigSILENT PF - 06 irena additional exercises
 
Pressure drop analysis of flow through pin fin channel
Pressure drop analysis of flow through pin fin channelPressure drop analysis of flow through pin fin channel
Pressure drop analysis of flow through pin fin channel
 
Liquid Flow Control by Using Fuzzy Logic Controller
Liquid Flow Control by Using Fuzzy Logic ControllerLiquid Flow Control by Using Fuzzy Logic Controller
Liquid Flow Control by Using Fuzzy Logic Controller
 
Design & Construction of Switched Mode Power Supplies
Design & Construction of Switched Mode Power Supplies Design & Construction of Switched Mode Power Supplies
Design & Construction of Switched Mode Power Supplies
 
Final_Presentation_Humpback_Hydro
Final_Presentation_Humpback_HydroFinal_Presentation_Humpback_Hydro
Final_Presentation_Humpback_Hydro
 
Closed Loop Control of Hybrid Boosting Converter for Renewable Energy Applica...
Closed Loop Control of Hybrid Boosting Converter for Renewable Energy Applica...Closed Loop Control of Hybrid Boosting Converter for Renewable Energy Applica...
Closed Loop Control of Hybrid Boosting Converter for Renewable Energy Applica...
 
A STUDY ON PERFORMANCE OF DIFFERENT OPEN LOOP PID TUNNING TECHNIQUE FOR A LIQ...
A STUDY ON PERFORMANCE OF DIFFERENT OPEN LOOP PID TUNNING TECHNIQUE FOR A LIQ...A STUDY ON PERFORMANCE OF DIFFERENT OPEN LOOP PID TUNNING TECHNIQUE FOR A LIQ...
A STUDY ON PERFORMANCE OF DIFFERENT OPEN LOOP PID TUNNING TECHNIQUE FOR A LIQ...
 
A STUDY ON PERFORMANCE OF DIFFERENT OPEN LOOP PID TUNNING TECHNIQUE FOR A LI...
A STUDY ON PERFORMANCE OF DIFFERENT OPEN LOOP  PID TUNNING TECHNIQUE FOR A LI...A STUDY ON PERFORMANCE OF DIFFERENT OPEN LOOP  PID TUNNING TECHNIQUE FOR A LI...
A STUDY ON PERFORMANCE OF DIFFERENT OPEN LOOP PID TUNNING TECHNIQUE FOR A LI...
 
A Study on Performance of Different Open Loop PID Tunning Technique for a Liq...
A Study on Performance of Different Open Loop PID Tunning Technique for a Liq...A Study on Performance of Different Open Loop PID Tunning Technique for a Liq...
A Study on Performance of Different Open Loop PID Tunning Technique for a Liq...
 
E04724148
E04724148E04724148
E04724148
 
Optimization of Closure Law of Guide Vanes for an Operational Hydropower Plan...
Optimization of Closure Law of Guide Vanes for an Operational Hydropower Plan...Optimization of Closure Law of Guide Vanes for an Operational Hydropower Plan...
Optimization of Closure Law of Guide Vanes for an Operational Hydropower Plan...
 
Implementation of Linear Controller for a DC-DC Forward Converter
Implementation of Linear Controller for a DC-DC Forward ConverterImplementation of Linear Controller for a DC-DC Forward Converter
Implementation of Linear Controller for a DC-DC Forward Converter
 
Design and Control of a Hydraulic Servo System and Simulation Analysis
Design and Control of a Hydraulic Servo System and Simulation AnalysisDesign and Control of a Hydraulic Servo System and Simulation Analysis
Design and Control of a Hydraulic Servo System and Simulation Analysis
 
A LOW VOLTAGE DYNAMIC SYNCHRONOUS DC-DC BUCK-BOOST CONVERTER FOUR SWITCHES
A LOW VOLTAGE DYNAMIC SYNCHRONOUS DC-DC BUCK-BOOST CONVERTER FOUR SWITCHES A LOW VOLTAGE DYNAMIC SYNCHRONOUS DC-DC BUCK-BOOST CONVERTER FOUR SWITCHES
A LOW VOLTAGE DYNAMIC SYNCHRONOUS DC-DC BUCK-BOOST CONVERTER FOUR SWITCHES
 
JGrass-NewAge water budget
JGrass-NewAge water budget JGrass-NewAge water budget
JGrass-NewAge water budget
 
On the Impact of Timer Resolution in the Efficiency Optimization of Synchrono...
On the Impact of Timer Resolution in the Efficiency Optimization of Synchrono...On the Impact of Timer Resolution in the Efficiency Optimization of Synchrono...
On the Impact of Timer Resolution in the Efficiency Optimization of Synchrono...
 
1D Simulation of intake manifolds in single-cylinder reciprocating engine
1D Simulation of intake manifolds in single-cylinder reciprocating engine1D Simulation of intake manifolds in single-cylinder reciprocating engine
1D Simulation of intake manifolds in single-cylinder reciprocating engine
 
An4102295301
An4102295301An4102295301
An4102295301
 
Summer Training 2015 at Alternate Hydro Energy Center
Summer Training 2015 at Alternate Hydro Energy CenterSummer Training 2015 at Alternate Hydro Energy Center
Summer Training 2015 at Alternate Hydro Energy Center
 

More from Scilab

Statistical Analysis for Robust Design
Statistical Analysis for Robust DesignStatistical Analysis for Robust Design
Statistical Analysis for Robust DesignScilab
 
Electric motor optimization
Electric motor optimizationElectric motor optimization
Electric motor optimizationScilab
 
Asteroidlanding - Scilab conference 2019 Keynote
Asteroidlanding - Scilab conference 2019 KeynoteAsteroidlanding - Scilab conference 2019 Keynote
Asteroidlanding - Scilab conference 2019 KeynoteScilab
 
Faster Time to Market using Scilab/XCOS/X2C for motor control algorithm devel...
Faster Time to Market using Scilab/XCOS/X2C for motor control algorithm devel...Faster Time to Market using Scilab/XCOS/X2C for motor control algorithm devel...
Faster Time to Market using Scilab/XCOS/X2C for motor control algorithm devel...Scilab
 
Scilab and Xcos for Very Low Earth Orbits satellites modelling
Scilab and Xcos for Very Low Earth Orbits satellites modellingScilab and Xcos for Very Low Earth Orbits satellites modelling
Scilab and Xcos for Very Low Earth Orbits satellites modellingScilab
 
X2C -a tool for model-based control development and automated code generation...
X2C -a tool for model-based control development and automated code generation...X2C -a tool for model-based control development and automated code generation...
X2C -a tool for model-based control development and automated code generation...Scilab
 
A Real-Time Interface for Xcos – an illustrative demonstration using a batter...
A Real-Time Interface for Xcos – an illustrative demonstration using a batter...A Real-Time Interface for Xcos – an illustrative demonstration using a batter...
A Real-Time Interface for Xcos – an illustrative demonstration using a batter...Scilab
 
Aircraft Simulation Model and Flight Control Laws Design Using Scilab and XCos
Aircraft Simulation Model and Flight Control Laws Design Using Scilab and XCosAircraft Simulation Model and Flight Control Laws Design Using Scilab and XCos
Aircraft Simulation Model and Flight Control Laws Design Using Scilab and XCosScilab
 
Scilab for real dummies j.heikell - part3
Scilab for real dummies j.heikell - part3Scilab for real dummies j.heikell - part3
Scilab for real dummies j.heikell - part3Scilab
 
Scilab for real dummies j.heikell - part 2
Scilab for real dummies j.heikell - part 2Scilab for real dummies j.heikell - part 2
Scilab for real dummies j.heikell - part 2Scilab
 
Scilab for real dummies j.heikell - part 1
Scilab for real dummies j.heikell - part 1Scilab for real dummies j.heikell - part 1
Scilab for real dummies j.heikell - part 1Scilab
 
Multiobjective optimization and Genetic algorithms in Scilab
Multiobjective optimization and Genetic algorithms in ScilabMultiobjective optimization and Genetic algorithms in Scilab
Multiobjective optimization and Genetic algorithms in ScilabScilab
 
Scilab optimization workshop
Scilab optimization workshop Scilab optimization workshop
Scilab optimization workshop Scilab
 
INRA @ Scilab Conference 2018
INRA @ Scilab Conference 2018INRA @ Scilab Conference 2018
INRA @ Scilab Conference 2018Scilab
 
Qualcomm @ Scilab Conference 2018
Qualcomm @ Scilab Conference 2018Qualcomm @ Scilab Conference 2018
Qualcomm @ Scilab Conference 2018Scilab
 
Sanofi @ Scilab Conference 2018
Sanofi @ Scilab Conference 2018Sanofi @ Scilab Conference 2018
Sanofi @ Scilab Conference 2018Scilab
 
University of Applied Science Esslingen @ Scilab Conference 2018
University of Applied Science Esslingen @ Scilab Conference 2018University of Applied Science Esslingen @ Scilab Conference 2018
University of Applied Science Esslingen @ Scilab Conference 2018Scilab
 
DLR @ Scilab Conference 2018
DLR @ Scilab Conference 2018DLR @ Scilab Conference 2018
DLR @ Scilab Conference 2018Scilab
 
Fraunhofer IIS @ Scilab Conference 2018
Fraunhofer IIS @ Scilab Conference 2018Fraunhofer IIS @ Scilab Conference 2018
Fraunhofer IIS @ Scilab Conference 2018Scilab
 
Arcelormittal @ Scilab Conference 2018
Arcelormittal @ Scilab Conference 2018Arcelormittal @ Scilab Conference 2018
Arcelormittal @ Scilab Conference 2018Scilab
 

More from Scilab (20)

Statistical Analysis for Robust Design
Statistical Analysis for Robust DesignStatistical Analysis for Robust Design
Statistical Analysis for Robust Design
 
Electric motor optimization
Electric motor optimizationElectric motor optimization
Electric motor optimization
 
Asteroidlanding - Scilab conference 2019 Keynote
Asteroidlanding - Scilab conference 2019 KeynoteAsteroidlanding - Scilab conference 2019 Keynote
Asteroidlanding - Scilab conference 2019 Keynote
 
Faster Time to Market using Scilab/XCOS/X2C for motor control algorithm devel...
Faster Time to Market using Scilab/XCOS/X2C for motor control algorithm devel...Faster Time to Market using Scilab/XCOS/X2C for motor control algorithm devel...
Faster Time to Market using Scilab/XCOS/X2C for motor control algorithm devel...
 
Scilab and Xcos for Very Low Earth Orbits satellites modelling
Scilab and Xcos for Very Low Earth Orbits satellites modellingScilab and Xcos for Very Low Earth Orbits satellites modelling
Scilab and Xcos for Very Low Earth Orbits satellites modelling
 
X2C -a tool for model-based control development and automated code generation...
X2C -a tool for model-based control development and automated code generation...X2C -a tool for model-based control development and automated code generation...
X2C -a tool for model-based control development and automated code generation...
 
A Real-Time Interface for Xcos – an illustrative demonstration using a batter...
A Real-Time Interface for Xcos – an illustrative demonstration using a batter...A Real-Time Interface for Xcos – an illustrative demonstration using a batter...
A Real-Time Interface for Xcos – an illustrative demonstration using a batter...
 
Aircraft Simulation Model and Flight Control Laws Design Using Scilab and XCos
Aircraft Simulation Model and Flight Control Laws Design Using Scilab and XCosAircraft Simulation Model and Flight Control Laws Design Using Scilab and XCos
Aircraft Simulation Model and Flight Control Laws Design Using Scilab and XCos
 
Scilab for real dummies j.heikell - part3
Scilab for real dummies j.heikell - part3Scilab for real dummies j.heikell - part3
Scilab for real dummies j.heikell - part3
 
Scilab for real dummies j.heikell - part 2
Scilab for real dummies j.heikell - part 2Scilab for real dummies j.heikell - part 2
Scilab for real dummies j.heikell - part 2
 
Scilab for real dummies j.heikell - part 1
Scilab for real dummies j.heikell - part 1Scilab for real dummies j.heikell - part 1
Scilab for real dummies j.heikell - part 1
 
Multiobjective optimization and Genetic algorithms in Scilab
Multiobjective optimization and Genetic algorithms in ScilabMultiobjective optimization and Genetic algorithms in Scilab
Multiobjective optimization and Genetic algorithms in Scilab
 
Scilab optimization workshop
Scilab optimization workshop Scilab optimization workshop
Scilab optimization workshop
 
INRA @ Scilab Conference 2018
INRA @ Scilab Conference 2018INRA @ Scilab Conference 2018
INRA @ Scilab Conference 2018
 
Qualcomm @ Scilab Conference 2018
Qualcomm @ Scilab Conference 2018Qualcomm @ Scilab Conference 2018
Qualcomm @ Scilab Conference 2018
 
Sanofi @ Scilab Conference 2018
Sanofi @ Scilab Conference 2018Sanofi @ Scilab Conference 2018
Sanofi @ Scilab Conference 2018
 
University of Applied Science Esslingen @ Scilab Conference 2018
University of Applied Science Esslingen @ Scilab Conference 2018University of Applied Science Esslingen @ Scilab Conference 2018
University of Applied Science Esslingen @ Scilab Conference 2018
 
DLR @ Scilab Conference 2018
DLR @ Scilab Conference 2018DLR @ Scilab Conference 2018
DLR @ Scilab Conference 2018
 
Fraunhofer IIS @ Scilab Conference 2018
Fraunhofer IIS @ Scilab Conference 2018Fraunhofer IIS @ Scilab Conference 2018
Fraunhofer IIS @ Scilab Conference 2018
 
Arcelormittal @ Scilab Conference 2018
Arcelormittal @ Scilab Conference 2018Arcelormittal @ Scilab Conference 2018
Arcelormittal @ Scilab Conference 2018
 

Recently uploaded

HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfme23b1001
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxk795866
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)dollysharma2066
 

Recently uploaded (20)

HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptx
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
 

Hydraulic Scilab toolbox for water distribution systems

  • 1. powered by EnginSoft SpA - Via della Stazione, 27 - 38123 Mattarello di Trento | P.I. e C.F. IT00599320223 A HYDRAULIC SCILAB TOOLBOX FOR WATER DISTRIBUTION SYSTEMS Authors: M. Venturin Keywords: Hydraulic system; Scilab; Xcos; Xcos + Modelica Abstract: The purpose of this paper is to show the possibilities offered by Scilab/Xcos to model hydraulic time-dependent systems. In particular, we develop a new Xcos module combined with the use of Modelica language to show how water distribution systems can be modeled and studied. In this paper we construct a reduced library composed by few elements: reservoirs, pipes and nodes. The library can be easily extended to obtain a more complete toolbox. The developed library is tested on a simple well-known hydraulic circuit. Contacts info@openeering.com This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
  • 2. A hydraulic system toolbox www.openeering.com page 2/17 1. Introduction Studying water distribution systems (WDS) is very important for a correct supply of water. These studies can guarantee an adequate water pressure at each location of frequent use and can reduce the total costs of water distribution systems. Studying of water distribution systems requires a simulation tool that can be based on the following (at least) elements that are the basic building blocks of any network: 1. Pipes; 2. Node or junctions; 3. Storage tanks and reservoirs. Moreover, the developed library can be straightforward extended with other elements like pumps and valves that are typically found in a hydraulic network. Solving the network problem consists of finding the flow of water in each pipe and pressure level at each node. The required input data are: 1. The network layout; 2. The governing equations which describe the physics of the system; 3. The consumer’s demand; Here, in this work, we consider only the numerical modeling of the hydraulic part. The library is developed in Scilab/Xcos with the use of Modelica features. For more real-case applications the interested reader can contact the Openeering team. Typically, the WDS problem is often associated to a multiobjective optimization problem where we want to maximize the minimum of the pressure level at nodes and minimize the total cost of the entire network. For optimizing the network we need to couple the hydraulics simulator with an appropriate multiobjective optimization tool. In Scilab, this can be done in a unified language since the hydraulic part can be modeled in Xcos/Modelica while the optimization part can be done using the available multiobjective optimization toolbox. The paper is organized as follows. First we presented the basic modeling strategy, then the constitutive laws of the network elements and finally we presented an application of the developed library to simulate a simple hydraulic circuit. Comparison results are done with respect to the Epanet [1] software.
  • 3. A hydraulic system toolbox www.openeering.com page 3/17 2. The problem description In this tutorial we analyze the distribution network shown in Figure 1. It consists of 8 pipes, 6 junction nodes at different levels and one reservoir. Figure 1: Network layout. This model can be used as an example of water distribution systems where it is possible to detect negative value for the pressure. These negative values indicate situations where there is a deficit of pressure and this should be avoid in real situations. Finding the best combination of pipes can be easily done with our model if we couple it with an optimization algorithm. An example of this process is done in [2]. Figure 2: Actual piezometric line and pressure levels
  • 4. A hydraulic system toolbox www.openeering.com page 4/17 The characteristics of the nodes are shown in Table 1 where we report elevation and customer’s demand at each node. Table 1: Nodes data Node Demand (m^3/h) Elevation (ft) 1 --- 210 2 100 150 3 100 160 4 120 155 5 270 150 6 330 165 7 200 160 Pipes properties are reported in Table 2. Table 2: Pipes data Pipe Length (ft) Diameter (in) 1 1000 18 2 1000 10 3 1000 16 4 1000 4 5 1000 16 6 1000 10 7 1000 10 8 1000 1
  • 5. A hydraulic system toolbox www.openeering.com page 5/17 3. Library modeling In this section we describe the basic library modeling approach. The Modelica developed package is named “WDS” (Water Distribution System) and it is contained in the file “WDS.mo”. In this file we develop the library in the Modelica language 2.0 where the balance between equations and variables is not required for any local element. A version of the file, using Modelica language 3.0, can be found in the file “WDS_new.mo” and it is described in Appendix A. The implementation of the toolbox is done in Scilab/Xcos through the use Modelica features. The first step is to identify through and across system variables and the use of the “passive sign convention1 ” for all elements. For our problem we choose: the volumetric flow rate [GPM] as the through variable; the total head [ft] as an across variable. the elevation [ft] as an across variable. Hence, our modeling is characterized by one through variable and two across variables. This is implemented in the connector class named “Pin”: connector Pin "Inlet port" Real H "Total head [ft]"; flow Real q "Volumetric flow [GPM]"; Real z "Elevation [ft]"; end Pin; The previous class implements the basic conservation laws for a two pins element: Flux of the element = Flux element at the input node = - Flux element at the output node and Head drop = Head at the input node - Head at the output node and Delta Elevation = Elevation at the input node – Elevation at the output node 1 In the “user convention” the through variable enters the positive terminal of a component (in Scilab is denoted by the black square).
  • 6. A hydraulic system toolbox www.openeering.com page 6/17 4. Element constitutive laws and properties In this section we summarize the constitutive laws and properties that have been used to develop the toolbox. 4.1. Some constants Here we report some constants that are used in the development of the constitutive laws of the elements available in the library. Here we list the constants we use: is the number; is the minimum time used in the definition of the junction element; is the specific gravity or relative density that is the ratio between the substance density and the density of water at 4° [C]; is the conversion pressure factor; is the unit conversion factor used in the hydraulic pipe element; is the conversion of 1 [ft3 /s] to 1 [US gallon per minute]; .is the minimum value used in the modeling of the hydraulic resistance element. The library constants are defined as follows: package Constants "Simulation library constants" constant Real pi = 3.14159265358979323846 "pi"; constant Real tmin = 1 "Minimum simulation time for linearization [s]"; constant Real SG = 1 "Specific gravity"; constant Real pheadconst = 2.3041475 "Unit conversion"; constant Real k = 1.318 "Unit conversion"; constant Real Qconv = 448.8312 "Unit conversion"; constant Real Qmin = 1e-8 "Minimum flow [ft^3/s]"; end Constants; 4.2. Reservoir elements The equations of a generic reservoir element fix the total head and the elevation given the user input specification , i.e. The total head equation: [ft]; The elevation equation: [ft]; The Modelica implementation is done in the class “Reservoir”: model Reservoir Pin Outlet; parameter Real Zval = 210. "Elevation [ft]"; equation Outlet.H = Zval "Total head"; Outlet.z = Zval "Elevation"; end Reservoir;
  • 7. A hydraulic system toolbox www.openeering.com page 7/17 4.3. Junction elements A junction of a node is an element where it is possible to specify elevation and customer’s demand . The element is composed of the following two equations: The elevation equation that fixes the elevation [ft]; The flux equation that fixes the customer’s demand [GPM]. In our implementation the load (customer’s demand) is modeled in a time dependent manner such that the customer’s demand is reached after the time . There is a transition zone in which the initial load is zero; this guarantees that at the initial time everything is in equilibrium. The level pressure is obtained from the equation (conversion from head feet to pressure in psi): where: is the pressure level [psi]; is the conversion factor; is the specific gravity or relative density [-]; is the node head [ft] is the node element total head [ft]; is the node elevation [ft]; The Modelica implementation is done in the class “Junction”: model Junction Pin Inlet; parameter Real Zval = 150. "Elevation [ft]"; parameter Real Qval = 100. "Base Demand [GPM]"; Real Pressure "Pressure [psi]"; Real Qflux "Current time base demand [GPM]"; protected constant Real tmin = WDS.Constants.tmin; constant Real SG = WDS.Constants.SG; constant Real pheadconst = WDS.Constants.pheadconst; equation Qflux = if time<tmin then (Qval/tmin)*time else Qval "Current flux"; Inlet.q = Qflux "Flux at the inlet"; Inlet.z = Zval "Elevation"; Pressure = (Inlet.H - Zval) * SG / pheadconst "Pressure head"; end Junction;
  • 8. A hydraulic system toolbox www.openeering.com page 8/17 4.4. Hydraulic pipe Hydraulic resistor in pipe is modeled using the Hazen-William friction loss equation: where: is the discharge [ft3 /s]; is the energy slope [ft/ft]; is the hydraulic radius [ft]; is the fluid velocity [ft/s]; is the hydraulic diameter [ft]; is the pipe length [ft]; is the energy head loss [ft]; is the H-W coefficient [-] is the unit conversion factor. This equation relates and . As a note, a linear version of the equation is used if the flow is under a pre-fixed flow tolerance . The Modelica implementation is done in the class “Pipe”: model Pipe Pin Inlet; Pin Outlet; parameter Real Lval = 1000. "Pipe length [ft]"; parameter Real Dval = 12. "Pipe diameter [in]"; parameter Real Cval = 130. "Hazen-Williams coefficient [-]"; Real q "Fluid through the element [GPM]"; Real Dh "Hydraulic diameter [ft]"; Real Rh "Hydraulic radius [ft]"; Real A "Area [ft^2]"; Real Qdisc "Discharge [ft^3/s]"; Real v "Velocity [ft/s]"; Real S "Energy slope [ft/ft]"; Real hf "Energy loss [ft]"; // - Linearize version due to numerical derivative problems Real vmin "Minimum velocity [ft/s]"; Real Smin "Minimum energy slope [ft/ft]"; Real hfmin "Minimum energy loss [ft]"; protected constant Real pi = WDS.Constants.pi; constant Real k = WDS.Constants.k; constant Real Qconv = WDS.Constants.Qconv; constant Real Qmin = WDS.Constants.Qmin; equation Inlet.q = q "Flux inlet"; Outlet.q = -q "Flux outlet"; Dh = Dval / 12. "Hydraulic diameter [ft]";
  • 9. A hydraulic system toolbox www.openeering.com page 9/17 Rh = Dh / 4. "Hydraulic radius [ft]"; A = pi * Dh^2 / 4. "Area [ft^2]"; Qdisc = q / Qconv "Discharge [ft^3/s]"; v = abs(Qdisc) / A "Velocity [ft^3/s]"; S = (v/(k*Cval*Rh^0.63))^(1./0.54) "Energy slope [ft/ft]"; hf = sign(Qdisc) * S * Lval "Energy loss [ft]"; // Evaluate linearize version vmin = Qmin / A; Smin = (vmin/(k*Cval*Rh^0.63))^(1./0.54); hfmin = Smin * Lval; // Inlet.H - Outlet.H = hf "Pressure head"; // Not a good choice in numerical analysis Inlet.H - Outlet.H = if abs(Qdisc) < Qmin then hfmin*(Qdisc/Qmin) else hf "Pressure head"; end Pipe;
  • 10. A hydraulic system toolbox www.openeering.com page 10/17 5. Example The Xcos scheme of the problem is reported in Figure 3. See the Appendix B for the element specifications. Figure 3: The simulation network. In Figure 4 we plot the pressure level in each node. Figure 4: Simulation results The results are compared with those obtained using Epanet [1], see Appendix D and E. From the tables reported in the Appendixes the results are very close.
  • 11. A hydraulic system toolbox www.openeering.com page 11/17 6. Conclusion Here, we have developed a Scilab/Xcos toolbox for hydraulic simulation. The toolbox will be extended in the future by providing further elements. For more real-case applications the interested reader can contact the Openeering team. 7. References [1] Epanet software and user manual, http://www.epa.gov/nrmrl/wswrd/dw/epanet.html. [2] Matteo Nicolini: A Two-Level Evolutionary Approach to Multi-criterion Optimization of Water Supply Systems. Evolutionary Multi-Criterion Optimization, Third International Conference, EMO 2005, Guanajuato, Mexico, March 9-11, 2005, Proceedings: 736-751
  • 12. A hydraulic system toolbox www.openeering.com page 12/17 Appendix A – Library in new Modelica style The connector connector Pin "Inlet port" Real H "Total head [ft]"; flow Real q "Volumetric flow [GPM]"; Real z "Elevation [ft]"; end Pin; is not a valid connector since the number of flow variables and the number of non-flow variables do not correspond. In new Modelica style it is required that the number of flow variables in a connector is equal to the number of non-causal, non-flow variables (variables without prefix flow, input, output, stream, parameter and constant) in order to guarantee that the model has balanced equations. Here, we propose a simple solution by introducing a support flow variable (dummy). The definition of the new connector becomes: connector Pin "Inlet port" Real H "Total head [ft]"; flow Real q "Volumetric flow [GPM]"; Real z "Elevation [ft]"; flow Real dummy; end Pin; Then, it is only necessary to modify the element “Pipe” by introducing the following equations: // dummy part Inlet.dummy = 0 "Flux inlet"; Outlet.dummy = 0 "Flux outlet"; A more correct approach should be based on stream and input/output connectors but this is beyond the scope of this tutorial.
  • 13. A hydraulic system toolbox www.openeering.com page 13/17 Appendix B – Library description In the following table we report all the developed elements of our water distribution system (WDS) library. Element Required parameters Xcos element Junction Pipe Reservoir
  • 14. A hydraulic system toolbox www.openeering.com page 14/17 Appendix C – Software installation and testing The “hydraulic system toolbox” is available to registered users only. For downloading the library visit: http://www.openeering.com/registered_users_area Registration is free and automatic. To load the library into the Xcos environment type --> exec loader.sce from the main directory. The new set of palette is loaded in your Xcos system. Figure 5: The Aeraulic library in Xcos Open the Xcos model file " Example_HydraulicNet.xcos" and run it. Remember that to run an Xcos model with Modelica blocks, a C compiler should be installed in your system. Check if a compiler is available in your system with the Scilab command "haveacompiler()". Then analysis of the data is done using the function "Example_ProcessData.sce", the plot can be generated using the function "Example_PlotData.sce". The directory “other” contains the Epanet example and the Modelica libraries used to produce this article.
  • 15. A hydraulic system toolbox www.openeering.com page 15/17 Appendix D – Epanet results In the following we report the results obtained using Epanet software [1]. Page 1 03/05/2012 15.17.54 ********************************************************************** * E P A N E T * * Hydraulic and Water Quality * * Analysis for Pipe Networks * * Version 2.0 * ********************************************************************** Input File: Example_HydraulicNet.net Link - Node Table: ---------------------------------------------------------------------- Link Start End Length Diameter ID Node Node ft in ---------------------------------------------------------------------- 1 1 2 1000 18 2 2 3 1000 10 3 2 4 1000 16 4 4 5 1000 4 5 4 6 1000 16 6 6 7 1000 10 7 3 5 1000 10 8 7 5 1000 1 Node Results: ---------------------------------------------------------------------- Node Demand Head Pressure Quality ID GPM ft psi ---------------------------------------------------------------------- 2 100.00 209.57 25.81 0.00 3 100.00 208.74 21.12 0.00 4 120.00 209.26 23.51 0.00 5 270.00 208.32 25.27 0.00 6 330.00 209.06 19.09 0.00 7 200.00 208.75 21.12 0.00 1 -1120.00 210.00 0.00 0.00 Reservoir
  • 16. A hydraulic system toolbox www.openeering.com page 16/17 Link Results: ---------------------------------------------------------------------- Link Flow VelocityUnit Headloss Status ID GPM fps ft/Kft ---------------------------------------------------------------------- 1 1120.00 1.41 0.43 Open 2 336.88 1.38 0.82 Open 3 683.12 1.09 0.31 Open 4 32.56 0.83 0.94 Open 5 530.56 0.85 0.19 Open 6 200.56 0.82 0.31 Open 7 236.88 0.97 0.43 Open 8 0.56 0.23 0.43 Open
  • 17. A hydraulic system toolbox www.openeering.com page 17/17 Appendix E – Simulation results Here, we report the simulation results obtained using our modeling approach. ------------------------------------------------------ Link Start End Length Diam. H-Z ID node node Const. ------------------------------------------------------ 1 1 2 1000 18 130 2 2 3 1000 10 130 3 2 4 1000 16 130 4 4 5 1000 4 130 5 4 6 1000 16 130 6 6 7 1000 10 130 7 3 5 1000 10 130 8 7 5 1000 1 130 ------------------------------------------------------ ------------------------------------------- Link Flow Velocity Headloss ------------------------------------------- 1 1120.00000 1.41209 0.43422 2 336.87830 1.37614 0.82184 3 683.12160 1.09005 0.30847 4 32.56250 0.83136 0.94130 5 530.55910 0.84661 0.19317 6 200.55920 0.81928 0.31455 7 236.87840 0.96764 0.42811 8 0.55916 0.22842 0.43364 ------------------------------------------- ------------------------------------------------- NODE Demand Head pressure ------------------------------------------------- 1 -1120.00000 210.00000 0.00000 2 100.00000 209.56578 25.85155 3 100.00000 208.74394 21.15487 4 120.00000 209.25731 23.54767 5 270.00000 208.31601 25.30915 6 330.00000 209.06414 19.12383 7 200.00000 208.74965 21.15735 -------------------------------------------------