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.

compute_pump_ks_from_params(rpm, a0=1200000.0, a1=0.0, a2=0.0, rpm_max=5000.0)[source]

Function to compute k0, k1 and k2 from the pump characteristics and the rotational speed, as implemented in CitySim.

compute_valve_ideal_kv(mdot_ideal, dp_ideal, rho_fluid=990.0)[source]

Computes the ideal Kv of a valve to impose a pressure loss dp_ideal given a mass flow mdot_ideal.