Skip to content
Snippets Groups Projects
Commit 3af321f7 authored by FMR's avatar FMR
Browse files

Addition of the test of the DiscreteExchanger module

parent d9221e1d
No related branches found
No related tags found
No related merge requests found
test_AnalyticExchanger
test_DiscreteExchanger
within TAeZoSysPro_testsuite.FluidDynamics.Components.HeatExchangers;
model test_DiscreteExchanger
TAeZoSysPro.FluidDynamics.Components.HeatExchangers.DiscreteExchanger discreteExchanger(A = 100, CrossSectionA = 1, CrossSectionB = 1, N = 10, flowConfiguration = TAeZoSysPro.FluidDynamics.Components.HeatExchangers.DiscreteExchanger.FlowConfiguration.CounterCurrent) annotation(
Placement(visible = true, transformation(origin = {0, 0}, extent = {{-20, -20}, {20, 20}}, rotation = 0)));
Modelica.Fluid.Sources.MassFlowSource_T massFlowSource_A(redeclare package Medium = Modelica.Media.Air.ReferenceAir.Air_pT, T = 30 + 273.15, m_flow = 2, nPorts = 1) annotation(
Placement(visible = true, transformation(origin = {-50, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
Modelica.Fluid.Sources.MassFlowSource_T massFlowSource_B(redeclare package Medium = Modelica.Media.Air.ReferenceAir.Air_pT, T = 10 + 273.15, m_flow = 1, nPorts = 1) annotation(
Placement(visible = true, transformation(origin = {-10, -50}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
Modelica.Fluid.Sources.FixedBoundary boundary(redeclare package Medium = Modelica.Media.Air.ReferenceAir.Air_pT, nPorts = 2) annotation(
Placement(visible = true, transformation(origin = {50, 50}, extent = {{10, -10}, {-10, 10}}, rotation = 0)));
equation
connect(massFlowSource_A.ports[1], discreteExchanger.port_A_in) annotation(
Line(points = {{-40, 0}, {-22, 0}, {-22, 0}, {-20, 0}}, color = {0, 127, 255}));
connect(massFlowSource_B.ports[1], discreteExchanger.port_B_in) annotation(
Line(points = {{0, -50}, {14, -50}, {14, -16}, {14, -16}}, color = {0, 127, 255}));
connect(boundary.ports[1], discreteExchanger.port_B_out) annotation(
Line(points = {{40, 50}, {-14, 50}, {-14, 16}, {-14, 16}}, color = {0, 127, 255}));
connect(discreteExchanger.port_A_out, boundary.ports[2]) annotation(
Line(points = {{20, 0}, {40, 0}, {40, 50}, {40, 50}}, color = {0, 127, 255}));
end test_DiscreteExchanger;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment