citysim_ops
Functions dealing with operational parameters for compatibility with CitySim
- compute_kv_max_from_power(power_max, dp_fully_open=50000.0, delta_t=-30.0, cp_fluid=4182.0, rho_fluid=990.0)[source]
Computes the maximum valve Kv based on the substation maximum power, the design delta T, and the minimum pressure loss enforced by the valve when this is fully open, by default 0.5 bar.
- compute_pump_ideal_speed(mdot_ideal, dp_ideal, a0=1200000.0, a1=0.0, a2=0.0, rpm_max=5000.0)[source]
Computes the ideal speed that the pump would need to give a pressure lift dp_ideal given a mass flow mdot_ideal, according to the formula implemented in CitySim.