/
Test.mo
11091 lines (10872 loc) · 498 KB
/
Test.mo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
within ThermoPower;
package Test "Test cases for the ThermoPower models"
extends Modelica.Icons.ExamplesPackage;
package WaterComponents
"Tests for lumped-parameters Water package components"
extends Modelica.Icons.ExamplesPackage;
model TestSources "Test source and sink components"
extends Modelica.Icons.Example;
Water.SourceMassFlow source_w_h(use_in_T=false)
annotation (Placement(transformation(extent={{-50,130},{-30,150}})));
Water.SinkMassFlow sink_w_h
annotation (Placement(transformation(extent={{30,-20},{50,0}})));
Water.SourceMassFlow source_w_T(
use_T=true,
use_in_T=false,
T=323.15)
annotation (Placement(transformation(extent={{-50,100},{-30,120}})));
Water.SourceMassFlow source_w_h_in(use_in_T=false, use_in_h=true)
annotation (Placement(transformation(extent={{-50,56},{-30,76}})));
Water.SourceMassFlow source_w_T_in(use_T=true, use_in_T=true)
annotation (Placement(transformation(extent={{-50,10},{-30,30}})));
Water.SinkMassFlow sink_w_T(use_T=true, T=323.15)
annotation (Placement(transformation(extent={{30,-50},{50,-30}})));
Water.SinkMassFlow sink_w_h_in(use_in_h=true)
annotation (Placement(transformation(extent={{30,-90},{50,-70}})));
Water.SinkMassFlow sink_w_T_in(use_T=true, use_in_T=true)
annotation (Placement(transformation(extent={{30,-130},{50,-110}})));
Water.SinkPressure sink_P_h
annotation (Placement(transformation(extent={{30,130},{50,150}})));
Water.SourcePressure source_P_h
annotation (Placement(transformation(extent={{-50,-20},{-30,0}})));
Water.SinkPressure sink_P_T(use_T=true, T=323.15)
annotation (Placement(transformation(extent={{30,100},{50,120}})));
Water.SourcePressure source_P_T(use_T=true, T=323.15)
annotation (Placement(transformation(extent={{-50,-50},{-30,-30}})));
Water.SourcePressure source_P_h_in(use_in_h=true)
annotation (Placement(transformation(extent={{-50,-90},{-30,-70}})));
Water.SourcePressure source_P_T_in(use_T=true, use_in_T=true)
annotation (Placement(transformation(extent={{-50,-130},{-30,-110}})));
Water.SinkPressure sink_P_h_in(use_in_h=true)
annotation (Placement(transformation(extent={{30,56},{50,76}})));
Water.SinkPressure sink_P_T_in(use_in_T=true, use_T=true)
annotation (Placement(transformation(extent={{30,10},{50,30}})));
Modelica.Blocks.Sources.RealExpression h_w(y=3e5)
annotation (Placement(transformation(extent={{-76,68},{-56,88}})));
Modelica.Blocks.Sources.RealExpression T_P(y=80 + 273.15)
annotation (Placement(transformation(extent={{-78,-114},{-58,-94}})));
Modelica.Blocks.Sources.RealExpression T_w(y=80 + 273.15)
annotation (Placement(transformation(extent={{-74,22},{-54,42}})));
Modelica.Blocks.Sources.RealExpression h_P(y=3e5)
annotation (Placement(transformation(extent={{-76,-74},{-56,-54}})));
equation
connect(source_w_h.flange, sink_P_h.flange) annotation (Line(points={{-30,
140},{0,140},{30,140}}, color={0,0,255}));
connect(source_w_T.flange, sink_P_T.flange) annotation (Line(points={{-30,
110},{-30,110},{30,110}}, color={0,0,255}));
connect(source_w_h_in.flange, sink_P_h_in.flange)
annotation (Line(points={{-30,66},{30,66}}, color={0,0,255}));
connect(source_w_T_in.flange, sink_P_T_in.flange)
annotation (Line(points={{-30,20},{30,20}}, color={0,0,255}));
connect(source_P_h.flange, sink_w_h.flange) annotation (Line(points={{-30,
-10},{0,-10},{30,-10}}, color={0,0,255}));
connect(source_P_T.flange, sink_w_T.flange)
annotation (Line(points={{-30,-40},{30,-40}}, color={0,0,255}));
connect(source_P_h_in.flange, sink_w_h_in.flange) annotation (Line(points=
{{-30,-80},{0,-80},{30,-80}}, color={0,0,255}));
connect(source_P_T_in.flange, sink_w_T_in.flange) annotation (Line(points=
{{-30,-120},{-2,-120},{30,-120}}, color={0,0,255}));
connect(h_w.y, source_w_h_in.in_h) annotation (Line(points={{-55,78},{-55,
78},{-34.8,78},{-34.8,71.6}}, color={0,0,127}));
connect(T_P.y, source_P_T_in.in_T) annotation (Line(points={{-57,-104},{
-40,-104},{-40,-110.4}}, color={0,0,127}));
connect(T_w.y, source_w_T_in.in_T) annotation (Line(points={{-53,32},{
-39.4,32},{-39.4,25.6}}, color={0,0,127}));
connect(h_P.y, source_P_h_in.in_h) annotation (Line(points={{-55,-64},{
-35.8,-64},{-35.8,-71.6}}, color={0,0,127}));
connect(h_w.y, sink_P_h_in.in_h) annotation (Line(points={{-55,78},{44.2,
78},{44.2,74.4}}, color={0,0,127}));
connect(T_w.y, sink_P_T_in.in_T) annotation (Line(points={{-53,32},{40,32},
{40,29.6}}, color={0,0,127}));
connect(h_P.y, sink_w_h_in.in_h) annotation (Line(points={{-55,-64},{-12,
-64},{45.2,-64},{45.2,-74.4}}, color={0,0,127}));
connect(T_P.y, sink_w_T_in.in_T) annotation (Line(points={{-57,-104},{-10,
-104},{40.6,-104},{40.6,-114.4}}, color={0,0,127}));
annotation (experiment(StopTime = 1),
Diagram(coordinateSystem(extent={{-100,-140},{100,160}})),
Icon(coordinateSystem(extent={{-100,-100},{120,100}})));
end TestSources;
model TestMixer
extends Modelica.Icons.Example;
package Medium = Modelica.Media.Water.StandardWater;
Water.SourceMassFlow
SourceW1(w0=0.5, h=2.8e6) annotation (Placement(
transformation(extent={{-90,40},{-70,60}}, rotation=0)));
Water.SourceMassFlow
SourceW2(w0=0.5, h=3.0e6) annotation (Placement(
transformation(extent={{-90,0},{-70,20}}, rotation=0)));
Water.SinkPressure
SinkP1(p0=100000)
annotation (Placement(transformation(extent={{50,
20},{70,40}}, rotation=0)));
Water.Mixer mixer(
V=1,
Cm=0,
redeclare package Medium = Medium,
initOpt=ThermoPower.Choices.Init.Options.steadyState,
FluidPhaseStart=ThermoPower.Choices.FluidPhase.FluidPhases.Steam,
pstart=100000)
annotation (Placement(transformation(extent={{-52,20},{-32,40}},
rotation=0)));
Water.ValveLin ValveLin1(Kv=1/1e5) annotation (Placement(transformation(
extent={{14,20},{34,40}}, rotation=0)));
Modelica.Blocks.Sources.Step Step1(
height=-0.2,
offset=1,
startTime=2) annotation (Placement(transformation(extent={{-44,60},{-24,
80}}, rotation=0)));
Water.PressDrop pressDrop(
wnom=1,
dpnom=100,
rhonom=1000,
redeclare package Medium = Medium,
FFtype=ThermoPower.Choices.PressDrop.FFtypes.OpPoint) annotation (
Placement(transformation(extent={{-20,20},{0,40}}, rotation=0)));
Water.SourceMassFlow
SourceW3(w0=0.5, h=2.8e6) annotation (Placement(
transformation(extent={{-90,-40},{-70,-20}}, rotation=0)));
Water.Header header(
V=1,
redeclare package Medium = Medium,
initOpt=ThermoPower.Choices.Init.Options.steadyState,
FluidPhaseStart=ThermoPower.Choices.FluidPhase.FluidPhases.Steam,
pstart=100000)
annotation (Placement(transformation(extent={{-40,-40},{-20,-20}},
rotation=0)));
Water.ValveLin ValveLin2(Kv=1/1e5) annotation (Placement(transformation(
extent={{-2,-40},{18,-20}}, rotation=0)));
Water.SinkPressure
SinkP2(p0=100000)
annotation (Placement(transformation(extent={{40,
-40},{60,-20}}, rotation=0)));
inner System system
annotation (Placement(transformation(extent={{80,80},{100,100}})));
equation
connect(SourceW1.flange, mixer.in1) annotation (Line(
points={{-70,50},{-60,50},{-60,36},{-50,36}},
color={0,0,255},
thickness=0.5));
connect(SourceW2.flange, mixer.in2) annotation (Line(
points={{-70,10},{-60,10},{-60,24},{-50,24}},
color={0,0,255},
thickness=0.5));
connect(ValveLin1.outlet, SinkP1.flange) annotation (Line(
points={{34,30},{50,30}},
color={0,0,255},
thickness=0.5));
connect(pressDrop.outlet, ValveLin1.inlet) annotation (Line(
points={{0,30},{14,30}},
color={0,0,255},
thickness=0.5));
connect(mixer.out, pressDrop.inlet) annotation (Line(
points={{-32,30},{-30,30},{-28,30},{-20,30}},
color={0,0,255},
thickness=0.5));
connect(SourceW3.flange, header.inlet) annotation (Line(
points={{-70,-30},{-56,-30},{-40.1,-30}},
color={0,0,255},
thickness=0.5));
connect(header.outlet, ValveLin2.inlet) annotation (Line(
points={{-20,-30},{-12,-30},{-2,-30}},
color={0,0,255},
thickness=0.5));
connect(ValveLin2.outlet, SinkP2.flange) annotation (Line(
points={{18,-30},{40,-30}},
color={0,0,255},
thickness=0.5));
connect(Step1.y, ValveLin1.cmd)
annotation (Line(points={{-23,70},{24,70},{24,38}}, color={0,0,127}));
connect(Step1.y, ValveLin2.cmd)
annotation (Line(points={{-23,70},{8,70},{8,-22}}, color={0,0,127}));
annotation (
Diagram(graphics),
experiment(StopTime=8),
Documentation(info="<HTML>
<p>This model tests the <tt>Mixer</tt> and <tt>Header</tt> models.
</HTML>", revisions="<html>
<ul>
<li><i>1 Oct 2003</i>
by <a href=\"mailto:francesco.casella@polimi.it\">Francesco
Casella</a>:<br>
First release.</li>
</ul>
</html>"));
end TestMixer;
model TestMixerSlowFast
extends Modelica.Icons.Example;
package Medium=Modelica.Media.Water.StandardWater;
// package Medium = Modelica.Media.Incompressible.Examples.Glycol47;
Water.SourceMassFlow
SourceW1(
w0=0.5,
h=1e5,
redeclare package Medium = Medium,
use_in_h=true) annotation (Placement(transformation(
extent={{-98,10},{-78,30}}, rotation=0)));
Water.SourceMassFlow
SourceW2(
w0=0.5,
h=2e5,
redeclare package Medium = Medium) annotation (Placement(transformation(
extent={{-98,-30},{-78,-10}}, rotation=0)));
Water.SinkPressure
SinkP1( redeclare package Medium = Medium, p0=100000)
annotation (
Placement(transformation(extent={{80,-10},{100,10}}, rotation=0)));
Water.Mixer Mixer1(
hstart=1e5,
V=0.01,
redeclare package Medium = Medium,
initOpt=ThermoPower.Choices.Init.Options.steadyState,
pstart=100000) annotation (
Placement(transformation(extent={{-60,-10},{-40,10}}, rotation=0)));
Water.ValveLin ValveLin1(Kv=1/1e5, redeclare package Medium = Medium)
annotation (Placement(transformation(extent={{38,-10},{58,10}},
rotation=0)));
Modelica.Blocks.Sources.Step StepValv(
height=-0.2,
offset=1,
startTime=2) annotation (Placement(transformation(extent={{14,30},{34,
50}}, rotation=0)));
Water.PressDrop PressDrop1(
wnom=1,
dpnom=100,
rhonom=1000,
redeclare package Medium = Medium,
FFtype=ThermoPower.Choices.PressDrop.FFtypes.OpPoint) annotation (
Placement(transformation(extent={{-30,-10},{-10,10}}, rotation=0)));
Water.Header Header1(
hstart=1e5,
V=0.01,
redeclare package Medium = Medium,
initOpt=ThermoPower.Choices.Init.Options.steadyState,
pstart=100000) annotation (
Placement(transformation(extent={{0,-10},{20,10}}, rotation=0)));
Modelica.Blocks.Sources.Step StepEnthalpy(
height=1e5,
offset=1e5,
startTime=4) annotation (Placement(transformation(extent={{-92,50},{-72,
70}}, rotation=0)));
inner System system
annotation (Placement(transformation(extent={{80,80},{100,100}})));
equation
connect(SourceW1.flange, Mixer1.in1) annotation (Line(
points={{-78,20},{-66,20},{-66,6},{-58,6}},
thickness=0.5,
color={0,0,255}));
connect(SourceW2.flange, Mixer1.in2) annotation (Line(
points={{-78,-20},{-66,-20},{-66,-6},{-58,-6}},
thickness=0.5,
color={0,0,255}));
connect(ValveLin1.outlet, SinkP1.flange) annotation (Line(
points={{58,0},{80,0}},
thickness=0.5,
color={0,0,255}));
connect(Mixer1.out, PressDrop1.inlet) annotation (Line(
points={{-40,0},{-30,0}},
thickness=0.5,
color={0,0,255}));
connect(PressDrop1.outlet, Header1.inlet) annotation (Line(
points={{-10,0},{-0.1,0}},
thickness=0.5,
color={0,0,255}));
connect(Header1.outlet, ValveLin1.inlet) annotation (Line(
points={{20,0},{38,0}},
thickness=0.5,
color={0,0,255}));
connect(StepEnthalpy.y, SourceW1.in_h) annotation (Line(points={{-71,60},
{-60,60},{-60,40},{-84,40},{-84,26}}, color={0,0,127}));
connect(StepValv.y, ValveLin1.cmd)
annotation (Line(points={{35,40},{48,40},{48,8}}, color={0,0,127}));
annotation (
Diagram(graphics),
experiment(StopTime=50, __Dymola_NumberOfIntervals=4000),
Documentation(info="<HTML>
<p>This model tests the <tt>Mixer</tt> and <tt>Header</tt> models with different medium models. If an incompressible medium model is used, the fast pressure dynamics is neglected, thus allowing simulation with explicit algorithms and large time steps.
</HTML>", revisions="<html>
<ul>
<li><i>24 Sep 2004</i>
by <a href=\"mailto:francesco.casella@polimi.it\">Francesco
Casella</a>:<br>
First release.</li>
</ul>
</html>"),
__Dymola_experimentSetupOutput);
end TestMixerSlowFast;
model TestMixerSlowFastSteam
extends Modelica.Icons.Example;
package Medium=Modelica.Media.Water.StandardWater;
// package Medium = Modelica.Media.Incompressible.Examples.Glycol47;
Water.SourceMassFlow
SourceW1(
w0=0.5,
redeclare package Medium = Medium,
use_in_h=true,
h=3.2e6)
annotation (Placement(transformation(
extent={{-98,10},{-78,30}}, rotation=0)));
Water.SourceMassFlow
SourceW2(
w0=0.5,
redeclare package Medium = Medium,
h=3.2e6) annotation (Placement(transformation(
extent={{-98,-30},{-78,-10}}, rotation=0)));
Water.SinkPressure
SinkP1( redeclare package Medium = Medium, p0=100000)
annotation (
Placement(transformation(extent={{80,-10},{100,10}}, rotation=0)));
Water.Mixer Mixer1(
redeclare package Medium = Medium,
initOpt=ThermoPower.Choices.Init.Options.steadyState,
FluidPhaseStart=ThermoPower.Choices.FluidPhase.FluidPhases.Steam,
V=0.1,
pstart=100000,
hstart=3.2e6,
Tmstart=573.15) annotation (
Placement(transformation(extent={{-60,-10},{-40,10}}, rotation=0)));
Water.ValveLin ValveLin1(Kv=1/1e5, redeclare package Medium = Medium)
annotation (Placement(transformation(extent={{38,-10},{58,10}},
rotation=0)));
Modelica.Blocks.Sources.Step StepValv(
height=-0.2,
offset=1,
startTime=2) annotation (Placement(transformation(extent={{14,30},{34,
50}}, rotation=0)));
Water.PressDrop PressDrop1(
wnom=1,
redeclare package Medium = Medium,
FFtype=ThermoPower.Choices.PressDrop.FFtypes.OpPoint,
dpnom=100,
rhonom=1) annotation (
Placement(transformation(extent={{-30,-10},{-10,10}}, rotation=0)));
Water.Header Header1(
redeclare package Medium = Medium,
initOpt=ThermoPower.Choices.Init.Options.steadyState,
FluidPhaseStart=ThermoPower.Choices.FluidPhase.FluidPhases.Steam,
V=0.1,
pstart=100000,
hstart=3.2e6,
Tmstart=573.15) annotation (
Placement(transformation(extent={{0,-10},{20,10}}, rotation=0)));
Modelica.Blocks.Sources.Step StepEnthalpy(
startTime=4,
height=1e5,
offset=3.2e6)
annotation (Placement(transformation(extent={{-92,50},{-72,
70}}, rotation=0)));
inner System system
annotation (Placement(transformation(extent={{80,80},{100,100}})));
equation
connect(SourceW1.flange, Mixer1.in1) annotation (Line(
points={{-78,20},{-66,20},{-66,6},{-58,6}},
thickness=0.5,
color={0,0,255}));
connect(SourceW2.flange, Mixer1.in2) annotation (Line(
points={{-78,-20},{-66,-20},{-66,-6},{-58,-6}},
thickness=0.5,
color={0,0,255}));
connect(ValveLin1.outlet, SinkP1.flange) annotation (Line(
points={{58,0},{80,0}},
thickness=0.5,
color={0,0,255}));
connect(Mixer1.out, PressDrop1.inlet) annotation (Line(
points={{-40,0},{-30,0}},
thickness=0.5,
color={0,0,255}));
connect(PressDrop1.outlet, Header1.inlet) annotation (Line(
points={{-10,0},{-0.1,0}},
thickness=0.5,
color={0,0,255}));
connect(Header1.outlet, ValveLin1.inlet) annotation (Line(
points={{20,0},{38,0}},
thickness=0.5,
color={0,0,255}));
connect(StepEnthalpy.y, SourceW1.in_h) annotation (Line(points={{-71,60},
{-60,60},{-60,40},{-84,40},{-84,26}}, color={0,0,127}));
connect(StepValv.y, ValveLin1.cmd)
annotation (Line(points={{35,40},{48,40},{48,8}}, color={0,0,127}));
annotation (
Diagram(graphics),
experiment(StopTime=6, __Dymola_NumberOfIntervals=4000),
Documentation(info="<HTML>
<p>This model tests the <tt>Mixer</tt> and <tt>Header</tt> models with different medium models. If an incompressible medium model is used, the fast pressure dynamics is neglected, thus allowing simulation with explicit algorithms and large time steps.
</HTML>", revisions="<html>
<ul>
<li><i>24 Sep 2004</i>
by <a href=\"mailto:francesco.casella@polimi.it\">Francesco
Casella</a>:<br>
First release.</li>
</ul>
</html>"),
__Dymola_experimentSetupOutput);
end TestMixerSlowFastSteam;
model TestPressDrop
extends Modelica.Icons.Example;
package Medium = Modelica.Media.Water.StandardWater;
Water.SourcePressure
SourceP1(p0=300000) annotation (Placement(transformation(
extent={{-78,60},{-58,80}}, rotation=0)));
Water.SinkPressure
SinkP1(p0=100000) annotation (Placement(transformation(extent=
{{40,60},{60,80}},rotation=0)));
parameter Real Kf_unknown(fixed=false);
Water.SourcePressure
SourceP3(p0=3e5) annotation (Placement(transformation(
extent={{-80,-20},{-60,0}}, rotation=0)));
Water.SinkPressure
SinkP3(p0=1e5) annotation (Placement(transformation(extent={{
40,-20},{60,0}}, rotation=0)));
Water.PressDrop PressDrop3a(
redeclare package Medium = Medium,
wnom=1,
dpnom=1e5,
rhonom=1000,
FFtype=ThermoPower.Choices.PressDrop.FFtypes.OpPoint) annotation (
Placement(transformation(extent={{-40,-20},{-20,0}}, rotation=0)));
Water.PressDrop PressDrop3b(
redeclare package Medium = Medium,
wnom=1,
dpnom=1e5,
rhonom=1000,
FFtype=ThermoPower.Choices.PressDrop.FFtypes.OpPoint) annotation (
Placement(transformation(extent={{0,-20},{20,0}}, rotation=0)));
Water.SourcePressure
SourceP4(p0=3e5) annotation (Placement(transformation(
extent={{-80,-60},{-60,-40}}, rotation=0)));
Water.SinkPressure
SinkP4(p0=1e5) annotation (Placement(transformation(extent={{
40,-60},{60,-40}}, rotation=0)));
Water.PressDrop PressDrop4a(
redeclare package Medium = Medium,
K=1,
A=1e-4,
wnom=1,
FFtype=ThermoPower.Choices.PressDrop.FFtypes.Kinetic,
dpnom=100000) annotation (Placement(transformation(extent={{-40,-60},{-20,
-40}}, rotation=0)));
Water.PressDrop PressDrop4b(
redeclare package Medium = Medium,
wnom=1,
K=1,
A=1e-4,
FFtype=ThermoPower.Choices.PressDrop.FFtypes.Kinetic,
dpnom=100000) annotation (Placement(transformation(extent={{0,-60},{20,
-40}}, rotation=0)));
Water.SourcePressure
SourceP2(p0=3e5) annotation (Placement(transformation(
extent={{-80,20},{-60,40}}, rotation=0)));
Water.SinkPressure
SinkP2(p0=1e5) annotation (Placement(transformation(extent={{
40,20},{60,40}}, rotation=0)));
Water.PressDrop PressDrop2a(
redeclare package Medium = Medium,
wnom=1,
Kf=Kf_unknown,
FFtype=ThermoPower.Choices.PressDrop.FFtypes.Kf,
dpnom=100000) annotation (Placement(transformation(extent={{-40,20},{-20,
40}}, rotation=0)));
Water.PressDrop PressDrop2b(
redeclare package Medium = Medium,
wnom=1,
Kf=Kf_unknown,
FFtype=ThermoPower.Choices.PressDrop.FFtypes.Kf,
dpnom=100000) annotation (Placement(transformation(extent={{0,20},{20,
40}}, rotation=0)));
Water.PressDrop PressDrop1a(
wnom=1,
Kf=1e8,
redeclare package Medium = Medium,
FFtype=ThermoPower.Choices.PressDrop.FFtypes.Kf,
dpnom=100000) annotation (Placement(transformation(extent={{-40,60},{-20,
80}}, rotation=0)));
Water.PressDrop PressDrop1b(
redeclare package Medium = Medium,
wnom=1,
Kf=1e8,
FFtype=ThermoPower.Choices.PressDrop.FFtypes.Kf,
dpnom=100000) annotation (Placement(transformation(extent={{0,60},{20,
80}}, rotation=0)));
inner System system
annotation (Placement(transformation(extent={{80,80},{100,100}})));
initial equation
PressDrop2a.inlet.m_flow = 1;
equation
connect(SourceP3.flange, PressDrop3a.inlet) annotation (Line(
points={{-60,-10},{-40,-10}},
color={0,0,255},
thickness=0.5));
connect(PressDrop3a.outlet, PressDrop3b.inlet) annotation (Line(
points={{-20,-10},{0,-10}},
color={0,0,255},
thickness=0.5));
connect(PressDrop3b.outlet, SinkP3.flange) annotation (Line(
points={{20,-10},{40,-10}},
color={0,0,255},
thickness=0.5));
connect(SourceP4.flange, PressDrop4a.inlet) annotation (Line(
points={{-60,-50},{-40,-50}},
color={0,0,255},
thickness=0.5));
connect(PressDrop4a.outlet, PressDrop4b.inlet) annotation (Line(
points={{-20,-50},{0,-50}},
color={0,0,255},
thickness=0.5));
connect(PressDrop4b.outlet, SinkP4.flange) annotation (Line(
points={{20,-50},{40,-50}},
color={0,0,255},
thickness=0.5));
connect(SourceP2.flange, PressDrop2a.inlet) annotation (Line(
points={{-60,30},{-40,30}},
color={0,0,255},
thickness=0.5));
connect(PressDrop2a.outlet, PressDrop2b.inlet) annotation (Line(
points={{-20,30},{0,30}},
color={0,0,255},
thickness=0.5));
connect(PressDrop2b.outlet, SinkP2.flange) annotation (Line(
points={{20,30},{40,30}},
color={0,0,255},
thickness=0.5));
connect(SourceP1.flange, PressDrop1a.inlet) annotation (Line(
points={{-58,70},{-40,70}},
color={0,0,255},
thickness=0.5));
connect(PressDrop1a.outlet, PressDrop1b.inlet) annotation (Line(
points={{-20,70},{0,70}},
color={0,0,255},
thickness=0.5));
connect(PressDrop1b.outlet, SinkP1.flange) annotation (Line(
points={{20,70},{40,70}},
color={0,0,255},
thickness=0.5));
annotation (Diagram(graphics), Documentation(info="<html>
This test model demonstrate four possible ways of setting the friction coefficient for the <tt>PressDrop</tt> model.
<ol>
<li>The friction factor coefficient can be specified directly, by setting <tt>FFtype=0</tt> and the appropriate value to <tt>Kf</tt>.
<li>The friction factor needed to obtain certain conditions can be set by initial equations. In this case, <tt>FFtype=0</tt>, and <tt>Kf=Kf_unknown</tt>, with <tt>Kf_unknown</tt> having a fixed=false attribute. The latter parameter is then determined by an initial equation (e.g. by assigning the initial mass flow rate).
<li>The friction factor can be specified by setting <tt>FFtype=1</tt>, and then by assigning the nominal pressure drop <tt>dpnom</tt> corresponding to the nominal flow rate <tt>wnom</tt> and to the nominal density <tt>rhonom</tt>.
<li>The pressure drop can be specified as a given multiple of the kinetic pressure, by setting <tt>FFtype=2</tt> and assigning the multiplicative coefficient <tt>K</tt>.
</ol>
</html>", revisions="<html>
<ul>
<li><i>18 Nov 2004</i> by <a href=\"mailto:francesco.casella@polimi.it\">Francesco Casella</a>:
<br>First release.</li>
</ul>
</html>"));
end TestPressDrop;
model TestPressDropRev
extends Modelica.Icons.Example;
Water.PressDrop pressDrop(
wnom=1,
FFtype=ThermoPower.Choices.PressDrop.FFtypes.OpPoint,
wnf=0.02,
rhonom=1000,
dpnom=1000)
annotation (Placement(transformation(extent={{-10,-10},{10,10}})));
ThermoPower.Water.SinkPressure
sinkP(p0=300000)
annotation (Placement(transformation(extent={{30,-10},{50,10}})));
ThermoPower.Water.SourceMassFlow
sourceW(use_in_w0=true)
annotation (Placement(transformation(extent={{-50,-10},{-30,10}})));
Modelica.Blocks.Sources.Sine Cmd1(
startTime=0,
amplitude=5,
freqHz=1,
offset=0) annotation (Placement(transformation(extent={{-82,10},{-62,30}},
rotation=0)));
inner ThermoPower.System system
annotation (Placement(transformation(extent={{80,80},{100,100}})));
Real y "Derivative of dp";
equation
y = der(pressDrop.dp);
connect(Cmd1.y, sourceW.in_w0) annotation (Line(
points={{-61,20},{-44,20},{-44,6}},
color={0,0,127},
smooth=Smooth.None));
connect(sourceW.flange, pressDrop.inlet) annotation (Line(
points={{-30,0},{-10,0}},
color={0,0,255},
smooth=Smooth.None,
thickness=0.5));
connect(sinkP.flange, pressDrop.outlet) annotation (Line(
points={{30,0},{10,0}},
color={0,0,255},
thickness=0.5,
smooth=Smooth.None));
annotation (
Diagram(graphics),
experiment(__Dymola_NumberOfIntervals=5000, Tolerance=1e-005),
Documentation(info="<html>
<p>This model tests the <code>PressDrop</code> model in condition of flow reversal.</p>
</html>"));
end TestPressDropRev;
model TestThroughMassFlow "Test of the ThroughMassFlow component"
extends Modelica.Icons.Example;
Water.SourcePressure
SourceP1 annotation (Placement(transformation(extent={{-80,
10},{-60,30}}, rotation=0)));
Water.PressDropLin PressDropLin1(R=1e5/1) annotation (Placement(
transformation(extent={{0,10},{20,30}}, rotation=0)));
Water.ThroughMassFlow
ThroughW1(w0=2) annotation (Placement(transformation(
extent={{-40,10},{-20,30}}, rotation=0)));
Water.SinkPressure
SinkP1 annotation (Placement(transformation(extent={{40,10},{
60,30}}, rotation=0)));
Water.SourcePressure
SourceP2 annotation (Placement(transformation(extent={{-80,
-50},{-60,-30}}, rotation=0)));
Water.PressDropLin PressDropLin2(R=1e5/1) annotation (Placement(
transformation(extent={{0,-50},{20,-30}}, rotation=0)));
Water.ThroughMassFlow
ThroughW2(w0=2, use_in_w0=true)
annotation (Placement(transformation(
extent={{-40,-50},{-20,-30}}, rotation=0)));
Water.SinkPressure
SinkP2 annotation (Placement(transformation(extent={{40,-50},
{60,-30}}, rotation=0)));
Modelica.Blocks.Sources.Step Step1(
height=1,
offset=2,
startTime=0.5) annotation (Placement(transformation(extent={{-60,-20},{
-40,0}}, rotation=0)));
inner System system
annotation (Placement(transformation(extent={{80,80},{100,100}})));
equation
connect(ThroughW1.outlet, PressDropLin1.inlet) annotation (Line(
points={{-20,20},{0,20}},
color={0,0,255},
thickness=0.5));
connect(SourceP1.flange, ThroughW1.inlet) annotation (Line(
points={{-60,20},{-40,20}},
color={0,0,255},
thickness=0.5));
connect(PressDropLin1.outlet, SinkP1.flange) annotation (Line(
points={{20,20},{40,20}},
color={0,0,255},
thickness=0.5));
connect(ThroughW2.outlet, PressDropLin2.inlet) annotation (Line(
points={{-20,-40},{0,-40}},
color={0,0,255},
thickness=0.5));
connect(SourceP2.flange, ThroughW2.inlet) annotation (Line(
points={{-60,-40},{-40,-40}},
color={0,0,255},
thickness=0.5));
connect(PressDropLin2.outlet, SinkP2.flange) annotation (Line(
points={{20,-40},{40,-40}},
color={0,0,255},
thickness=0.5));
connect(Step1.y, ThroughW2.in_w0) annotation (Line(points={{-39,-10},{-34,
-10},{-34,-34}}, color={0,0,127}));
annotation (Diagram(graphics), Documentation(revisions="<html>
<ul>
<li><i>1 Oct 2003</i>
by <a href=\"mailto:francesco.casella@polimi.it\">Francesco
Casella</a>:<br>
First release.</li>
</ul>
</html>"));
end TestThroughMassFlow;
model TestValves "Test cases for valves"
extends Modelica.Icons.Example;
ThermoPower.Water.SourcePressure
SourceP1(p0=10e5) annotation (Placement(
transformation(extent={{-100,40},{-80,60}}, rotation=0)));
ThermoPower.Water.SourcePressure
SourceP2(p0=8e5) annotation (Placement(
transformation(extent={{-100,-60},{-80,-40}}, rotation=0)));
ThermoPower.Water.SinkPressure
SinkP1(p0=1e5) annotation (Placement(
transformation(extent={{70,-10},{90,10}}, rotation=0)));
ThermoPower.Water.ValveLiq V1(
dpnom=9e5,
wnom=1.5,
redeclare package Medium = Modelica.Media.Water.StandardWater,
pnom=10e5,
Kv=2,
CvData=ThermoPower.Choices.Valve.CvTypes.Kv) annotation (Placement(
transformation(extent={{-30,60},{-10,80}}, rotation=0)));
Water.ValveLiq V2(
dpnom=5e5,
wnom=1.2,
pnom=10e5,
redeclare package Medium = Modelica.Media.Water.StandardWater,
Av=5e-5,
CvData=ThermoPower.Choices.Valve.CvTypes.Av) annotation (Placement(
transformation(extent={{-30,20},{-10,40}}, rotation=0)));
ThermoPower.Water.ValveLiq V3(
dpnom=3e5,
wnom=1.1,
pnom=10e5,
redeclare package Medium = Modelica.Media.Water.StandardWater,
Av=5e-5,
CvData=ThermoPower.Choices.Valve.CvTypes.Av) annotation (Placement(
transformation(extent={{-30,-40},{-10,-20}}, rotation=0)));
ThermoPower.Water.ValveLiq V4(
dpnom=8e5,
wnom=1.3,
pnom=10e5,
redeclare package Medium = Modelica.Media.Water.StandardWater,
Cv=2,
CvData=ThermoPower.Choices.Valve.CvTypes.Cv) annotation (Placement(
transformation(extent={{-30,-80},{-10,-60}}, rotation=0)));
ThermoPower.Water.ValveLiq V5(
dpnom=4e5,
wnom=2,
pnom=5e5,
redeclare package Medium = Modelica.Media.Water.StandardWater,
Av=1e-4,
CvData=ThermoPower.Choices.Valve.CvTypes.Av) annotation (Placement(
transformation(extent={{40,-10},{60,10}}, rotation=0)));
ThermoPower.Water.SinkPressure
SinkP2(p0=1e5) annotation (Placement(
transformation(extent={{10,60},{30,80}}, rotation=0)));
ThermoPower.Water.SinkPressure
SinkP3(p0=1e5) annotation (Placement(
transformation(extent={{10,-80},{30,-60}}, rotation=0)));
Modelica.Blocks.Sources.Ramp CloseLoad(
duration=1,
height=-0.99,
offset=1,
startTime=1) annotation (Placement(transformation(extent={{20,20},{40,
40}}, rotation=0)));
Modelica.Blocks.Sources.Ramp OpenRelief(
duration=2,
height=1,
offset=0,
startTime=1) annotation (Placement(transformation(extent={{-92,74},{-72,
94}}, rotation=0)));
Modelica.Blocks.Sources.Ramp CloseValves(
duration=2,
height=-1,
offset=1,
startTime=1) annotation (Placement(transformation(extent={{-90,-10},{-70,
10}}, rotation=0)));
inner System system
annotation (Placement(transformation(extent={{80,80},{100,100}})));
equation
connect(CloseValves.y, V3.theta)
annotation (Line(points={{-69,0},{-20,0},{-20,-22}}, color={0,0,127}));
connect(CloseValves.y, V2.theta) annotation (Line(points={{-69,0},{-40,0},
{-40,50},{-20,50},{-20,38}}, color={0,0,127}));
connect(OpenRelief.y, V1.theta) annotation (Line(points={{-71,84},{-20,84},
{-20,78}}, color={0,0,127}));
connect(V4.theta, OpenRelief.y) annotation (Line(points={{-20,-62},{-20,-50},
{-44,-50},{-44,84},{-71,84}}, color={0,0,127}));
connect(CloseLoad.y, V5.theta)
annotation (Line(points={{41,30},{50,30},{50,8}}, color={0,0,127}));
connect(SinkP2.flange, V1.outlet) annotation (Line(
points={{10,70},{-10,70}},
color={0,0,255},
thickness=0.5,
smooth=Smooth.None));
connect(SinkP1.flange, V5.outlet) annotation (Line(
points={{70,0},{60,0}},
color={0,0,255},
thickness=0.5,
smooth=Smooth.None));
connect(SinkP3.flange, V4.outlet) annotation (Line(
points={{10,-70},{-10,-70}},
color={0,0,255},
thickness=0.5,
smooth=Smooth.None));
connect(V5.inlet, V3.outlet) annotation (Line(
points={{40,0},{10,0},{10,-30},{-10,-30}},
color={0,0,255},
thickness=0.5,
smooth=Smooth.None));
connect(V5.inlet, V2.outlet) annotation (Line(
points={{40,0},{10,0},{10,30},{-10,30}},
color={0,0,255},
thickness=0.5,
smooth=Smooth.None));
connect(V2.inlet, SourceP1.flange) annotation (Line(
points={{-30,30},{-60,30},{-60,50},{-80,50}},
color={0,0,255},
thickness=0.5,
smooth=Smooth.None));
connect(V1.inlet, SourceP1.flange) annotation (Line(
points={{-30,70},{-60,70},{-60,50},{-80,50}},
color={0,0,255},
thickness=0.5,
smooth=Smooth.None));
connect(V4.inlet, SourceP2.flange) annotation (Line(
points={{-30,-70},{-60,-70},{-60,-50},{-80,-50}},
color={0,0,255},
thickness=0.5,
smooth=Smooth.None));
connect(V3.inlet, SourceP2.flange) annotation (Line(
points={{-30,-30},{-60,-30},{-60,-50},{-80,-50}},
color={0,0,255},
thickness=0.5,
smooth=Smooth.None));
annotation (
Diagram(graphics),
experiment(StopTime=4, Tolerance=1e-006),
Documentation(info="<HTML>
<p>This model tests the <tt>ValveLiq</tt> model zero or reverse flow conditions.
<p>Simulate the model for 4 s. At t = 1 s the V5 valve closes in 1 s, the V2 and V3 valves close in 2 s and the V1 and V4 valves open in 2 s. The flow in valve V3 reverses between t = 1.83 and t = 1.93.
</HTML>", revisions="<html>
<ul>
<li><i>18 Nov 2003</i>
by <a href=\"mailto:francesco.casella@polimi.it\">Francesco
Casella</a>:<br>
Parameters updated.</li>
<li><i>1 Oct 2003</i>
by <a href=\"mailto:francesco.casella@polimi.it\">Francesco
Casella</a>:<br>
First release.</li>
</ul>
</html>"));
end TestValves;
model TestValveChoked "Test case for valves in choked flow"
extends Modelica.Icons.Example;
ThermoPower.Water.SourcePressure
SourceP1(p0=5e5, h=400e3) annotation (Placement(
transformation(extent={{-50,30},{-30,50}}, rotation=0)));
ThermoPower.Water.SinkPressure
SinkP1(use_in_p0=true)
annotation (Placement(transformation(
extent={{40,30},{60,50}}, rotation=0)));
ThermoPower.Water.ValveLiqChoked ValveLiqChocked(
wnom=1,
redeclare package Medium = Modelica.Media.Water.StandardWater,
Av=5e-5,
CheckValve=false,
CvData=ThermoPower.Choices.Valve.CvTypes.Av,
useThetaInput=false,
pnom=500000,
dpnom=200000) annotation (Placement(
transformation(extent={{-10,30},{10,50}}, rotation=0)));
Modelica.Blocks.Sources.Sine Sine1(
amplitude=2.5e5,
freqHz=0.5,
offset=3e5,
phase=3.14159,
startTime=1) annotation (Placement(transformation(extent={{10,60},{30,
80}}, rotation=0)));
ThermoPower.Water.SourcePressure
SourceP2(p0=60e5, h=2.9e6) annotation (
Placement(transformation(extent={{-50,-50},{-30,-30}}, rotation=0)));
ThermoPower.Water.SinkPressure
SinkP2(p0=100000, use_in_p0=true)
annotation (Placement(
transformation(extent={{40,-50},{60,-30}}, rotation=0)));
ThermoPower.Water.ValveVap ValveVap(
wnom=1,
redeclare package Medium = Modelica.Media.Water.StandardWater,
Av=1e-4,
CheckValve=false,
CvData=ThermoPower.Choices.Valve.CvTypes.Av,
useThetaInput=false,
pnom=6000000,
dpnom=3000000) annotation (Placement(
transformation(extent={{-10,-50},{10,-30}}, rotation=0)));
Modelica.Blocks.Sources.Sine Sine2(
amplitude=49.5e5,
freqHz=0.5,
offset=50e5,
phase=3.14159,
startTime=1) annotation (Placement(transformation(extent={{10,-20},{30,
0}}, rotation=0)));
inner System system
annotation (Placement(transformation(extent={{80,80},{100,100}})));
equation
connect(ValveLiqChocked.outlet, SinkP1.flange) annotation (Line(
points={{10,40},{40,40}},
thickness=0.5,
color={0,0,255}));
connect(SourceP1.flange, ValveLiqChocked.inlet) annotation (Line(
points={{-30,40},{-10,40}},
thickness=0.5,
color={0,0,255}));
connect(SourceP2.flange, ValveVap.inlet) annotation (Line(
points={{-30,-40},{-10,-40}},
thickness=0.5,
color={0,0,255}));
connect(ValveVap.outlet, SinkP2.flange) annotation (Line(
points={{10,-40},{40,-40}},
thickness=0.5,
color={0,0,255}));
connect(Sine1.y, SinkP1.in_p0)
annotation (Line(points={{31,70},{46,70},{46,48.8}}, color={0,0,127}));
connect(Sine2.y, SinkP2.in_p0) annotation (Line(points={{31,-10},{46,-10},
{46,-31.2}}, color={0,0,127}));
annotation (
Diagram(graphics),
experiment(StopTime=4, Tolerance=1e-006),
Documentation(info="<HTML>
<p>This model tests the transition from normal to choked flow for the <tt>ValveLiq</tt> and <tt>ValveVap</tt> models.
<p>Simulate the model for 4 s and observe the flowrate through the two valves.
</HTML>", revisions="<html>
<ul>
<li><i>18 Nov 2003</i>
by <a href=\"mailto:francesco.casella@polimi.it\">Francesco
Casella</a>:<br>
Parameters updated.</li>
<li><i>1 Oct 2003</i>
by <a href=\"mailto:francesco.casella@polimi.it\">Francesco
Casella</a>:<br>
First release.</li>
</ul>
</html>"));
end TestValveChoked;
model TestCoeffValve "Test case for valve with different CvData settings"
extends Modelica.Icons.Example;
ThermoPower.Water.SourcePressure
SourceP1(p0=5e5, h=2e5) annotation (Placement(
transformation(extent={{-50,50},{-30,70}}, rotation=0)));
ThermoPower.Water.SinkPressure
SinkP1(p0=3e5) annotation (Placement(
transformation(extent={{40,50},{60,70}}, rotation=0)));
Water.ValveLiq ValveLiq1(
wnom=1,
redeclare package Medium = Modelica.Media.Water.StandardWater,
CvData=ThermoPower.Choices.Valve.CvTypes.Av,
Av=7.2e-5,
useThetaInput=false,
pnom=500000,
dpnom=200000)
annotation (Placement(transformation(extent={{-10,50},{10,70}},
rotation=0)));
ThermoPower.Water.SourcePressure
SourceP2(p0=5e5, h=2e5) annotation (Placement(
transformation(extent={{-50,10},{-30,30}}, rotation=0)));
ThermoPower.Water.SinkPressure
SinkP2(p0=3e5) annotation (Placement(
transformation(extent={{40,10},{60,30}}, rotation=0)));
Water.ValveLiq ValveLiq2(
wnom=1,
redeclare package Medium = Modelica.Media.Water.StandardWater,
CvData=ThermoPower.Choices.Valve.CvTypes.Kv,
Kv=2.592,
useThetaInput=false,
pnom=500000,
dpnom=200000)
annotation (Placement(transformation(extent={{-10,10},{10,30}},
rotation=0)));
ThermoPower.Water.SourcePressure
SourceP3(p0=5e5, h=2e5) annotation (Placement(
transformation(extent={{-50,-30},{-30,-10}}, rotation=0)));
ThermoPower.Water.SinkPressure
SinkP3(p0=3e5) annotation (Placement(
transformation(extent={{40,-30},{60,-10}}, rotation=0)));
Water.ValveLiq ValveLiq3(
wnom=1,
redeclare package Medium = Modelica.Media.Water.StandardWater,
CvData=ThermoPower.Choices.Valve.CvTypes.Cv,
Cv=2.997,
useThetaInput=false,
pnom=500000,
dpnom=200000)
annotation (Placement(transformation(extent={{-10,-30},{10,-10}},
rotation=0)));
ThermoPower.Water.SourcePressure
SourceP4(p0=5e5, h=2e5) annotation (Placement(
transformation(extent={{-50,-70},{-30,-50}}, rotation=0)));
ThermoPower.Water.SinkPressure
SinkP4(p0=3e5) annotation (Placement(
transformation(extent={{40,-70},{60,-50}}, rotation=0)));
Water.ValveLiq ValveLiq4(
redeclare package Medium = Modelica.Media.Water.StandardWater,
CvData=ThermoPower.Choices.Valve.CvTypes.OpPoint,
wnom=1.012,
rhonom=989,
useThetaInput=false,
pnom=500000,
dpnom=200000)
annotation (Placement(transformation(extent={{-10,-70},{10,
-50}}, rotation=0)));
inner System system
annotation (Placement(transformation(extent={{80,80},{100,100}})));