""" hierarchy: object module enter_module heat_module vent_module hot_water_module YYTE pipe equipment valve pump exchanger """ import module import pipe import valve heat_module_1 = module.Heat_module("heat_module_1", 1000, 130, 70, 95, 70) pipe_heat_T12 = pipe.Pipe("pipe_heat_T12 ") print(heat_module_1.consumption_main) print(heat_module_1.consumption_out) print(pipe_heat_T12.pipe_dn(40))
calc.dp(module_enter.consumption_main, valve_control_dP.km125f_Kvs[6])) print("--------------------------------------------------------------------") #heat temperature_T1_out_heat = 85 temperature_T2_out_heat = 65 dp_min_heat = 0.5 static_pressure_heat = 0.8 valve_pressure_heat = 6 velocity_out_heat = 0.5 module_heat = module.Heat_module("module_heat", heat_power, temperature_T1_main, temperature_T2_main, temperature_T1_out_heat, temperature_T2_out_heat) valve_control_heat = equipment.Valve_control("valve_control_heat", module_heat.consumption_main, dp_min_heat) expansion_tank_heat = equipment.Expansion_tank("expansion_tank_heat", module_heat.power_gcalh, module_heat.temperature_T1_out, module_heat.temperature_T2_out, static_pressure_heat, valve_pressure_heat) print("heat_power - ", heat_power) print("temperature_T1_out_heat - ", temperature_T1_out_heat, "\n"
print("dP_min - ", dP_min_enter) print("Kv valve dP - ", calc.kv(module_enter.consumption_main, dP_min_enter)) print( "valve_control_dp - Dn ", valve_control_dP.km125f_DN[number_valve_dp], ", Kvs", valve_control_dP.km125f_Kvs[number_valve_dp], ", dp ", calc.dp(module_enter.consumption_main, valve_control_dP.km125f_Kvs[number_valve_dp])) print("--------------------------------------------------------------------") #heat module_heat = module.Heat_module("module_heat", heat_power, temperature_T1_main, temperature_T2_main, temperature_T1_out_heat, temperature_T2_out_heat) valve_control_heat = equipment.Valve_control("valve_control_heat", module_heat.consumption_main, dp_min_heat) expansion_tank_heat = equipment.Expansion_tank("expansion_tank_heat", module_heat.power_gcalh, module_heat.temperature_T1_out, module_heat.temperature_T2_out, static_pressure_heat, max_pressure_heat) print("heat") print("heat_power - ", heat_power)
import /pipe import module pipe_heat = pipe.Pipe("pipe_heat") pipe_hot_water = pipe.Pipe("pipe_hot_water") pipe_vent = pipe.Pipe("pipe_vent") pipe_hot_floor = pipe.Pipe("pipe_hot_floor") #enter system module_enter = module.Enter_module("module_enter", 2.141, 130, 70, 130, 70, 6., 5.) #heat module_heat = module.Heat_module("module_heat", 0.161, 130, 70, 95, 70) print("pipe_heat_consuption_main - ", module_heat.consumption_main) #vent module_vent = module.Vent_module("module_vent", 0.594, 130, 70, 95, 70) print("pipe_vent_consuption_main - ", module_vent.consumption_main) #hot water pipe_hot_water_consuption_main = pipe_hot_water.pipe_consuption(0.182, 130, 70) pipe_hot_water_consuption_main_max = pipe_hot_water.pipe_consuption(0.182, 70, 43) print("pipe_hot_water_consuption_main - ", pipe_hot_water_consuption_main) print("pipe_hot_water_consuption_main_max - ", pipe_hot_water_consuption_main_max) print("\n")