Commit f81cec40 authored by i.elizarov's avatar i.elizarov
Browse files

Finished hydraulic model of the side panel. Fixed viscosity values for NOVEC.

parent 985b5990
......@@ -14,7 +14,7 @@ package Novec649 "NOVEC649 incompressible model"
[-50, 0.073; 0, 0.0634; 30, 0.058],
tableViscosity=
[-50, 2.175; 0, 0.87152; 30, 0.63455],
[-40.5, 2.28e-3; 0, 0.938e-3; 25, 0.635e-3],
tableVaporPressure=
[-50, 407.49; 0, 12365.28; 30, 49354]);
......
model PipingLocal_validation
package Medium =
Novec649;
inner Modelica.Fluid.System system annotation(
Placement(visible = true, transformation(origin = {90, 90}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
parameter Modelica.SIunits.Area channel_cross_section_area = 4.6e-6 "Cross-section area of channels";
parameter Modelica.SIunits.Length channel_cross_section_perimeter = 15.4e-3 "Perimeter of the channels";
parameter Modelica.SIunits.Height channel_roughness = 0.015e-3 "Rougness of wet surface";
Modelica.Fluid.Sources.FixedBoundary boundary(redeclare package Medium = Medium, T = 273.15 - 40, nPorts = 2, p = 2e5) annotation(
Placement(visible = true, transformation(origin = {-70, 70}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
Modelica.Fluid.Sources.FixedBoundary boundary1(redeclare package Medium = Medium, nPorts = 2, p = 1e5) annotation(
Placement(visible = true, transformation(origin = {-70, -50}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
Piping_local piping_local(final channel_cross_section_area = channel_cross_section_area,
final channel_cross_section_perimeter = channel_cross_section_perimeter,
channel_number = 2, final channel_roughness = channel_roughness) annotation(
Placement(visible = true, transformation(origin = {-22, -2}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
Modelica.Fluid.Pipes.StaticPipe pipe1(allowFlowReversal = false, length = 40e-3, crossArea = channel_cross_section_area, roughness = channel_roughness,
perimeter = channel_cross_section_perimeter,
redeclare package Medium=Medium) annotation(
Placement(visible = true, transformation(origin = {36, 30}, extent = {{-10, -10}, {10, 10}}, rotation = -90)));
Modelica.Fluid.Pipes.StaticPipe pipe2(allowFlowReversal = false, length = 40e-3, crossArea = channel_cross_section_area, roughness = channel_roughness,
perimeter = channel_cross_section_perimeter,
redeclare package Medium=Medium) annotation(
Placement(visible = true, transformation(origin = {36, -36}, extent = {{-10, -10}, {10, 10}}, rotation = -90)));
Modelica.Fluid.Fittings.SimpleGenericOrifice orifice(zeta = 0.5, diameter = sqrt(4 * channel_cross_section_area / 3.14), redeclare package Medium=Medium) annotation(
Placement(visible = true, transformation(origin = {36, -4}, extent = {{-10, -10}, {10, 10}}, rotation = -90)));
Modelica.Fluid.Sources.FixedBoundary boundary2(T = 273.15 - 40, nPorts = 3, p = 2e5, redeclare package Medium = Medium) annotation(
Placement(visible = true, transformation(origin = {4, 42}, extent = {{-10, -10}, {10, 10}}, rotation = 180)));
Modelica.Fluid.Sources.FixedBoundary boundary3(nPorts = 3, p = 1e5, redeclare package Medium = Medium) annotation(
Placement(visible = true, transformation(origin = {4, -34}, extent = {{-10, -10}, {10, 10}}, rotation = 180)));
equation
connect(piping_local.port_a1, boundary.ports[1]) annotation(
Line(points = {{-29, 8}, {-30, 8}, {-30, 70}, {-60, 70}}, color = {0, 127, 255}));
connect(piping_local.port_b1, boundary1.ports[1]) annotation(
Line(points = {{-30, -12}, {-30, -50}, {-60, -50}}, color = {0, 127, 255}));
connect(pipe2.port_b, boundary1.ports[2]) annotation(
Line(points = {{36, -46}, {36, -50}, {-60, -50}}, color = {0, 127, 255}));
connect(pipe1.port_b, orifice.port_a) annotation(
Line(points = {{36, 20}, {36, 6}}, color = {0, 127, 255}));
connect(orifice.port_b, pipe2.port_a) annotation(
Line(points = {{36, -14}, {36, -26}}));
connect(pipe1.port_a, boundary.ports[2]) annotation(
Line(points = {{36, 40}, {36, 70}, {-60, 70}}, color = {0, 127, 255}));
connect(boundary2.ports[1], piping_local.port_a2) annotation(
Line(points = {{-6, 42}, {-24, 42}, {-24, 8}}, color = {0, 127, 255}));
connect(boundary2.ports[2], piping_local.port_a3) annotation(
Line(points = {{-6, 42}, {-18, 42}, {-18, 8}}, color = {0, 127, 255}));
connect(boundary2.ports[3], piping_local.port_a4) annotation(
Line(points = {{-6, 42}, {-14, 42}, {-14, 8}}, color = {0, 127, 255}));
connect(boundary3.ports[1], piping_local.port_b4) annotation(
Line(points = {{-6, -34}, {-14, -34}, {-14, -12}}, color = {0, 127, 255}));
connect(boundary3.ports[2], piping_local.port_b3) annotation(
Line(points = {{-6, -34}, {-18, -34}, {-18, -12}}, color = {0, 127, 255}));
connect(boundary3.ports[3], piping_local.port_b2) annotation(
Line(points = {{-6, -34}, {-26, -34}, {-26, -12}}, color = {0, 127, 255}));
annotation(
uses(Modelica(version = "3.2.3")),
Diagram);
end PipingLocal_validation;
model Piping_local "Sections of channels"
replaceable package Medium =
Modelica.Media.Water.ConstantPropertyLiquidWater;
Novec649;
parameter Modelica.SIunits.Height channel_height = 40e-3 "Height of the channels (CH)";
parameter Modelica.SIunits.Length channel_cross_section_width = 5e-3 "Width of cross-section of the channels";
parameter Modelica.SIunits.Height channel_cross_section_height = 1e-3 "Height of cross-section of the channels";
parameter Modelica.SIunits.Area channel_cross_section_area = 4.6e-6 "Cross-section area of channels";
parameter Modelica.SIunits.Length channel_cross_section_perimeter = 15.4e-3 "Perimeter of the channels";
parameter Modelica.SIunits.Height channel_roughness = 0.015e-3 "Rougness of wet surface";
parameter Integer channel_number = 22 "Vertical array of channels";
parameter Real epsilon_left_right(min = 0)= 0.5 "Local hydraulic resistance coefficient";
parameter Real epsilon_left_right_middle(min = 0)= 0.5 "Local hydraulic resistance coefficient";
Modelica.Fluid.Pipes.StaticPipe pipe_left[channel_number](each allowFlowReversal = false, each crossArea = channel_cross_section_width * channel_cross_section_height,
Modelica.Fluid.Pipes.StaticPipe pipe_left[channel_number](each allowFlowReversal = false, each crossArea = channel_cross_section_area,
each final isCircular = false,
each length = channel_height,
each roughness = channel_roughness,
each perimeter = 2*channel_cross_section_width + 2*channel_cross_section_height,
each perimeter = channel_cross_section_perimeter,
redeclare package Medium=Medium) annotation(
Placement(visible = true, transformation(origin = {-40, 0}, extent = {{-10, -10}, {10, 10}}, rotation = -90)));
Modelica.Fluid.Pipes.StaticPipe pipe_middle_left[channel_number](each allowFlowReversal = false, each crossArea = channel_cross_section_width * channel_cross_section_height,
Modelica.Fluid.Pipes.StaticPipe pipe_middle_left[channel_number](each allowFlowReversal = false, each crossArea = channel_cross_section_area,
each final isCircular = false,
each length = channel_height,
each roughness = channel_roughness,
each perimeter = 2*channel_cross_section_width + 2*channel_cross_section_height,
each perimeter = channel_cross_section_perimeter,
redeclare package Medium=Medium) annotation(
Placement(visible = true, transformation(origin = {-12, 0}, extent = {{-10, -10}, {10, 10}}, rotation = -90)));
Modelica.Fluid.Pipes.StaticPipe pipe_middle_right[channel_number](each allowFlowReversal = false, each crossArea = channel_cross_section_width * channel_cross_section_height,
Modelica.Fluid.Pipes.StaticPipe pipe_middle_right[channel_number](each allowFlowReversal = false, each crossArea = channel_cross_section_area,
each final isCircular = false,
each length = channel_height,
each roughness = channel_roughness,
each perimeter = 2*channel_cross_section_width + 2*channel_cross_section_height,
each perimeter = channel_cross_section_perimeter,
redeclare package Medium=Medium) annotation(
Placement(visible = true, transformation(origin = {18, 0}, extent = {{-10, -10}, {10, 10}}, rotation = -90)));
Modelica.Fluid.Pipes.StaticPipe pipe_right[channel_number](each allowFlowReversal = false, each crossArea = channel_cross_section_width * channel_cross_section_height,
Modelica.Fluid.Pipes.StaticPipe pipe_right[channel_number](each allowFlowReversal = false, each crossArea = channel_cross_section_area,
each final isCircular = false,
each length = channel_height,
each roughness = channel_roughness,
each perimeter = 2*channel_cross_section_width + 2*channel_cross_section_height,
each perimeter = channel_cross_section_perimeter,
redeclare package Medium=Medium) annotation(
Placement(visible = true, transformation(origin = {50, 0}, extent = {{-10, -10}, {10, 10}}, rotation = -90)));
......@@ -65,16 +68,16 @@ parameter Real epsilon_left_right_middle(min = 0)= 0.5 "Local hydraulic resistan
Modelica.Fluid.Interfaces.FluidPort_b port_b4(redeclare package Medium = Medium) annotation(
Placement(visible = true, transformation(origin = {80, -100}, extent = {{-10, -10}, {10, 10}}, rotation = 0), iconTransformation(origin = {80, -98}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
Modelica.Fluid.Fittings.SimpleGenericOrifice loc_res_left[channel_number-1](each diameter = sqrt(4 * channel_cross_section_width * channel_cross_section_height / 3.14), each zeta = epsilon_left_right, redeclare package Medium = Medium) annotation(
Modelica.Fluid.Fittings.SimpleGenericOrifice loc_res_left[channel_number-1](each diameter = sqrt(4 * channel_cross_section_area / 3.14), each zeta = epsilon_left_right, redeclare package Medium = Medium) annotation(
Placement(visible = true, transformation(origin = {-50, -30}, extent = {{-8, -8}, {8, 8}}, rotation = -90)));
Modelica.Fluid.Fittings.SimpleGenericOrifice loc_res_middle_left[channel_number-1](each diameter = sqrt(4 * channel_cross_section_width * channel_cross_section_height / 3.14), each zeta = epsilon_left_right_middle, redeclare package Medium = Medium) annotation(
Modelica.Fluid.Fittings.SimpleGenericOrifice loc_res_middle_left[channel_number-1](each diameter = sqrt(4 * channel_cross_section_area / 3.14), each zeta = epsilon_left_right_middle, redeclare package Medium = Medium) annotation(
Placement(visible = true, transformation(origin = {-24, -30}, extent = {{-8, -8}, {8, 8}}, rotation = -90)));
Modelica.Fluid.Fittings.SimpleGenericOrifice loc_res_middle_right[channel_number-1](each diameter = sqrt(4 * channel_cross_section_width * channel_cross_section_height / 3.14), each zeta = epsilon_left_right_middle, redeclare package Medium = Medium) annotation(
Modelica.Fluid.Fittings.SimpleGenericOrifice loc_res_middle_right[channel_number-1](each diameter = sqrt(4 * channel_cross_section_area / 3.14), each zeta = epsilon_left_right_middle, redeclare package Medium = Medium) annotation(
Placement(visible = true, transformation(origin = {32, -30}, extent = {{-8, -8}, {8, 8}}, rotation = -90)));
Modelica.Fluid.Fittings.SimpleGenericOrifice loc_res_right[channel_number-1](each diameter = sqrt(4 * channel_cross_section_width * channel_cross_section_height / 3.14), each zeta = epsilon_left_right, redeclare package Medium = Medium) annotation(
Modelica.Fluid.Fittings.SimpleGenericOrifice loc_res_right[channel_number-1](each diameter = sqrt(4 * channel_cross_section_area / 3.14), each zeta = epsilon_left_right, redeclare package Medium = Medium) annotation(
Placement(visible = true, transformation(origin = {68, -28}, extent = {{-8, -8}, {8, 8}}, rotation = -90)));
equation
for i in 1:channel_number - 1 loop
......@@ -127,5 +130,5 @@ equation
annotation(
uses(Modelica(version = "3.2.3")),
Icon(graphics = {Rectangle(fillColor = {255, 255, 255}, fillPattern = FillPattern.Solid, extent = {{-100, 100}, {100, -100}}), Line(origin = {-82, 1}, points = {{0, 43}, {0, -43}}), Line(origin = {-68, 2}, points = {{0, 44}, {0, -44}}), Line(origin = {-26, 5}, points = {{0, 45}, {0, -45}}), Line(origin = {-12, 6}, points = {{0, 46}, {0, -46}}), Line(origin = {30, 9}, points = {{0, 49}, {0, -49}}), Line(origin = {44, 10}, points = {{0, 50}, {0, -50}}), Line(origin = {76, 12}, points = {{0, 52}, {0, -52}}), Line(origin = {88, 13}, points = {{0, 53}, {0, -53}})}),
Diagram(graphics = {Text(origin = {-77, 0}, extent = {{-17, 10}, {17, -10}}, textString = "N elements")}));
Diagram(graphics = {Text(origin = {-82, 1}, extent = {{-12, 7}, {12, -7}}, textString = "N elements"), Text(origin = {-81, -30}, extent = {{-13, 8}, {13, -8}}, textString = "N-1 elements")}));
end Piping_local;
model SidePanel
replaceable package Medium =
Novec649;
parameter Modelica.SIunits.Area channel_cross_section_area = 4.6e-6 "Cross-section area of channels";
parameter Modelica.SIunits.Length channel_cross_section_perimeter = 15.4e-3 "Perimeter of the channels";
parameter Modelica.SIunits.Height channel_roughness = 0.015e-3 "Rougness of wet surface";
waffle waffle_1(final channel_number = 22,
redeclare package Medium = Medium,
final channel_cross_section_area = channel_cross_section_area,
final channel_cross_section_perimeter = channel_cross_section_perimeter,
final channel_roughness = channel_roughness) annotation(
Placement(visible = true, transformation(origin = {-70, 10}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
waffle waffle_2(final channel_number = 20,
redeclare package Medium = Medium,
final channel_cross_section_area = channel_cross_section_area,
final channel_cross_section_perimeter = channel_cross_section_perimeter,
final channel_roughness = channel_roughness) annotation(
Placement(visible = true, transformation(origin = {0, 10}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
waffle waffle_3(final channel_number = 20,
redeclare package Medium = Medium,
final channel_cross_section_area = channel_cross_section_area,
final channel_cross_section_perimeter = channel_cross_section_perimeter) annotation(
Placement(visible = true, transformation(origin = {70, 10}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
Modelica.Fluid.Pipes.StaticPipe pipe1(redeclare package Medium = Medium,
perimeter = channel_cross_section_perimeter,
crossArea = channel_cross_section_area, allowFlowReversal = false, isCircular = false, length = (65 + 29 / 2 + 40 + 65 + 35) * 1e-3) annotation(
Placement(visible = true, transformation(origin = {-52, 62}, extent = {{-6, -6}, {6, 6}}, rotation = 180)));
Modelica.Fluid.Pipes.StaticPipe pipe2(redeclare package Medium = Medium,
perimeter = channel_cross_section_perimeter,
crossArea = channel_cross_section_area, allowFlowReversal = false, isCircular = false, length = 75e-3 + 45e-3) annotation(
Placement(visible = true, transformation(origin = {50, 62}, extent = {{-6, -6}, {6, 6}}, rotation = 0)));
Modelica.Fluid.Fittings.SimpleGenericOrifice orifice1(diameter = sqrt(4 * channel_cross_section_area / 3.14),
redeclare package Medium = Medium, allowFlowReversal = false, zeta = 0.25) annotation(
Placement(visible = true, transformation(origin = {-70, 42}, extent = {{-6, -6}, {6, 6}}, rotation = -90)));
Modelica.Fluid.Fittings.SimpleGenericOrifice orifice(diameter = sqrt(4 * channel_cross_section_area / 3.14),
redeclare package Medium = Medium, allowFlowReversal = false, zeta = 0.25) annotation(
Placement(visible = true, transformation(origin = {-70, -22}, extent = {{-6, -6}, {6, 6}}, rotation = -90)));
Modelica.Fluid.Pipes.StaticPipe pipe3(redeclare package Medium = Medium,
perimeter = channel_cross_section_perimeter,
crossArea = channel_cross_section_area, allowFlowReversal = false, isCircular = false, length = (65 + 29 / 2 + 40 + 65 + 35) * 1e-3) annotation(
Placement(visible = true, transformation(origin = {-51, -44}, extent = {{-7, -6}, {7, 6}}, rotation = 0)));
Modelica.Fluid.Pipes.StaticPipe pipe4(redeclare package Medium = Medium,
perimeter = channel_cross_section_perimeter,
crossArea = channel_cross_section_area, allowFlowReversal = false, length = 75e-3 + 45e-3) annotation(
Placement(visible = true, transformation(origin = {49, -44}, extent = {{-7, -6}, {7, 6}}, rotation = 180)));
Modelica.Fluid.Fittings.SimpleGenericOrifice orifice2(diameter = sqrt(4 * channel_cross_section_area / 3.14),
redeclare package Medium = Medium, allowFlowReversal = false, zeta = 0.25) annotation(
Placement(visible = true, transformation(origin = {70, 38}, extent = {{-6, -6}, {6, 6}}, rotation = -90)));
Modelica.Fluid.Fittings.SimpleGenericOrifice orifice3(diameter = sqrt(4 * channel_cross_section_area / 3.14),
redeclare package Medium = Medium, allowFlowReversal = false, zeta = 0.25) annotation(
Placement(visible = true, transformation(origin = {70, -22}, extent = {{-6, -6}, {6, 6}}, rotation = -90)));
Modelica.Fluid.Pipes.StaticPipe pipe(redeclare package Medium = Medium,
perimeter = channel_cross_section_perimeter,
crossArea = channel_cross_section_area, allowFlowReversal = false, isCircular = false, length = 45e-3) annotation(
Placement(visible = true, transformation(origin = {0, 32}, extent = {{-6, -6}, {6, 6}}, rotation = -90)));
Modelica.Fluid.Pipes.StaticPipe pipe5(redeclare package Medium = Medium,
perimeter = channel_cross_section_perimeter,
crossArea = channel_cross_section_area, allowFlowReversal = false, isCircular = false, length = 45e-3) annotation(
Placement(visible = true, transformation(origin = {0, -16}, extent = {{-6, -6}, {6, 6}}, rotation = -90)));
Modelica.Fluid.Fittings.SimpleGenericOrifice orifice4(diameter = sqrt(4 * channel_cross_section_area / 3.14),
redeclare package Medium = Medium, allowFlowReversal = false, zeta = 2 + 0.25) annotation(
Placement(visible = true, transformation(origin = {-20, 68}, extent = {{-6, -6}, {6, 6}}, rotation = -90)));
Modelica.Fluid.Fittings.SimpleGenericOrifice orifice5(diameter = sqrt(4 * channel_cross_section_area / 3.14),
redeclare package Medium = Medium, allowFlowReversal = false, zeta = 2 + 0.25) annotation(
Placement(visible = true, transformation(origin = {-22, -50}, extent = {{-6, -6}, {6, 6}}, rotation = -90)));
Modelica.Fluid.Pipes.StaticPipe pipe6(redeclare package Medium = Medium,
perimeter = channel_cross_section_perimeter,
crossArea = channel_cross_section_area, allowFlowReversal = false, isCircular = false, length = 65e-3) annotation(
Placement(visible = true, transformation(origin = {6, 78}, extent = {{-6, -6}, {6, 6}}, rotation = 180)));
Modelica.Fluid.Pipes.StaticPipe pipe7(redeclare package Medium = Medium,
perimeter = channel_cross_section_perimeter,
crossArea = channel_cross_section_area, allowFlowReversal = false, isCircular = false, length = 65e-3) annotation(
Placement(visible = true, transformation(origin = {-4, -64}, extent = {{-6, -6}, {6, 6}}, rotation = 0)));
Modelica.Fluid.Fittings.SimpleGenericOrifice orifice6(diameter = sqrt(4 * channel_cross_section_area / 3.14),
redeclare package Medium = Medium, allowFlowReversal = false, zeta = 2 + 0.5) annotation(
Placement(visible = true, transformation(origin = {26, 84}, extent = {{-6, -6}, {6, 6}}, rotation = -90)));
Modelica.Fluid.Fittings.SimpleGenericOrifice orifice7(diameter = sqrt(4 * channel_cross_section_area / 3.14),
redeclare package Medium = Medium, allowFlowReversal = false, zeta = 2 + 0.5) annotation(
Placement(visible = true, transformation(origin = {26, -70}, extent = {{-6, -6}, {6, 6}}, rotation = -90)));
Modelica.Fluid.Pipes.StaticPipe pipe8(redeclare package Medium = Medium,
perimeter = channel_cross_section_perimeter,
crossArea = channel_cross_section_area, allowFlowReversal = false, isCircular = false, length = 135e-3) annotation(
Placement(visible = true, transformation(origin = {48, 94}, extent = {{-6, -6}, {6, 6}}, rotation = 180)));
Modelica.Fluid.Pipes.StaticPipe pipe9(redeclare package Medium = Medium,
perimeter = channel_cross_section_perimeter,
crossArea = channel_cross_section_area, allowFlowReversal = false, isCircular = false, length = 75e-3 + 45e-3) annotation(
Placement(visible = true, transformation(origin = {48, -80}, extent = {{-6, -6}, {6, 6}}, rotation = 0)));
Modelica.Fluid.Interfaces.FluidPort_a port_a(redeclare package Medium = Medium) annotation(
Placement(visible = true, transformation(origin = {88, 94}, extent = {{-10, -10}, {10, 10}}, rotation = 0), iconTransformation(origin = {0, 100}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
Modelica.Fluid.Interfaces.FluidPort_b port_b(redeclare package Medium = Medium) annotation(
Placement(visible = true, transformation(origin = {88, -80}, extent = {{-10, -10}, {10, 10}}, rotation = 0), iconTransformation(origin = {0, -100}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
inner Modelica.Fluid.System system annotation(
Placement(visible = true, transformation(origin = {-70, 90}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
equation
connect(pipe1.port_b, orifice1.port_a) annotation(
Line(points = {{-58, 62}, {-70, 62}, {-70, 48}}, color = {0, 127, 255}));
connect(orifice1.port_b, waffle_1.port_a) annotation(
Line(points = {{-70, 36}, {-70, 20}}, color = {0, 127, 255}));
connect(waffle_1.port_b, orifice.port_a) annotation(
Line(points = {{-70, 0}, {-70, -16}}, color = {0, 127, 255}));
connect(orifice.port_b, pipe3.port_a) annotation(
Line(points = {{-70, -28}, {-70, -44}, {-58, -44}}, color = {0, 127, 255}));
connect(orifice2.port_b, waffle_3.port_a) annotation(
Line(points = {{70, 32}, {70, 20}}));
connect(orifice2.port_a, pipe2.port_b) annotation(
Line(points = {{70, 44}, {70, 62}, {56, 62}}, color = {0, 127, 255}));
connect(waffle_3.port_b, orifice3.port_a) annotation(
Line(points = {{70, 0}, {70, -16}}, color = {0, 127, 255}));
connect(orifice3.port_b, pipe4.port_a) annotation(
Line(points = {{70, -28}, {70, -44}, {56, -44}}, color = {0, 127, 255}));
connect(pipe.port_b, waffle_2.port_a) annotation(
Line(points = {{0, 26}, {0, 20}}, color = {0, 127, 255}));
connect(waffle_2.port_b, pipe5.port_a) annotation(
Line(points = {{0, 0}, {0, -10}}, color = {0, 127, 255}));
connect(pipe1.port_a, orifice4.port_b) annotation(
Line(points = {{-46, 62}, {-20, 62}}, color = {0, 127, 255}));
connect(pipe.port_a, orifice4.port_b) annotation(
Line(points = {{0, 38}, {0, 62}, {-20, 62}}, color = {0, 127, 255}));
connect(pipe3.port_b, orifice5.port_a) annotation(
Line(points = {{-44, -44}, {-22, -44}}, color = {0, 127, 255}));
connect(pipe5.port_b, orifice5.port_a) annotation(
Line(points = {{0, -22}, {0, -44}, {-22, -44}}, color = {0, 127, 255}));
connect(orifice5.port_b, pipe7.port_a) annotation(
Line(points = {{-22, -56}, {-22, -64}, {-10, -64}}, color = {0, 127, 255}));
connect(pipe6.port_a, orifice6.port_b) annotation(
Line(points = {{12, 78}, {26, 78}}, color = {0, 127, 255}));
connect(pipe2.port_a, orifice6.port_b) annotation(
Line(points = {{44, 62}, {26, 62}, {26, 78}}, color = {0, 127, 255}));
connect(pipe7.port_b, orifice7.port_a) annotation(
Line(points = {{2, -64}, {26, -64}}, color = {0, 127, 255}));
connect(pipe4.port_b, orifice7.port_a) annotation(
Line(points = {{42, -44}, {26, -44}, {26, -64}}, color = {0, 127, 255}));
connect(pipe8.port_b, orifice6.port_a) annotation(
Line(points = {{42, 94}, {26, 94}, {26, 90}}, color = {0, 127, 255}));
connect(orifice7.port_b, pipe9.port_a) annotation(
Line(points = {{26, -76}, {26, -80}, {42, -80}}, color = {0, 127, 255}));
connect(orifice4.port_a, pipe6.port_b) annotation(
Line(points = {{-20, 74}, {-20, 78}, {0, 78}}, color = {0, 127, 255}));
connect(pipe8.port_a, port_a) annotation(
Line(points = {{54, 94}, {88, 94}}, color = {0, 127, 255}));
connect(pipe9.port_b, port_b) annotation(
Line(points = {{54, -80}, {88, -80}}, color = {0, 127, 255}));
annotation(
uses(Modelica(version = "3.2.3")),
Icon(graphics = {Rectangle(origin = {-60, 0}, extent = {{-20, 40}, {20, -40}}), Rectangle(extent = {{-20, 40}, {20, -40}}), Rectangle(origin = {60, 0}, extent = {{-20, 40}, {20, -40}}), Line(origin = {-60, 20}, points = {{-20, 0}, {20, 0}}), Line(origin = {-60, 0}, points = {{-20, 0}, {20, 0}}), Line(origin = {-60, -20}, points = {{-20, 0}, {20, 0}}), Line(origin = {-60, 0}, points = {{0, 40}, {0, -40}}), Line(origin = {0, 20}, points = {{-20, 0}, {20, 0}}), Line(points = {{-20, 0}, {20, 0}}), Line(origin = {0, -20}, points = {{-20, 0}, {20, 0}}), Line(points = {{0, 40}, {0, -40}}), Line(origin = {60, 0}, points = {{0, 40}, {0, -40}}), Line(origin = {60, 20}, points = {{-20, 0}, {20, 0}}), Line(origin = {60, 0}, points = {{-20, 0}, {20, 0}}), Line(origin = {60, -20}, points = {{-20, 0}, {20, 0}}), Rectangle(origin = {-60, 50}, extent = {{-20, 10}, {20, -10}}), Line(origin = {-60, 50}, points = {{0, 10}, {0, -10}}), Line(origin = {-30, 75}, points = {{30, 15}, {30, 5}, {-30, 5}, {-30, -15}}), Line(origin = {0, 60}, points = {{0, 20}, {0, -20}}), Line(origin = {30, 50}, points = {{30, -10}, {30, 10}, {-30, 10}}), Line(origin = {0, -66}, points = {{0, 26}, {0, -26}}), Line(origin = {30, -50}, points = {{30, 10}, {30, -10}, {-30, -10}}), Rectangle(origin = {-60, -50}, extent = {{-20, 10}, {20, -10}}), Line(origin = {-60, -50}, points = {{0, 10}, {0, -10}}), Line(origin = {-30, -70}, points = {{-30, 10}, {-30, -10}, {30, -10}})}));
end SidePanel;
model sidepanel_validation
package Medium =
Novec649;
inner Modelica.Fluid.System system annotation(
Placement(visible = true, transformation(origin = {90, 90}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
Medium.BaseProperties medium;
Medium.Density d=Medium.density(medium.state);
Modelica.Fluid.Sources.FixedBoundary boundary1(redeclare package Medium = Medium, nPorts = 1, p = 1e5) annotation(
Placement(visible = true, transformation(origin = {-42, -32}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
SidePanel sidePanel1(redeclare package Medium = Medium) annotation(
Placement(visible = true, transformation(origin = {0, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
Modelica.Fluid.Sources.FixedBoundary boundary(redeclare package Medium = Medium, nPorts = 1, p = boundary1.p + 1.32e5) annotation(
Placement(visible = true, transformation(origin = {-42, 16}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
equation
medium.p = 1.013e5;
medium.T = 273.15 - 40;
connect(sidePanel1.port_b, boundary1.ports[1]) annotation(
Line(points = {{0, -10}, {0, -32}, {-32, -32}}, color = {0, 127, 255}));
connect(boundary.ports[1], sidePanel1.port_a) annotation(
Line(points = {{-32, 16}, {0, 16}, {0, 10}}, color = {0, 127, 255}));
annotation(
uses(Modelica(version = "3.2.3")),
Diagram);
end sidepanel_validation;
This diff is collapsed.
......@@ -9,7 +9,7 @@ model waffle_validation
Modelica.Fluid.Sources.FixedBoundary boundary1(redeclare package Medium = Medium, nPorts = 1, p = 1e5) annotation(
Placement(visible = true, transformation(origin = {-44, -34}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
waffle waffle_test(redeclare package Medium = Medium, channel_cross_section_height = 3e-3, channel_cross_section_width = 3e-3) annotation(
waffle waffle_test(redeclare package Medium = Medium) annotation(
Placement(visible = true, transformation(origin = {0, 4}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
equation
connect(boundary.ports[1], waffle_test.port_a) annotation(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment