Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • thermosysproandco/ThermoSysPro
1 result
Show changes
Commits on Source (9)
Showing
with 1350 additions and 4 deletions
within ThermoSysPro.Examples.SimpleExamples;
model TestSteamGenerator_1SG_withClosedPurge
ThermoSysPro.WaterSteam.BoundaryConditions.SinkP sinkPrimaire(
option_temperature=2,
P0(fixed=true) = 15450000,
h0=1.27187e6)
annotation (Placement(transformation(extent={{68,-64},{88,-44}})));
ThermoSysPro.WaterSteam.BoundaryConditions.SourceQ sourcePrimaire(h0=
1.47084e6, Q0=19024/4)
annotation (Placement(transformation(extent={{-74,-62},{-56,-44}})));
ThermoSysPro.WaterSteam.BoundaryConditions.SourceP sourceGV(
P0=7370400,
h0=978133.25,
option_temperature=2)
annotation (Placement(transformation(extent={{98,24},{74,48}})));
ThermoSysPro.WaterSteam.BoundaryConditions.SinkQ sinkGV(Q0=(2147.6 -
0.00093930797)/4,
h0=2.77090e6)
annotation (Placement(transformation(extent={{74,56},{94,76}})));
ThermoSysPro.WaterSteam.PressureLosses.ControlValve VV_GV(
Cvmax(fixed=false) = 8791.226,
Q(fixed=false),
Pm(fixed=false),
C2(P(fixed=false, start=6880000)))
annotation (Placement(transformation(extent={{66,32},{44,52}})));
ThermoSysPro.WaterSteam.PressureLosses.SingularPressureLoss DP_GV(K(fixed=
true) = 1e-5)
annotation (Placement(transformation(extent={{24,62},{44,82}})));
ThermoSysPro.InstrumentationAndControl.Blocks.Sources.Constante constante(k=0.7)
annotation (Placement(transformation(extent={{26,-12},{46,8}})));
ThermoSysPro.WaterSteam.HeatExchangers.SteamGenerator_1SG_purges
steamGenerator_1SG(
DomeGV(
R=2.2,
L=5,
zl(start=0.66, fixed=true)),
MixAlimDomeGV,
DPnulle_DomeDwnc,
CapteurPAlim,
RiserGV(
L=10.8,
z2=10.8,
dpfCorr(fixed=true) = 5.7,
C1(P(fixed=false, start=7070000)),
C2(P(fixed=false, start=6880000))),
DownComerGV(lambda=0.01))
annotation (Placement(transformation(extent={{-46,-26},{10,36}})));
ThermoSysPro.WaterSteam.BoundaryConditions.SinkQ sinkGV_apg(Q0=0.00093930797/
4,
h0=1199.465e3)
annotation (Placement(transformation(extent={{58,-40},{78,-20}})));
ThermoSysPro.WaterSteam.PressureLosses.SingularPressureLoss DP_GV_apg(K(fixed=
true) = 1e-5)
annotation (Placement(transformation(extent={{8,-34},{28,-14}})));
equation
connect(VV_GV.C1, sourceGV.C)
annotation (Line(points={{66,36},{74,36}}, color={0,0,255}));
connect(DP_GV.C2, sinkGV.C) annotation (Line(points={{44,72},{68,72},{68,66},
{74,66}}, color={238,46,47}));
connect(constante.y, VV_GV.Ouv) annotation (Line(points={{47,-2},{62,-2},{
62,53},{55,53}}, color={0,0,255}));
connect(sourcePrimaire.C, steamGenerator_1SG.fluidInlet1) annotation (Line(
points={{-56,-53},{-26.5867,-53},{-26.5867,-20.2133}}, color={0,0,255}));
connect(steamGenerator_1SG.fluidOutletI1, sinkPrimaire.C) annotation (Line(
points={{-9.41333,-20.2133},{-9.41333,-54},{68,-54}}, color={28,108,
200}));
connect(VV_GV.C2, steamGenerator_1SG.fluidInlet) annotation (Line(points={{44,36},
{-8.29333,36},{-8.29333,28.1467}}, color={0,0,255}));
connect(DP_GV.C1, steamGenerator_1SG.fluidOutletI) annotation (Line(points={{24,72},
{8,72},{8,70},{-18,70},{-18,35.7933}}, color={238,46,47}));
connect(DP_GV_apg.C2, sinkGV_apg.C) annotation (Line(points={{28,-24},{52,-24},
{52,-30},{58,-30}}, color={238,46,47}));
connect(DP_GV_apg.C1, steamGenerator_1SG.fluidOutletI2) annotation (Line(
points={{8,-24},{8,-14},{-10.3467,-14},{-10.3467,-14.22}}, color={0,0,
255}));
annotation (Icon(coordinateSystem(preserveAspectRatio=false)), Diagram(
coordinateSystem(preserveAspectRatio=false), graphics={Text(
extent={{-184,104},{-100,-100}},
lineColor={28,108,200},
textString="// Iteration variables values:
DP_GV.Pm = 6606527.5;
DP_GV_apg.Pm = 6684628.0;
VV_GV.C2.P = 6605371.5;
VV_GV.C2.h_vol = 978133.25;
sinkPrimaire.Q = 4756.0;
sourcePrimaire.P = 15603434.0;
steamGenerator_1SG.CapteurPAlim.C2.h_vol = 1194875.2;
steamGenerator_1SG.DPnulle_AlimDwnc.pro.d = 834.49225;
steamGenerator_1SG.DPnulle_DomeDwnc.Pm = 6605949.5;
steamGenerator_1SG.DomeGV.Cm.Q = 2775.5164;
steamGenerator_1SG.DomeGV.Cm.Q = 2775.5164;
steamGenerator_1SG.DomeGV.Cs.Q = 2238.6167;
steamGenerator_1SG.DomeGV.Cs.Q = 2238.6167;
steamGenerator_1SG.DomeGV.Pfond = 6613003.5;
steamGenerator_1SG.DomeGV.Tp = 555.0794;
steamGenerator_1SG.DomeGV.hl = 1246857.8;
steamGenerator_1SG.DomeGV.hv = 2777538.2;
steamGenerator_1SG.DownComerGV.pro.d = 765.5975;
steamGenerator_1SG.MixAlimDomeGV.Cs.Q = 2775.5166;
steamGenerator_1SG.MixAlimDomeGV.P = 6605371.5;
steamGenerator_1SG.MixAlimDomeGV.h = 1194875.2;
steamGenerator_1SG.RiserGV.P[2] = 6669056.5;
steamGenerator_1SG.RiserGV.P[3] = 6657418.5;
steamGenerator_1SG.RiserGV.P[4] = 6646543.0;
steamGenerator_1SG.RiserGV.P[5] = 6634788.5;
steamGenerator_1SG.RiserGV.P[6] = 6621947.0;
steamGenerator_1SG.RiserGV.Q[1] = 2775.5164;
steamGenerator_1SG.RiserGV.Q[2] = 2775.5164;
steamGenerator_1SG.RiserGV.Q[3] = 2775.5164;
steamGenerator_1SG.RiserGV.Q[4] = 2775.5164;
steamGenerator_1SG.RiserGV.Q[5] = 2775.5164;
steamGenerator_1SG.RiserGV.Q[6] = 2775.5164;
steamGenerator_1SG.RiserGV.h[2] = 1296133.1;
steamGenerator_1SG.RiserGV.h[3] = 1378483.9;
steamGenerator_1SG.RiserGV.h[4] = 1445231.9;
steamGenerator_1SG.RiserGV.h[5] = 1499247.2;
steamGenerator_1SG.RiserGV.h[6] = 1542954.6;
steamGenerator_1SG.UtubeColdtLeg.P[2] = 15447537.0;
steamGenerator_1SG.UtubeColdtLeg.P[3] = 15447781.0;
steamGenerator_1SG.UtubeColdtLeg.P[4] = 15448178.0;
steamGenerator_1SG.UtubeColdtLeg.P[5] = 15448695.0;
steamGenerator_1SG.UtubeColdtLeg.P[6] = 15449308.0;
steamGenerator_1SG.UtubeColdtLeg.Q[2] = 4756.0;
steamGenerator_1SG.UtubeColdtLeg.Q[3] = 4756.0;
steamGenerator_1SG.UtubeColdtLeg.Q[4] = 4756.0;
steamGenerator_1SG.UtubeColdtLeg.Q[5] = 4756.0;
steamGenerator_1SG.UtubeColdtLeg.h[2] = 1303392.5;
steamGenerator_1SG.UtubeColdtLeg.h[3] = 1291469.1;
steamGenerator_1SG.UtubeColdtLeg.h[4] = 1281842.6;
steamGenerator_1SG.UtubeColdtLeg.h[5] = 1274047.8;
steamGenerator_1SG.UtubeColdtLeg.h[6] = 1267707.1;
steamGenerator_1SG.UtubeHotLeg.P[2] = 15577376.0;
steamGenerator_1SG.UtubeHotLeg.P[3] = 15551369.0;
steamGenerator_1SG.UtubeHotLeg.P[4] = 15525387.0;
steamGenerator_1SG.UtubeHotLeg.P[5] = 15499416.0;
steamGenerator_1SG.UtubeHotLeg.P[6] = 15473450.0;
steamGenerator_1SG.UtubeHotLeg.P[7] = 15447485.0;
steamGenerator_1SG.UtubeHotLeg.Q[2] = 4756.0;
steamGenerator_1SG.UtubeHotLeg.Q[3] = 4756.0;
steamGenerator_1SG.UtubeHotLeg.Q[4] = 4756.0;
steamGenerator_1SG.UtubeHotLeg.Q[5] = 4756.0;
steamGenerator_1SG.UtubeHotLeg.Q[6] = 4756.0;
steamGenerator_1SG.UtubeHotLeg.h[2] = 1426528.4;
steamGenerator_1SG.UtubeHotLeg.h[3] = 1390393.4;
steamGenerator_1SG.UtubeHotLeg.h[4] = 1361066.9;
steamGenerator_1SG.UtubeHotLeg.h[5] = 1337339.4;
steamGenerator_1SG.UtubeHotLeg.h[6] = 1318173.1;
steamGenerator_1SG.UtubeHotLeg.h[7] = 1318173.1;
steamGenerator_1SG.UtubeHotLeg.h[7] = 1318173.1;
steamGenerator_1SG.UtubeHotLeg.pro2[6].T = 569.5575;
steamGenerator_1SG.UtubeHotLeg.pro2[6].d = 733.7242;
steamGenerator_1SG.heatExchangerWall1.Tp2[1] = 556.5059;
steamGenerator_1SG.heatExchangerWall1.Tp2[2] = 556.2378;
steamGenerator_1SG.heatExchangerWall1.Tp2[3] = 556.00116;
steamGenerator_1SG.heatExchangerWall1.Tp2[4] = 555.7813;
steamGenerator_1SG.heatExchangerWall1.Tp2[5] = 555.5722;
steamGenerator_1SG.volumeA.P = 6684628.0;
steamGenerator_1SG.volumeA.h = 1194875.2;
steamGenerator_1SG.volumeA1.P = 6608082.0;
steamGenerator_1SG.volumeA1.h = 1542954.6;")}));
end TestSteamGenerator_1SG_withClosedPurge;
within ThermoSysPro.Examples.SimpleExamples;
model TestSteamGenerator_1SG_withClosedPurge2
ThermoSysPro.WaterSteam.BoundaryConditions.SinkP sinkPrimaire(
option_temperature=2,
P0(fixed=true) = 15450000,
h0=1.27187e6)
annotation (Placement(transformation(extent={{68,-64},{88,-44}})));
ThermoSysPro.WaterSteam.BoundaryConditions.SourceQ sourcePrimaire(h0=
1.47084e6, Q0=19024/4)
annotation (Placement(transformation(extent={{-74,-62},{-56,-44}})));
ThermoSysPro.WaterSteam.BoundaryConditions.SourceP sourceGV(
P0=7370400,
h0=978133.25,
option_temperature=2)
annotation (Placement(transformation(extent={{98,24},{74,48}})));
ThermoSysPro.WaterSteam.BoundaryConditions.SinkQ sinkGV(Q0=2147.6 -
0.00093930797,
h0=2.77090e6)
annotation (Placement(transformation(extent={{74,60},{94,80}})));
ThermoSysPro.WaterSteam.PressureLosses.ControlValve VV_GV(
Cvmax(fixed=false) = 8791.226,
Q(fixed=false),
Pm(fixed=false),
C2(P(fixed=false, start=6880000)))
annotation (Placement(transformation(extent={{28,32},{6,52}})));
ThermoSysPro.WaterSteam.PressureLosses.SingularPressureLoss DP_GV(K(fixed=
true) = 1e-5)
annotation (Placement(transformation(extent={{24,60},{44,80}})));
ThermoSysPro.InstrumentationAndControl.Blocks.Sources.Constante constante(k=0.7)
annotation (Placement(transformation(extent={{2,0},{22,20}})));
ThermoSysPro.WaterSteam.HeatExchangers.SteamGenerator_1SG_purges
steamGenerator_1SG(
DomeGV(
R=2.2,
L=5,
zl(start=0.66, fixed=true)),
MixAlimDomeGV,
DPnulle_DomeDwnc,
CapteurPAlim,
RiserGV(
L=10.8,
z2=10.8,
dpfCorr(fixed=true) = 5.7,
C1(P(fixed=false, start=7070000)),
C2(P(fixed=false, start=6880000))),
DownComerGV(lambda=0.01))
annotation (Placement(transformation(extent={{-46,-26},{10,36}})));
ThermoSysPro.WaterSteam.BoundaryConditions.SinkQ sinkGV_apg(Q0=0.00093930797,
h0=1199.465e3)
annotation (Placement(transformation(extent={{58,-40},{78,-20}})));
ThermoSysPro.WaterSteam.PressureLosses.SingularPressureLoss DP_GV_apg(K(fixed=
true) = 1e-5)
annotation (Placement(transformation(extent={{28,-24},{48,-4}})));
WaterSteam.Junctions.MassFlowMultiplier massFlowMultiplier(alpha=4)
annotation (Placement(transformation(extent={{-16,60},{4,80}})));
WaterSteam.Junctions.MassFlowMultiplier massFlowMultiplier1(alpha=0.25)
annotation (Placement(transformation(extent={{64,26},{44,46}})));
WaterSteam.Junctions.MassFlowMultiplier massFlowMultiplier2(alpha=4)
annotation (Placement(transformation(extent={{0,-24},{20,-4}})));
equation
connect(DP_GV.C2, sinkGV.C) annotation (Line(points={{44,70},{74,70}},
color={238,46,47}));
connect(constante.y, VV_GV.Ouv) annotation (Line(points={{23,10},{36,10},{36,
58},{17,58},{17,53}},color={0,0,255}));
connect(sourcePrimaire.C, steamGenerator_1SG.fluidInlet1) annotation (Line(
points={{-56,-53},{-26.5867,-53},{-26.5867,-20.2133}}, color={0,0,255}));
connect(steamGenerator_1SG.fluidOutletI1, sinkPrimaire.C) annotation (Line(
points={{-9.41333,-20.2133},{-9.41333,-54},{68,-54}}, color={28,108,
200}));
connect(VV_GV.C2, steamGenerator_1SG.fluidInlet) annotation (Line(points={{6,36},{
-8.29333,36},{-8.29333,28.1467}}, color={0,0,255}));
connect(DP_GV_apg.C2, sinkGV_apg.C) annotation (Line(points={{48,-14},{54,-14},
{54,-24},{52,-24},{52,-30},{58,-30}},
color={238,46,47}));
connect(DP_GV.C1, massFlowMultiplier.Cs)
annotation (Line(points={{24,70},{4,70}}, color={0,0,255}));
connect(massFlowMultiplier.Ce, steamGenerator_1SG.fluidOutletI) annotation (
Line(points={{-16,70},{-18,70},{-18,35.7933}}, color={0,0,255}));
connect(VV_GV.C1, massFlowMultiplier1.Cs)
annotation (Line(points={{28,36},{44,36}}, color={0,0,255}));
connect(massFlowMultiplier1.Ce, sourceGV.C)
annotation (Line(points={{64,36},{74,36}}, color={0,0,255}));
connect(DP_GV_apg.C1, massFlowMultiplier2.Cs)
annotation (Line(points={{28,-14},{20,-14}}, color={0,0,255}));
connect(massFlowMultiplier2.Ce, steamGenerator_1SG.fluidOutletI2) annotation (
Line(points={{0,-14},{-10.3467,-14},{-10.3467,-14.22}}, color={0,0,255}));
annotation (Icon(coordinateSystem(preserveAspectRatio=false)), Diagram(
coordinateSystem(preserveAspectRatio=false), graphics={Text(
extent={{-184,104},{-100,-100}},
lineColor={28,108,200},
textString="// Iteration variables values:
DP_GV.Pm = 6606527.5;
DP_GV_apg.Pm = 6684629.0;
VV_GV.C2.P = 6605373.0;
VV_GV.C2.h_vol = 978133.25;
sinkPrimaire.Q = 4756.0;
sourcePrimaire.P = 15603434.0;
steamGenerator_1SG.CapteurPAlim.C2.h_vol = 1194875.4;
steamGenerator_1SG.DPnulle_AlimDwnc.pro.d = 834.49225;
steamGenerator_1SG.DomeGV.Cm.Q = 2775.5164;
steamGenerator_1SG.DomeGV.Cm.Q = 2775.5164;
steamGenerator_1SG.DomeGV.Cs.Q = 2238.6167;
steamGenerator_1SG.DomeGV.P = 6606528.5;
steamGenerator_1SG.DomeGV.Pfond = 6613005.0;
steamGenerator_1SG.DomeGV.Tp = 555.09186;
steamGenerator_1SG.DomeGV.hl = 1246857.9;
steamGenerator_1SG.DomeGV.hv = 2777537.8;
steamGenerator_1SG.DownComerGV.pro.d = 765.5974;
steamGenerator_1SG.MixAlimDomeGV.Cs.Q = 2775.5166;
steamGenerator_1SG.MixAlimDomeGV.P = 6605373.0;
steamGenerator_1SG.MixAlimDomeGV.h = 1194875.4;
steamGenerator_1SG.RiserGV.P[2] = 6669057.5;
steamGenerator_1SG.RiserGV.P[3] = 6657419.5;
steamGenerator_1SG.RiserGV.P[4] = 6646544.5;
steamGenerator_1SG.RiserGV.P[5] = 6634789.5;
steamGenerator_1SG.RiserGV.P[6] = 6621948.0;
steamGenerator_1SG.RiserGV.Q[1] = 2775.5164;
steamGenerator_1SG.RiserGV.Q[2] = 2775.5164;
steamGenerator_1SG.RiserGV.Q[3] = 2775.5164;
steamGenerator_1SG.RiserGV.Q[4] = 2775.5164;
steamGenerator_1SG.RiserGV.Q[5] = 2775.5164;
steamGenerator_1SG.RiserGV.Q[6] = 2775.5164;
steamGenerator_1SG.RiserGV.h[2] = 1296133.2;
steamGenerator_1SG.RiserGV.h[3] = 1378483.9;
steamGenerator_1SG.RiserGV.h[4] = 1445231.9;
steamGenerator_1SG.RiserGV.h[5] = 1499247.4;
steamGenerator_1SG.RiserGV.h[6] = 1542954.8;
steamGenerator_1SG.UtubeColdtLeg.P[2] = 15447537.0;
steamGenerator_1SG.UtubeColdtLeg.P[3] = 15447781.0;
steamGenerator_1SG.UtubeColdtLeg.P[4] = 15448178.0;
steamGenerator_1SG.UtubeColdtLeg.P[5] = 15448695.0;
steamGenerator_1SG.UtubeColdtLeg.P[6] = 15449308.0;
steamGenerator_1SG.UtubeColdtLeg.Q[2] = 4756.0;
steamGenerator_1SG.UtubeColdtLeg.Q[3] = 4756.0;
steamGenerator_1SG.UtubeColdtLeg.Q[4] = 4756.0;
steamGenerator_1SG.UtubeColdtLeg.Q[5] = 4756.0;
steamGenerator_1SG.UtubeColdtLeg.h[2] = 1303392.6;
steamGenerator_1SG.UtubeColdtLeg.h[3] = 1291469.2;
steamGenerator_1SG.UtubeColdtLeg.h[4] = 1281842.8;
steamGenerator_1SG.UtubeColdtLeg.h[5] = 1274047.8;
steamGenerator_1SG.UtubeColdtLeg.h[6] = 1267707.1;
steamGenerator_1SG.UtubeHotLeg.P[2] = 15577376.0;
steamGenerator_1SG.UtubeHotLeg.P[3] = 15551369.0;
steamGenerator_1SG.UtubeHotLeg.P[4] = 15525387.0;
steamGenerator_1SG.UtubeHotLeg.P[5] = 15499416.0;
steamGenerator_1SG.UtubeHotLeg.P[6] = 15473450.0;
steamGenerator_1SG.UtubeHotLeg.P[7] = 15447485.0;
steamGenerator_1SG.UtubeHotLeg.Q[2] = 4756.0;
steamGenerator_1SG.UtubeHotLeg.Q[3] = 4756.0;
steamGenerator_1SG.UtubeHotLeg.Q[4] = 4756.0;
steamGenerator_1SG.UtubeHotLeg.Q[5] = 4756.0;
steamGenerator_1SG.UtubeHotLeg.Q[6] = 4756.0;
steamGenerator_1SG.UtubeHotLeg.h[2] = 1426528.4;
steamGenerator_1SG.UtubeHotLeg.h[3] = 1390393.4;
steamGenerator_1SG.UtubeHotLeg.h[4] = 1361066.9;
steamGenerator_1SG.UtubeHotLeg.h[5] = 1337339.4;
steamGenerator_1SG.UtubeHotLeg.h[6] = 1318173.2;
steamGenerator_1SG.UtubeHotLeg.h[7] = 1318173.2;
steamGenerator_1SG.UtubeHotLeg.h[7] = 1318173.2;
steamGenerator_1SG.UtubeHotLeg.pro2[6].T = 569.5575;
steamGenerator_1SG.UtubeHotLeg.pro2[6].d = 733.7242;
steamGenerator_1SG.fluidOutletI.h = 2777537.8;
steamGenerator_1SG.fluidOutletI2.h = 1194875.4;
steamGenerator_1SG.heatExchangerWall1.Tp2[1] = 556.5059;
steamGenerator_1SG.heatExchangerWall1.Tp2[2] = 556.2378;
steamGenerator_1SG.heatExchangerWall1.Tp2[3] = 556.00116;
steamGenerator_1SG.heatExchangerWall1.Tp2[4] = 555.7813;
steamGenerator_1SG.heatExchangerWall1.Tp2[5] = 555.5722;
steamGenerator_1SG.volumeA.P = 6684629.0;
steamGenerator_1SG.volumeA.h = 1194875.4;
steamGenerator_1SG.volumeA1.P = 6608083.0;
steamGenerator_1SG.volumeA1.h = 1542954.8;")}));
end TestSteamGenerator_1SG_withClosedPurge2;
within ThermoSysPro.Examples.SimpleExamples;
model TestSteamGenerator_1SG_withClosedPurge3
ThermoSysPro.WaterSteam.BoundaryConditions.SinkP sinkPrimaire(
option_temperature=2,
P0(fixed=true) = 15450000,
h0=1.27187e6)
annotation (Placement(transformation(extent={{68,-64},{88,-44}})));
ThermoSysPro.WaterSteam.BoundaryConditions.SourceQ sourcePrimaire(h0=
1.47084e6, Q0=19024/4)
annotation (Placement(transformation(extent={{-74,-62},{-56,-44}})));
ThermoSysPro.WaterSteam.BoundaryConditions.SourceP sourceGV(
P0=7370400,
h0=978133.25,
option_temperature=2)
annotation (Placement(transformation(extent={{98,24},{74,48}})));
ThermoSysPro.WaterSteam.BoundaryConditions.SinkQ sinkGV(Q0=(2147.6 - 0.00093930797)
/4,
h0=2.77090e6)
annotation (Placement(transformation(extent={{74,56},{94,76}})));
ThermoSysPro.WaterSteam.PressureLosses.ControlValve VV_GV(
Cvmax(fixed=false) = 8791.226,
Q(fixed=false),
Pm(fixed=false),
C2(P(fixed=false, start=6880000)))
annotation (Placement(transformation(extent={{66,32},{44,52}})));
ThermoSysPro.WaterSteam.PressureLosses.SingularPressureLoss DP_GV(K(fixed=
true) = 1e-5)
annotation (Placement(transformation(extent={{24,62},{44,82}})));
ThermoSysPro.InstrumentationAndControl.Blocks.Sources.Constante constante(k=0.7)
annotation (Placement(transformation(extent={{26,-12},{46,8}})));
ThermoSysPro.WaterSteam.BoundaryConditions.SinkQ sinkGV_apg(Q0=0.00093930797/4,
h0=1199.465e3)
annotation (Placement(transformation(extent={{58,-40},{78,-20}})));
ThermoSysPro.WaterSteam.PressureLosses.SingularPressureLoss DP_GV_apg(K(fixed=
true) = 1e-5)
annotation (Placement(transformation(extent={{8,-34},{28,-14}})));
ThermoSysPro.WaterSteam.HeatExchangers.SteamGenerator_1SG_purges
steamGenerator_1SG(
UtubeHotLeg(hcCorr=5.19),
UtubeColdtLeg(hcCorr=5.19),
DomeGV(zl(start=0.66, fixed=true)),
MixAlimDomeGV,
DPnulle_DomeDwnc,
CapteurPAlim,
heatExchangerWall(lambda=150),
heatExchangerWall1(lambda=150),
RiserGV(
dpfCorr(fixed=true) = 50,
hcCorr=5.19,
C1(P(fixed=false, start=7070000)),
C2(P(fixed=false, start=6880000)))) annotation (Placement(
transformation(extent={{-50,-6},{2,42}})));
equation
connect(VV_GV.C1, sourceGV.C)
annotation (Line(points={{66,36},{74,36}}, color={0,0,255}));
connect(DP_GV.C2, sinkGV.C) annotation (Line(points={{44,72},{68,72},{68,66},
{74,66}}, color={238,46,47}));
connect(constante.y, VV_GV.Ouv) annotation (Line(points={{47,-2},{62,-2},{
62,53},{55,53}}, color={0,0,255}));
connect(DP_GV_apg.C2, sinkGV_apg.C) annotation (Line(points={{28,-24},{52,-24},
{52,-30},{58,-30}}, color={238,46,47}));
connect(VV_GV.C2, steamGenerator_1SG.fluidInlet) annotation (Line(points={{44,36},
{-14.9867,36},{-14.9867,35.92}}, color={0,0,255}));
connect(steamGenerator_1SG.fluidOutletI1, sinkPrimaire.C) annotation (Line(
points={{-16.0267,-1.52},{-16.0267,-54},{68,-54}}, color={255,0,0}));
connect(steamGenerator_1SG.fluidInlet1, sourcePrimaire.C) annotation (Line(
points={{-31.9733,-1.52},{-31.9733,-53},{-56,-53}}, color={0,0,255}));
connect(DP_GV_apg.C1, steamGenerator_1SG.fluidOutletI2) annotation (Line(
points={{8,-24},{-2,-24},{-2,3.12},{-16.8933,3.12}}, color={0,0,255}));
connect(DP_GV.C1, steamGenerator_1SG.fluidOutletI)
annotation (Line(points={{24,72},{-24,72},{-24,41.84}}, color={0,0,255}));
annotation (Icon(coordinateSystem(preserveAspectRatio=false)), Diagram(
coordinateSystem(preserveAspectRatio=false), graphics={Text(
extent={{-184,104},{-100,-100}},
lineColor={28,108,200},
textString="// Iteration variables values:
DP_GV.Pm = 7068394.0;
DP_GV_apg.Pm = 7155291.5;
VV_GV.C2.P = 7068393.0;
VV_GV.C2.h_vol = 978133.25;
sinkPrimaire.Q = 4756.0;
sourcePrimaire.P = 15602120.0;
steamGenerator_1SG.CapteurPAlim.C2.h_vol = 1007554.1;
steamGenerator_1SG.DPnulle_AlimDwnc.pro.d = 834.9452;
steamGenerator_1SG.DPnulle_DomeDwnc.Pm = 7068393.5;
steamGenerator_1SG.DomeGV.Cm.Q = 596.8746;
steamGenerator_1SG.DomeGV.Cm.Q = 596.8746;
steamGenerator_1SG.DomeGV.Cs.Q = 59.97482;
steamGenerator_1SG.DomeGV.Cs.Q = 59.97482;
steamGenerator_1SG.DomeGV.Pfond = 7074872.0;
steamGenerator_1SG.DomeGV.Tp = 559.62714;
steamGenerator_1SG.DomeGV.hl = 1270932.5;
steamGenerator_1SG.DomeGV.hv = 2771676.0;
steamGenerator_1SG.DownComerGV.pro.d = 826.39777;
steamGenerator_1SG.MixAlimDomeGV.Cs.Q = 596.8748;
steamGenerator_1SG.MixAlimDomeGV.P = 7068393.0;
steamGenerator_1SG.MixAlimDomeGV.h = 1007554.1;
steamGenerator_1SG.RiserGV.P[2] = 7139844.0;
steamGenerator_1SG.RiserGV.P[3] = 7131381.0;
steamGenerator_1SG.RiserGV.P[4] = 7118790.0;
steamGenerator_1SG.RiserGV.P[5] = 7103591.5;
steamGenerator_1SG.RiserGV.P[6] = 7086486.0;
steamGenerator_1SG.RiserGV.Q[1] = 596.8746;
steamGenerator_1SG.RiserGV.Q[2] = 596.8746;
steamGenerator_1SG.RiserGV.Q[3] = 596.8746;
steamGenerator_1SG.RiserGV.Q[4] = 596.8746;
steamGenerator_1SG.RiserGV.Q[5] = 596.8746;
steamGenerator_1SG.RiserGV.Q[6] = 596.8746;
steamGenerator_1SG.RiserGV.h[2] = 1763458.6;
steamGenerator_1SG.RiserGV.h[3] = 2179319.5;
steamGenerator_1SG.RiserGV.h[4] = 2415660.8;
steamGenerator_1SG.RiserGV.h[5] = 2551510.8;
steamGenerator_1SG.RiserGV.h[6] = 2620879.0;
steamGenerator_1SG.UtubeColdtLeg.P[2] = 15446754.0;
steamGenerator_1SG.UtubeColdtLeg.P[3] = 15447354.0;
steamGenerator_1SG.UtubeColdtLeg.P[4] = 15447989.0;
steamGenerator_1SG.UtubeColdtLeg.P[5] = 15448645.0;
steamGenerator_1SG.UtubeColdtLeg.P[6] = 15449317.0;
steamGenerator_1SG.UtubeColdtLeg.Q[2] = 4756.0;
steamGenerator_1SG.UtubeColdtLeg.Q[3] = 4756.0;
steamGenerator_1SG.UtubeColdtLeg.Q[4] = 4756.0;
steamGenerator_1SG.UtubeColdtLeg.Q[5] = 4756.0;
steamGenerator_1SG.UtubeColdtLeg.h[2] = 1275097.4;
steamGenerator_1SG.UtubeColdtLeg.h[3] = 1272384.6;
steamGenerator_1SG.UtubeColdtLeg.h[4] = 1270610.9;
steamGenerator_1SG.UtubeColdtLeg.h[5] = 1269303.9;
steamGenerator_1SG.UtubeColdtLeg.h[6] = 1268368.9;
steamGenerator_1SG.UtubeHotLeg.P[2] = 15576062.0;
steamGenerator_1SG.UtubeHotLeg.P[3] = 15550085.0;
steamGenerator_1SG.UtubeHotLeg.P[4] = 15524119.0;
steamGenerator_1SG.UtubeHotLeg.P[5] = 15498153.0;
steamGenerator_1SG.UtubeHotLeg.P[6] = 15472183.0;
steamGenerator_1SG.UtubeHotLeg.P[7] = 15446212.0;
steamGenerator_1SG.UtubeHotLeg.Q[2] = 4756.0;
steamGenerator_1SG.UtubeHotLeg.Q[3] = 4756.0;
steamGenerator_1SG.UtubeHotLeg.Q[4] = 4756.0;
steamGenerator_1SG.UtubeHotLeg.Q[5] = 4756.0;
steamGenerator_1SG.UtubeHotLeg.Q[6] = 4756.0;
steamGenerator_1SG.UtubeHotLeg.h[2] = 1380702.2;
steamGenerator_1SG.UtubeHotLeg.h[3] = 1331224.9;
steamGenerator_1SG.UtubeHotLeg.h[4] = 1303337.9;
steamGenerator_1SG.UtubeHotLeg.h[5] = 1287595.9;
steamGenerator_1SG.UtubeHotLeg.h[6] = 1279825.1;
steamGenerator_1SG.UtubeHotLeg.h[7] = 1279825.1;
steamGenerator_1SG.UtubeHotLeg.h[7] = 1279825.1;
steamGenerator_1SG.UtubeHotLeg.pro2[6].T = 562.3159;
steamGenerator_1SG.UtubeHotLeg.pro2[6].d = 747.6996;
steamGenerator_1SG.heatExchangerWall1.Tp2[1] = 560.738;
steamGenerator_1SG.heatExchangerWall1.Tp2[2] = 560.50226;
steamGenerator_1SG.heatExchangerWall1.Tp2[3] = 560.2941;
steamGenerator_1SG.heatExchangerWall1.Tp2[4] = 560.1085;
steamGenerator_1SG.heatExchangerWall1.Tp2[5] = 559.9811;
steamGenerator_1SG.volumeA.P = 7155291.5;
steamGenerator_1SG.volumeA.h = 1007554.1;
steamGenerator_1SG.volumeA1.P = 7068655.5;
steamGenerator_1SG.volumeA1.h = 2620879.0;")}));
end TestSteamGenerator_1SG_withClosedPurge3;
within ThermoSysPro.Examples.SimpleExamples;
model TestSteamGenerator_1SG_withClosedPurge4
ThermoSysPro.WaterSteam.BoundaryConditions.SinkP sinkPrimaire(
option_temperature=2,
P0(fixed=true) = 15450000,
h0=1.27187e6)
annotation (Placement(transformation(extent={{68,-64},{88,-44}})));
ThermoSysPro.WaterSteam.BoundaryConditions.SourceQ sourcePrimaire(h0=
1.47084e6, Q0=19024/4)
annotation (Placement(transformation(extent={{-74,-62},{-56,-44}})));
ThermoSysPro.WaterSteam.BoundaryConditions.SourceP sourceGV(
P0=7370400,
h0=978133.25,
option_temperature=2)
annotation (Placement(transformation(extent={{98,24},{74,48}})));
ThermoSysPro.WaterSteam.BoundaryConditions.SinkQ sinkGV(Q0=2147.6 -
0.00093930797,
h0=2.77090e6)
annotation (Placement(transformation(extent={{74,56},{94,76}})));
ThermoSysPro.WaterSteam.PressureLosses.ControlValve VV_GV(
Cvmax(fixed=false) = 2200,
Q(fixed=false),
Pm(fixed=false),
C2(P(fixed=false, start=7068393)))
annotation (Placement(transformation(extent={{28,32},{6,52}})));
ThermoSysPro.WaterSteam.PressureLosses.SingularPressureLoss DP_GV(K(fixed=
true) = 1e-5)
annotation (Placement(transformation(extent={{24,62},{44,82}})));
ThermoSysPro.InstrumentationAndControl.Blocks.Sources.Constante constante(k=0.7)
annotation (Placement(transformation(extent={{4,-6},{24,14}})));
ThermoSysPro.WaterSteam.BoundaryConditions.SinkQ sinkGV_apg(Q0=0.00093930797,
h0=1199.465e3)
annotation (Placement(transformation(extent={{58,-40},{78,-20}})));
ThermoSysPro.WaterSteam.PressureLosses.SingularPressureLoss DP_GV_apg(K(fixed=
true) = 1e-5)
annotation (Placement(transformation(extent={{26,-34},{46,-14}})));
ThermoSysPro.WaterSteam.HeatExchangers.SteamGenerator_1SG_purges
steamGenerator_1SG(
UtubeHotLeg(hcCorr=5.19),
UtubeColdtLeg(hcCorr=5.19),
DomeGV(zl(start=0.66, fixed=true)),
MixAlimDomeGV,
DPnulle_DomeDwnc,
CapteurPAlim,
heatExchangerWall(lambda=150),
heatExchangerWall1(lambda=150),
RiserGV(
dpfCorr(fixed=true) = 50,
hcCorr=5.19,
C1(P(fixed=false, start=7070000)),
C2(P(fixed=false, start=6880000)))) annotation (Placement(
transformation(extent={{-50,-6},{2,42}})));
WaterSteam.Junctions.MassFlowMultiplier massFlowMultiplier(alpha=4)
annotation (Placement(transformation(extent={{-14,62},{6,82}})));
WaterSteam.Junctions.MassFlowMultiplier massFlowMultiplier1(alpha=0.25)
annotation (Placement(transformation(extent={{62,26},{42,46}})));
WaterSteam.Junctions.MassFlowMultiplier massFlowMultiplier2(alpha=4)
annotation (Placement(transformation(extent={{-2,-34},{18,-14}})));
equation
connect(DP_GV.C2, sinkGV.C) annotation (Line(points={{44,72},{68,72},{68,66},
{74,66}}, color={238,46,47}));
connect(constante.y, VV_GV.Ouv) annotation (Line(points={{25,4},{34,4},{34,56},
{22,56},{22,58},{17,58},{17,53}},
color={0,0,255}));
connect(DP_GV_apg.C2, sinkGV_apg.C) annotation (Line(points={{46,-24},{50,-24},
{50,-30},{58,-30}}, color={238,46,47}));
connect(steamGenerator_1SG.fluidOutletI1, sinkPrimaire.C) annotation (Line(
points={{-16.0267,-1.52},{-16.0267,-54},{68,-54}}, color={255,0,0}));
connect(steamGenerator_1SG.fluidInlet1, sourcePrimaire.C) annotation (Line(
points={{-31.9733,-1.52},{-31.9733,-53},{-56,-53}}, color={0,0,255}));
connect(DP_GV.C1, massFlowMultiplier.Cs)
annotation (Line(points={{24,72},{6,72}}, color={0,0,255}));
connect(massFlowMultiplier.Ce, steamGenerator_1SG.fluidOutletI)
annotation (Line(points={{-14,72},{-24,72},{-24,41.84}}, color={0,0,255}));
connect(DP_GV_apg.C1, massFlowMultiplier2.Cs)
annotation (Line(points={{26,-24},{18,-24}}, color={0,0,255}));
connect(massFlowMultiplier2.Ce, steamGenerator_1SG.fluidOutletI2) annotation
(Line(points={{-2,-24},{-10,-24},{-10,3.12},{-16.8933,3.12}}, color={0,0,
255}));
connect(VV_GV.C2, steamGenerator_1SG.fluidInlet) annotation (Line(points={{6,
36},{-4.49333,36},{-4.49333,35.92},{-14.9867,35.92}}, color={0,0,255}));
connect(VV_GV.C1, massFlowMultiplier1.Cs)
annotation (Line(points={{28,36},{42,36}}, color={0,0,255}));
connect(massFlowMultiplier1.Ce, sourceGV.C)
annotation (Line(points={{62,36},{74,36}}, color={0,0,255}));
annotation (Icon(coordinateSystem(preserveAspectRatio=false)), Diagram(
coordinateSystem(preserveAspectRatio=false), graphics={Text(
extent={{-182,104},{-98,-100}},
lineColor={28,108,200},
textString="// Iteration variables values:
DP_GV.Pm = 7068393.5;
DP_GV_apg.Pm = 7155291.5;
VV_GV.C2.P = 7068393.0;
VV_GV.C2.h_vol = 978133.25;
sinkPrimaire.Q = 4756.0;
sourcePrimaire.P = 15602120.0;
steamGenerator_1SG.CapteurPAlim.C2.h_vol = 1007554.1;
steamGenerator_1SG.DPnulle_AlimDwnc.pro.d = 834.9452;
steamGenerator_1SG.DomeGV.Cm.Q = 596.8746;
steamGenerator_1SG.DomeGV.Cm.Q = 596.8746;
steamGenerator_1SG.DomeGV.Cs.Q = 59.97482;
steamGenerator_1SG.DomeGV.P = 7068394.0;
steamGenerator_1SG.DomeGV.Pfond = 7074872.0;
steamGenerator_1SG.DomeGV.Tp = 559.62714;
steamGenerator_1SG.DomeGV.hl = 1270932.5;
steamGenerator_1SG.DomeGV.hv = 2771676.0;
steamGenerator_1SG.DownComerGV.pro.d = 826.39777;
steamGenerator_1SG.MixAlimDomeGV.Cs.Q = 596.8748;
steamGenerator_1SG.MixAlimDomeGV.P = 7068393.0;
steamGenerator_1SG.MixAlimDomeGV.h = 1007554.1;
steamGenerator_1SG.RiserGV.P[2] = 7139844.0;
steamGenerator_1SG.RiserGV.P[3] = 7131381.0;
steamGenerator_1SG.RiserGV.P[4] = 7118790.0;
steamGenerator_1SG.RiserGV.P[5] = 7103591.5;
steamGenerator_1SG.RiserGV.P[6] = 7086486.0;
steamGenerator_1SG.RiserGV.Q[1] = 596.8746;
steamGenerator_1SG.RiserGV.Q[2] = 596.8746;
steamGenerator_1SG.RiserGV.Q[3] = 596.8746;
steamGenerator_1SG.RiserGV.Q[4] = 596.8746;
steamGenerator_1SG.RiserGV.Q[5] = 596.8746;
steamGenerator_1SG.RiserGV.Q[6] = 596.8746;
steamGenerator_1SG.RiserGV.h[2] = 1763458.6;
steamGenerator_1SG.RiserGV.h[3] = 2179319.5;
steamGenerator_1SG.RiserGV.h[4] = 2415660.8;
steamGenerator_1SG.RiserGV.h[5] = 2551510.8;
steamGenerator_1SG.RiserGV.h[6] = 2620879.0;
steamGenerator_1SG.UtubeColdtLeg.P[2] = 15446754.0;
steamGenerator_1SG.UtubeColdtLeg.P[3] = 15447354.0;
steamGenerator_1SG.UtubeColdtLeg.P[4] = 15447989.0;
steamGenerator_1SG.UtubeColdtLeg.P[5] = 15448645.0;
steamGenerator_1SG.UtubeColdtLeg.P[6] = 15449317.0;
steamGenerator_1SG.UtubeColdtLeg.Q[2] = 4756.0;
steamGenerator_1SG.UtubeColdtLeg.Q[3] = 4756.0;
steamGenerator_1SG.UtubeColdtLeg.Q[4] = 4756.0;
steamGenerator_1SG.UtubeColdtLeg.Q[5] = 4756.0;
steamGenerator_1SG.UtubeColdtLeg.h[2] = 1275097.4;
steamGenerator_1SG.UtubeColdtLeg.h[3] = 1272384.6;
steamGenerator_1SG.UtubeColdtLeg.h[4] = 1270610.9;
steamGenerator_1SG.UtubeColdtLeg.h[5] = 1269303.9;
steamGenerator_1SG.UtubeColdtLeg.h[6] = 1268368.9;
steamGenerator_1SG.UtubeHotLeg.P[2] = 15576062.0;
steamGenerator_1SG.UtubeHotLeg.P[3] = 15550085.0;
steamGenerator_1SG.UtubeHotLeg.P[4] = 15524119.0;
steamGenerator_1SG.UtubeHotLeg.P[5] = 15498153.0;
steamGenerator_1SG.UtubeHotLeg.P[6] = 15472183.0;
steamGenerator_1SG.UtubeHotLeg.P[7] = 15446212.0;
steamGenerator_1SG.UtubeHotLeg.Q[2] = 4756.0;
steamGenerator_1SG.UtubeHotLeg.Q[3] = 4756.0;
steamGenerator_1SG.UtubeHotLeg.Q[4] = 4756.0;
steamGenerator_1SG.UtubeHotLeg.Q[5] = 4756.0;
steamGenerator_1SG.UtubeHotLeg.Q[6] = 4756.0;
steamGenerator_1SG.UtubeHotLeg.h[2] = 1380702.2;
steamGenerator_1SG.UtubeHotLeg.h[3] = 1331224.9;
steamGenerator_1SG.UtubeHotLeg.h[4] = 1303337.9;
steamGenerator_1SG.UtubeHotLeg.h[5] = 1287595.9;
steamGenerator_1SG.UtubeHotLeg.h[6] = 1279825.1;
steamGenerator_1SG.UtubeHotLeg.h[7] = 1279825.1;
steamGenerator_1SG.UtubeHotLeg.h[7] = 1279825.1;
steamGenerator_1SG.UtubeHotLeg.pro2[6].T = 562.3159;
steamGenerator_1SG.UtubeHotLeg.pro2[6].d = 747.6996;
steamGenerator_1SG.fluidOutletI.h = 2771676.0;
steamGenerator_1SG.fluidOutletI2.h = 1007554.1;
steamGenerator_1SG.heatExchangerWall1.Tp2[1] = 560.738;
steamGenerator_1SG.heatExchangerWall1.Tp2[2] = 560.50226;
steamGenerator_1SG.heatExchangerWall1.Tp2[3] = 560.2941;
steamGenerator_1SG.heatExchangerWall1.Tp2[4] = 560.1085;
steamGenerator_1SG.heatExchangerWall1.Tp2[5] = 559.9811;
steamGenerator_1SG.volumeA.P = 7155291.5;
steamGenerator_1SG.volumeA.h = 1007554.1;
steamGenerator_1SG.volumeA1.P = 7068655.5;
steamGenerator_1SG.volumeA1.h = 2620879.0;")}));
end TestSteamGenerator_1SG_withClosedPurge4;
within ThermoSysPro.Examples.SimpleExamples;
model TestSteamGenerator_1SG_withClosedPurge5
ThermoSysPro.WaterSteam.BoundaryConditions.SinkP sinkPrimaire(
option_temperature=2,
P0(fixed=true) = 15450000,
h0=1.27187e6)
annotation (Placement(transformation(extent={{68,-64},{88,-44}})));
ThermoSysPro.WaterSteam.BoundaryConditions.SourceQ sourcePrimaire(h0=
1.47084e6, Q0=19024/4)
annotation (Placement(transformation(extent={{-74,-62},{-56,-44}})));
ThermoSysPro.WaterSteam.BoundaryConditions.SourceP sourceGV(
P0=7370400,
h0=978133.25,
option_temperature=2)
annotation (Placement(transformation(extent={{98,24},{74,48}})));
ThermoSysPro.WaterSteam.BoundaryConditions.SinkQ sinkGV(Q0=2147.6 -
0.00093930797,
h0=2.77090e6)
annotation (Placement(transformation(extent={{74,56},{94,76}})));
ThermoSysPro.WaterSteam.PressureLosses.ControlValve VV_GV(
Cvmax(fixed=false) = 2200,
Q(fixed=false),
Pm(fixed=false),
C2(P(fixed=false, start=7068393)))
annotation (Placement(transformation(extent={{28,32},{6,52}})));
ThermoSysPro.WaterSteam.PressureLosses.SingularPressureLoss DP_GV(K(fixed=
true) = 1e-5)
annotation (Placement(transformation(extent={{24,62},{44,82}})));
ThermoSysPro.InstrumentationAndControl.Blocks.Sources.Constante constante(k=0.7)
annotation (Placement(transformation(extent={{4,-6},{24,14}})));
ThermoSysPro.WaterSteam.BoundaryConditions.SinkQ sinkGV_apg(Q0=0.00093930797,
h0=1199.465e3)
annotation (Placement(transformation(extent={{58,-40},{78,-20}})));
ThermoSysPro.WaterSteam.PressureLosses.SingularPressureLoss DP_GV_apg(K(fixed=
true) = 1e-5)
annotation (Placement(transformation(extent={{26,-34},{46,-14}})));
ThermoSysPro.WaterSteam.HeatExchangers.SteamGenerator_1SG_purges
steamGenerator_1SG(
UtubeHotLeg(hcCorr=5.19),
UtubeColdtLeg(hcCorr=5.19),
DomeGV(zl(start=0.66, fixed=true)),
MixAlimDomeGV,
DPnulle_DomeDwnc,
CapteurPAlim,
heatExchangerWall(lambda=150),
heatExchangerWall1(lambda=150),
RiserGV(
dpfCorr(fixed=true) = 5.7,
hcCorr=5.19,
C1(P(fixed=false, start=7070000)),
C2(P(fixed=false, start=6880000)))) annotation (Placement(
transformation(extent={{-50,-6},{2,42}})));
WaterSteam.Junctions.MassFlowMultiplier massFlowMultiplier(alpha=4)
annotation (Placement(transformation(extent={{-14,62},{6,82}})));
WaterSteam.Junctions.MassFlowMultiplier massFlowMultiplier1(alpha=0.25)
annotation (Placement(transformation(extent={{62,26},{42,46}})));
WaterSteam.Junctions.MassFlowMultiplier massFlowMultiplier2(alpha=4)
annotation (Placement(transformation(extent={{-2,-34},{18,-14}})));
equation
connect(DP_GV.C2, sinkGV.C) annotation (Line(points={{44,72},{68,72},{68,66},
{74,66}}, color={238,46,47}));
connect(constante.y, VV_GV.Ouv) annotation (Line(points={{25,4},{34,4},{34,56},
{22,56},{22,58},{17,58},{17,53}},
color={0,0,255}));
connect(DP_GV_apg.C2, sinkGV_apg.C) annotation (Line(points={{46,-24},{50,-24},
{50,-30},{58,-30}}, color={238,46,47}));
connect(steamGenerator_1SG.fluidOutletI1, sinkPrimaire.C) annotation (Line(
points={{-16.0267,-1.52},{-16.0267,-54},{68,-54}}, color={255,0,0}));
connect(steamGenerator_1SG.fluidInlet1, sourcePrimaire.C) annotation (Line(
points={{-31.9733,-1.52},{-31.9733,-53},{-56,-53}}, color={0,0,255}));
connect(DP_GV.C1, massFlowMultiplier.Cs)
annotation (Line(points={{24,72},{6,72}}, color={0,0,255}));
connect(massFlowMultiplier.Ce, steamGenerator_1SG.fluidOutletI)
annotation (Line(points={{-14,72},{-24,72},{-24,41.84}}, color={0,0,255}));
connect(DP_GV_apg.C1, massFlowMultiplier2.Cs)
annotation (Line(points={{26,-24},{18,-24}}, color={0,0,255}));
connect(massFlowMultiplier2.Ce, steamGenerator_1SG.fluidOutletI2) annotation (
Line(points={{-2,-24},{-10,-24},{-10,3.12},{-16.8933,3.12}}, color={0,0,
255}));
connect(VV_GV.C2, steamGenerator_1SG.fluidInlet) annotation (Line(points={{6,36},{
-4.49333,36},{-4.49333,35.92},{-14.9867,35.92}}, color={0,0,255}));
connect(VV_GV.C1, massFlowMultiplier1.Cs)
annotation (Line(points={{28,36},{42,36}}, color={0,0,255}));
connect(massFlowMultiplier1.Ce, sourceGV.C)
annotation (Line(points={{62,36},{74,36}}, color={0,0,255}));
annotation (Icon(coordinateSystem(preserveAspectRatio=false)), Diagram(
coordinateSystem(preserveAspectRatio=false), graphics={Text(
extent={{-242,-26},{-158,-230}},
lineColor={28,108,200},
textString="// Iteration variables values:
DP_GV.Pm = 7091364.5;
DP_GV_apg.Pm = 7160126.5;
VV_GV.C2.P = 7090542.5;
VV_GV.C2.h_vol = 978133.25;
sinkPrimaire.Q = 4756.0;
sourcePrimaire.P = 15602015.0;
steamGenerator_1SG.CapteurPAlim.C2.h_vol = 1206752.1;
steamGenerator_1SG.DPnulle_AlimDwnc.pro.d = 834.9668;
steamGenerator_1SG.DomeGV.Cm.Q = 2414.568;
steamGenerator_1SG.DomeGV.Cm.Q = 2414.568;
steamGenerator_1SG.DomeGV.Cs.Q = 1877.6683;
steamGenerator_1SG.DomeGV.P = 7091365.0;
steamGenerator_1SG.DomeGV.Pfond = 7097843.0;
steamGenerator_1SG.DomeGV.Tp = 559.849;
steamGenerator_1SG.DomeGV.hl = 1272123.2;
steamGenerator_1SG.DomeGV.hv = 2771373.8;
steamGenerator_1SG.DownComerGV.pro.d = 762.06726;
steamGenerator_1SG.MixAlimDomeGV.Cs.Q = 2414.5684;
steamGenerator_1SG.MixAlimDomeGV.P = 7090542.5;
steamGenerator_1SG.MixAlimDomeGV.h = 1206752.1;
steamGenerator_1SG.RiserGV.P[2] = 7145042.5;
steamGenerator_1SG.RiserGV.P[3] = 7135627.5;
steamGenerator_1SG.RiserGV.P[4] = 7125689.0;
steamGenerator_1SG.RiserGV.P[5] = 7115047.5;
steamGenerator_1SG.RiserGV.P[6] = 7103958.0;
steamGenerator_1SG.RiserGV.Q[1] = 2414.568;
steamGenerator_1SG.RiserGV.Q[2] = 2414.568;
steamGenerator_1SG.RiserGV.Q[3] = 2414.568;
steamGenerator_1SG.RiserGV.Q[4] = 2414.568;
steamGenerator_1SG.RiserGV.Q[5] = 2414.568;
steamGenerator_1SG.RiserGV.Q[6] = 2414.568;
steamGenerator_1SG.RiserGV.h[2] = 1398408.5;
steamGenerator_1SG.RiserGV.h[3] = 1503102.4;
steamGenerator_1SG.RiserGV.h[4] = 1559065.9;
steamGenerator_1SG.RiserGV.h[5] = 1589044.2;
steamGenerator_1SG.RiserGV.h[6] = 1605494.4;
steamGenerator_1SG.UtubeColdtLeg.P[2] = 15446699.0;
steamGenerator_1SG.UtubeColdtLeg.P[3] = 15447328.0;
steamGenerator_1SG.UtubeColdtLeg.P[4] = 15447978.0;
steamGenerator_1SG.UtubeColdtLeg.P[5] = 15448642.0;
steamGenerator_1SG.UtubeColdtLeg.P[6] = 15449317.0;
steamGenerator_1SG.UtubeColdtLeg.Q[2] = 4756.0;
steamGenerator_1SG.UtubeColdtLeg.Q[3] = 4756.0;
steamGenerator_1SG.UtubeColdtLeg.Q[4] = 4756.0;
steamGenerator_1SG.UtubeColdtLeg.Q[5] = 4756.0;
steamGenerator_1SG.UtubeColdtLeg.h[2] = 1272811.5;
steamGenerator_1SG.UtubeColdtLeg.h[3] = 1271084.5;
steamGenerator_1SG.UtubeColdtLeg.h[4] = 1269947.2;
steamGenerator_1SG.UtubeColdtLeg.h[5] = 1269104.1;
steamGenerator_1SG.UtubeColdtLeg.h[6] = 1268403.0;
steamGenerator_1SG.UtubeHotLeg.P[2] = 15575957.0;
steamGenerator_1SG.UtubeHotLeg.P[3] = 15549982.0;
steamGenerator_1SG.UtubeHotLeg.P[4] = 15524016.0;
steamGenerator_1SG.UtubeHotLeg.P[5] = 15498049.0;
steamGenerator_1SG.UtubeHotLeg.P[6] = 15472078.0;
steamGenerator_1SG.UtubeHotLeg.P[7] = 15446106.0;
steamGenerator_1SG.UtubeHotLeg.Q[2] = 4756.0;
steamGenerator_1SG.UtubeHotLeg.Q[3] = 4756.0;
steamGenerator_1SG.UtubeHotLeg.Q[4] = 4756.0;
steamGenerator_1SG.UtubeHotLeg.Q[5] = 4756.0;
steamGenerator_1SG.UtubeHotLeg.Q[6] = 4756.0;
steamGenerator_1SG.UtubeHotLeg.h[2] = 1376375.5;
steamGenerator_1SG.UtubeHotLeg.h[3] = 1324950.6;
steamGenerator_1SG.UtubeHotLeg.h[4] = 1297675.8;
steamGenerator_1SG.UtubeHotLeg.h[5] = 1283299.2;
steamGenerator_1SG.UtubeHotLeg.h[6] = 1275648.9;
steamGenerator_1SG.UtubeHotLeg.h[7] = 1275648.9;
steamGenerator_1SG.UtubeHotLeg.h[7] = 1275648.9;
steamGenerator_1SG.UtubeHotLeg.pro2[6].T = 561.5154;
steamGenerator_1SG.UtubeHotLeg.pro2[6].d = 749.1915;
steamGenerator_1SG.fluidOutletI.h = 2771373.8;
steamGenerator_1SG.fluidOutletI2.h = 1206752.1;
steamGenerator_1SG.heatExchangerWall1.Tp2[1] = 560.56665;
steamGenerator_1SG.heatExchangerWall1.Tp2[2] = 560.39185;
steamGenerator_1SG.heatExchangerWall1.Tp2[3] = 560.25653;
steamGenerator_1SG.heatExchangerWall1.Tp2[4] = 560.1358;
steamGenerator_1SG.heatExchangerWall1.Tp2[5] = 560.0208;
steamGenerator_1SG.volumeA.P = 7160126.5;
steamGenerator_1SG.volumeA.h = 1206752.1;
steamGenerator_1SG.volumeA1.P = 7092599.0;
steamGenerator_1SG.volumeA1.h = 1605494.4;")}));
end TestSteamGenerator_1SG_withClosedPurge5;
within ThermoSysPro.Examples.SimpleExamples;
model TestSteamGenerator_1SG_withOpenPurge
ThermoSysPro.WaterSteam.BoundaryConditions.SinkP sinkPrimaire(
option_temperature=2,
P0(fixed=true) = 15450000,
h0=1.27187e6)
annotation (Placement(transformation(extent={{68,-64},{88,-44}})));
ThermoSysPro.WaterSteam.BoundaryConditions.SourceQ sourcePrimaire(h0=
1.47084e6, Q0=19024/4)
annotation (Placement(transformation(extent={{-74,-62},{-56,-44}})));
ThermoSysPro.WaterSteam.BoundaryConditions.SourceP sourceGV(
P0=7370400,
h0=978133.25,
option_temperature=2)
annotation (Placement(transformation(extent={{98,24},{74,48}})));
ThermoSysPro.WaterSteam.BoundaryConditions.SinkQ sinkGV(
Q0=(2147.6/4) - 5.8,
h0=2.77090e6)
annotation (Placement(transformation(extent={{74,56},{94,76}})));
ThermoSysPro.WaterSteam.PressureLosses.ControlValve VV_GV(
Cvmax(fixed=false) = 8791.226,
Q(fixed=false),
Pm(fixed=false),
C2(P(fixed=false, start=6880000)))
annotation (Placement(transformation(extent={{66,32},{44,52}})));
ThermoSysPro.WaterSteam.PressureLosses.SingularPressureLoss DP_GV(K(fixed=
true) = 1e-5)
annotation (Placement(transformation(extent={{24,62},{44,82}})));
ThermoSysPro.InstrumentationAndControl.Blocks.Sources.Constante constante(k=0.7)
annotation (Placement(transformation(extent={{26,-12},{46,8}})));
ThermoSysPro.WaterSteam.HeatExchangers.SteamGenerator_1SG_purges
steamGenerator_1SG(
DomeGV(
R=2.2,
L=5,
zl(start=0.66, fixed=true)),
MixAlimDomeGV,
DPnulle_DomeDwnc,
CapteurPAlim,
RiserGV(
L=10.8,
z2=10.8,
dpfCorr(fixed=true) = 5.7,
C1(P(fixed=false, start=7070000)),
C2(P(fixed=false, start=6880000))),
DownComerGV(lambda=0.01))
annotation (Placement(transformation(extent={{-46,-26},{10,36}})));
ThermoSysPro.WaterSteam.BoundaryConditions.SinkQ sinkGV_apg(
Q0=5.8,
h0=1199.465e3)
annotation (Placement(transformation(extent={{58,-40},{78,-20}})));
ThermoSysPro.WaterSteam.PressureLosses.SingularPressureLoss DP_GV_apg(K(fixed=
true) = 1e-5)
annotation (Placement(transformation(extent={{8,-34},{28,-14}})));
equation
connect(VV_GV.C1, sourceGV.C)
annotation (Line(points={{66,36},{74,36}}, color={0,0,255}));
connect(DP_GV.C2, sinkGV.C) annotation (Line(points={{44,72},{68,72},{68,66},
{74,66}}, color={238,46,47}));
connect(constante.y, VV_GV.Ouv) annotation (Line(points={{47,-2},{62,-2},{
62,53},{55,53}}, color={0,0,255}));
connect(sourcePrimaire.C, steamGenerator_1SG.fluidInlet1) annotation (Line(
points={{-56,-53},{-26.5867,-53},{-26.5867,-20.2133}}, color={0,0,255}));
connect(steamGenerator_1SG.fluidOutletI1, sinkPrimaire.C) annotation (Line(
points={{-9.41333,-20.2133},{-9.41333,-54},{68,-54}}, color={28,108,
200}));
connect(VV_GV.C2, steamGenerator_1SG.fluidInlet) annotation (Line(points={{44,36},
{-8.29333,36},{-8.29333,28.1467}}, color={0,0,255}));
connect(DP_GV.C1, steamGenerator_1SG.fluidOutletI) annotation (Line(points={{24,72},
{8,72},{8,70},{-18,70},{-18,35.7933}}, color={238,46,47}));
connect(DP_GV_apg.C2, sinkGV_apg.C) annotation (Line(points={{28,-24},{52,-24},
{52,-30},{58,-30}}, color={238,46,47}));
connect(DP_GV_apg.C1, steamGenerator_1SG.fluidOutletI2) annotation (Line(
points={{8,-24},{8,-14},{-10.3467,-14},{-10.3467,-14.22}}, color={0,0,
255}));
annotation (Icon(coordinateSystem(preserveAspectRatio=false)), Diagram(
coordinateSystem(preserveAspectRatio=false), graphics={Text(
extent={{-184,104},{-100,-100}},
lineColor={28,108,200},
textString="// Iteration variables values:
DP_GV.Pm = 6648428.0;
DP_GV_apg.Pm = 6726420.5;
VV_GV.C2.P = 6647256.0;
VV_GV.C2.h_vol = 978133.25;
sinkPrimaire.Q = 4756.0;
sourcePrimaire.P = 15603571.0;
steamGenerator_1SG.CapteurPAlim.C2.h_vol = 1196944.8;
steamGenerator_1SG.DPnulle_AlimDwnc.pro.d = 834.53326;
steamGenerator_1SG.DPnulle_DomeDwnc.Pm = 6647842.0;
steamGenerator_1SG.DomeGV.Cm.Q = 2784.4155;
steamGenerator_1SG.DomeGV.Cm.Q = 2784.4155;
steamGenerator_1SG.DomeGV.Cs.Q = 2253.3152;
steamGenerator_1SG.DomeGV.Cs.Q = 2253.3152;
steamGenerator_1SG.DomeGV.Pfond = 6654905.0;
steamGenerator_1SG.DomeGV.Tp = 555.5142;
steamGenerator_1SG.DomeGV.hl = 1249081.2;
steamGenerator_1SG.DomeGV.hv = 2777023.5;
steamGenerator_1SG.DownComerGV.pro.d = 764.9275;
steamGenerator_1SG.MixAlimDomeGV.Cs.Q = 2790.2153;
steamGenerator_1SG.MixAlimDomeGV.P = 6647256.0;
steamGenerator_1SG.MixAlimDomeGV.h = 1196944.8;
steamGenerator_1SG.RiserGV.P[2] = 6710845.5;
steamGenerator_1SG.RiserGV.P[3] = 6699125.5;
steamGenerator_1SG.RiserGV.P[4] = 6688239.5;
steamGenerator_1SG.RiserGV.P[5] = 6676518.5;
steamGenerator_1SG.RiserGV.P[6] = 6663742.5;
steamGenerator_1SG.RiserGV.Q[1] = 2784.4153;
steamGenerator_1SG.RiserGV.Q[2] = 2784.4153;
steamGenerator_1SG.RiserGV.Q[3] = 2784.4153;
steamGenerator_1SG.RiserGV.Q[4] = 2784.4153;
steamGenerator_1SG.RiserGV.Q[5] = 2784.4153;
steamGenerator_1SG.RiserGV.Q[6] = 2784.4153;
steamGenerator_1SG.RiserGV.h[2] = 1296857.6;
steamGenerator_1SG.RiserGV.h[3] = 1378131.0;
steamGenerator_1SG.RiserGV.h[4] = 1444020.8;
steamGenerator_1SG.RiserGV.h[5] = 1497354.8;
steamGenerator_1SG.RiserGV.h[6] = 1540521.2;
steamGenerator_1SG.UtubeColdtLeg.P[2] = 15447653.0;
steamGenerator_1SG.UtubeColdtLeg.P[3] = 15447875.0;
steamGenerator_1SG.UtubeColdtLeg.P[4] = 15448249.0;
steamGenerator_1SG.UtubeColdtLeg.P[5] = 15448743.0;
steamGenerator_1SG.UtubeColdtLeg.P[6] = 15449333.0;
steamGenerator_1SG.UtubeColdtLeg.Q[2] = 4756.0;
steamGenerator_1SG.UtubeColdtLeg.Q[3] = 4756.0;
steamGenerator_1SG.UtubeColdtLeg.Q[4] = 4756.0;
steamGenerator_1SG.UtubeColdtLeg.Q[5] = 4756.0;
steamGenerator_1SG.UtubeColdtLeg.h[2] = 1305069.5;
steamGenerator_1SG.UtubeColdtLeg.h[3] = 1293253.4;
steamGenerator_1SG.UtubeColdtLeg.h[4] = 1283710.5;
steamGenerator_1SG.UtubeColdtLeg.h[5] = 1275981.0;
steamGenerator_1SG.UtubeColdtLeg.h[6] = 1269692.0;
steamGenerator_1SG.UtubeHotLeg.P[2] = 15577513.0;
steamGenerator_1SG.UtubeHotLeg.P[3] = 15551505.0;
steamGenerator_1SG.UtubeHotLeg.P[4] = 15525523.0;
steamGenerator_1SG.UtubeHotLeg.P[5] = 15499552.0;
steamGenerator_1SG.UtubeHotLeg.P[6] = 15473586.0;
steamGenerator_1SG.UtubeHotLeg.P[7] = 15447621.0;
steamGenerator_1SG.UtubeHotLeg.Q[2] = 4756.0;
steamGenerator_1SG.UtubeHotLeg.Q[3] = 4756.0;
steamGenerator_1SG.UtubeHotLeg.Q[4] = 4756.0;
steamGenerator_1SG.UtubeHotLeg.Q[5] = 4756.0;
steamGenerator_1SG.UtubeHotLeg.Q[6] = 4756.0;
steamGenerator_1SG.UtubeHotLeg.h[2] = 1426988.1;
steamGenerator_1SG.UtubeHotLeg.h[3] = 1391222.6;
steamGenerator_1SG.UtubeHotLeg.h[4] = 1362190.1;
steamGenerator_1SG.UtubeHotLeg.h[5] = 1338695.1;
steamGenerator_1SG.UtubeHotLeg.h[6] = 1319712.1;
steamGenerator_1SG.UtubeHotLeg.h[7] = 1319712.1;
steamGenerator_1SG.UtubeHotLeg.h[7] = 1319712.1;
steamGenerator_1SG.UtubeHotLeg.pro2[6].T = 569.8439;
steamGenerator_1SG.UtubeHotLeg.pro2[6].d = 733.1528;
steamGenerator_1SG.heatExchangerWall1.Tp2[1] = 556.9178;
steamGenerator_1SG.heatExchangerWall1.Tp2[2] = 556.65125;
steamGenerator_1SG.heatExchangerWall1.Tp2[3] = 556.4163;
steamGenerator_1SG.heatExchangerWall1.Tp2[4] = 556.19824;
steamGenerator_1SG.heatExchangerWall1.Tp2[5] = 555.9911;
steamGenerator_1SG.volumeA.P = 6726420.5;
steamGenerator_1SG.volumeA.h = 1196944.8;
steamGenerator_1SG.volumeA1.P = 6649966.5;
steamGenerator_1SG.volumeA1.h = 1540521.2;
")}));
end TestSteamGenerator_1SG_withOpenPurge;
......@@ -103,3 +103,9 @@ TestVolumeATh
TestVolume_SteamCavitiesPipeValve
TestHysteresis
TestWirelessSensor
TestSteamGenerator_1SG_withOpenPurge
TestSteamGenerator_1SG_withClosedPurge
TestSteamGenerator_1SG_withClosedPurge2
TestSteamGenerator_1SG_withClosedPurge3
TestSteamGenerator_1SG_withClosedPurge4
TestSteamGenerator_1SG_withClosedPurge5
......@@ -92,8 +92,8 @@ equation
end if;
connect(DynamicCondenser.Cl, C2ex)
annotation (Line(points={{7.10543e-015,-73.3333},
{7.10543e-015,-98},{0,-98},{0,-100}}, color={0,0,255}));
annotation (Line(points={{7.10543e-15,-73.3333},
{7.10543e-15,-98},{0,-98},{0,-100}}, color={0,0,255}));
connect(C1, DynamicCondenser.Ce)
annotation (Line(points={{-97,81},{-80,81},{-80,54},{-78,54},{-78,52.6667},
{-76.5714,52.6667}}));
......
within ThermoSysPro.WaterSteam.HeatExchangers;
model SteamGenerator_1SG_purges "Individual steam generator"
parameter Real H0_Mix_AlimDomeGV=1194812.89980521;
parameter Integer ntubes=5342;
public
ThermoSysPro.WaterSteam.HeatExchangers.DynamicOnePhaseFlowPipe UtubeHotLeg(
option_temperature=2,
mode=0,
steady_state=true,
L=10.848,
D=0.01687,
z2=10.848,
P(start={15548026.576998,15539261.540558,15513354.885726,15479081.11289,
15444819.569988,15410560.642776,15395560}),
h(start={1483455.66417054,1452982.36179149,1407381.72335656,
1372666.398393,1346263.00297153,1326153.46646787,1326153}),
Tp(start={564,562,560,559,568}),
Ns=5,
inertia=false,
dpfCorr=0.17,
hcCorr=5,
ntubes=ntubes)
annotation (Placement(transformation(
origin={-67,-41.5},
extent={{30.5,-15},{-30.5,15}},
rotation=270)));
ThermoSysPro.WaterSteam.HeatExchangers.DynamicOnePhaseFlowPipe UtubeColdtLeg(
option_temperature=2,
mode=0,
steady_state=true,
L=10.848,
D=0.01687,
P(start={15393431.104025,15393244.26355,15392971.944187,15392877.066005,
15392915.646752,15393000.834432,15393020}),
h(start={1326153.46646787,1310848.36111251,1299218.76228131,
1290360.28876122,1283604.94388924,1280654.73156587,1280654.73156587}),
Tp(start={584,580,575,571,568}),
Ns=5,
inertia=false,
dpfCorr=0.17,
hcCorr=5,
z1=10.848,
ntubes=ntubes)
annotation (Placement(transformation(
origin={67,-41.5},
extent={{30.5,-14},{-30.5,14}},
rotation=90)));
ThermoSysPro.WaterSteam.Volumes.DynamicDrum DomeGV(
hl(start=1257382.15477056),
hv(start=2771260.46625813),
steady_state=true,
cpp=500,
L=8.625,
Vf0=0.1,
Cd(P(start=67.9e5)),
zl(fixed=false, start=0.66),
R=4.2818979,
Mp=32000) annotation (Placement(transformation(extent={{-22,64},{22,107}},
rotation=0)));
//redeclare package SinkAndSource = SinkAndSource,
ThermoSysPro.WaterSteam.PressureLosses.LumpedStraightPipe DPSeparateurCyclone(
L=1,
D=0.95886,
lambda=0.03) annotation (Placement(transformation(
origin={0,42},
extent={{-5,-10},{5,10}},
rotation=90)));
ThermoSysPro.WaterSteam.Volumes.VolumeC MixAlimDomeGV(
h0=H0_Mix_AlimDomeGV,
steady_state=true,
h(start=1194851.37111438),
V=0.01,
dynamic_mass_balance=false) " " annotation (Placement(transformation(
origin={94,61},
extent={{-8,-8},{8,8}},
rotation=270)));
ThermoSysPro.WaterSteam.PressureLosses.SingularPressureLoss DPnulle_AlimDwnc(
K=1e-4)
annotation (Placement(transformation(
origin={94,88},
extent={{-6,-7},{6,7}},
rotation=270)));
ThermoSysPro.WaterSteam.PressureLosses.SingularPressureLoss DPnulle_DomeDwnc(
p_rho=0,
mode=0,
C2(P(start=6829391.22090726), Q(fixed=false, start=6643)),
K=0.172144) annotation (Placement(transformation(extent={{47,53},
{57,73}}, rotation=0)));
ThermoSysPro.WaterSteam.Sensors.SensorP CapteurPAlim
annotation (Placement(transformation(
origin={99,30},
extent={{-6,-6},{6,6}},
rotation=270)));
ThermoSysPro.WaterSteam.Connectors.FluidOutletI fluidOutletI annotation (Placement(transformation(extent={{
-10,139},{10,159}}, rotation=0)));
ThermoSysPro.WaterSteam.Connectors.FluidInletI fluidInlet annotation (Placement(transformation(extent={{42,102},
{62,122}}, rotation=0)));
ThermoSysPro.WaterSteam.Connectors.FluidInletI fluidInlet1 annotation (
Placement(transformation(extent={{-56,-132},{-36,-112}}, rotation=0)));
ThermoSysPro.WaterSteam.Connectors.FluidOutletI fluidOutletI1 annotation (
Placement(transformation(extent={{36,-132},{56,-112}}, rotation=0)));
ThermoSysPro.InstrumentationAndControl.Connectors.OutputReal outputReal
annotation (Placement(transformation(extent={{-42,86},{-62,106}}, rotation=
0)));
ThermoSysPro.WaterSteam.PressureLosses.LumpedStraightPipe DownComerGV(
p_rho=0,
h(start=1194851.3),
mode=1,
z1=10.8,
C1(
h_vol(start=1.1733e6),
h(start=1.1733e6),
Q(start=7525.84),
P(start=6829391.22090726)),
L=10.8,
D=0.216,
C2(
h_vol(start=1.1733e6),
Q(start=7525.84),
h(start=1.1733e6),
P(fixed=false, start=6849350)),
lambda=0.08,
ntubes=32,
Q(start=7525.84/4)) "DownComerGV" annotation (Placement(transformation(
origin={94.5,-41},
extent={{-31,16.5},{31,-16.5}},
rotation=270)));
ThermoSysPro.Thermal.HeatTransfer.HeatExchangerWall heatExchangerWall(
L=10.848,
D=0.01687,
e=2.18e-3,
lambda=23,
cpw=503,
rhow=8430,
Tp(start={571,568,566,564,562}),
Ns=5,
ntubes=ntubes)
annotation (Placement(transformation(
origin={-44,-41},
extent={{-33,-16},{33,16}},
rotation=270)));
ThermoSysPro.Thermal.HeatTransfer.HeatExchangerWall heatExchangerWall1(
L=10.848,
D=0.01687,
e=2.18e-3,
lambda=23,
cpw=503,
rhow=8430,
Tp(start={563,560,558,557,556}),
Ns=5,
ntubes=ntubes)
annotation (Placement(transformation(
origin={44,-41},
extent={{-33,16},{33,-16}},
rotation=270)));
ThermoSysPro.WaterSteam.HeatExchangers.DynamicTwoPhaseFlowRiser RiserGV(
Ns=5,
P(start={6866734.6044951,6862203.9025063,6853535.2456408,6846247.0825137,
6840314.8313501,6834912.1497303,6828884.4924605}),
h(start={1194851.37008144,1260885.3160958,1364323.64228458,1450411.24087846,
1525552.01981793,1595519.78942018,1595519.78863864}),
Tp1(start={563.83109489963,562.97171435789,562.21322867383,561.55248247184,
560.97588254902}),
Tp2(start={563.83109489963,562.97171435789,562.21322867383,561.55248247184,
560.97588254902}),
D=0.03689,
inertia=false,
L=10.848,
z2=10.848,
hcCorr=5,
dpfCorr=1,
ntubes=ntubes,
Q(start={8600/4,8600/4,8600/4,8600/4,8600/4,8600/4})) annotation (Placement(
transformation(
origin={-2.5,-41},
extent={{-32,31.5},{32,-31.5}},
rotation=90)));
ThermoSysPro.WaterSteam.Volumes.VolumeA volumeA(
P0=6849350,
h0=1185.2e3,
dynamic_mass_balance=true) annotation (Placement(transformation(
origin={1,-96},
extent={{-10,-10},{10,10}},
rotation=90)));
ThermoSysPro.WaterSteam.Volumes.VolumeC volumeA1(
dynamic_mass_balance=true) annotation (Placement(transformation(
origin={0,18},
extent={{-10,-10},{10,10}},
rotation=90)));
ThermoSysPro.WaterSteam.Connectors.FluidOutletI fluidOutletI2 annotation (Placement(transformation(extent={{
36,-98},{46,-88}}), iconTransformation(extent={{36,-98},{46,-88}})));
equation
/* Unconnected connectors */
if (cardinality(fluidOutletI2) == 1) then
fluidOutletI2.Q = 0;
fluidOutletI2.h = 1.e5;
fluidOutletI2.a = true;
end if;
connect(UtubeHotLeg.C2, UtubeColdtLeg.C1) annotation (Line(
points={{-67,-11},{-67,-2},{67,-2},{67,-11}},
color={127,0,0},
thickness=0.5));
connect(MixAlimDomeGV.Ce1, DPnulle_AlimDwnc.C2)
annotation (Line(points={{94,69},{94,82}}, thickness=0.5));
connect(DPnulle_DomeDwnc.C2, MixAlimDomeGV.Ce3) annotation (Line(
points={{57,63},{72,63},{72,61},{86,61}},
color={0,0,255},
thickness=0.5));
connect(MixAlimDomeGV.Cs, CapteurPAlim.C1) annotation (Line(
points={{94,53},{94.2,36}},
color={0,0,255},
thickness=0.5));
connect(DPnulle_AlimDwnc.C1, fluidInlet)
annotation (Line(points={{94,94},{94,100.5},{52,100.5},{52,112}}));
connect(fluidInlet1, UtubeHotLeg.C1) annotation (Line(
points={{-46,-122},{-66,-122},{-66,-72},{-67,-72}},
color={127,0,0},
thickness=0.5));
connect(UtubeColdtLeg.C2, fluidOutletI1) annotation (Line(
points={{67,-72},{68,-78},{68,-122},{46,-122}},
color={127,0,0},
thickness=0.5));
connect(CapteurPAlim.C2, DownComerGV.C1) annotation (Line(
points={{94.2,23.88},{94.2,26.44},{94.5,26.44},{94.5,-10}},
color={0,0,255},
thickness=0.5));
connect(UtubeHotLeg.CTh, heatExchangerWall.WT1) annotation (Line(
points={{-62.5,-41.5},{-57.25,-41.5},{-57.25,-41},{-47.2,-41}},
color={191,95,0},
thickness=0.5));
connect(heatExchangerWall1.WT1, UtubeColdtLeg.CTh) annotation (Line(
points={{47.2,-41},{58,-41},{58,-41.5},{62.8,-41.5}},
color={191,95,0},
thickness=0.5));
connect(RiserGV.C2, volumeA1.Ce1)
annotation (Line(points={{0.65,-9},{
-6.12303e-016,-9},{-6.12303e-016,8}}, color={0,0,255}));
connect(volumeA1.Cs, DPSeparateurCyclone.C1) annotation (Line(points={{
6.12303e-016,28},{-6.12303e-016,28},{-6.12303e-016,37}}, color={0,0,
255}));
connect(heatExchangerWall.WT2, RiserGV.CTh2)
annotation (Line(points={{-40.8,
-41},{-18.25,-41}}, color={191,95,0}));
connect(RiserGV.CTh1, heatExchangerWall1.WT2)
annotation (Line(points={{19.55,
-41},{40.8,-41}}, color={191,95,0}));
connect(DomeGV.Cv, fluidOutletI) annotation (Line(points={{22,107},{22,
124},{0,124},{0,149}},
color={255,0,0}));
connect(DPSeparateurCyclone.C2, DomeGV.Cm) annotation (Line(points={{
6.12303e-16,47},{6.12303e-16,52},{22,52},{22,64}}, color={0,0,255}));
connect(DomeGV.Cs, DPnulle_DomeDwnc.C1) annotation (Line(points={{22,76.9},
{40,76.9},{40,63},{47,63}},color={0,0,255}));
connect(DomeGV.yLevel, outputReal) annotation (Line(points={{24.2,85.5},{
32,85.5},{32,128},{-34,128},{-34,96},{-52,96}},
color={0,0,255}));
connect(volumeA.Cs2, fluidOutletI2) annotation (Line(points={{11,-96},{26,-96},
{26,-93},{41,-93}}, color={0,0,255}));
connect(RiserGV.C1, volumeA.Cs1) annotation (Line(points={{0.65,-73},{0,-73},{
0,-86},{1,-86}}, color={0,0,255}));
connect(DownComerGV.C2, volumeA.Ce1) annotation (Line(points={{94.5,-72},{48,-72},
{48,-106},{1,-106}}, color={0,0,255}));
annotation (Diagram(coordinateSystem(
preserveAspectRatio=false,
extent={{-150,-150},{150,150}},
initialScale=0.1), graphics={Text(
extent={{55,81},{55,75}},
lineColor={0,0,255},
textString=
"petit DP"), Text(
extent={{-126,153},{-84,123}},
lineColor={0,0,255},
textString="= 1 SG")}),
Icon(coordinateSystem(
preserveAspectRatio=false,
extent={{-150,-150},{150,150}},
initialScale=0.1), graphics={
Ellipse(
extent={{-42,150},{42,108}},
lineColor={0,0,0},
fillPattern=FillPattern.VerticalCylinder,
fillColor={0,128,255}),
Rectangle(
extent={{-42,131},{42,80}},
lineColor={0,0,0},
fillPattern=FillPattern.VerticalCylinder,
fillColor={0,128,255}),
Ellipse(
extent={{-36,-108},{36,-150}},
lineColor={0,0,0},
fillPattern=FillPattern.VerticalCylinder,
fillColor={0,128,255}),
Rectangle(
extent={{-42,86},{42,56}},
lineColor={0,0,0},
fillPattern=FillPattern.VerticalCylinder,
fillColor={170,213,255}),
Rectangle(
extent={{-36,42},{36,-128}},
lineColor={0,0,0},
fillPattern=FillPattern.VerticalCylinder,
fillColor={170,213,255}),
Polygon(
points={{-42,56},{42,56},{36,42},{-36,42},{-42,56}},
lineColor={0,0,0},
fillPattern=FillPattern.VerticalCylinder,
fillColor={170,213,255})}),
Documentation(revisions="<html>
<p><u><b>Author</b></u></p>
<ul>
<li>Baligh El Hefni </li>
</ul>
</html>", info="<html>
<p><b>Copyright &copy; EDF 2002 - 2019</b> </p>
<p><b>ThermoSysPro Version 3.2</h4>
</html>"));
end SteamGenerator_1SG_purges;
......@@ -17,3 +17,4 @@ StaticWaterWaterExchanger
StaticWaterWaterExchangerDTorWorEff
SteamGenerator_1SG
SteamGenerator_4SG
SteamGenerator_1SG_purges
......@@ -153,8 +153,8 @@ initial equation
if steady_state then
der(hl) = 0;
der(hv) = 0;
Vl = Vf0*V; // Without liquid level control
//der(Vl) = 0; // With liquid level control
//Vl = Vf0*V; // Without liquid level control
der(Vl) = 0; // With liquid level control
der(P) = 0;
der(Tp) = 0;
else
......