base_components_thermal
Functions to compute average and outlet temperature for base components
- compute_hx_temp(mass_flow, t_in, setpoint_type, setpoint_type_rev, setpoint_value, setpoint_value_rev, power_max, t_out_min, cp_fluid, ts_id=None)[source]
- compute_hx_temp_net(net, fluid, soil, mask, ts_id=None)[source]
Computes the outlet temperature of a heat exchanger from the inlet temperature based on the given HX type.
- compute_pipe_temp(t_in, mdot, length, diameter, reynolds, thickness_ins, k_insulation, friction_factor, delta_p_friction, k_internal_pipe=45.0, thickness_internal_pipe=0.0, k_casing=0.4, thickness_casing=0.0, t_soil=8.0, depth=1.0, k_soil=0.5, cp_fluid=4182.0, mu_fluid=0.0004, k_fluid=0.598, rho_fluid=990.0, discretization=10)[source]
Computes the outlet temperature of a pipe from the inlet temperature. The pipe is split into segments of length ~ discretization for better results.