/
sam_mw_trough_type250.cpp
5506 lines (4761 loc) · 271 KB
/
sam_mw_trough_type250.cpp
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
/*
BSD 3-Clause License
Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/ssc/blob/develop/LICENSE
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#define _TCSTYPEINTERFACE_
#include "tcstype.h"
#include "htf_props.h"
#include "sam_csp_util.h"
#include "interconnect.h"
#include <cmath>
#include <algorithm>
#include <vector>
#include <fstream>
using namespace std;
enum{
//parameters and inputs
P_NSCA,
P_NHCET,
P_NCOLT,
P_NHCEVAR,
P_NLOOPS,
P_ETA_PUMP,
P_HDR_ROUGH,
P_THETA_STOW,
P_THETA_DEP,
P_ROW_DISTANCE,
P_FIELDCONFIG,
P_T_RECIRC,
P_PB_RATED_CAP,
P_M_DOT_HTFMIN,
P_M_DOT_HTFMAX,
P_T_LOOP_IN_DES,
P_T_LOOP_OUT,
P_FLUID,
P_T_FIELD_INI,
P_FIELD_FL_PROPS,
P_T_FP,
P_I_BN_DES,
P_DES_PIPE_VALS,
P_DP_SGS_1,
P_V_HDR_COLD_MAX,
P_V_HDR_COLD_MIN,
P_V_HDR_HOT_MAX,
P_V_HDR_HOT_MIN,
P_NMAX_HDR_DIAMS,
P_L_RNR_PB,
P_L_RNR_PER_XPAN,
P_L_XPAN_HDR,
P_L_XPAN_RNR,
P_MIN_RNR_XPANS,
P_NTHSTH_FIELD_SEP,
P_NHDR_PER_XPAN,
P_OFFSET_XPAN_HDR,
P_PIPE_HL_COEF,
P_SCA_DRIVES_ELEC,
P_FTHROK,
P_FTHRCTRL,
P_COLTILT,
P_COLAZ,
P_ACCEPT_MODE,
P_ACCEPT_INIT,
P_ACCEPT_LOC,
P_USING_INPUT_GEN,
P_SOLAR_MULT,
P_MC_BAL_HOT,
P_MC_BAL_COLD,
P_MC_BAL_SCA,
P_V_SGS,
P_OPTCHARTYPE,
P_COLLECTORTYPE,
P_W_APERTURE,
P_A_APERTURE,
//P_IAMF0,
//P_IAMF1,
//P_IAMF2,
P_REFLECTIVITY,
P_TRACKINGERROR,
P_GEOMEFFECTS,
P_RHO_MIRROR_CLEAN,
P_DIRT_MIRROR,
P_ERROR,
P_AVE_FOCAL_LENGTH,
P_L_SCA,
P_L_APERTURE,
P_COLPERSCA,
P_DISTANCE_SCA,
P_IAM_MATRIX,
P_HCE_FIELDFRAC,
P_D_2,
P_D_3,
P_D_4,
P_D_5,
P_D_P,
P_FLOW_TYPE,
P_ROUGH,
P_ALPHA_ENV,
P_EPSILON_3_11,
P_EPSILON_3_12,
P_EPSILON_3_13,
P_EPSILON_3_14,
P_EPSILON_3_21,
P_EPSILON_3_22,
P_EPSILON_3_23,
P_EPSILON_3_24,
P_EPSILON_3_31,
P_EPSILON_3_32,
P_EPSILON_3_33,
P_EPSILON_3_34,
P_EPSILON_3_41,
P_EPSILON_3_42,
P_EPSILON_3_43,
P_EPSILON_3_44,
P_ALPHA_ABS,
P_TAU_ENVELOPE,
P_EPSILON_4,
P_EPSILON_5,
P_GLAZINGINTACTIN,
P_P_A,
P_ANNULUSGAS,
P_ABSORBERMATERIAL,
P_SHADOWING,
P_DIRT_HCE,
P_DESIGN_LOSS,
P_SCAINFOARRAY,
P_SCADEFOCUSARRAY,
P_K_CPNT,
P_D_CPNT,
P_L_CPNT,
P_TYPE_CPNT,
P_CUSTOM_SF_PIPE_SIZES,
P_SF_RNR_DIAMS,
P_SF_RNR_WALLTHICKS,
P_SF_RNR_LENGTHS,
P_SF_HDR_DIAMS,
P_SF_HDR_WALLTHICKS,
P_SF_HDR_LENGTHS,
PO_A_APER_TOT,
I_I_B,
I_T_DB,
I_V_WIND,
I_P_AMB,
I_T_DP,
I_T_COLD_IN,
I_M_DOT_IN,
I_DEFOCUS,
I_SOLARAZ,
I_LATITUDE,
I_LONGITUDE,
I_SHIFT,
I_RECIRC,
O_HEADER_DIAMS,
O_HEADER_WALLTHK,
O_HEADER_LENGTHS,
O_HEADER_XPANS,
O_HEADER_MDOT_DSN,
O_HEADER_V_DSN,
O_HEADER_T_DSN,
O_HEADER_P_DSN,
O_RUNNER_DIAMS,
O_RUNNER_WALLTHK,
O_RUNNER_LENGTHS,
O_RUNNER_XPANS,
O_RUNNER_MDOT_DSN,
O_RUNNER_V_DSN,
O_RUNNER_T_DSN,
O_RUNNER_P_DSN,
O_LOOP_T_DSN,
O_LOOP_P_DSN,
O_T_FIELD_IN_AT_DSN,
O_T_FIELD_OUT_AT_DSN,
O_P_FIELD_IN_AT_DSN,
O_T_SYS_H,
O_M_DOT_AVAIL,
O_M_DOT_FIELD_HTF,
O_Q_AVAIL,
O_DP_TOT,
O_W_DOT_PUMP,
O_E_FP_TOT,
O_QQ,
O_T_SYS_C,
O_EQOPTEFF,
O_SCAS_DEF,
O_M_DOT_HTF_TOT,
O_E_BAL_STARTUP,
O_Q_INC_SF_TOT,
O_Q_ABS_TOT,
O_Q_LOSS_TOT,
O_M_DOT_HTF,
O_Q_LOSS_SPEC_TOT,
O_SCA_PAR_TOT,
O_PIPE_HL,
O_Q_DUMP,
O_THETA_AVE,
O_COSTH_AVE,
O_IAM_AVE,
O_ROWSHADOW_AVE,
O_ENDLOSS_AVE,
O_DNI_COSTH,
O_QINC_COSTH,
O_T_LOOP_OUTLET,
O_C_HTF_AVE,
O_Q_FIELD_DELIVERED,
O_ETA_THERMAL,
O_E_LOOP_ACCUM,
O_E_HDR_ACCUM,
O_E_TOT_ACCUM,
O_E_FIELD,
O_T_C_IN_CALC,
O_DEFOCUS,
//Include N_max
N_MAX
};
tcsvarinfo sam_mw_trough_type250_variables[] = {
// vartype, datatype, index, name, label, units, meta, group, default_value
{ TCS_PARAM, TCS_NUMBER, P_NSCA, "nSCA", "Number of SCA's in a loop", "none", "", "", "8" },
{ TCS_PARAM, TCS_NUMBER, P_NHCET, "nHCEt", "Number of HCE types", "none", "", "", "4" },
{ TCS_PARAM, TCS_NUMBER, P_NCOLT, "nColt", "Number of collector types", "none", "", "", "4" },
{ TCS_PARAM, TCS_NUMBER, P_NHCEVAR, "nHCEVar", "Number of HCE variants per type", "none", "", "", "4" },
{ TCS_PARAM, TCS_NUMBER, P_NLOOPS, "nLoops", "Number of loops in the field", "none", "", "", "230" },
{ TCS_PARAM, TCS_NUMBER, P_ETA_PUMP, "eta_pump", "HTF pump efficiency", "none", "", "", "0.85" },
{ TCS_PARAM, TCS_NUMBER, P_HDR_ROUGH, "HDR_rough", "Header pipe roughness", "m", "", "", "4.57E-05" },
{ TCS_PARAM, TCS_NUMBER, P_THETA_STOW, "theta_stow", "stow angle", "deg", "", "", "170" },
{ TCS_PARAM, TCS_NUMBER, P_THETA_DEP, "theta_dep", "deploy angle", "deg", "", "", "10" },
{ TCS_PARAM, TCS_NUMBER, P_ROW_DISTANCE, "Row_Distance", "Spacing between rows (centerline to centerline)", "m", "", "", "15" },
{ TCS_PARAM, TCS_NUMBER, P_FIELDCONFIG, "FieldConfig", "Number of subfield headers", "none", "", "", "2" },
{ TCS_PARAM, TCS_NUMBER, P_T_RECIRC, "T_recirc", "The temperature which below the field recirculates", "C", "", "", "300" },
{ TCS_PARAM, TCS_NUMBER, P_PB_RATED_CAP, "pb_rated_cap", "Rated plant capacity", "MWe", "", "", "111" },
{ TCS_PARAM, TCS_NUMBER, P_M_DOT_HTFMIN, "m_dot_htfmin", "Minimum loop HTF flow rate", "kg/s", "", "", "1" },
{ TCS_PARAM, TCS_NUMBER, P_M_DOT_HTFMAX, "m_dot_htfmax", "Maximum loop HTF flow rate", "kg/s", "", "", "12" },
{ TCS_PARAM, TCS_NUMBER, P_T_LOOP_IN_DES, "T_loop_in_des", "Design loop inlet temperature", "C", "", "", "293" },
{ TCS_PARAM, TCS_NUMBER, P_T_LOOP_OUT, "T_loop_out", "Target loop outlet temperature", "C", "", "", "391" },
{ TCS_PARAM, TCS_NUMBER, P_FLUID, "Fluid", "Field HTF fluid number", "none", "", "", "21" },
{ TCS_PARAM, TCS_NUMBER, P_T_FIELD_INI, "T_field_ini", "Initial field temperature", "C", "", "", "150" },
{ TCS_PARAM, TCS_MATRIX, P_FIELD_FL_PROPS, "field_fl_props", "Fluid property data", "none","7 columns (T,Cp,dens,visc,kvisc,cond,h), at least 3 rows", "", "" },
{ TCS_PARAM, TCS_NUMBER, P_T_FP, "T_fp", "Freeze protection temperature (heat trace activation temperature)", "C", "", "", "150" },
{ TCS_PARAM, TCS_NUMBER, P_I_BN_DES, "I_bn_des", "Solar irradiation at design", "W/m2", "", "", "950" },
{ TCS_PARAM, TCS_NUMBER, P_DES_PIPE_VALS, "calc_design_pipe_vals", "Calculate temps and pressures at design conditions", "-", "", "", "true" },
{ TCS_PARAM, TCS_NUMBER, P_DP_SGS_1, "DP_SGS_1", "Pressure drop in first section of TES/PB before hot tank at design conditions", "bar", "", "", "0" },
{ TCS_PARAM, TCS_NUMBER, P_V_HDR_COLD_MAX, "V_hdr_cold_max", "Maximum HTF velocity in the cold headers at design", "m/s", "", "", "3" },
{ TCS_PARAM, TCS_NUMBER, P_V_HDR_COLD_MIN, "V_hdr_cold_min", "Minimum HTF velocity in the cold headers at design", "m/s", "", "", "2" },
{ TCS_PARAM, TCS_NUMBER, P_V_HDR_HOT_MAX, "V_hdr_hot_max", "Maximum HTF velocity in the hot headers at design", "m/s", "", "", "3" },
{ TCS_PARAM, TCS_NUMBER, P_V_HDR_HOT_MIN, "V_hdr_hot_min", "Minimum HTF velocity in the hot headers at design", "m/s", "", "", "2" },
{ TCS_PARAM, TCS_NUMBER, P_NMAX_HDR_DIAMS, "N_max_hdr_diams", "Maximum number of diameters in each of the hot and cold headers", "none", "", "", "10" },
{ TCS_PARAM, TCS_NUMBER, P_L_RNR_PB, "L_rnr_pb", "Length of runner pipe in power block", "m", "", "", "25" },
{ TCS_PARAM, TCS_NUMBER, P_L_RNR_PER_XPAN, "L_rnr_per_xpan", "Threshold length of straight runner pipe without an expansion loop", "m", "", "", "70" },
{ TCS_PARAM, TCS_NUMBER, P_L_XPAN_HDR, "L_xpan_hdr", "Combined perpendicular lengths of each header expansion loop", "m", "", "", "20" },
{ TCS_PARAM, TCS_NUMBER, P_L_XPAN_RNR, "L_xpan_rnr", "Combined perpendicular lengths of each runner expansion loop", "m", "", "", "20" },
{ TCS_PARAM, TCS_NUMBER, P_MIN_RNR_XPANS, "Min_rnr_xpans", "Minimum number of expansion loops per single-diameter runner section", "none", "", "", "1" },
{ TCS_PARAM, TCS_NUMBER, P_NTHSTH_FIELD_SEP, "northsouth_field_sep", "North/south separation between subfields. 0 = SCAs are touching", "m", "", "", "20" },
{ TCS_PARAM, TCS_NUMBER, P_NHDR_PER_XPAN, "N_hdr_per_xpan", "Number of collector loops per expansion loop", "none", "", "", "2" },
{ TCS_PARAM, TCS_NUMBER, P_OFFSET_XPAN_HDR, "offset_xpan_hdr", "Location of first header expansion loop. 1 = after first collector loop", "none", "", "", "1" },
{ TCS_PARAM, TCS_NUMBER, P_PIPE_HL_COEF, "Pipe_hl_coef", "Loss coefficient from the header, runner pipe, and non-HCE piping", "W/m2-K", "", "", "0.45" },
{ TCS_PARAM, TCS_NUMBER, P_SCA_DRIVES_ELEC, "SCA_drives_elec", "Tracking power, in Watts per SCA drive", "W/SCA", "", "", "125" },
{ TCS_PARAM, TCS_NUMBER, P_FTHROK, "fthrok", "Flag to allow partial defocusing of the collectors", "none", "", "", "1" },
{ TCS_PARAM, TCS_NUMBER, P_FTHRCTRL, "fthrctrl", "Defocusing strategy", "none", "", "", "2" },
{ TCS_PARAM, TCS_NUMBER, P_COLTILT, "ColTilt", "Collector tilt angle (0 is horizontal, 90deg is vertical)", "deg", "", "", "0" },
{ TCS_PARAM, TCS_NUMBER, P_COLAZ, "ColAz", "Collector azimuth angle", "deg", "", "", "0" },
{ TCS_PARAM, TCS_NUMBER, P_ACCEPT_MODE, "accept_mode", "Acceptance testing mode? (1=yes, 0=no)", "none", "", "", "0" },
{ TCS_PARAM, TCS_NUMBER, P_ACCEPT_INIT, "accept_init", "In acceptance testing mode - require steady-state startup", "none", "", "", "0" },
{ TCS_PARAM, TCS_NUMBER, P_ACCEPT_LOC, "accept_loc", "In acceptance testing mode - temperature sensor location (1=hx,2=loop)", "none", "", "", "1" },
{ TCS_PARAM, TCS_NUMBER, P_USING_INPUT_GEN, "using_input_gen", "Are weather inputs from weather file reader (0) or Type250 input generator?", "none", "", "", "0" },
{ TCS_PARAM, TCS_NUMBER, P_SOLAR_MULT, "solar_mult", "Solar multiple", "none", "", "", "2" },
{ TCS_PARAM, TCS_NUMBER, P_MC_BAL_HOT, "mc_bal_hot", "The heat capacity of the balance of plant on the hot side", "kWht/K-MWt", "", "", "0.2" },
{ TCS_PARAM, TCS_NUMBER, P_MC_BAL_COLD, "mc_bal_cold", "The heat capacity of the balance of plant on the cold side", "kWht/K-MWt", "", "", "0.2" },
{ TCS_PARAM, TCS_NUMBER, P_MC_BAL_SCA, "mc_bal_sca", "Non-HTF heat capacity associated with each SCA - per meter basis", "Wht/K-m", "", "", "4.5" },
{ TCS_INPUT, TCS_NUMBER, P_V_SGS, "v_sgs", "HTF volume in SGS minus bypass loop", "m3", "", "", "-1" },
{ TCS_PARAM, TCS_ARRAY, P_OPTCHARTYPE, "OptCharType", "The optical characterization method ", "none", "", "", "1,1,1,1" },
{ TCS_PARAM, TCS_ARRAY, P_COLLECTORTYPE, "CollectorType", "{1=user defined, 2=LS-2, 3=LS-3, 4=IST} ", "none", "", "", "1,1,1,1" },
{ TCS_PARAM, TCS_ARRAY, P_W_APERTURE, "W_aperture", "The collector aperture width (Total structural area.. used for shadowing)", "m", "", "", "5,5,5,5" },
{ TCS_PARAM, TCS_ARRAY, P_A_APERTURE, "A_aperture", "Reflective aperture area of the collector", "m2", "", "","470.3,470.3,470.3,470.3" },
//{ TCS_PARAM, TCS_ARRAY, P_IAMF0, "IamF0", "Incident angle modifier 0th order term", "none", "", "", "1,1,1,1" },
//{ TCS_PARAM, TCS_ARRAY, P_IAMF1, "IamF1", "Incident angle modifier 1st order term", "none", "", "","0.0506,0.0506,0.0506,0.0506" },
//{ TCS_PARAM, TCS_ARRAY, P_IAMF2, "IamF2", "Incident angle modifier 2nd order term", "none", "", "","-0.1763,-0.1763,-0.1763,-0.1763" },
{ TCS_PARAM, TCS_ARRAY, P_REFLECTIVITY, "reflectivity", "Base solar-weighted mirror reflectivity value ", "none", "", "", "1,1,1,1" },
{ TCS_PARAM, TCS_ARRAY, P_TRACKINGERROR, "TrackingError", "User-defined tracking error derate", "none", "", "","0.994,0.994,0.994,0.994" },
{ TCS_PARAM, TCS_ARRAY, P_GEOMEFFECTS, "GeomEffects", "User-defined geometry effects derate", "none", "", "","0.98,0.98,0.98,0.98" },
{ TCS_PARAM, TCS_ARRAY, P_RHO_MIRROR_CLEAN, "Rho_mirror_clean", "User-defined clean mirror reflectivity", "none", "", "","0.935,0.935,0.935,0.935" },
{ TCS_PARAM, TCS_ARRAY, P_DIRT_MIRROR, "Dirt_mirror", "User-defined dirt on mirror derate", "none", "", "","0.95,0.95,0.95,0.95" },
{ TCS_PARAM, TCS_ARRAY, P_ERROR, "Error", "User-defined general optical error derate ", "none", "", "","0.99,0.99,0.99,0.99" },
{ TCS_PARAM, TCS_ARRAY, P_AVE_FOCAL_LENGTH, "Ave_Focal_Length", "The average focal length of the collector ", "m", "", "","1.8,1.8,1.8,1.8" },
{ TCS_PARAM, TCS_ARRAY, P_L_SCA, "L_SCA", "The length of the SCA ", "m", "", "","100,100,100,100" },
{ TCS_PARAM, TCS_ARRAY, P_L_APERTURE, "L_aperture", "The length of a single mirror/HCE unit", "m", "", "","8.33333,8.33333,8.33333,8.33333" },
{ TCS_PARAM, TCS_ARRAY, P_COLPERSCA, "ColperSCA", "The number of individual collector sections in an SCA ", "none", "", "", "12,12,12,12" },
{ TCS_PARAM, TCS_ARRAY, P_DISTANCE_SCA, "Distance_SCA", " piping distance between SCA's in the field", "m", "", "", "1,1,1,1" },
{ TCS_PARAM, TCS_MATRIX, P_IAM_MATRIX, "IAM_matrix", "Rows = # of collectors, Cols = max # of coefficients", "none", "", "","[[0]]" },
{ TCS_PARAM, TCS_MATRIX, P_HCE_FIELDFRAC, "HCE_FieldFrac", "The fraction of the field occupied by this HCE type ", "none", "", "","[0.985,0.01,0.005,0][0.985,0.01,0.005,0][0.985,0.01,0.005,0][0.985,0.01,0.005,0]" },
{ TCS_PARAM, TCS_MATRIX, P_D_2, "D_2", "The inner absorber tube diameter", "m", "", "","[0.066,0.066,0.066,0.066][0.066,0.066,0.066,0.066][0.066,0.066,0.066,0.066][0.066,0.066,0.066,0.066]" },
{ TCS_PARAM, TCS_MATRIX, P_D_3, "D_3", "The outer absorber tube diameter", "m", "", "","[0.07,0.07,0.07,0.07][0.07,0.07,0.07,0.07][0.07,0.07,0.07,0.07][0.07,0.07,0.07,0.07]" },
{ TCS_PARAM, TCS_MATRIX, P_D_4, "D_4", "The inner glass envelope diameter ", "m", "", "","[0.115,0.115,0.115,0.115][0.115,0.115,0.115,0.115][0.115,0.115,0.115,0.115][0.115,0.115,0.115,0.115]" },
{ TCS_PARAM, TCS_MATRIX, P_D_5, "D_5", "The outer glass envelope diameter ", "m", "", "","[0.12,0.12,0.12,0.12][0.12,0.12,0.12,0.12][0.12,0.12,0.12,0.12][0.12,0.12,0.12,0.12]" },
{ TCS_PARAM, TCS_MATRIX, P_D_P, "D_p", "The diameter of the absorber flow plug (optional) ", "m", "", "","[0,0,0,0][0,0,0,0][0,0,0,0][0,0,0,0]" },
{ TCS_PARAM, TCS_MATRIX, P_FLOW_TYPE, "Flow_type", "The flow type through the absorber", "none", "", "","[1,1,1,1][1,1,1,1][1,1,1,1][1,1,1,1]" },
{ TCS_PARAM, TCS_MATRIX, P_ROUGH, "Rough", "Relative roughness of the internal HCE surface ", "-", "", "","[4.50E-05,4.50E-05,4.50E-05,4.50E-05][4.50E-05,4.50E-05,4.50E-05,4.50E-05][4.50E-05,4.50E-05,4.50E-05,4.50E-05][4.50E-05,4.50E-05,4.50E-05,4.50E-05]" },
{ TCS_PARAM, TCS_MATRIX, P_ALPHA_ENV, "alpha_env", "Envelope absorptance ", "none", "", "","[0.02,0.02,0,0][0.02,0.02,0,0][0.02,0.02,0,0][0.02,0.02,0,0]" },
{ TCS_PARAM, TCS_MATRIX, P_EPSILON_3_11, "epsilon_3_11", "Absorber emittance - HCE type 1 - HCE variation 1", "none", "", "","[100,150,200,250,300,350,400,450,500][0.064,0.0665,0.07,0.0745,0.08,0.0865,0.094,0.1025,0.112]" },
{ TCS_PARAM, TCS_MATRIX, P_EPSILON_3_12, "epsilon_3_12", "Absorber emittance - HCE type 1 - HCE variation 2", "none", "", "", "0,.65" },
{ TCS_PARAM, TCS_MATRIX, P_EPSILON_3_13, "epsilon_3_13", "Absorber emittance - HCE type 1 - HCE variation 3", "none", "", "", "0,.65" },
{ TCS_PARAM, TCS_MATRIX, P_EPSILON_3_14, "epsilon_3_14", "Absorber emittance - HCE type 1 - HCE variation 4", "none", "", "", "0,0" },
{ TCS_PARAM, TCS_MATRIX, P_EPSILON_3_21, "epsilon_3_21", "Absorber emittance - HCE type 2 - HCE variation 1", "none", "", "","[100,150,200,250,300,350,400,450,500][0.064,0.0665,0.07,0.0745,0.08,0.0865,0.094,0.1025,0.112]" },
{ TCS_PARAM, TCS_MATRIX, P_EPSILON_3_22, "epsilon_3_22", "Absorber emittance - HCE type 2 - HCE variation 2", "none", "", "", "0,.65" },
{ TCS_PARAM, TCS_MATRIX, P_EPSILON_3_23, "epsilon_3_23", "Absorber emittance - HCE type 2 - HCE variation 3", "none", "", "", "0,.65" },
{ TCS_PARAM, TCS_MATRIX, P_EPSILON_3_24, "epsilon_3_24", "Absorber emittance - HCE type 2 - HCE variation 4", "none", "", "", "0,0" },
{ TCS_PARAM, TCS_MATRIX, P_EPSILON_3_31, "epsilon_3_31", "Absorber emittance - HCE type 3 - HCE variation 1", "none", "", "","[100,150,200,250,300,350,400,450,500][0.064,0.0665,0.07,0.0745,0.08,0.0865,0.094,0.1025,0.112]" },
{ TCS_PARAM, TCS_MATRIX, P_EPSILON_3_32, "epsilon_3_32", "Absorber emittance - HCE type 3 - HCE variation 2", "none", "", "", "0,.65" },
{ TCS_PARAM, TCS_MATRIX, P_EPSILON_3_33, "epsilon_3_33", "Absorber emittance - HCE type 3 - HCE variation 3", "none", "", "", "0,.65" },
{ TCS_PARAM, TCS_MATRIX, P_EPSILON_3_34, "epsilon_3_34", "Absorber emittance - HCE type 3 - HCE variation 4", "none", "", "", "0,0" },
{ TCS_PARAM, TCS_MATRIX, P_EPSILON_3_41, "epsilon_3_41", "Absorber emittance - HCE type 4 - HCE variation 1", "none", "", "","[100,150,200,250,300,350,400,450,500][0.064,0.0665,0.07,0.0745,0.08,0.0865,0.094,0.1025,0.112]" },
{ TCS_PARAM, TCS_MATRIX, P_EPSILON_3_42, "epsilon_3_42", "Absorber emittance - HCE type 4 - HCE variation 2", "none", "", "", "0,.65" },
{ TCS_PARAM, TCS_MATRIX, P_EPSILON_3_43, "epsilon_3_43", "Absorber emittance - HCE type 4 - HCE variation 3", "none", "", "", "0,.65" },
{ TCS_PARAM, TCS_MATRIX, P_EPSILON_3_44, "epsilon_3_44", "Absorber emittance - HCE type 4 - HCE variation 4", "none", "", "", "0,0" },
{ TCS_PARAM, TCS_MATRIX, P_ALPHA_ABS, "alpha_abs", "Absorber absorptance ", "none", "", "","[0.96,0.96,0.8,0][0.96,0.96,0.8,0][0.96,0.96,0.8,0][0.96,0.96,0.8,0]" },
{ TCS_PARAM, TCS_MATRIX, P_TAU_ENVELOPE, "Tau_envelope", "Envelope transmittance", "none", "", "","[0.963,0.963,1,0][0.963,0.963,1,0][0.963,0.963,1,0][0.963,0.963,1,0]" },
{ TCS_PARAM, TCS_MATRIX, P_EPSILON_4, "EPSILON_4", "Inner glass envelope emissivities (Pyrex) ", "none", "", "","[0.86,0.86,1,0][0.86,0.86,1,0][0.86,0.86,1,0][0.86,0.86,1,0]" },
{ TCS_PARAM, TCS_MATRIX, P_EPSILON_5, "EPSILON_5", "Outer glass envelope emissivities (Pyrex) ", "none", "", "","[0.86,0.86,1,0][0.86,0.86,1,0][0.86,0.86,1,0][0.86,0.86,1,0]" },
{ TCS_PARAM, TCS_MATRIX, P_GLAZINGINTACTIN, "GlazingIntactIn", "The glazing intact flag {1=true, else=false}", "none", "", "","[1,1,0,1][1,1,0,1][1,1,0,1][1,1,0,1]" },
{ TCS_PARAM, TCS_MATRIX, P_P_A, "P_a", "Annulus gas pressure", "torr", "", "","[0.0001,750,750,0][0.0001,750,750,0][0.0001,750,750,0][0.0001,750,750,0]" },
{ TCS_PARAM, TCS_MATRIX, P_ANNULUSGAS, "AnnulusGas", "Annulus gas type (1=air, 26=Ar, 27=H2)", "none", "", "","[27,1,1,27][27,1,1,27][27,1,1,27][27,1,1,27]" },
{ TCS_PARAM, TCS_MATRIX, P_ABSORBERMATERIAL, "AbsorberMaterial", "Absorber material type", "none", "", "","[1,1,1,1][1,1,1,1][1,1,1,1][1,1,1,1]" },
{ TCS_PARAM, TCS_MATRIX, P_SHADOWING, "Shadowing", "Receiver bellows shadowing loss factor", "none", "", "","[0.96,0.96,0.96,0.963][0.96,0.96,0.96,0.963][0.96,0.96,0.96,0.963][0.96,0.96,0.96,0.963]" },
{ TCS_PARAM, TCS_MATRIX, P_DIRT_HCE, "Dirt_HCE", "Loss due to dirt on the receiver envelope", "none", "", "","[0.98,0.98,1,0.98][0.98,0.98,1,0.98][0.98,0.98,1,0.98][0.98,0.98,1,0.98]" },
{ TCS_PARAM, TCS_MATRIX, P_DESIGN_LOSS, "Design_loss", "Receiver heat loss at design", "W/m", "", "","[150,1100,1500,0][150,1100,1500,0][150,1100,1500,0][150,1100,1500,0]" },
{ TCS_PARAM, TCS_MATRIX, P_SCAINFOARRAY, "SCAInfoArray", "(:,0) = HCE type, (:,1)= Collector type for each SCA in the loop ", "none", "", "","[1,1][1,1][1,1][1,1][1,1][1,1][1,1][1,1]" },
{ TCS_PARAM, TCS_ARRAY, P_SCADEFOCUSARRAY, "SCADefocusArray", "Order in which the SCA's should be defocused", "none", "", "","8,7,6,5,4,3,2,1" },
{ TCS_PARAM, TCS_MATRIX, P_K_CPNT, "K_cpnt", "Interconnect component minor loss coefficients, row=intc, col=cpnt", "none", "", "", "-1" },
{ TCS_PARAM, TCS_MATRIX, P_D_CPNT, "D_cpnt", "Interconnect component diameters, row=intc, col=cpnt", "m", "", "", "-1" },
{ TCS_PARAM, TCS_MATRIX, P_L_CPNT, "L_cpnt", "Interconnect component lengths, row=intc, col=cpnt", "m", "", "", "-1" },
{ TCS_PARAM, TCS_MATRIX, P_TYPE_CPNT, "Type_cpnt", "Interconnect component type, row=intc, col=cpnt", "none", "", "", "-1" },
{ TCS_PARAM, TCS_NUMBER, P_CUSTOM_SF_PIPE_SIZES, "custom_sf_pipe_sizes", "Use custom solar field pipe diams, wallthks, and lengths", "none", "", "", "false"},
{ TCS_PARAM, TCS_ARRAY, P_SF_RNR_DIAMS, "sf_rnr_diams", "Custom runner diameters", "m", "", "", "-1" },
{ TCS_PARAM, TCS_ARRAY, P_SF_RNR_WALLTHICKS, "sf_rnr_wallthicks", "Custom runner wall thicknesses", "m", "", "", "-1" },
{ TCS_PARAM, TCS_ARRAY, P_SF_RNR_LENGTHS, "sf_rnr_lengths", "Custom runner lengths", "m", "", "", "-1" },
{ TCS_PARAM, TCS_ARRAY, P_SF_HDR_DIAMS, "sf_hdr_diams", "Custom header diameters", "m", "", "", "-1" },
{ TCS_PARAM, TCS_ARRAY, P_SF_HDR_WALLTHICKS, "sf_hdr_wallthicks", "Custom header wall thicknesses", "m", "", "", "-1" },
{ TCS_PARAM, TCS_ARRAY, P_SF_HDR_LENGTHS, "sf_hdr_lengths", "Custom header lengths", "m", "", "", "-1" },
// Field design calculations
{ TCS_PARAM, TCS_NUMBER, PO_A_APER_TOT, "A_aper_tot", "Total solar field aperture area", "m^2", "", "", "-1.23" },
{ TCS_INPUT, TCS_NUMBER, I_I_B, "I_b", "Direct normal incident solar irradiation", "W/m^2", "", "", "" },
{ TCS_INPUT, TCS_NUMBER, I_T_DB, "T_db", "Dry bulb air temperature", "C", "", "", "" },
{ TCS_INPUT, TCS_NUMBER, I_V_WIND, "V_wind", "Ambient windspeed ", "m/s", "", "", "" },
{ TCS_INPUT, TCS_NUMBER, I_P_AMB, "P_amb", "Ambient pressure", "mbar", "", "", "" },
{ TCS_INPUT, TCS_NUMBER, I_T_DP, "T_dp", "The dewpoint temperature", "C", "", "", "" },
{ TCS_INPUT, TCS_NUMBER, I_T_COLD_IN, "T_cold_in", "HTF return temperature", "C", "", "", "" },
{ TCS_INPUT, TCS_NUMBER, I_M_DOT_IN, "m_dot_in", "HTF mass flow rate at the inlet", "kg/hr", "", "", "" },
{ TCS_INPUT, TCS_NUMBER, I_DEFOCUS, "defocus", "Defocus control", "none", "", "", "" },
{ TCS_INPUT, TCS_NUMBER, I_SOLARAZ, "SolarAz", "Solar azimuth angle reported by the Type15 weather file", "deg", "", "", "" },
{ TCS_INPUT, TCS_NUMBER, I_LATITUDE, "latitude", "Site latitude read from weather file", "deg", "", "", "" },
{ TCS_INPUT, TCS_NUMBER, I_LONGITUDE, "longitude", "Site longitude read from weather file", "deg", "", "", "" },
{ TCS_INPUT, TCS_NUMBER, I_SHIFT, "shift", "shift in longitude from local standard meridian", "deg", "", "", "" },
{ TCS_INPUT, TCS_NUMBER, I_RECIRC, "recirculating", "Field recirculating (bypass valve open)", "none", "", "", "" },
{ TCS_OUTPUT, TCS_ARRAY, O_HEADER_DIAMS, "pipe_header_diams", "Header piping diameter array", "m", "", "", "" },
{ TCS_OUTPUT, TCS_ARRAY, O_HEADER_WALLTHK, "pipe_header_wallthk", "Header piping wall thickness array", "m", "", "", "" },
{ TCS_OUTPUT, TCS_ARRAY, O_HEADER_LENGTHS, "pipe_header_lengths", "Header piping length array", "m", "", "", "" },
{ TCS_OUTPUT, TCS_ARRAY, O_HEADER_XPANS, "pipe_header_expansions", "Number of header piping expansions", "-", "", "", "" },
{ TCS_OUTPUT, TCS_ARRAY, O_HEADER_MDOT_DSN, "pipe_header_mdot_dsn", "Header piping mass flow rate at design", "kg/s", "", "", "" },
{ TCS_OUTPUT, TCS_ARRAY, O_HEADER_V_DSN, "pipe_header_vel_dsn", "Header piping velocity at design", "m/s", "", "", "" },
{ TCS_OUTPUT, TCS_ARRAY, O_HEADER_T_DSN, "pipe_header_T_dsn", "Header piping temperature at design", "C", "", "", "" },
{ TCS_OUTPUT, TCS_ARRAY, O_HEADER_P_DSN, "pipe_header_P_dsn", "Header piping pressure at design", "bar", "", "", "" },
{ TCS_OUTPUT, TCS_ARRAY, O_RUNNER_DIAMS, "pipe_runner_diams", "Runner piping diameter array", "m", "", "", "" },
{ TCS_OUTPUT, TCS_ARRAY, O_RUNNER_WALLTHK, "pipe_runner_wallthk", "Runner piping wall thickness array", "m", "", "", "" },
{ TCS_OUTPUT, TCS_ARRAY, O_RUNNER_LENGTHS, "pipe_runner_lengths", "Runner piping length array", "m", "", "", "" },
{ TCS_OUTPUT, TCS_ARRAY, O_RUNNER_XPANS, "pipe_runner_expansions", "Number of runner piping expansions", "-", "", "", "" },
{ TCS_OUTPUT, TCS_ARRAY, O_RUNNER_MDOT_DSN, "pipe_runner_mdot_dsn", "Runner piping mass flow rate at design", "kg/s", "", "", "" },
{ TCS_OUTPUT, TCS_ARRAY, O_RUNNER_V_DSN, "pipe_runner_vel_dsn", "Runner piping velocity at design", "m/s", "", "", "" },
{ TCS_OUTPUT, TCS_ARRAY, O_RUNNER_T_DSN, "pipe_runner_T_dsn", "Runner piping temperature at design", "C", "", "", "" },
{ TCS_OUTPUT, TCS_ARRAY, O_RUNNER_P_DSN, "pipe_runner_P_dsn", "Runner piping pressure at design", "bar", "", "", "" },
{ TCS_OUTPUT, TCS_ARRAY, O_LOOP_T_DSN, "pipe_loop_T_dsn", "Runner piping temperature at design", "C", "", "", "" },
{ TCS_OUTPUT, TCS_ARRAY, O_LOOP_P_DSN, "pipe_loop_P_dsn", "Runner piping pressure at design", "bar", "", "", "" },
{ TCS_OUTPUT, TCS_NUMBER, O_T_FIELD_IN_AT_DSN, "T_field_in_at_des", "Field/runner inlet temperature at design conditions", "C", "", "", "" },
{ TCS_OUTPUT, TCS_NUMBER, O_T_FIELD_OUT_AT_DSN, "T_field_out_at_des", "Field/runner outlet temperature at design conditions", "C", "", "", "" },
{ TCS_OUTPUT, TCS_NUMBER, O_P_FIELD_IN_AT_DSN, "P_field_in_at_des", "Field/runner inlet pressure at design conditions", "bar", "", "", "" },
{ TCS_OUTPUT, TCS_NUMBER, O_T_SYS_H, "T_sys_h", "Solar field HTF outlet temperature", "C", "", "", "" },
{ TCS_OUTPUT, TCS_NUMBER, O_M_DOT_AVAIL, "m_dot_avail", "HTF mass flow rate from the field", "kg/hr", "", "", "" },
{ TCS_OUTPUT, TCS_NUMBER, O_M_DOT_FIELD_HTF, "m_dot_field_htf", "HTF mass flow rate from the field, including when recirculating", "kg/hr", "", "", "" },
{ TCS_OUTPUT, TCS_NUMBER, O_Q_AVAIL, "q_avail", "Thermal power produced by the field", "MWt", "", "", "" },
{ TCS_OUTPUT, TCS_NUMBER, O_DP_TOT, "DP_tot", "Total HTF pressure drop", "bar", "", "", "" },
{ TCS_OUTPUT, TCS_NUMBER, O_W_DOT_PUMP, "W_dot_pump", "Required solar field pumping power", "MWe", "", "", "" },
{ TCS_OUTPUT, TCS_NUMBER, O_E_FP_TOT, "E_fp_tot", "Freeze protection energy", "MW", "", "", "" },
{ TCS_OUTPUT, TCS_NUMBER, O_QQ, "qq", "Number of iterations required to solve", "none", "", "", "" },
{ TCS_OUTPUT, TCS_NUMBER, O_T_SYS_C, "T_sys_c", "Collector inlet temperature", "C", "", "", "" },
{ TCS_OUTPUT, TCS_NUMBER, O_EQOPTEFF, "EqOpteff", "Collector equivalent optical efficiency", "none", "", "", "" },
{ TCS_OUTPUT, TCS_NUMBER, O_SCAS_DEF, "SCAs_def", "The fraction of focused SCA's", "none", "", "", "" },
{ TCS_OUTPUT, TCS_NUMBER, O_M_DOT_HTF_TOT, "m_dot_htf_tot", "The actual flow rate through the field.", "kg/hr", "", "", "" },
{ TCS_OUTPUT, TCS_NUMBER, O_E_BAL_STARTUP, "E_bal_startup", "Startup energy consumed", "MWt", "", "", "" },
{ TCS_OUTPUT, TCS_NUMBER, O_Q_INC_SF_TOT, "q_inc_sf_tot", "Total power incident on the field", "MWt", "", "", "" },
{ TCS_OUTPUT, TCS_NUMBER, O_Q_ABS_TOT, "q_abs_tot", "Total absorbed energy", "MWt", "", "", "" },
{ TCS_OUTPUT, TCS_NUMBER, O_Q_LOSS_TOT, "q_loss_tot", "Total receiver thermal and optical losses", "MWt", "", "", "" },
// Jan 22, 2014, TFF: renamed "m_dot_htf" (below) to "m_dot_htf2" because it conflicted with an input variable of the same name in "sam_mw_pt_type224.cpp" when retrieving outputs in "cmod_tcstrough_physical.cpp"
{ TCS_OUTPUT, TCS_NUMBER, O_M_DOT_HTF, "m_dot_htf2", "Flow rate in a single loop", "kg/s", "", "", "" },
{ TCS_OUTPUT, TCS_NUMBER, O_Q_LOSS_SPEC_TOT, "q_loss_spec_tot", "Field-average receiver thermal losses (convection and radiation)", "W/m", "", "", "" },
{ TCS_OUTPUT, TCS_NUMBER, O_SCA_PAR_TOT, "SCA_par_tot", "Parasitic electric power consumed by the SC", "MWe", "", "", "" },
{ TCS_OUTPUT, TCS_NUMBER, O_PIPE_HL, "Pipe_hl", "Pipe heat loss in the hot header and the hot runner", "MWt", "", "", "" },
{ TCS_OUTPUT, TCS_NUMBER, O_Q_DUMP, "q_dump", "Dumped thermal energy", "MWt", "", "", "" },
{ TCS_OUTPUT, TCS_NUMBER, O_THETA_AVE, "Theta_ave", "Field average theta value", "deg", "", "", "" },
{ TCS_OUTPUT, TCS_NUMBER, O_COSTH_AVE, "CosTh_ave", "Field average costheta value", "none", "", "", "" },
{ TCS_OUTPUT, TCS_NUMBER, O_IAM_AVE, "IAM_ave", "Field average incidence angle modifier", "none", "", "", "" },
{ TCS_OUTPUT, TCS_NUMBER, O_ROWSHADOW_AVE, "RowShadow_ave", "Field average row shadowing loss", "none", "", "", "" },
{ TCS_OUTPUT, TCS_NUMBER, O_ENDLOSS_AVE, "EndLoss_ave", "Field average end loss", "none", "", "", "" },
{ TCS_OUTPUT, TCS_NUMBER, O_DNI_COSTH, "dni_costh", "DNI_x_CosTh", "W/m2", "", "", "" },
{ TCS_OUTPUT, TCS_NUMBER, O_QINC_COSTH, "qinc_costh", "Q_inc_x_CosTh", "MWt", "", "", "" },
{ TCS_OUTPUT, TCS_NUMBER, O_T_LOOP_OUTLET, "t_loop_outlet", "HTF temperature immediately subsequent to the loop outlet", "C", "", "", "" },
{ TCS_OUTPUT, TCS_NUMBER, O_C_HTF_AVE, "c_htf_ave", "Average solar field specific heat", "J/kg-K", "", "", "" },
{ TCS_OUTPUT, TCS_NUMBER, O_Q_FIELD_DELIVERED, "q_field_delivered", "Total solar field thermal power delivered", "MWt", "", "", "" },
{ TCS_OUTPUT, TCS_NUMBER, O_ETA_THERMAL, "eta_thermal", "Solar field thermal efficiency (power out/ANI)", "none", "", "", "" },
{ TCS_OUTPUT, TCS_NUMBER, O_E_LOOP_ACCUM, "E_loop_accum", "Accumulated internal energy change rate in the loops ONLY", "MWht", "", "", "" },
{ TCS_OUTPUT, TCS_NUMBER, O_E_HDR_ACCUM, "E_hdr_accum", "Accumulated internal energy change rate in the headers/SGS", "MWht", "", "", "" },
{ TCS_OUTPUT, TCS_NUMBER, O_E_TOT_ACCUM, "E_tot_accum", "Total accumulated internal energy change rate", "MWht", "", "", "" },
{ TCS_OUTPUT, TCS_NUMBER, O_E_FIELD, "E_field", "Accumulated internal energy in the entire solar field", "MWht", "", "", "" },
{ TCS_OUTPUT, TCS_NUMBER, O_T_C_IN_CALC, "T_c_in_calc", "Calculated HTF inlet temp (freeze prot. or stand-alone)", "C", "", "", "" },
{ TCS_OUTPUT, TCS_NUMBER, O_DEFOCUS, "defocus_rel", "Relative defocus for passing back to the controller to force convergence", "none", "", "", "" },
{ TCS_INVALID, TCS_INVALID, N_MAX, 0, 0, 0, 0, 0, 0 }
};
class sam_mw_trough_type250 : public tcstypeinterface
{
private:
HTFProperties htfProps, airProps;
double pi,Pi,d2r,r2d, g, mtoinch;
//parameters and inputs
int nSCA; //Number of SCA's in a loop
int nHCEt; //Number of HCE types
int nColt; //Number of collector types
int nHCEVar; //Number of HCE variants per type
int nLoops; //Number of loops in the field
double eta_pump; //HTF pump efficiency
double HDR_rough; //Header pipe roughness
double theta_stow; //stow angle
double theta_dep; //deploy angle
double Row_Distance; //Spacing between rows (centerline to centerline)
int FieldConfig; //Number of subfield headers
double T_recirc; //The temperature which below the field recirculates
double pb_rated_cap; //Rated plant capacity
double m_dot_htfmin; //Minimum loop HTF flow rate
double m_dot_htfmax; //Maximum loop HTF flow rate
double T_loop_in_des; //Design loop inlet temperature
double T_loop_out; //Target loop outlet temperature
int Fluid; //Field HTF fluid number
double T_field_ini; //Initial field temperature
double P_field_in; //Assumed inlet htf pressure for property lookups
//double* HTF_data_in; //Fluid property data
int nrow_HTF_data, ncol_HTF_data;
double T_fp; //Freeze protection temperature (heat trace activation temperature)
double I_bn_des; //Solar irradiation at design
bool calc_design_pipe_vals; //Calculate temps and pressures at design conditions for runners and headers
double DP_SGS_1; //Pressure drop in first section of TES/PB before hot tank at design conditions
bool SGS_sizing_adjusted; //Has the field design pressure drop been adjusted for the first section in the TES/PB?
double V_hdr_cold_max; //Maximum HTF velocity in the cold headers at design
double V_hdr_cold_min; //Minimum HTF velocity in the cold headers at design
double V_hdr_hot_max; //Maximum HTF velocity in the hot headers at design
double V_hdr_hot_min; //Minimum HTF velocity in the hot headers at design
int N_max_hdr_diams; //Maximum number of diameters in each of the hot and cold headers
double L_rnr_pb; //Length of runner pipe in power block
double L_rnr_per_xpan; //Threshold length of straight runner pipe without an expansion loop
double L_xpan_hdr; //Compined perpendicular lengths of each header expansion loop
double L_xpan_rnr; //Compined perpendicular lengths of each runner expansion loop
int Min_rnr_xpans; //Minimum number of expansion loops per single-diameter runner section
double northsouth_field_sep; //North/south separation between subfields. 0 = SCAs are touching
int N_hdr_per_xpan; //Number of collector loops per expansion loop
int offset_xpan_hdr; //Location of first header expansion loop. 1 = after first collector loop
double Pipe_hl_coef; //Loss coefficient from the header, runner pipe, and non-HCE piping
double SCA_drives_elec; //Tracking power, in Watts per SCA drive
int fthrok; //Flag to allow partial defocusing of the collectors
int fthrctrl; //Defocusing strategy
double ColTilt; //Collector tilt angle (0 is horizontal, 90deg is vertical)
double ColAz; //Collector azimuth angle
int accept_mode; //Acceptance testing mode? (1=yes, 0=no)
bool accept_init; //In acceptance testing mode - require steady-state startup
int accept_loc; //In acceptance testing mode - temperature sensor location (1=hx,2=loop)
bool is_using_input_gen;
double solar_mult; //Solar multiple
double mc_bal_hot; //The heat capacity of the balance of plant on the hot side
double mc_bal_cold; //The heat capacity of the balance of plant on the cold side
double mc_bal_sca; //Non-HTF heat capacity associated with each SCA - per meter basis
bool custom_sf_pipe_sizes; //Use custom solar field pipe diams, wallthks, and lengths
double* OptCharType; //The optical characterization method
int nval_OptCharType;
double* CollectorType; //{1=user defined, 2=LS-2, 3=LS-3, 4=IST}
int nval_CollectorType;
double* W_aperture; //The collector aperture width (Total structural area.. used for shadowing)
int nval_W_aperture;
double* A_aperture; //Reflective aperture area of the collector
int nval_A_aperture;
//double* IamF0; //Incident angle modifier 0th order term
//int nval_IamF0;
//double* IamF1; //Incident angle modifier 1st order term
//int nval_IamF1;
//double* IamF2; //Incident angle modifier 2nd order term
//int nval_IamF2;
double* reflectivity; //Base solar-weighted mirror reflectivity value
int nval_reflectivity;
double* TrackingError; //User-defined tracking error derate
int nval_TrackingError;
double* GeomEffects; //User-defined geometry effects derate
int nval_GeomEffects;
double* Rho_mirror_clean; //User-defined clean mirror reflectivity
int nval_Rho_mirror_clean;
double* Dirt_mirror; //User-defined dirt on mirror derate
int nval_Dirt_mirror;
double* Error; //User-defined general optical error derate
int nval_Error;
double* Ave_Focal_Length; //The average focal length of the collector
int nval_Ave_Focal_Length;
double* L_SCA; //The length of the SCA
int nval_L_SCA;
double* L_aperture; //The length of a single mirror/HCE unit
int nval_L_aperture;
double* ColperSCA; //The number of individual collector sections in an SCA
int nval_ColperSCA;
double* Distance_SCA; // piping distance between SCA's in the field
int nval_Distance_SCA;
double* HCE_FieldFrac_in; //The fraction of the field occupied by this HCE type
int nrow_HCE_FieldFrac, ncol_HCE_FieldFrac;
double* D_2_in; //The inner absorber tube diameter
int nrow_D_2, ncol_D_2;
double* D_3_in; //The outer absorber tube diameter
int nrow_D_3, ncol_D_3;
double* D_4_in; //The inner glass envelope diameter
int nrow_D_4, ncol_D_4;
double* D_5_in; //The outer glass envelope diameter
int nrow_D_5, ncol_D_5;
double* D_p_in; //The diameter of the absorber flow plug (optional)
int nrow_D_p, ncol_D_p;
double* Flow_type_in; //The flow type through the absorber
int nrow_Flow_type, ncol_Flow_type;
double* Rough_in; //Roughness of the internal surface
int nrow_Rough, ncol_Rough;
double* alpha_env_in; //Envelope absorptance
int nrow_alpha_env, ncol_alpha_env;
double* epsilon_3_11_in; //Absorber emittance - HCE type 1 - HCE variation 1
int nrow_epsilon_3_11, ncol_epsilon_3_11;
double* epsilon_3_12_in; //Absorber emittance - HCE type 1 - HCE variation 2
int nrow_epsilon_3_12, ncol_epsilon_3_12;
double* epsilon_3_13_in; //Absorber emittance - HCE type 1 - HCE variation 3
int nrow_epsilon_3_13, ncol_epsilon_3_13;
double* epsilon_3_14_in; //Absorber emittance - HCE type 1 - HCE variation 4
int nrow_epsilon_3_14, ncol_epsilon_3_14;
double* epsilon_3_21_in; //Absorber emittance - HCE type 2 - HCE variation 1
int nrow_epsilon_3_21, ncol_epsilon_3_21;
double* epsilon_3_22_in; //Absorber emittance - HCE type 2 - HCE variation 2
int nrow_epsilon_3_22, ncol_epsilon_3_22;
double* epsilon_3_23_in; //Absorber emittance - HCE type 2 - HCE variation 3
int nrow_epsilon_3_23, ncol_epsilon_3_23;
double* epsilon_3_24_in; //Absorber emittance - HCE type 2 - HCE variation 4
int nrow_epsilon_3_24, ncol_epsilon_3_24;
double* epsilon_3_31_in; //Absorber emittance - HCE type 3 - HCE variation 1
int nrow_epsilon_3_31, ncol_epsilon_3_31;
double* epsilon_3_32_in; //Absorber emittance - HCE type 3 - HCE variation 2
int nrow_epsilon_3_32, ncol_epsilon_3_32;
double* epsilon_3_33_in; //Absorber emittance - HCE type 3 - HCE variation 3
int nrow_epsilon_3_33, ncol_epsilon_3_33;
double* epsilon_3_34_in; //Absorber emittance - HCE type 3 - HCE variation 4
int nrow_epsilon_3_34, ncol_epsilon_3_34;
double* epsilon_3_41_in; //Absorber emittance - HCE type 4 - HCE variation 1
int nrow_epsilon_3_41, ncol_epsilon_3_41;
double* epsilon_3_42_in; //Absorber emittance - HCE type 4 - HCE variation 2
int nrow_epsilon_3_42, ncol_epsilon_3_42;
double* epsilon_3_43_in; //Absorber emittance - HCE type 4 - HCE variation 3
int nrow_epsilon_3_43, ncol_epsilon_3_43;
double* epsilon_3_44_in; //Absorber emittance - HCE type 4 - HCE variation 4
int nrow_epsilon_3_44, ncol_epsilon_3_44;
double* alpha_abs_in; //Absorber absorptance
int nrow_alpha_abs, ncol_alpha_abs;
double* Tau_envelope_in; //Envelope transmittance
int nrow_Tau_envelope, ncol_Tau_envelope;
double* EPSILON_4_in; //Inner glass envelope emissivities (Pyrex)
int nrow_EPSILON_4, ncol_EPSILON_4;
double* EPSILON_5_in; //Outer glass envelope emissivities (Pyrex)
int nrow_EPSILON_5, ncol_EPSILON_5;
double* GlazingIntactIn_in; //The glazing intact flag {1=true, else=false}
int nrow_GlazingIntactIn, ncol_GlazingIntactIn;
double* P_a_in; //Annulus gas pressure
int nrow_P_a, ncol_P_a;
double* AnnulusGas_in; //Annulus gas type (1=air, 26=Ar, 27=H2)
int nrow_AnnulusGas, ncol_AnnulusGas;
double* AbsorberMaterial_in; //Absorber material type
int nrow_AbsorberMaterial, ncol_AbsorberMaterial;
double* Shadowing_in; //Receiver bellows shadowing loss factor
int nrow_Shadowing, ncol_Shadowing;
double* Dirt_HCE_in; //Loss due to dirt on the receiver envelope
int nrow_Dirt_HCE, ncol_Dirt_HCE;
double* Design_loss_in; //Receiver heat loss at design
int nrow_Design_loss, ncol_Design_loss;
double* SCAInfoArray_in; //(:,1) = HCE type, (:,2)= Collector type for each SCA in the loop
int nrow_SCAInfoArray, ncol_SCAInfoArray;
double* SCADefocusArray; //Order in which the SCA's should be defocused
int nval_SCADefocusArray;
double* K_cpnt_in; // Interconnect component minor loss coefficients, row=intc, col=component
int nrow_K_cpnt, ncol_K_cpnt;
double* D_cpnt_in; // Interconnect component diameters, row=intc, col=component
int nrow_D_cpnt, ncol_D_cpnt;
double* L_cpnt_in; // Interconnect component lengths, row=intc, col=component
int nrow_L_cpnt, ncol_L_cpnt;
double* Type_cpnt_in; // Interconnect component type, row=intc, col=component
int nrow_Type_cpnt, ncol_Type_cpnt;
IntcOutputs inlet_state, crossover_state, outlet_state, intc_state;
double* sf_rnr_diams; // Custom runner diameters
int nval_sf_rnr_diams;
double* sf_rnr_wallthicks; // Custom runner wall thicknesses
int nval_sf_rnr_wallthicks;
double* sf_rnr_lengths; // Custom runner lengths
int nval_sf_rnr_lengths;
double* sf_hdr_diams; // Custom header diameters
int nval_sf_hdr_diams;
double* sf_hdr_wallthicks; // Custom header wall thicknesses
int nval_sf_hdr_wallthicks;
double* sf_hdr_lengths; // Custom header lengths
int nval_sf_hdr_lengths;
double I_b; //Direct normal incident solar irradiation
double T_db; //Dry bulb air temperature
double V_wind; //Ambient windspeed
double P_amb; //Ambient pressure
double T_dp; //The dewpoint temperature
double T_cold_in; //HTF return temperature
double m_dot_in; //HTF mass flow rate at the inlet
double defocus; //Defocus control
bool recirculating; // Field recirculating (bypass valve open)
double SolarAz; //Solar azimuth angle reported by the Type15 weather file
double latitude; //Site latitude read from weather file
double longitude; //Site longitude read from weather file
//double timezone; //Time zone
double T_sys_h; //Solar field HTF outlet temperature
double m_dot_avail; //HTF mass flow rate from the field
double m_dot_field_htf; //HTF mass flow rate from the field, including when recirculating
double q_avail; //Thermal power produced by the field
double DP_tot; //Total HTF pressure drop
double W_dot_pump; //Required solar field pumping power
double E_fp_tot; //Freeze protection energy
int qq; //Number of iterations required to solve
double T_sys_c; //Collector inlet temperature
double EqOpteff; //Collector equivalent optical efficiency
double SCAs_def; //The fraction of focused SCA's
double m_dot_htf_tot; //The actual flow rate through the field..
double E_bal_startup; //Startup energy consumed
double q_inc_sf_tot; //Total power incident on the field
double q_abs_tot; //Total absorbed energy
double q_loss_tot; //Total receiver thermal and optical losses
double m_dot_htf; //Flow rate in a single loop
double q_loss_spec_tot; //Field-average receiver thermal losses (convection and radiation)
double SCA_par_tot; //Parasitic electric power consumed by the SC
double Pipe_hl; //Pipe heat loss in the hot header and the hot runner
double q_dump; //Dumped thermal energy
double Theta_ave; //Field average theta value
double CosTh_ave; //Field average costheta value
double IAM_ave; //Field average incidence angle modifier
double RowShadow_ave; //Field average row shadowing loss
double EndLoss_ave; //Field average end loss
double dni_costh; //DNI_x_CosTh
double qinc_costh; //Q_inc_x_CosTh
double t_loop_outlet; //HTF temperature immediately subsequent to the loop outlet
double c_htf_ave; //Average solar field specific heat
double q_field_delivered; //Total solar field thermal power delivered
double eta_thermal; //Solar field thermal efficiency (power out/ANI)
double E_loop_accum; //Accumulated internal energy change rate in the loops ONLY
double E_hdr_accum; //Accumulated internal energy change rate in the headers/SGS
double E_tot_accum; //Total accumulated internal energy change rate
double E_field; //Accumulated internal energy in the entire solar field
util::matrix_t<double> HCE_FieldFrac, D_2, D_3, D_4, D_5, D_p, Flow_type, Rough, alpha_env, epsilon_3_11, epsilon_3_12,
epsilon_3_13, epsilon_3_14, epsilon_3_21, epsilon_3_22, epsilon_3_23, epsilon_3_24, epsilon_3_31, epsilon_3_32, epsilon_3_33,
epsilon_3_34, epsilon_3_41, epsilon_3_42, epsilon_3_43, epsilon_3_44, alpha_abs, Tau_envelope, EPSILON_4, EPSILON_5,
GlazingIntactIn, P_a, AnnulusGas, AbsorberMaterial, Shadowing, Dirt_HCE, Design_loss, SCAInfoArray, K_cpnt, D_cpnt, L_cpnt, Type_cpnt,
rough_cpnt, u_cpnt, mc_cpnt;
vector<interconnect> interconnects;
util::matrix_t<double> IAM_matrix;
//int n_c_iam_matrix = 0;
//int n_r_iam_matrix = 0;
int n_c_iam_matrix;
int n_r_iam_matrix;
//Declare variables that require storage from step to step
double
Ap_tot, //Total aperture area m2
L_tot, //Total length of a collector row [m]
opteff_des, //Solar field optical efficiency at design
m_dot_design, //Solar field mass flow rate at design [kg/s]
q_design; //Design thermal power from the solar field [Wt]
int
nfsec, //Number of field sections
nhdrsec, //Number of header sections
nrunsec; //Number of unique runner diameters
//Other matrices
util::matrix_t<HTFProperties*> AnnulusGasMat;
util::matrix_t<AbsorberProps*> AbsorberPropMat;
util::matrix_t<double> L_actSCA, A_cs, D_h, ColOptEff /*nColt, nSCA*/;
util::matrix_t<bool> GlazingIntact;
emit_table epsilon_3;
util::matrix_t<double> D_runner, WallThk_runner, L_runner, m_dot_rnr_dsn, V_rnr_dsn, N_rnr_xpans, DP_rnr, T_rnr, P_rnr,
D_hdr, WallThk_hdr, L_hdr, m_dot_hdr_dsn, V_hdr_dsn, N_hdr_xpans, DP_hdr, T_hdr, P_hdr,
DP_intc, P_intc, DP_loop, T_loop, P_loop,
T_rnr_des_out, P_rnr_des_out, T_hdr_des_out, P_hdr_des_out, T_loop_des_out, P_loop_des_out;
util::matrix_t<double>
T_htf_in, T_htf_out, T_htf_ave, q_loss, q_abs, c_htf, rho_htf, DP_tube, E_abs_field,
E_int_loop, E_accum, E_avail, E_abs_max,v_1,q_loss_SCAtot, q_abs_SCAtot, q_SCA, T_htf_in0, T_htf_out0,
T_htf_ave0, E_fp, q_1abs_tot, q_1abs, q_i, IAM, EndGain, EndLoss, RowShadow;
double T_sys_c_last, T_sys_h_last; //stored values for header thermal inertia calculations
double v_hot, v_cold; //Header HTF volume
double defocus_new, defocus_old, ftrack;
bool
no_fp, //Freeze protection flag
is_fieldgeom_init; //Flag to indicate whether the field geometry has been initialized
double T_cold_in_1, c_hdr_cold, start_time, dt, SolarAlt, costh, theta, shift,
q_SCA_tot, m_dot_htfX, Header_hl_cold, Header_hl_cold_tot, Runner_hl_cold, Runner_hl_cold_tot, Pipe_hl_cold, T_loop_in,
T_loop_outX, Runner_hl_hot, Runner_hl_hot_tot, Header_hl_hot, Header_hl_hot_tot, Pipe_hl_hot, Intc_hl, c_hdr_hot, time_hr, dt_hr;
int day_of_year, SolveMode, dfcount;
double ncall_track;
double T_save[5];
std::vector<double> reguess_args;
double hour, T_sky;
double m_htf_prop_min;
bool ss_init_complete;
public:
sam_mw_trough_type250( tcscontext *cxt, tcstypeinfo *ti )
: tcstypeinterface(cxt, ti)
{
//Commonly used values, conversions, etc...
Pi = acos(-1.);
pi = Pi;
r2d = 180./pi;
d2r = pi/180.;
g = 9.81; //gravitation constant
mtoinch = 39.3700787; //[m] -> [in]
//Set all values to NaN or nonsense value to prevent misuse
nSCA = -1;
nHCEt = -1;
nColt = -1;
nHCEVar = -1;
nLoops = -1;
eta_pump = std::numeric_limits<double>::quiet_NaN();
HDR_rough = std::numeric_limits<double>::quiet_NaN();
theta_stow = std::numeric_limits<double>::quiet_NaN();
theta_dep = std::numeric_limits<double>::quiet_NaN();
Row_Distance = std::numeric_limits<double>::quiet_NaN();
FieldConfig = -1;
T_recirc = std::numeric_limits<double>::quiet_NaN();
pb_rated_cap = std::numeric_limits<double>::quiet_NaN();
m_dot_htfmin = std::numeric_limits<double>::quiet_NaN();
m_dot_htfmax = std::numeric_limits<double>::quiet_NaN();
T_loop_in_des = std::numeric_limits<double>::quiet_NaN();
T_loop_out = std::numeric_limits<double>::quiet_NaN();
Fluid = -1;
T_field_ini = std::numeric_limits<double>::quiet_NaN();
P_field_in = std::numeric_limits<double>::quiet_NaN();
nrow_HTF_data = -1, ncol_HTF_data = -1;
T_fp = std::numeric_limits<double>::quiet_NaN();
I_bn_des = std::numeric_limits<double>::quiet_NaN();
calc_design_pipe_vals = false;
DP_SGS_1 = std::numeric_limits<double>::quiet_NaN();
SGS_sizing_adjusted = false;
V_hdr_cold_max = std::numeric_limits<double>::quiet_NaN();
V_hdr_cold_min = std::numeric_limits<double>::quiet_NaN();
V_hdr_hot_max = std::numeric_limits<double>::quiet_NaN();
V_hdr_hot_min = std::numeric_limits<double>::quiet_NaN();
N_max_hdr_diams = -1;
L_rnr_pb = std::numeric_limits<double>::quiet_NaN();
L_rnr_per_xpan = std::numeric_limits<double>::quiet_NaN();
L_xpan_hdr = std::numeric_limits<double>::quiet_NaN();
L_xpan_rnr = std::numeric_limits<double>::quiet_NaN();
Min_rnr_xpans = -1;
northsouth_field_sep = std::numeric_limits<double>::quiet_NaN();
N_hdr_per_xpan = -1;
offset_xpan_hdr = -1;
Pipe_hl_coef = std::numeric_limits<double>::quiet_NaN();
SCA_drives_elec = std::numeric_limits<double>::quiet_NaN();
fthrok = -1;
fthrctrl = -1;
ColTilt = std::numeric_limits<double>::quiet_NaN();
ColAz = std::numeric_limits<double>::quiet_NaN();
accept_mode = -1;
accept_init = false;
accept_loc = -1;
is_using_input_gen = false;
calc_design_pipe_vals = true;
solar_mult = std::numeric_limits<double>::quiet_NaN();
mc_bal_hot = std::numeric_limits<double>::quiet_NaN();
mc_bal_cold = std::numeric_limits<double>::quiet_NaN();
mc_bal_sca = std::numeric_limits<double>::quiet_NaN();
custom_sf_pipe_sizes = false;
OptCharType = NULL;
nval_OptCharType = -1;
CollectorType = NULL;
nval_CollectorType = -1;
W_aperture = NULL;
nval_W_aperture = -1;
A_aperture = NULL;
nval_A_aperture = -1;
//IamF0 = NULL;
//nval_IamF0 = -1;
//IamF1 = NULL;
//nval_IamF1 = -1;
//IamF2 = NULL;
//nval_IamF2 = -1;
n_c_iam_matrix = -1;
n_r_iam_matrix = -1;
reflectivity = NULL;
nval_reflectivity = -1;
TrackingError = NULL;
nval_TrackingError = -1;
GeomEffects = NULL;
nval_GeomEffects = -1;
Rho_mirror_clean = NULL;
nval_Rho_mirror_clean = -1;
Dirt_mirror = NULL;
nval_Dirt_mirror = -1;
Error = NULL;
nval_Error = -1;
Ave_Focal_Length = NULL;
nval_Ave_Focal_Length = -1;
L_SCA = NULL;
nval_L_SCA = -1;
L_aperture = NULL;
nval_L_aperture = -1;
ColperSCA = NULL;
nval_ColperSCA = -1;
Distance_SCA = NULL;
nval_Distance_SCA = -1;
HCE_FieldFrac_in = NULL;
nrow_HCE_FieldFrac = -1, ncol_HCE_FieldFrac = -1;
D_2_in = NULL;
nrow_D_2 = -1, ncol_D_2 = -1;
D_3_in = NULL;
nrow_D_3 = -1, ncol_D_3 = -1;
D_4_in = NULL;
nrow_D_4 = -1, ncol_D_4 = -1;
D_5_in = NULL;
nrow_D_5 = -1, ncol_D_5 = -1;
D_p_in = NULL;
nrow_D_p = -1, ncol_D_p = -1;
Flow_type_in = NULL;
nrow_Flow_type = -1, ncol_Flow_type = -1;
Rough_in = NULL;
nrow_Rough = -1, ncol_Rough = -1;
alpha_env_in = NULL;
nrow_alpha_env = -1, ncol_alpha_env = -1;
epsilon_3_11_in = NULL;
nrow_epsilon_3_11 = -1, ncol_epsilon_3_11 = -1;
epsilon_3_12_in = NULL;
nrow_epsilon_3_12 = -1, ncol_epsilon_3_12 = -1;
epsilon_3_13_in = NULL;
nrow_epsilon_3_13 = -1, ncol_epsilon_3_13 = -1;
epsilon_3_14_in = NULL;
nrow_epsilon_3_14 = -1, ncol_epsilon_3_14 = -1;
epsilon_3_21_in = NULL;
nrow_epsilon_3_21 = -1, ncol_epsilon_3_21 = -1;
epsilon_3_22_in = NULL;
nrow_epsilon_3_22 = -1, ncol_epsilon_3_22 = -1;
epsilon_3_23_in = NULL;
nrow_epsilon_3_23 = -1, ncol_epsilon_3_23 = -1;
epsilon_3_24_in = NULL;
nrow_epsilon_3_24 = -1, ncol_epsilon_3_24 = -1;
epsilon_3_31_in = NULL;
nrow_epsilon_3_31 = -1, ncol_epsilon_3_31 = -1;
epsilon_3_32_in = NULL;
nrow_epsilon_3_32 = -1, ncol_epsilon_3_32 = -1;
epsilon_3_33_in = NULL;
nrow_epsilon_3_33 = -1, ncol_epsilon_3_33 = -1;
epsilon_3_34_in = NULL;
nrow_epsilon_3_34 = -1, ncol_epsilon_3_34 = -1;
epsilon_3_41_in = NULL;
nrow_epsilon_3_41 = -1, ncol_epsilon_3_41 = -1;
epsilon_3_42_in = NULL;
nrow_epsilon_3_42 = -1, ncol_epsilon_3_42 = -1;
epsilon_3_43_in = NULL;
nrow_epsilon_3_43 = -1, ncol_epsilon_3_43 = -1;
epsilon_3_44_in = NULL;
nrow_epsilon_3_44 = -1, ncol_epsilon_3_44 = -1;
alpha_abs_in = NULL;
nrow_alpha_abs = -1, ncol_alpha_abs = -1;
Tau_envelope_in = NULL;
nrow_Tau_envelope = -1, ncol_Tau_envelope = -1;
EPSILON_4_in = NULL;
nrow_EPSILON_4 = -1, ncol_EPSILON_4 = -1;
EPSILON_5_in = NULL;
nrow_EPSILON_5 = -1, ncol_EPSILON_5 = -1;
GlazingIntactIn_in = NULL;
nrow_GlazingIntactIn = -1, ncol_GlazingIntactIn = -1;
P_a_in = NULL;
nrow_P_a = -1, ncol_P_a = -1;
AnnulusGas_in = NULL;
nrow_AnnulusGas = -1, ncol_AnnulusGas = -1;
AbsorberMaterial_in = NULL;
nrow_AbsorberMaterial = -1, ncol_AbsorberMaterial = -1;
Shadowing_in = NULL;
nrow_Shadowing = -1, ncol_Shadowing = -1;
Dirt_HCE_in = NULL;
nrow_Dirt_HCE = -1, ncol_Dirt_HCE = -1;
Design_loss_in = NULL;
nrow_Design_loss = -1, ncol_Design_loss = -1;
SCAInfoArray_in = NULL;
nrow_SCAInfoArray = -1, ncol_SCAInfoArray = -1;
SCADefocusArray = NULL;
nval_SCADefocusArray = -1;
K_cpnt_in = NULL;
nrow_K_cpnt = -1, ncol_K_cpnt = -1;
D_cpnt_in = NULL;
nrow_D_cpnt = -1, ncol_D_cpnt = -1;
L_cpnt_in = NULL;
nrow_L_cpnt = -1, ncol_L_cpnt = -1;
Type_cpnt_in = NULL;
nrow_Type_cpnt = -1, ncol_Type_cpnt = -1;
sf_rnr_diams = NULL;
nval_sf_rnr_diams = -1;
sf_rnr_wallthicks = NULL;
nval_sf_rnr_wallthicks = -1;
sf_rnr_lengths = NULL;
nval_sf_rnr_lengths = -1;
sf_hdr_diams = NULL;
nval_sf_hdr_diams = -1;
sf_hdr_wallthicks = NULL;
nval_sf_hdr_wallthicks = -1;
sf_hdr_lengths = NULL;
nval_sf_hdr_lengths = -1;
I_b = std::numeric_limits<double>::quiet_NaN();
T_db = std::numeric_limits<double>::quiet_NaN();
V_wind = std::numeric_limits<double>::quiet_NaN();
P_amb = std::numeric_limits<double>::quiet_NaN();
T_dp = std::numeric_limits<double>::quiet_NaN();
T_cold_in = std::numeric_limits<double>::quiet_NaN();