Skip to content
Snippets Groups Projects
Commit 37eb519d authored by MARSOLLIER Felix's avatar MARSOLLIER Felix
Browse files

Update of the test following a modification of the module

parent 6914f56d
No related branches found
No related tags found
No related merge requests found
within TAeZoSysPro_testsuite.FluidDynamics.Components.HeatExchangers; within TAeZoSysPro_testsuite.FluidDynamics.Components.HeatExchangers;
model test_DiscreteExchanger model test_DiscreteExchanger
TAeZoSysPro.FluidDynamics.Components.HeatExchangers.DiscreteExchanger discreteExchanger(redeclare package MediumA = Modelica.Media.Air.ReferenceAir.Air_pT, redeclare package MediumB = Modelica.Media.Air.ReferenceAir.Air_pT, A = 100, CrossSectionA = 1, CrossSectionB = 1, N = 10, flowConfiguration = TAeZoSysPro.FluidDynamics.Components.HeatExchangers.DiscreteExchanger.FlowConfiguration.CounterCurrent) annotation( TAeZoSysPro.FluidDynamics.Components.HeatExchangers.DiscreteExchanger discreteExchanger( A = 100, CrossSectionA = 1, CrossSectionB = 1,redeclare package MediumA = Modelica.Media.Air.ReferenceAir.Air_pT, redeclare package MediumB = Modelica.Media.Air.ReferenceAir.Air_pT, 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))); 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( Modelica.Fluid.Sources.MassFlowSource_T massFlowSource_A(redeclare package Medium = Modelica.Media.Air.ReferenceAir.Air_pT, T = 30 + 273.15, m_flow = 1, nPorts = 1) annotation(
Placement(visible = true, transformation(origin = {-50, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0))); 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( 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))); Placement(visible = true, transformation(origin = {-10, -50}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
......
within TAeZoSysPro_testsuite.FluidDynamics.Components.Pipes; within TAeZoSysPro_testsuite.FluidDynamics.Components.Pipes;
model test_DynamicPipe model test_DynamicPipe
Modelica.SIunits.SpecificEnthalpy h;
TAeZoSysPro.FluidDynamics.Sources.Atmosphere atmosphere(p = 114250) annotation( TAeZoSysPro.FluidDynamics.Sources.Atmosphere atmosphere(redeclare package Medium = TAeZoSysPro.Media.Air.MoistAir, nPorts = 1, p = 101425) annotation(
Placement(visible = true, transformation(origin = {-80, 3.55271e-15}, extent = {{-20, -20}, {20, 20}}, rotation = 0))); Placement(visible = true, transformation(origin = {-80, 3.55271e-15}, extent = {{-20, -20}, {20, 20}}, rotation = 0)));
TAeZoSysPro.FluidDynamics.Sources.Atmosphere atmosphere1(nPorts = 1) annotation( TAeZoSysPro.FluidDynamics.Sources.Atmosphere atmosphere1(redeclare package Medium = TAeZoSysPro.Media.Air.MoistAir, nPorts = 1) annotation(
Placement(visible = true, transformation(origin = {80, 0}, extent = {{20, -20}, {-20, 20}}, rotation = 0))); Placement(visible = true, transformation(origin = {80, 0}, extent = {{20, -20}, {-20, 20}}, rotation = 0)));
TAeZoSysPro.FluidDynamics.Components.Pipes.DynamicPipe pipe(A = 1, L = 1, ksi = 10) annotation( TAeZoSysPro.FluidDynamics.Components.Pipes.DynamicPipe pipe( A = 1, L = 1,redeclare package Medium = TAeZoSysPro.Media.Air.MoistAir, T_start (displayUnit = "degC") = 298.15, energyDynamics = TAeZoSysPro.HeatTransfer.Types.Dynamics.FixedInitial, ksi = 10, massDynamics = TAeZoSysPro.HeatTransfer.Types.Dynamics.FixedInitial) annotation(
Placement(visible = true, transformation(origin = {-3.55271e-15, 3.55271e-15}, extent = {{-20, -20}, {20, 20}}, rotation = 0))); Placement(visible = true, transformation(origin = {-3.55271e-15, 3.55271e-15}, extent = {{-20, -20}, {20, 20}}, rotation = 0)));
equation equation
h=TAeZoSysPro.Media.Air.MoistAir.specificEnthalpy_pTX(
p = pipe.port_a.p,
T = atmosphere.T,
X = {0.00767631} );
connect(atmosphere.Fluidport[1], pipe.port_a) annotation( connect(atmosphere.Fluidport[1], pipe.port_a) annotation(
Line(points = {{-80, 8}, {-60, 8}, {-60, 0}, {-20, 0}, {-20, 0}}, color = {0, 127, 255})); Line(points = {{-80, 8}, {-60, 8}, {-60, 0}, {-20, 0}, {-20, 0}}, color = {0, 127, 255}));
connect(pipe.port_b, atmosphere1.Fluidport[1]) annotation( connect(pipe.port_b, atmosphere1.Fluidport[1]) annotation(
Line(points = {{20, 0}, {60, 0}, {60, 8}, {80, 8}, {80, 8}}, color = {0, 127, 255})); Line(points = {{20, 0}, {60, 0}, {60, 8}, {80, 8}, {80, 8}}, color = {0, 127, 255}));
annotation(
experiment(StartTime = 0, StopTime = 1, Tolerance = 1e-06, Interval = 0.002));
end test_DynamicPipe; end test_DynamicPipe;
...@@ -16,15 +16,13 @@ model test_UpwindFirstOrder ...@@ -16,15 +16,13 @@ model test_UpwindFirstOrder
initial equation initial equation
transport.u[2:N, 1] = fill(0.0, N-1); transport.u[:, 1] = fill(0.0, N);
transport.u[2:N, 2] = fill(0.0, N-1); transport.u[:, 2] = fill(0.0, N);
equation equation
// Boundary conditions // Boundary conditions
transport.u[1,1] = 1; transport.u_ghost_left[:] = fill(1.0, 2);
transport.u[1,2] = 1; transport.u_ghost_right[:] = fill(1.0, 2);
transport.u[N+1,1] = transport.u[N,1];
transport.u[N+1,2] = transport.u[N,2];
end test_UpwindFirstOrder; end test_UpwindFirstOrder;
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