VirtualFCS.Fluid.HeatExchanger

Model Description and References

This is a discretised, 1-D heat exchanger. Detail level can be adjusted by setting the n parameter for the discretisation steps.
The class is implemented as two trains of MixingVolumes, one on each side, thermally connected one by one through a thermal conductance. Volumes and thermal conductances are assumed to be equally split between the MixingVolumes.

Volumes of both sides 1 and 2 can be set separately, but the default is for V_2 to be equal to V_1. The thermal conductance UA is given as a single number, as neither U nor A are used elsewhere.

The exchanger can be configured as cocurrent or countercurrent (default), which is implemented by swapping the train inlet and outlet of side 2.
Note that it is fully possible to obtain a cocurrent setup by inverting flow in one of the sides compared to the expected direction (port_a to port_b); this is discouraged as it can be confusing to users.

Governing Equations

T_1[n] = {conductors[i].port_a.T for i in 1:n};

T_2[n] = {conductors[i].port_b.T for i in 1:n};

DeltaT[n] = {conductors[i].dT for i in 1:n};

Q_flows[n] = {conductors[i].Q_flow for i in 1:n};

Q_flow = sum(Q_flows);

for i in 1:(n-1) loop connect(mixvols_1[i].port_b, mixvols_1[i+1].port_a);

connect(mixvols_2[i].port_b, mixvols_2[i+1].port_a);

end for;

connect(mixvols_1[1].port_a, port_a1);

connect(mixvols_1[n].port_b, port_b1);

if flow_c == Configuration.counterCurrent then connect(mixvols_2[1].port_a, port_b2);

connect(mixvols_2[n].port_b, port_a2);

else connect(mixvols_2[1].port_a, port_a2);

connect(mixvols_2[n].port_b, port_b2);

end if;

for i in 1:n loop connect(mixvols_1[i].heatPort, conductors[i].port_a);

connect(mixvols_2[i].heatPort, conductors[i].port_b);

end for;
QuantityDescription
mixvols_1Mixing volumes on side 1
mixvols_2Mixing volumes on side 2
conductorsConductances between pairs of mixing volumes of both sides
T_1Temperature profile of side 1
T_2Temperature profile of side 2
DeltaTTemperature difference profile
Q_flowsHeat flow profile
Q_flowTotal heat exchanged

Parameters

NameTypeUnitDefaultDescription
nInteger15Discretisation steps
V_1Modelica.Units.SI.Volumem31E-3Total volume of side 1
V_2Modelica.Units.SI.Volumem3V_1Total volume of side 2
UAModelica.Units.SI.ThermalConductanceW/K1000Thermal conductance
flow_cConfiguration-Configuration.counterCurrentFlow configuration

Interfaces and Connections

NameKindTypeUnitDescription
port_a1ConnectionModelica.Fluid.Interfaces.FluidPort_aPa; kg/s; J/kg-
port_b1ConnectionModelica.Fluid.Interfaces.FluidPort_bPa; kg/s; J/kg-
port_a2ConnectionModelica.Fluid.Interfaces.FluidPort_aPa; kg/s; J/kg-
port_b2ConnectionModelica.Fluid.Interfaces.FluidPort_bPa; kg/s; J/kg-

Contents