Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
9cd47ca
#73 Pressu example because of wrong synatx for inversion
bmazurie Jul 12, 2026
be2e587
#73 DynamicCentriPump2, added start values espcially for w because wa…
bmazurie Jul 12, 2026
69bc5ca
#73 start values for ThermoSysPro/Examples/SimpleExamples/TestDynamic…
bmazurie Jul 12, 2026
cfa714e
#73 wrong inversion synatx and start values
bmazurie Jul 12, 2026
71d766c
#73 wrong inversion synatx and start values
bmazurie Jul 12, 2026
7aa5c44
#73 wrong inversion synatx and start values
bmazurie Jul 12, 2026
ffb6f0e
#73 added flow reversal
bmazurie Jul 12, 2026
fe14bf6
#73 wrong inversion synatx and start values
bmazurie Jul 12, 2026
8674be4
#73 wrong inversion synatx and start values
bmazurie Jul 12, 2026
f59165b
#73 strangei init with h fixed to true with dymola but not respected …
bmazurie Jul 12, 2026
532dc93
#73 wrong start values
bmazurie Jul 12, 2026
3ab5fe5
#73 Fix flue gas fan examples initialization
bmazurie Jul 12, 2026
ae06afe
#73 wrong inversion synatx and start values
bmazurie Jul 12, 2026
8125de7
#73 wrong inversion syntax
bmazurie Jul 13, 2026
a3140bd
#73 wrong start values for SG
bmazurie Jul 13, 2026
73fa07f
#73 wrong start values for reheaters and too much connectors in control
bmazurie Jul 15, 2026
879bc7d
#73 ConcentratedSolarPowerPlant_PTSC works with omc (a bit long)(1370…
bmazurie Jul 15, 2026
aa27b29
#73 wrong start values for reheaters and too much connectors in control
bmazurie Jul 15, 2026
c3d31e4
#73 Edit .gitlab-ci.yml
bmazurie Jul 23, 2026
612349e
Merge remote-tracking branch 'origin/develop' into 73-OM-examples
bmazurie Nov 20, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ test-job-dymola-internal:
#- git clone https://token:$modelicaTests_token@gitlab.pam-retd.fr/thermosysproandco/modelicatests.git
- git clone https://token:$modelicaTests_mirror_token@gitlab.pleiade.edf.fr/Phy13Models/pythontools/modelicatests_mirror.git
- cd modelicatests*
- python3 -m pip install --upgrade pip
- pip install .
- cd tests
- cp ../../.test/*.json ./
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
within ThermoSysPro.Examples.Book.SimpleExamples.CombustionChamber;

model TestGTCombustionChamber
parameter Real kcham1(fixed = false, start = 1)
"Pressure loss coefficient computed by initialization";
ThermoSysPro.FlueGases.BoundaryConditions.Sink Puits_Fumees2 annotation(
Placement(transformation(origin = {149, -2}, extent = {{23, -24}, {-23, 24}}, rotation = 180)));
Combustion.CombustionChambers.GTCombustionChamber GTCombustionChamber2(Cfg(P(fixed = true, start = 14.1e5)), kcham(fixed = false, start = 1)) annotation(
Combustion.CombustionChambers.GTCombustionChamber GTCombustionChamber2(Cfg(P(fixed = true, start = 14.1e5)), kcham = kcham1) annotation(
Placement(transformation(extent = {{-67, -68}, {67, 64}}, rotation = 0)));
WaterSteam.BoundaryConditions.SourcePQ sourcePQ2(Q0 = 0, P0 = 15e5, h0 = 300e3) annotation(
Placement(transformation(extent = {{-112, 48}, {-72, 88}}, rotation = 0)));
Expand All @@ -29,4 +31,4 @@ equation
This model is documented in Sect. 8.1.5 of the ThermoSysPro book.
The results reported in the ThermoSysPro book were computed using Dymola.
"));
end TestGTCombustionChamber;
end TestGTCombustionChamber;
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ within ThermoSysPro.Examples.Book.SimpleExamples.CombustionChamber;

model TestGenericCombustion1D "TestGenericCombustion1D"
parameter Integer NCEL = 7;
parameter Units.SI.AbsolutePressure sinkWaterSteamP0(fixed = false, start = 19621600)
"Outlet pressure computed by initialization";
Combustion.CombustionChambers.GenericCombustion1D genericCombustionCCS(NCEL = 7, Qm(fixed = false), Qsf(fixed = false), kcham(fixed = true) = 0.1, Acham = 275, Xbf = 0, ImbCV = 0.05, EPSPAR = 0.7, Kec = 8.8, SM = {639.92, 198.58, 466.48, 466.48, 466.48, 358.56, 358.56}, ImbBF = 0.0, Psf(start = 113275)) annotation(
Placement(transformation(extent = {{-62, -56}, {62, 72}}, rotation = 0)));
Combustion.BoundaryConditions.FuelSourcePQ fuelSourcePQ(Xn = 0.0208, Xashes = 0.136, Cp = 1200, rho = 1100, LHV = 29245e3, Xc = 0.719, Xh = 0.0414, Xo = 0.086, Xs = 0.0044, Vol = 0.286, Q0 = 57.20, T0 = 358.15, Hum = 0.08) annotation(
Expand All @@ -12,11 +14,11 @@ model TestGenericCombustion1D "TestGenericCombustion1D"
Placement(transformation(extent = {{0, 70}, {44, 112}}, rotation = 0)));
WaterSteam.BoundaryConditions.SourcePQ SourcePQ_Water(Q0 = 0, P0 = 100000) annotation(
Placement(transformation(extent = {{-107, 23}, {-71, 57}}, rotation = 0)));
WaterSteam.HeatExchangers.DynamicTwoPhaseFlowPipe PipeWaterSteam(Ns = 7, z2 = 56, rugosrel = 5e-5, ntubes = 403, L = 58, D = 0.0327, C2(Q(fixed = false, start = 486.69), P(fixed = false, start = 1.96318e+07, displayUnit = "Pa")), dpfCorr = 3.5) annotation(
WaterSteam.HeatExchangers.DynamicTwoPhaseFlowPipe PipeWaterSteam(Ns = 7, z2 = 56, rugosrel = 5e-5, ntubes = 403, L = 58, D = 0.0327, C2(Q(fixed = false, start = 486.69), P(fixed = false, start = 1.96318e+07, displayUnit = "Pa")), dpfCorr = 3.5, Q(start = {486.69, 486.69, 486.69, 486.69, 486.69, 486.69, 486.69, 486.69}), P(start = {20112000, 20050000, 19990000, 19930000, 19870000, 19810000, 19750000, 19690000, 19621600}), h(start = {1292000, 1440000, 1590000, 1740000, 1890000, 2040000, 2190000, 2340000, 2500000})) annotation(
Placement(transformation(origin = {91, 8}, extent = {{49, 16}, {-49, -16}}, rotation = 270)));
Thermal.HeatTransfer.HeatExchangerWall paroiEcrans(Ns = 7, lambda = 40, steady_state = true, ntubes = 403, L = 58, D = 0.0327, e = 0.001) annotation(
Placement(transformation(origin = {73, 7.5}, extent = {{51.5, -15}, {-51.5, 15}}, rotation = 270)));
WaterSteam.BoundaryConditions.SinkP sinkWaterSteam2(option_temperature = 2, Q(start = 486.69, fixed = true), h0 = 2.5e+06, mode = 0, P0(fixed = false) = 19621600) annotation(
WaterSteam.BoundaryConditions.SinkP sinkWaterSteam2(option_temperature = 2, Q(start = 486.69, fixed = true), h0 = 2.5e+06, mode = 0, P0 = sinkWaterSteamP0) annotation(
Placement(transformation(origin = {90, 90.5}, extent = {{14.5, -15}, {-14.5, 15}}, rotation = 270)));
WaterSteam.BoundaryConditions.SourceP sourceEcrans(h0 = 1.292e+06, option_temperature = 2, mode = 0, P0 = 20112000) annotation(
Placement(transformation(origin = {91, -81}, extent = {{15, -15}, {-15, 15}}, rotation = 270)));
Expand Down Expand Up @@ -51,4 +53,4 @@ This model is documented in Sect. 8.2.5 of the ThermoSysPro book.
The results reported in the ThermoSysPro book were computed using Dymola.
"),
Icon(graphics = {Rectangle(lineColor = {200, 200, 200}, fillColor = {248, 248, 248}, fillPattern = FillPattern.HorizontalCylinder, extent = {{-100.0, -100.0}, {100.0, 100.0}}, radius = 25.0), Rectangle(lineColor = {128, 128, 128}, extent = {{-100.0, -100.0}, {100.0, 100.0}}, radius = 25.0), Polygon(origin = {8.0, 14.0}, lineColor = {78, 138, 73}, fillColor = {78, 138, 73}, pattern = LinePattern.None, fillPattern = FillPattern.Solid, points = {{-58.0, 46.0}, {42.0, -14.0}, {-58.0, -74.0}, {-58.0, 46.0}})}));
end TestGenericCombustion1D;
end TestGenericCombustion1D;
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
within ThermoSysPro.Examples.Book.SimpleExamples.HeatExchanger.DynamicWaterHeater;

model Islanding
parameter Real pressureLossSteamLambda(fixed = false, start = 0.055042482912540436);
parameter Real waterHeatingCOP0l(fixed = false, start = 1.2906341552734375);
parameter Real controlValveEauCvmax(fixed = false, start = 237.97450256347656);
ThermoSysPro.WaterSteam.BoundaryConditions.SourceP sourceP(option_temperature = 2, mode = 0, P0 = 22.733e5, h0 = 2650.6e3) annotation(
Placement(transformation(extent = {{-192, 110}, {-150, 150}}, rotation = 0)));
ThermoSysPro.WaterSteam.BoundaryConditions.SinkP Puit_condenseur1(option_temperature = 2, P0(fixed = true) = 10e5) annotation(
Placement(transformation(extent = {{124, -202}, {160, -162}}, rotation = 0)));
ThermoSysPro.WaterSteam.PressureLosses.ControlValve ControlValve_eau(Q(fixed = false, start = 56), Cvmax(fixed = false) = 354.534, mode_caract = 0, Cv(start = 70, fixed = false), C1(h_vol(start = 800e3), h(start = 800e3))) annotation(
ThermoSysPro.WaterSteam.PressureLosses.ControlValve ControlValve_eau(Q(fixed = false, start = 56), Cvmax = controlValveEauCvmax, mode_caract = 0, Cv(start = 237.97450256347656, fixed = false), C1(h_vol(start = 800883.8125), h(start = 800883.8125))) annotation(
Placement(transformation(extent = {{88, -186}, {108, -166}}, rotation = 0)));
ThermoSysPro.WaterSteam.HeatExchangers.DynamicWaterHeating WaterHeating(Dc = 0.016, Lc = 2.56, PasL = 0.027, PasT = 0.02338, ec = 2e-3, Rv = 1.130514, Ns = 10, DpfCorr = 1.1136, cp = 506, rho = 7780, lambda = 35, COP0l(fixed = false) = 1.23, C2ex(P(start = 2220000)), ntubes1 = 351, ntubes2 = 351, ntubes3 = 1319, L3 = 26.4, L2 = 13.2, L1 = 13.2, Wall_1(Tp(start = {510, 510.4, 511, 511.4, 512, 512.4, 513, 513.4, 514, 514.4}), Tp1(start = {510, 510.4, 511, 511.4, 512, 512.4, 513, 513.4, 514, 514.4}), Tp2(start = {510, 510.4, 511, 511.4, 512, 512.4, 513, 513.4, 514, 514.4})), Wall_2(Tp(start = {510, 510.4, 511, 511.4, 512, 512.4, 513, 513.4, 514, 514.4}), Tp1(start = {510, 510.4, 511, 511.4, 512, 512.4, 513, 513.4, 514, 514.4}), Tp2(start = {510, 510.4, 511, 511.4, 512, 512.4, 513, 513.4, 514, 514.4})), Wall_3(Tp(start = {510, 510.4, 511, 511.4, 512, 512.4, 513, 513.4, 514, 514.4, 515, 515.4, 516, 516.4, 517, 517.4, 518, 518.4, 519, 519.4}), Tp1(start = {510, 510.4, 511, 511.4, 512, 512.4, 513, 513.4, 514, 514.4, 515, 515.4, 516, 516.4, 517, 517.4, 518, 518.4, 519, 519.4}), Tp2(start = {510, 510.4, 511, 511.4, 512, 512.4, 513, 513.4, 514, 514.4, 515, 515.4, 516, 516.4, 517, 517.4, 518, 518.4, 519, 519.4})), volumeC(h(start = 1000.65e3), P(start = 68.48e5)), WaterHeating(steady_state = true, Vertical = false, step_square = true, zl(fixed = true, start = 0.43), Kvl = 1, V = 53, Cv(P(fixed = false, start = 21.867e5), Q(fixed = false, start = 52.6)), Mp = 53227, Klp = 1500, Kvp = 1200, Kpa = 0.2, P(fixed = true, start = 2216584), hl(start = 806345), hv(start = 1063490), Tp1(start = {500, 501, 502, 503, 504, 505, 506, 507, 508, 510}), Tp2(start = {510, 510.4, 511, 511.4, 512, 512.4, 513, 513.4, 514, 514.4}), Tp3(start = {510, 510.4, 511, 511.4, 512, 512.4, 513, 513.4, 514, 514.4, 515, 515.4, 516, 516.4, 517, 517.4, 518, 518.4, 519, 519.4}), Tp(start = 509)), Ce1(P(start = 7100000)), pipe_1(z2 = 0.3, mode = 1, dynamic_mass_balance = true, simplified_dynamic_energy_balance = false, h(start = {813e3, 826e3, 850e3, 865e3, 880e3, 895e3, 905e3, 920e3, 935e3, 950e3, 965e3, 980e3}), hb(start = {813e3, 826e3, 850e3, 865e3, 880e3, 895e3, 905e3, 920e3, 935e3, 950e3, 965e3}), Q(start = {132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132}), advection = false, P(start = {6870000, 6869000, 6868000, 6867000, 6866000, 6865000, 6864000, 6863000, 6862000, 6861000, 6860000, 6859000}), Tp(start = {500, 501, 502, 503, 504, 505, 506, 507, 508, 510})), pipe_2(z2 = 0.4, mode = 1, dynamic_mass_balance = true, simplified_dynamic_energy_balance = false, h(start = {965e3, 980e3, 995e3, 1010e3, 1120e3, 1130e3, 1040e3, 1050e3, 1060e3, 1070e3, 1080e3, 1080e3}), hb(start = {965e3, 980e3, 995e3, 1010e3, 1120e3, 1130e3, 1040e3, 1050e3, 1060e3, 1070e3, 1080e3}), Q(start = {132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132}), advection = false, P(start = {6859000, 6859000, 6858000, 6857000, 6856000, 6855000, 6854000, 6853000, 6852000, 6851000, 6850000, 6848000}), Tp(start = {510, 510.4, 511, 511.4, 512, 512.4, 513, 513.4, 514, 514.4})), volumeD1(h(start = 953939), P(start = 6848000)), volumeD(h(start = 812750), dynamic_mass_balance = false, P(start = 6872000)), P0c = 2200000, pipe_3(steady_state = true, mode = 1, z2 = 0.7, dynamic_mass_balance = true, simplified_dynamic_energy_balance = false, h(start = {813e3, 826e3, 850e3, 865e3, 880e3, 895e3, 905e3, 920e3, 935e3, 950e3, 965e3, 980e3, 995e3, 1010e3, 1120e3, 1130e3, 1040e3, 1050e3, 1060e3, 1070e3, 1080e3, 1080e3}), hb(start = {813e3, 826e3, 850e3, 865e3, 880e3, 895e3, 905e3, 920e3, 935e3, 950e3, 965e3, 980e3, 995e3, 1010e3, 1120e3, 1130e3, 1040e3, 1050e3, 1060e3, 1070e3, 1080e3}), Q(start = {492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 132}), advection = false, inertia = true, P(start = {6870000, 6869000, 6868000, 6867000, 6866000, 6865000, 6864000, 6863000, 6862000, 6861000, 6860000, 6859000, 6858000, 6857000, 6856000, 6855000, 6854000, 6853000, 6852000, 6851000, 6850000, 6848000}), Tp(start = {510, 510.4, 511, 511.4, 512, 512.4, 513, 513.4, 514, 514.4, 515, 515.4, 516, 516.4, 517, 517.4, 518, 518.4, 519, 519.4}))) annotation(
ThermoSysPro.WaterSteam.HeatExchangers.DynamicWaterHeating WaterHeating(Dc = 0.016, Lc = 2.56, PasL = 0.027, PasT = 0.02338, ec = 2e-3, Rv = 1.130514, Ns = 10, DpfCorr = 1.1136, cp = 506, rho = 7780, lambda = 35, COP0l = waterHeatingCOP0l, C2ex(P(start = 2220000), h_vol(start = 800883.8125)), ntubes1 = 351, ntubes2 = 351, ntubes3 = 1319, L3 = 26.4, L2 = 13.2, L1 = 13.2, Wall_1(Tp(start = {510, 510.4, 511, 511.4, 512, 512.4, 513, 513.4, 514, 514.4}), Tp1(start = {510, 510.4, 511, 511.4, 512, 512.4, 513, 513.4, 514, 514.4}), Tp2(start = {510, 510.4, 511, 511.4, 512, 512.4, 513, 513.4, 514, 514.4})), Wall_2(Tp(start = {510, 510.4, 511, 511.4, 512, 512.4, 513, 513.4, 514, 514.4}), Tp1(start = {510, 510.4, 511, 511.4, 512, 512.4, 513, 513.4, 514, 514.4}), Tp2(start = {510, 510.4, 511, 511.4, 512, 512.4, 513, 513.4, 514, 514.4})), Wall_3(Tp(start = {510, 510.4, 511, 511.4, 512, 512.4, 513, 513.4, 514, 514.4, 515, 515.4, 516, 516.4, 517, 517.4, 518, 518.4, 519, 519.4}), Tp1(start = {510, 510.4, 511, 511.4, 512, 512.4, 513, 513.4, 514, 514.4, 515, 515.4, 516, 516.4, 517, 517.4, 518, 518.4, 519, 519.4}), Tp2(start = {510, 510.4, 511, 511.4, 512, 512.4, 513, 513.4, 514, 514.4, 515, 515.4, 516, 516.4, 517, 517.4, 518, 518.4, 519, 519.4})), volumeC(h(start = 1000.65e3), P(start = 68.48e5)), WaterHeating(steady_state = true, Vertical = false, step_square = true, zl(fixed = true, start = 0.43), Kvl = 1, V = 53, Cv(P(fixed = false, start = 21.867e5), Q(fixed = false, start = 52.6)), Mp = 53227, Klp = 1500, Kvp = 1200, Kpa = 0.2, P(fixed = true, start = 2216584), Pfond(start = 2220288.75), hl(start = 806345), hv(start = 1063490), Tp1(start = {500, 501, 502, 503, 504, 505, 506, 507, 508, 510}), Tp2(start = {510, 510.4, 511, 511.4, 512, 512.4, 513, 513.4, 514, 514.4}), Tp3(start = {510, 510.4, 511, 511.4, 512, 512.4, 513, 513.4, 514, 514.4, 515, 515.4, 516, 516.4, 517, 517.4, 518, 518.4, 519, 519.4}), Tp(start = 509)), Ce1(P(start = 7100000)), pipe_1(z2 = 0.3, mode = 1, dynamic_mass_balance = true, simplified_dynamic_energy_balance = false, h(start = {813e3, 826e3, 850e3, 865e3, 880e3, 895e3, 905e3, 920e3, 935e3, 950e3, 965e3, 980e3}), hb(start = {813e3, 826e3, 850e3, 865e3, 880e3, 895e3, 905e3, 920e3, 935e3, 950e3, 965e3}), Q(start = {132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132}), advection = false, P(start = {6870000, 6869000, 6868000, 6867000, 6866000, 6865000, 6864000, 6863000, 6862000, 6861000, 6860000, 6859000}), Tp(start = {500, 501, 502, 503, 504, 505, 506, 507, 508, 510})), pipe_2(z2 = 0.4, mode = 1, dynamic_mass_balance = true, simplified_dynamic_energy_balance = false, h(start = {965e3, 980e3, 995e3, 1010e3, 1120e3, 1130e3, 1040e3, 1050e3, 1060e3, 1070e3, 1080e3, 1080e3}), hb(start = {965e3, 980e3, 995e3, 1010e3, 1120e3, 1130e3, 1040e3, 1050e3, 1060e3, 1070e3, 1080e3}), Q(start = {132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132}), advection = false, P(start = {6859000, 6859000, 6858000, 6857000, 6856000, 6855000, 6854000, 6853000, 6852000, 6851000, 6850000, 6848000}), Tp(start = {510, 510.4, 511, 511.4, 512, 512.4, 513, 513.4, 514, 514.4})), volumeD1(h(start = 953939), P(start = 6848000)), volumeD(h(start = 812750), dynamic_mass_balance = false, P(start = 6872000)), P0c = 2200000, pipe_3(steady_state = true, mode = 1, z2 = 0.7, dynamic_mass_balance = true, simplified_dynamic_energy_balance = false, h(start = {813e3, 826e3, 850e3, 865e3, 880e3, 895e3, 905e3, 920e3, 935e3, 950e3, 965e3, 980e3, 995e3, 1010e3, 1120e3, 1130e3, 1040e3, 1050e3, 1060e3, 1070e3, 1080e3, 1080e3}), hb(start = {813e3, 826e3, 850e3, 865e3, 880e3, 895e3, 905e3, 920e3, 935e3, 950e3, 965e3, 980e3, 995e3, 1010e3, 1120e3, 1130e3, 1040e3, 1050e3, 1060e3, 1070e3, 1080e3}), Q(start = {492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 132}), advection = false, inertia = true, P(start = {6870000, 6869000, 6868000, 6867000, 6866000, 6865000, 6864000, 6863000, 6862000, 6861000, 6860000, 6859000, 6858000, 6857000, 6856000, 6855000, 6854000, 6853000, 6852000, 6851000, 6850000, 6848000}), Tp(start = {510, 510.4, 511, 511.4, 512, 512.4, 513, 513.4, 514, 514.4, 515, 515.4, 516, 516.4, 517, 517.4, 518, 518.4, 519, 519.4}))) annotation(
Placement(transformation(extent = {{-58, -90}, {162, 96}}, rotation = 0)));
ThermoSysPro.WaterSteam.BoundaryConditions.Sink Puit_condenseur2(h0 = 940.000e3) annotation(
Placement(transformation(extent = {{-150, 22}, {-192, 66}}, rotation = 0)));
ThermoSysPro.WaterSteam.PressureLosses.SingularPressureLoss singularPressureLossWaterIn(Q(fixed = false, start = 650), K = 35) annotation(
ThermoSysPro.WaterSteam.PressureLosses.SingularPressureLoss singularPressureLossWaterIn(Q(fixed = false, start = 650), K = 35, h(start = 772055.9375)) annotation(
Placement(transformation(extent = {{-99, -48}, {-79, -28}}, rotation = 0)));
ThermoSysPro.WaterSteam.PressureLosses.SingularPressureLoss singularPressureLossWaterOut(Q(fixed = false, start = 650), K = 30, C2(h_vol(start = 927700), h(start = 927700))) annotation(
Placement(transformation(extent = {{-80, 34}, {-100, 54}}, rotation = 0)));
Expand All @@ -21,7 +24,7 @@ model Islanding
Placement(transformation(extent = {{-196, -88}, {-176, -68}}, rotation = 0)));
ThermoSysPro.WaterSteam.BoundaryConditions.SourceP sourceP1(P0 = 71.29e5, h0 = 772.09e3, T0 = 454.46, option_temperature = 1) annotation(
Placement(transformation(extent = {{-192, -16}, {-150, -60}}, rotation = 0)));
ThermoSysPro.WaterSteam.BoundaryConditions.RefQ refQ(Q0 = 53) annotation(
ThermoSysPro.WaterSteam.BoundaryConditions.RefQ refQ(Q0 = 53, C1(h_vol(start = 927738.1875))) annotation(
Placement(transformation(extent = {{-115, 34}, {-135, 54}}, rotation = 0)));
ThermoSysPro.InstrumentationAndControl.Blocks.Tables.Table1DTemps Debit_eauA(Table = [0, 624.97; 378, 624.97; 390, 592; 438, 699; 507, 353; 936, 252; 1404, 176; 1872, 116; 2340, 88; 2500, 88]) annotation(
Placement(transformation(extent = {{-196, 78}, {-176, 98}}, rotation = 0)));
Expand All @@ -33,11 +36,11 @@ model Islanding
Placement(transformation(extent = {{191, -140}, {169, -118}}, rotation = 0)));
ThermoSysPro.WaterSteam.PressureLosses.IdealCheckValve checkValve(C2(h_vol(start = 2600e3), h(start = 2600e3))) annotation(
Placement(transformation(extent = {{-100, 122}, {-84, 138}}, rotation = 0)));
ThermoSysPro.WaterSteam.PressureLosses.SingularPressureLoss singularPressureLossPurge(Q(fixed = false, start = 56), K = 1e-3, T(fixed = true, start = 461.56), Pm(start = 2220000)) annotation(
ThermoSysPro.WaterSteam.PressureLosses.SingularPressureLoss singularPressureLossPurge(Q(fixed = false, start = 56), K = 1e-3, T(fixed = true, start = 461.56), Pm(start = 2220000), h(start = 800883.8125), C2(h_vol(start = 800883.8125))) annotation(
Placement(transformation(origin = {54, -138}, extent = {{-10, -10}, {10, 10}}, rotation = 270)));
ThermoSysPro.InstrumentationAndControl.Blocks.Tables.Table1DTemps Pression_purge(Table = [0, 10e5; 378, 10e5; 418, 7e5; 1145, 2.9e5; 2000, 2.9e5]) annotation(
Placement(transformation(extent = {{162, -178}, {182, -158}}, rotation = 0)));
ThermoSysPro.WaterSteam.PressureLosses.LumpedStraightPipe PressureLoss_Steam(Q(fixed = false, start = 650), lambda(fixed = false) = 0.03, L = 48.72, D = 0.387) annotation(
ThermoSysPro.WaterSteam.PressureLosses.LumpedStraightPipe PressureLoss_Steam(Q(fixed = false, start = 650), lambda = pressureLossSteamLambda, L = 48.72, D = 0.387) annotation(
Placement(transformation(extent = {{-48, 162}, {30, 98}}, rotation = 0)));
equation
connect(ControlValve_eau.C2, Puit_condenseur1.C) annotation(
Expand Down Expand Up @@ -88,4 +91,4 @@ equation
This model is documented in Sect. 9.5.2.2 of the ThermoSysPro book.
The results reported in the ThermoSysPro book were computed using Dymola.
"));
end Islanding;
end Islanding;
Loading
Loading