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

Addition of the module LiquidNode_simulated because the modelling of the...

Addition of the module LiquidNode_simulated because the modelling of the LiquidNode has changed and the current test of the Interface_liq_gas were no longer applicable.
parent 6e3a6fa5
No related branches found
No related tags found
No related merge requests found
within TAeZoSysPro_testsuite.FluidDynamics.BaseClasses;
model LiquidNode_simulated
parameter Modelica.SIunits.Temperature T = 273.15 + 90;
parameter Modelica.SIunits.Pressure p = 101325;
Modelica.Fluid.Interfaces.FluidPort_b port_liquidNode(redeclare package Medium = Modelica.Media.Water.WaterIF97_ph) annotation(
Placement(visible = true, transformation(origin = {2, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0), iconTransformation(origin = {2, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
equation
port_liquidNode.h_outflow = Modelica.Media.Water.WaterIF97_pT.specificEnthalpy_pT(p = p, T = T);
end LiquidNode_simulated;
......@@ -6,3 +6,4 @@ test_GasNode_two_phases
test_Interface_liq_gas
test_LiquidNode
test_FreeAeraulicConvection
LiquidNode_simulated
within TAeZoSysPro_testsuite.FluidDynamics.BaseClasses;
model test_Interface_liq_gas
TAeZoSysPro.FluidDynamics.BasesClasses.Interface_liq_gas interFace_liq_gas(A = 1) annotation(
TAeZoSysPro.FluidDynamics.BasesClasses.Interface_liq_gas interFace_liq_gas(A = 1) annotation(
Placement(visible = true, transformation(origin = {-3.55271e-15, 3.33067e-15}, extent = {{-20, -20}, {20, 20}}, rotation = 0)));
Modelica.Thermal.HeatTransfer.Sources.FixedTemperature T_interface(T = 378.15) annotation(
Modelica.Thermal.HeatTransfer.Sources.FixedTemperature T_interface(T (displayUnit = "K") = 378.15) annotation(
Placement(visible = true, transformation(origin = {-70, -52}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
TAeZoSysPro.FluidDynamics.Sources.Atmosphere atmosphere annotation(
Placement(visible = true, transformation(origin = {-40, 60}, extent = {{-20, -20}, {20, 20}}, rotation = 0)));
Modelica.Blocks.Sources.Constant F_view(k = 1) annotation(
Modelica.Blocks.Sources.Constant F_view(k = 1) annotation(
Placement(visible = true, transformation(origin = {50, 30}, extent = {{10, -10}, {-10, 10}}, rotation = 0)));
Modelica.Fluid.Sources.FixedBoundary boundary(redeclare package Medium = Modelica.Media.Water.WaterIF97_ph, T = 273.15 + 105, nPorts = 1) annotation(
Placement(visible = true, transformation(origin = {50, -52}, extent = {{10, -10}, {-10, 10}}, rotation = 0)));
TAeZoSysPro_testsuite.FluidDynamics.BaseClasses.LiquidNode_simulated liquidNode_simulated(T = T_interface.T, p = atmosphere.p) annotation(
Placement(visible = true, transformation(origin = {50, -50}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
equation
// port_liquidNode.h_outflow = Modelica.Media.Water.WaterIF97_ph.specificEnthalpy_pT(
// p =interFace_liq_gas.p,
// T = 273.15+90);
// port_liquidNode.Xi_outflow = Modelica.Media.Water.WaterIF97_ph.X_default[1:Modelica.Media.Water.WaterIF97_ph.nXi];
// port_liquidNode.C_outflow = Modelica.Media.Water.WaterIF97_ph.C_default;
connect(T_interface.port, interFace_liq_gas.heatPort_a) annotation(
Line(points = {{-60, -52}, {-12, -52}, {-12, -18}, {-12, -18}}, color = {191, 0, 0}));
connect(atmosphere.Heatport, interFace_liq_gas.port_rad) annotation(
......@@ -20,7 +26,6 @@ equation
Line(points = {{-40, 60}, {14, 60}, {14, 18}, {14, 18}}, color = {0, 85, 255}));
connect(F_view.y, interFace_liq_gas.F_view) annotation(
Line(points = {{40, 30}, {-2, 30}, {-2, 18}, {-2, 18}}, color = {0, 0, 127}));
connect(boundary.ports[1], interFace_liq_gas.fluidPort_a) annotation(
Line(points = {{40, -52}, {12, -52}, {12, -18}, {12, -18}}, color = {0, 127, 255}));
connect(liquidNode_simulated.port_liquidNode, interFace_liq_gas.fluidPort_a) annotation(
Line(points = {{50, -50}, {12, -50}, {12, -18}, {12, -18}}, color = {0, 127, 255}));
end test_Interface_liq_gas;
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