Standard Types in pandapipes¶
In pandapipes are several standard types given for different components. For each component, standard types are defined for, one can find the corresponding CSVfiles under pandapipes.std_types.library.
If no complex model describing a component but only concrete property characteristics are required, all defined components are combined in one CSVfile. If there is additional information required to retrieve a model of a certain component, for each concrete realisation the data is given in a subfolder named after this component. Within this subfolder, each single CSVfile contains the required additional information.
In the following the currently implemented standard type categories and their implementation are shortly described.
Property Based Standard Types¶
In terms of the property based standard types all required information is stored as dictionary. The keys of the dictionary correspond to the standard type name. All component realizations are saved within one component category. At the moment there is:
Pipe Standard Type¶
A concrete pipe standard type has following properties:
Parameter 
Datatype 
Value Range 
Explanation 
std_type 
string 
Name of the concrete pipe standard type 

nominal_width 
float 
\(>\) 0 
Nominal diamater of a pipe 
outer_diameter 
float 
\(>\) 0 
Outer diameter of a pipe 
inner_diameter 
float 
\(>\) 0 
Inner and for the pipeflow relevant diameter 
material 
string 
Material the pipe consists of. Possibly relevant if a pipe is useful for specific fluids or not. 
All pipe standard types currently realized can be found in Pipe.csv in pandapipes.std_types.library.
Model Based Standard Types¶
In case of the model based standard types a model is derived which is able to describe the behaviour of a concrete component. As part of the component category within the standard type catalog of a certain pandapipes net, the different realisations of concrete component models are saved as dictionary where the keys give the names of the defined.
Standard type class¶
A standard type class is the most abstract and general realisation of a standard type. It just contains the name and type of an object. Each realisation of a specific standard type class is a subclass of this class.

class
StdType
(name, type)¶
A standard type class is a child of JSONSerializableClass in order to enable an easy and congruent saving process of standard type objects.
Pump standard type class¶
A standard type of pump is an object of the pump standard type class. It is a subclass of the standard type class.
In order to call a pump standard type object one needs to give an arbitrarily chosen name and the parameters of
a regression function which returns the pressure lift to a given volume flow rate. The parameters of the regression function
are pump specific. There are two ways to determine these. One way is, that they are already known and can be directly handed over
when initializing a pump standard type object. Alternatively, a list of pressure values, their corresponding volume flow rate values
and the degree of the regression function are given. In terms of the second option one can call the classmethod
pandapipes.PumpStdType.from_path()
overhanging the path of a CSV file containing following information.
Parameter 
Datatype 
Value Range 
Explanation 
p_bar 
list 
\(>\) 0 
A list of pressure values 
Vdot_m3ph 
list 
\(>\) 0 
A list of flow rates corresponding to the pressure values 
degree 
integer 
\(>\) 0 
The degree of the polynomial setting pressure and flow rate in context 

class
PumpStdType
(name, reg_par)¶ 
classmethod
from_path
(name, path)¶  Parameters
name (str) – Name of the pump object
path (str) – Path where the CSV file, defining a pump object, is stored
 Returns
An object of the pump standard type class
 Return type

get_pressure
(vdot_m3_per_s)¶ Calculate the pressure lift based on a polynomial from a regression.
It is ensured that the pressure lift is always >= 0. For reverse flows, bypassing is assumed.
 Parameters
vdot_m3_per_s (float) – Volume flow rate of a fluid in [m^3/s]. Abs() will be applied.
 Returns
This function returns the corresponding pressure to the given volume flow rate in [bar]
 Return type
float

classmethod