Running a Pipeflow
If you want to run a pipeflow with pandapipes, it might be the easiest to just try running the code
>>> pp.pipeflow(net)
However, this might not always suit your purpose. In order to control what is calculated and which precise boundary conditions to use, some options exist that influence the internals. Changing the default options can not only influence the boundary conditions, but also the execution time, the convergence behavior or the output that is calculated.
It is recommended to know these options, which are explained more in detail in Pipeflow Options. If you want to learn more about how the pipeflow works internally, the section The Pipeflow Procedure might give you a valuable insight. Also the internals of different components in Datastructure and Components might be helpful.
The Pipeflow Function
- pipeflow(net, sol_vec=None, **kwargs)
The main method used to start the solver to calculate the velocity, pressure and temperature distribution for a given net. Different options can be entered for **kwargs, which control the solver behaviour (see function
init_options()
for more information).- Parameters
net (pandapipesNet) – The pandapipes net for which to perform the pipeflow
sol_vec (numpy.ndarray, default None) – Initializes the start values for the heating network calculation
kwargs – A list of options controlling the solver behaviour
- Returns
No output
- Example
>>> pipeflow(net, mode="hydraulics")