/
csp_common.cpp
2242 lines (1958 loc) · 148 KB
/
csp_common.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.
*/
#include "csp_common.h"
#include "core.h"
#include "lib_weatherfile.h"
#include "lib_util.h"
#include <sstream>
#include "common.h"
// solarpilot header files
#include "AutoPilot_API.h"
#include "SolarField.h"
#include "IOUtil.h"
// cavity receiver geometry
#include "csp_solver_cavity_receiver.h"
#ifdef _MSC_VER
#define mysnprintf _snprintf
#else
#define mysnprintf snprintf
#endif
using namespace std;
//static bool solarpilot_callback( simulation_info *siminfo, void *data );
static bool optimize_callback( simulation_info *siminfo, void *data );
solarpilot_invoke::solarpilot_invoke(compute_module *cm)
{
m_cmod = cm;
//anything else?
m_sapi = 0;
}
solarpilot_invoke::~solarpilot_invoke()
{
if(m_sapi != 0)
delete m_sapi;
}
AutoPilot_S *solarpilot_invoke::GetSAPI()
{
return m_sapi;
}
bool solarpilot_invoke::run(std::shared_ptr<weather_data_provider> wdata)
{
/*
*/
if(m_sapi != 0)
delete m_sapi;
m_sapi = new AutoPilot_S();
// read inputs from SSC module
//fin.is_pmt_factors.val = true;
//testing <<<
bool isopt = m_cmod->as_boolean( "is_optimize" );
if(isopt)
{
//opt.flux_max = m_cmod->as_double("flux_max");
opt.max_step.val = m_cmod->as_double("opt_init_step");
opt.max_iter.val = m_cmod->as_integer("opt_max_iter");
opt.converge_tol.val = m_cmod->as_double("opt_conv_tol");
opt.algorithm.combo_select_by_mapval( m_cmod->as_integer("opt_algorithm") ); //map correctly?
opt.flux_penalty.val = m_cmod->as_double("opt_flux_penalty");
}
recs.front().peak_flux.val = m_cmod->as_double("flux_max"); //[kW/m2]
var_heliostat *hf = &hels.front();
//need to set up the template combo
sf.temp_which.combo_clear();
std::string name = "Template 1", val = "0";
sf.temp_which.combo_add_choice(name, val);
sf.temp_which.combo_select_by_choice_index( 0 ); //use the first heliostat template
hf->width.val = m_cmod->as_double("helio_width");
hf->height.val = m_cmod->as_double("helio_height");
hf->err_azimuth.val = hf->err_elevation.val = hf->err_reflect_x.val = hf->err_reflect_y.val = 0.; //all other error =0
hf->err_surface_x.val = hf->err_surface_y.val = m_cmod->as_double("helio_optical_error"); //slope error
hf->soiling.val = 1.; //reflectivity is the only consideration for this model
hf->reflect_ratio.val = m_cmod->as_double("helio_active_fraction") * m_cmod->as_double("dens_mirror");
hf->reflectivity.val = m_cmod->as_double("helio_reflectance");
hf->n_cant_x.val = m_cmod->as_integer("n_facet_x");
hf->n_cant_y.val = m_cmod->as_integer("n_facet_y");
// Cant map between SAM UI choices and SolarPILOT cant methods
int cmap[5];
cmap[AutoPilot::API_CANT_TYPE::NONE] = var_heliostat::CANT_METHOD::NO_CANTING;
cmap[AutoPilot::API_CANT_TYPE::ON_AXIS] = var_heliostat::CANT_METHOD::ONAXIS_AT_SLANT;
cmap[AutoPilot::API_CANT_TYPE::EQUINOX] = var_heliostat::CANT_METHOD::OFFAXIS_DAY_AND_HOUR;
cmap[AutoPilot::API_CANT_TYPE::SOLSTICE_SUMMER] = var_heliostat::CANT_METHOD::OFFAXIS_DAY_AND_HOUR;
cmap[AutoPilot::API_CANT_TYPE::SOLSTICE_WINTER] = var_heliostat::CANT_METHOD::OFFAXIS_DAY_AND_HOUR;
int cant_type = m_cmod->as_integer("cant_type");
hf->cant_method.combo_select_by_mapval(cmap[cant_type]);
switch (cant_type)
{
case AutoPilot::API_CANT_TYPE::NONE:
case AutoPilot::API_CANT_TYPE::ON_AXIS:
//do nothing
break;
case AutoPilot::API_CANT_TYPE::EQUINOX:
hf->cant_day.val = 81; //spring equinox
hf->cant_hour.val = 12;
break;
case AutoPilot::API_CANT_TYPE::SOLSTICE_SUMMER:
hf->cant_day.val = 172; //Summer solstice
hf->cant_hour.val = 12;
break;
case AutoPilot::API_CANT_TYPE::SOLSTICE_WINTER:
hf->cant_day.val = 355; //Winter solstice
hf->cant_hour.val = 12;
break;
default:
{
stringstream msg;
msg << "Invalid Cant Type specified in AutoPILOT API. Method must be one of: \n" <<
"NONE(0), ON_AXIS(1), EQUINOX(2), SOLSTICE_SUMMER(3), SOLSTICE_WINTER(4).\n" <<
"Method specified is: " << cant_type << ".";
throw spexception(msg.str());
}
break;
}
hf->focus_method.combo_select_by_choice_index( m_cmod->as_integer("focus_type") );
var_receiver *rf = &recs.front();
int rec_type = m_cmod->as_integer("receiver_type");
if (rec_type == 0) {
rf->rec_type.val = "External cylindrical";
rf->rec_height.val = m_cmod->as_double("rec_height");
rf->rec_width.val = rf->rec_diameter.val = rf->rec_height.val / m_cmod->as_double("rec_aspect");
rf->absorptance.val = m_cmod->as_double("rec_absorptance");
}
else if (rec_type == 1) {
rf->rec_type.val = "Cavity";
double cav_rec_height = m_cmod->as_double("cav_rec_height"); //[m]
rf->rec_height.val = cav_rec_height; //[m]
double cav_rec_width = m_cmod->as_double("cav_rec_width"); //[m]
rf->rec_width.val = cav_rec_width; //[m]
double cav_rec_span = m_cmod->as_double("cav_rec_span")*PI/180.0; //[rad] convert from cmod unit of [deg]
size_t n_panels = m_cmod->as_integer("n_cav_rec_panels"); //[-]
rf->n_panels.val = n_panels;
double theta0, panelSpan, panel_width, rec_area, radius, offset;
theta0 = panelSpan = panel_width = rec_area = radius = offset = std::numeric_limits<double>::quiet_NaN();
cavity_receiver_helpers::calc_receiver_macro_geometry(cav_rec_height, cav_rec_width, cav_rec_span, n_panels,
theta0, panelSpan, panel_width, rec_area, radius, offset);
rf->rec_cav_cdepth.val = offset/radius;
rf->rec_cav_rad.val = radius;
rf->absorptance.val = 1.0; // don't apply absorptivity in solarpilot for cavity receivers - performance model will do this
}
else {
throw exec_error("solarpilot cmod", "receiver type must be 0 (external) or 1 (cavity)");
}
rf->therm_loss_base.val = m_cmod->as_double("rec_hl_perm2");
sf.q_des.val = m_cmod->as_double("q_design"); //[MWt]
sf.dni_des.val = m_cmod->as_double("dni_des");
land.is_bounds_scaled.val = true;
land.is_bounds_fixed.val = false;
land.is_bounds_array.val = false;
land.max_scaled_rad.val = m_cmod->as_double("land_max");
land.min_scaled_rad.val = m_cmod->as_double("land_min");
land.land_mult.val = m_cmod->as_double("csp.pt.sf.land_overhead_factor");
land.land_const.val = m_cmod->as_double("csp.pt.sf.fixed_land_area");
sf.tht.val = m_cmod->as_double("h_tower");
fin.tower_fixed_cost.val = m_cmod->as_double("tower_fixed_cost");
fin.tower_exp.val = m_cmod->as_double("tower_exp");
fin.rec_ref_cost.val = m_cmod->as_double("rec_ref_cost");
fin.rec_ref_area.val = m_cmod->as_double("rec_ref_area");
fin.rec_cost_exp.val = m_cmod->as_double("rec_cost_exp");
fin.site_spec_cost.val = m_cmod->as_double("site_spec_cost");
fin.heliostat_spec_cost.val = m_cmod->as_double("heliostat_spec_cost");
//fin.plant_spec_cost.val = m_cmod->as_double("plant_spec_cost") + m_cmod->as_double("bop_spec_cost");
//fin.tes_spec_cost.val = m_cmod->as_double("tes_spec_cost");
fin.land_spec_cost.val = m_cmod->as_double("land_spec_cost");
fin.contingency_rate.val = m_cmod->as_double("contingency_rate");
fin.sales_tax_rate.val = m_cmod->as_double("sales_tax_rate");
fin.sales_tax_frac.val = m_cmod->as_double("sales_tax_frac");
fin.fixed_cost.val = m_cmod->as_double("cost_sf_fixed");
////update financial tables
//fin.weekday_sched.val = m_cmod->value("dispatch_sched_weekday").str;
//fin.weekend_sched.val = m_cmod->value("dispatch_sched_weekend").str;
//std::string ps;
//for(int i=0; i<9; i++)
// ps.append( m_cmod->as_double("dispatch_factor" + my_to_string(i+1)) + i < 8 ? "," : "" );
//fin.pricing_array.Val().clear();
//fin.pricing_array.set_from_string( ps.c_str() );
//set up the weather data for simulation
if (wdata == nullptr){
const char *wffile = m_cmod->as_string("solar_resource_file" );
wdata = make_shared<weatherfile>( wffile );
if ( !wdata ) throw exec_error( "solarpilot", "no weather file specified" );
if ( !wdata->ok() || wdata->has_message() ) throw exec_error("solarpilot", wdata->message());
}
weather_header hdr;
wdata->header(&hdr);
// If cavity in southern hemisphere, then receiver faces south
if (rec_type == 1 && hdr.lat < 0) {
rf->rec_azimuth.val = 180;
}
amb.latitude.val = hdr.lat;
amb.longitude.val = hdr.lon;
amb.time_zone.val = hdr.tz;
amb.atm_model.combo_select_by_choice_index(2); //USER_DEFINED
amb.atm_coefs.val.at(2,0) = m_cmod->as_double("c_atm_0");
amb.atm_coefs.val.at(2,1) = m_cmod->as_double("c_atm_1");
amb.atm_coefs.val.at(2,2) = m_cmod->as_double("c_atm_2");
amb.atm_coefs.val.at(2,3) = m_cmod->as_double("c_atm_3");
if(! m_cmod->is_assigned("helio_positions_in") )
{
weather_record wf;
vector<string> wfdata;
wfdata.reserve( 8760 );
char buf[1024];
for( int i=0;i<8760;i++ )
{
if (!wdata->read(&wf))
throw exec_error("solarpilot", "could not read data line " + util::to_string(i+1) + " of 8760 in weather data");
mysnprintf(buf, 1023, "%d,%d,%d,%.2lf,%.1lf,%.1lf,%.1lf", wf.day, wf.hour, wf.month, wf.dn, wf.tdry, wf.pres/1000., wf.wspd);
wfdata.push_back( std::string(buf) );
}
m_sapi->SetDetailCallback( ssc_cmod_solarpilot_callback, m_cmod);
m_sapi->SetSummaryCallbackStatus(false);
m_sapi->GenerateDesignPointSimulations( *this, wfdata );
if(isopt){
m_cmod->log("Optimizing...", SSC_WARNING, 0.);
m_sapi->SetSummaryCallback( optimize_callback, m_cmod);
m_sapi->Setup(*this, true);
//set up optimization variables
{
if (rec_type == 0) {
int nv = 3;
vector<double*> optvars(nv);
vector<double> upper(nv, HUGE_VAL);
vector<double> lower(nv, -HUGE_VAL);
vector<double> stepsize(nv);
vector<string> names(nv);
//pointers
optvars.at(0) = &sf.tht.val;
optvars.at(1) = &recs.front().rec_height.val;
optvars.at(2) = &recs.front().rec_diameter.val;
//names
names.at(0) = (split(sf.tht.name, ".")).back();
names.at(1) = (split(recs.front().rec_height.name, ".")).back();
names.at(2) = (split(recs.front().rec_diameter.name, ".")).back();
//step size
stepsize.at(0) = sf.tht.val * opt.max_step.val;
stepsize.at(1) = recs.front().rec_height.val * opt.max_step.val;
stepsize.at(2) = recs.front().rec_diameter.val * opt.max_step.val;
if (!m_sapi->Optimize(/*opt.algorithm.mapval(),*/ optvars, upper, lower, stepsize, &names))
return false;
}
else if (rec_type == 1) {
int nv = 3;
vector<double*> optvars(nv);
vector<double> upper(nv, HUGE_VAL);
vector<double> lower(nv, -HUGE_VAL);
vector<double> stepsize(nv);
vector<string> names(nv);
//// Set initial values for optimized parameters
//double q_dot_rec_des = m_cmod->as_double("q_design")*1.E3; //[kWt]
//double A_rec_min = (q_dot_rec_des) / m_cmod->as_double("flux_max"); //[m2]
//recs.front().rec_height.val = sqrt(A_rec_min);
//recs.front().rec_width.val = recs.front().rec_height.val; //[m]
//// Set up parameters for cavity geometry calc
//double cav_rec_span = m_cmod->as_double("cav_rec_span") * PI / 180.0; //[rad] convert from cmod unit of [deg]
//size_t n_panels = cavity_receiver_helpers::get_default_number_of_panels();
//recs.front().n_panels.val = n_panels;
//double theta0, panelSpan, panel_width, rec_area, radius, offset;
//theta0 = panelSpan = panel_width = rec_area = radius = offset = std::numeric_limits<double>::quiet_NaN();
//cavity_receiver_helpers::calc_receiver_macro_geometry(recs.front().rec_height.val, recs.front().rec_width.val, cav_rec_span, n_panels,
// theta0, panelSpan, panel_width, rec_area, radius, offset);
//recs.front().rec_cav_cdepth.val = offset / radius;
//recs.front().rec_cav_rad.val = radius;
//double eta_active = m_cmod->as_double("helio_active_fraction"); //[-]
//double eta_profile = m_cmod->as_double("dens_mirror"); //[-]
//double eta_refl = m_cmod->as_double("helio_reflectance"); //[-]
//double eta_cos_guess = 0.85; //[-]
//double eta_dens_guess = 0.25; //[-]
//double dni_des = m_cmod->as_double("dni_des")*1.E-3; //[kW/m2]
//double q_dot_rec_heatloss = m_cmod->as_double("rec_hl_perm2")*A_rec_min; //[kW]
//double A_sf_est = (q_dot_rec_des - q_dot_rec_heatloss) / (dni_des * eta_dens_guess * eta_cos_guess * eta_refl * eta_profile * eta_active);
//double f_land_max = m_cmod->as_double("land_max");
//double f_land_min = m_cmod->as_double("land_min");
//double h_tower_est = sqrt((A_sf_est*2.0)/(PI*(f_land_max*f_land_max - f_land_min*f_land_min))); //[m]
//sf.tht.val = h_tower_est;
//pointers
optvars.at(0) = &sf.tht.val;
optvars.at(1) = &recs.front().rec_height.val;
optvars.at(2) = &recs.front().rec_cav_rad.val;
//names
names.at(0) = (split(sf.tht.name, ".")).back();
names.at(1) = (split(recs.front().rec_height.name, ".")).back();
names.at(2) = (split(recs.front().rec_cav_rad.name, ".")).back();
//step size
stepsize.at(0) = sf.tht.val * opt.max_step.val;
stepsize.at(1) = recs.front().rec_height.val * opt.max_step.val;
stepsize.at(2) = recs.front().rec_cav_rad.val * opt.max_step.val;
if (!m_sapi->Optimize(/*opt.algorithm.mapval(),*/ optvars, upper, lower, stepsize, &names))
return false;
}
}
m_sapi->Setup(*this);
m_sapi->SetSummaryCallbackStatus(false);
m_sapi->PreSimCallbackUpdate();
}
else{
m_sapi->Setup(*this);
}
if(! m_sapi->CreateLayout(layout) )
return false;
}
else
{
/*
Load in the heliostat field positions that are provided by the user.
*/
//layout.heliostat_positions.clear();
//layout.heliostat_positions.resize(m_N_hel);
string format = "0,%f,%f,%f,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL;";
sf.layout_data.val.clear();
util::matrix_t<double> hpos = m_cmod->as_matrix("helio_positions_in");
char row[200];
for( size_t i=0; i<hpos.nrows(); i++)
{
sprintf(row, format.c_str(), hpos.at(i,0), hpos.at(i,1), 0. );
sf.layout_data.val.append( row );
}
m_sapi->Setup(*this);
m_sapi->PostProcessLayout(layout);
}
//check if flux map calculations are desired
if( m_cmod->as_boolean("calc_fluxmaps") ){ // <<--- was set "false" for some reason
m_sapi->SetDetailCallbackStatus(false);
m_sapi->SetSummaryCallbackStatus(true);
m_sapi->SetSummaryCallback( ssc_cmod_solarpilot_callback, m_cmod );
//sp_optical_table opttab;
fluxtab.is_user_spacing = true;
fluxtab.n_flux_days = m_cmod->as_integer("n_flux_days");
fluxtab.delta_flux_hrs = m_cmod->as_integer("delta_flux_hrs");
string aim_method_save = flux.aim_method.val;
flux.aim_method.combo_select( "Simple aim points" );
int nflux_x = m_cmod->as_integer("n_flux_x");
int nflux_y = m_cmod->as_integer("n_flux_y");
//int nflux_x = 12, nflux_y = 1;
if(! m_sapi->CalculateFluxMaps(fluxtab, nflux_x, nflux_y, true) )
{
flux.aim_method.combo_select( aim_method_save );
return false; //simulation failed or was cancelled.
}
flux.aim_method.combo_select( aim_method_save );
//collect the optical efficiency data and sun positions
if ( fluxtab.zeniths.size() == 0 || fluxtab.azimuths.size() == 0
|| fluxtab.efficiency.size() == 0 )
throw exec_error("solarpilot", "failed to calculate a correct optical efficiency table");
//collect the flux map data
block_t<double> *flux_data = &fluxtab.flux_surfaces.front().flux_data; //there should be only one flux stack for SAM
if( flux_data->ncols() == 0 || flux_data->nlayers() == 0 )
throw exec_error("solarpilot", "failed to calculate a correct flux map table");
}
//check if max flux check is desired
if( m_cmod->as_boolean("check_max_flux") )
{
m_sapi->SetDetailCallbackStatus(false);
m_sapi->SetSummaryCallbackStatus(true);
m_sapi->SetSummaryCallback( ssc_cmod_solarpilot_callback, m_cmod );
sp_flux_table flux_temp;
//sp_optical_table opttab;
flux_temp.is_user_spacing = false;
flux_temp.azimuths.clear();
flux_temp.zeniths.clear();
flux_temp.azimuths.push_back( (flux.flux_solar_az.Val())*D2R );
flux_temp.zeniths.push_back( (90.-flux.flux_solar_el.Val())*D2R );
if(! m_sapi->CalculateFluxMaps(flux_temp, 20, 15, false) )
return false; //simulation failed or was cancelled.
block_t<double> *flux_data = &flux_temp.flux_surfaces.front().flux_data; //there should be only one flux stack for SAM
double flux_max_observed = 0.;
for(size_t i=0; i<flux_data->nrows(); i++)
{
for(size_t j=0; j<flux_data->ncols(); j++)
{
if( flux_data->at(i, j, 0) > flux_max_observed )
flux_max_observed = flux_data->at(i, j, 0);
}
}
m_cmod->assign("flux_max_observed", (ssc_number_t)flux_max_observed);
}
return true;
}
bool solarpilot_invoke::postsim_calcs(compute_module *cm)
{
/*
Update calculated values and cost model number to be used in subsequent simulation and analysis.
The variable values used in this are consistent with the solarpilot compute module. These same variables are used in all
tower modules that use solarpilot API.
*/
//receiver calculations
double H_rec = recs.front().rec_height.val;
double rec_aspect = recs.front().rec_aspect.Val();
double THT = sf.tht.val;
//update heliostat position table
int nr = (int)heliotab.positions.size();
ssc_number_t *ssc_hl = cm->allocate( "helio_positions", nr, 2 );
for(int i=0; i<nr; i++){
ssc_hl[i*2] = (ssc_number_t)layout.heliostat_positions.at(i).location.x;
ssc_hl[i*2+1] = (ssc_number_t)layout.heliostat_positions.at(i).location.y;
}
double A_sf = CalcSolarFieldArea(nr);
//update piping length for parasitic calculation
double piping_length = THT * cm->as_double("csp.pt.par.piping_length_mult") + cm->as_double("csp.pt.par.piping_length_const");
//update assignments for cost model
cm->assign("H_rec", var_data((ssc_number_t)H_rec));
cm->assign("rec_height", var_data((ssc_number_t)H_rec));
cm->assign("rec_aspect", var_data((ssc_number_t)rec_aspect));
cm->assign("D_rec", var_data((ssc_number_t)(H_rec/rec_aspect)));
cm->assign("THT", var_data((ssc_number_t)THT));
cm->assign("h_tower", var_data((ssc_number_t)THT));
cm->assign("A_sf", var_data((ssc_number_t)A_sf));
cm->assign("Piping_length", var_data((ssc_number_t)piping_length) );
//Update the total installed cost
double total_direct_cost = 0.;
double A_rec = std::numeric_limits<double>::quiet_NaN();
switch (recs.front().rec_type.mapval())
{
case var_receiver::REC_TYPE::EXTERNAL_CYLINDRICAL:
{
double h = recs.front().rec_height.val;
double d = h/recs.front().rec_aspect.Val();
A_rec = h*d*3.1415926;
break;
}
case var_receiver::REC_TYPE::FLAT_PLATE:
{
double h = recs.front().rec_height.val;
double w = h/recs.front().rec_aspect.Val();
A_rec = h*w;
break;
}
}
double receiver = cm->as_double("rec_ref_cost")*pow(A_rec/cm->as_double("rec_ref_area"), cm->as_double("rec_cost_exp")); //receiver cost
//storage cost
double storage = cm->as_double("q_pb_design")*cm->as_double("tshours")*cm->as_double("tes_spec_cost")*1000.;
//power block + BOP
double P_ref = cm->as_double("P_ref") * 1000.; //kWe
double power_block = P_ref * (cm->as_double("plant_spec_cost") + cm->as_double("bop_spec_cost") ); //$/kWe --> $
//site improvements
double site_improvements = A_sf * cm->as_double("site_spec_cost");
//heliostats
double heliostats = A_sf * cm->as_double("heliostat_spec_cost");
//fixed cost
double cost_fixed = cm->as_double("cost_sf_fixed");
//fossil
double fossil = P_ref * cm->as_double("fossil_spec_cost");
//tower cost
double tower = cm->as_double("tower_fixed_cost") * exp( cm->as_double("tower_exp") * (THT + 0.5*(-H_rec + cm->as_double("helio_height")) ) );
//---- total direct cost -----
total_direct_cost = (1. + cm->as_double("contingency_rate")/100.) * (
site_improvements + heliostats + power_block +
cost_fixed + storage + fossil + tower + receiver);
//-----
//land area
double land_area = land.land_area.Val() * cm->as_double("csp.pt.sf.land_overhead_factor") + cm->as_double("csp.pt.sf.fixed_land_area");
//EPC
double cost_epc =
cm->as_double("csp.pt.cost.epc.per_acre") * land_area
+ cm->as_double("csp.pt.cost.epc.percent") * total_direct_cost / 100.
+ P_ref * 1000. * cm->as_double("csp.pt.cost.epc.per_watt")
+ cm->as_double("csp.pt.cost.epc.fixed");
//PLM
double cost_plm =
cm->as_double("csp.pt.cost.plm.per_acre") * land_area
+ cm->as_double("csp.pt.cost.plm.percent") * total_direct_cost / 100.
+ P_ref * 1000. * cm->as_double("csp.pt.cost.plm.per_watt")
+ cm->as_double("csp.pt.cost.plm.fixed");
//sales tax
//return ${csp.pt.cost.sales_tax.value}/100*${total_direct_cost}*${csp.pt.cost.sales_tax.percent}/100; };
double cost_sales_tax = cm->as_double("sales_tax_rate")/100. * total_direct_cost * cm->as_double("sales_tax_frac")/100.;
//----- indirect cost
double total_indirect_cost = cost_epc + cost_plm + cost_sales_tax;
//----- total installed cost!
double total_installed_cost = total_direct_cost + total_indirect_cost;
cm->assign("total_installed_cost", var_data((ssc_number_t)total_installed_cost ));
return true;
}
void solarpilot_invoke::getOptimizationSimulationHistory(vector<vector<double> > &sim_points, vector<double> &obj_values, vector<double> &flux_values)
{
/*
Return the addresses of the optimization simulation history data, if applicable.
*/
sim_points = _optimization_sim_points;
obj_values = _optimization_objectives;
flux_values = _optimization_fluxes;
}
void solarpilot_invoke::setOptimizationSimulationHistory(vector<vector<double> > &sim_points, vector<double> &obj_values, vector<double> &flux_values)
{
//Create local copies
_optimization_sim_points = sim_points;
_optimization_objectives = obj_values;
_optimization_fluxes = flux_values;
}
double solarpilot_invoke::CalcAveAttenuation()
{
double tht2 = std::pow(sf.tht.val, 2); //[m]
std::size_t n_hel = layout.heliostat_positions.size();
double tot_att = 0.0;
std::size_t ncoefs = amb.atm_coefs.val.ncols();
std::size_t atm_sel = amb.atm_model.combo_get_current_index();
for (std::size_t i = 0; i < n_hel; i++) {
double x = layout.heliostat_positions[i].location.x;
double y = layout.heliostat_positions[i].location.y;
double r = std::sqrt(x * x + y * y);
double r2 = r * r;
double s = std::sqrt(tht2 + r2) * 0.001; // [km]
//double s2 = s * s;
//double s3 = s2 * s;
for (int i = 0; i < ncoefs; i++) {
tot_att += amb.atm_coefs.val.at(atm_sel, i) * pow(s, i);
}
}
return 100.0 * tot_att / n_hel; //[%]
}
double solarpilot_invoke::CalcSolarFieldArea(int N_hel)
{
/*
Calculate solar field area using ratio of reflective area to heliostat profile
N_hel: Number of heliostats in the solar field
*/
return m_cmod->as_double("helio_height") * m_cmod->as_double("helio_width") * m_cmod->as_double("dens_mirror") * (double)N_hel;
}
double solarpilot_invoke::CalcHeliostatArea()
{
/*
Calculate reflective area of single heliostat
*/
return m_cmod->as_double("helio_height") * m_cmod->as_double("helio_width") * m_cmod->as_double("dens_mirror");
}
double solarpilot_invoke::GetTotalLandArea()
{
// Total land area [acres]
return land.land_area.Val();
}
double solarpilot_invoke::GetBaseLandArea()
{
// Base land area occupied by heliostats [acres]
return land.bound_area.Val() / 4046.86 /*acres/m^2*/; // [acres] Land area occupied by heliostats
}
bool ssc_cmod_solarpilot_callback( simulation_info *siminfo, void *data )
{
compute_module *cm = static_cast<compute_module*>( data );
if ( !cm ) return false;
float simprogress = (float)siminfo->getCurrentSimulation()/(float)(max(siminfo->getTotalSimulationCount(),1));
return cm->update( *siminfo->getSimulationNotices(),
simprogress*100.0f );
}
static bool optimize_callback( simulation_info *siminfo, void *data )
{
compute_module *cm = static_cast<compute_module*>( data );
if(! cm) return false;
std::string notices = *siminfo->getSimulationNotices();
cm->log( notices, SSC_WARNING, 0. );
return true;
}
bool are_values_sig_different(double v1, double v2, double tol)
{
if (std::abs(v1) < tol || std::abs(v2) < tol)
{
if (std::abs(v1 - v2) > tol)
{
return true;
}
}
else
{
if (std::abs(v1 - v2) / std::min(std::abs(v1), std::abs(v2)) > tol)
{
return true;
}
}
return false;
}
var_info vtab_sco2_design[] = {
/* VARTYPE DATATYPE NAME LABEL UNITS META GROUP REQUIRED_IF CONSTRAINTS UI_HINTS*/
// ** Design Parameters **
// System Design
{ SSC_INPUT, SSC_NUMBER, "htf", "Integer code for HTF used in PHX", "", "", "System Design", "*", "", "" },
{ SSC_INPUT, SSC_MATRIX, "htf_props", "User defined HTF property data", "", "7 columns (T,Cp,dens,visc,kvisc,cond,h), at least 3 rows", "System Design", "?=[[0]]", "", "" },
{ SSC_INPUT, SSC_NUMBER, "T_htf_hot_des", "HTF design hot temperature (PHX inlet)", "C", "", "System Design", "*", "", "" },
{ SSC_INPUT, SSC_NUMBER, "dT_PHX_hot_approach", "Temp diff btw hot HTF and turbine inlet", "C", "", "System Design", "*", "", "" },
{ SSC_INPUT, SSC_NUMBER, "T_amb_des", "Ambient temperature", "C", "", "System Design", "*", "", "" },
{ SSC_INPUT, SSC_NUMBER, "dT_mc_approach", "Temp diff btw ambient air and main compressor inlet", "C", "", "System Design", "*", "", "" },
{ SSC_INPUT, SSC_NUMBER, "site_elevation", "Site elevation", "m", "", "System Design", "*", "", "" },
{ SSC_INPUT, SSC_NUMBER, "W_dot_net_des", "Design cycle power output (no cooling parasitics)", "MWe", "", "System Design", "*", "", "" },
{ SSC_INPUT, SSC_NUMBER, "design_method", "1 = Specify efficiency, 2 = Specify total recup UA, 3 = Specify each recup design","","","System Design","*","", "" },
{ SSC_INPUT, SSC_NUMBER, "eta_thermal_des", "Power cycle thermal efficiency", "", "", "System Design", "design_method=1","", "" },
// Heat exchanger design
// Combined recuperator design parameter (design_method == 2)
{ SSC_INPUT, SSC_NUMBER, "UA_recup_tot_des", "Total recuperator conductance", "kW/K", "Combined recuperator design", "Heat Exchanger Design", "design_method=2","", "" },
// Low temperature recuperator parameters
{ SSC_INPUT, SSC_NUMBER, "LTR_design_code", "1 = UA, 2 = min dT, 3 = effectiveness", "-", "Low temperature recuperator", "Heat Exchanger Design", "design_method=3", "", "" },
{ SSC_INPUT, SSC_NUMBER, "LTR_UA_des_in", "Design LTR conductance", "kW/K", "Low temperature recuperator", "Heat Exchanger Design", "design_method=3", "", "" },
{ SSC_INPUT, SSC_NUMBER, "LTR_min_dT_des_in", "Design minimum allowable temperature difference in LTR", "C", "Low temperature recuperator", "Heat Exchanger Design", "design_method=3", "", "" },
{ SSC_INPUT, SSC_NUMBER, "LTR_eff_des_in", "Design effectiveness for LTR", "-", "Low temperature recuperator", "Heat Exchanger Design", "design_method=3", "", "" },
{ SSC_INPUT, SSC_NUMBER, "LT_recup_eff_max", "Maximum allowable effectiveness in LTR", "-", "Low temperature recuperator", "Heat Exchanger Design", "?=1.0", "", "" },
{ SSC_INPUT, SSC_NUMBER, "LTR_LP_deltaP_des_in", "LTR low pressure side pressure drop as fraction of inlet pressure","-", "Low temperature recuperator", "Heat Exchanger Design", "", "", "" },
{ SSC_INPUT, SSC_NUMBER, "LTR_HP_deltaP_des_in", "LTR high pressure side pressure drop as fraction of inlet pressure","-", "Low temperature recuperator", "Heat Exchanger Design", "", "", "" },
{ SSC_INPUT, SSC_NUMBER, "LTR_n_sub_hx", "LTR number of model subsections", "-", "Low temperature recuperator", "Heat Exchanger Design", "?=10", "", "" },
{ SSC_INPUT, SSC_NUMBER, "LTR_od_model", "0: mass flow scale, 1: conductance ratio model", "-", "Low temperature recuperator", "Heat Exchanger Design", "?=1", "", "" },
// High temperature recuperator parameters
{ SSC_INPUT, SSC_NUMBER, "HTR_design_code", "1 = UA, 2 = min dT, 3 = effectiveness", "-", "High temperature recuperator", "Heat Exchanger Design", "design_method=3", "", "" },
{ SSC_INPUT, SSC_NUMBER, "HTR_UA_des_in", "Design HTR conductance", "kW/K", "High temperature recuperator", "Heat Exchanger Design", "design_method=3", "", "" },
{ SSC_INPUT, SSC_NUMBER, "HTR_min_dT_des_in", "Design minimum allowable temperature difference in HTR", "C", "High temperature recuperator", "Heat Exchanger Design", "design_method=3", "", "" },
{ SSC_INPUT, SSC_NUMBER, "HTR_eff_des_in", "Design effectiveness for HTR", "-", "High temperature recuperator", "Heat Exchanger Design", "design_method=3", "", "" },
{ SSC_INPUT, SSC_NUMBER, "HT_recup_eff_max", "Maximum allowable effectiveness in HTR", "-", "High temperature recuperator", "Heat Exchanger Design", "?=1.0", "", "" },
{ SSC_INPUT, SSC_NUMBER, "HTR_LP_deltaP_des_in", "HTR low pressure side pressure drop as fraction of inlet pressure","-", "High temperature recuperator", "Heat Exchanger Design", "", "", "" },
{ SSC_INPUT, SSC_NUMBER, "HTR_HP_deltaP_des_in", "HTR high pressure side pressure drop as fraction of inlet pressure","-", "High temperature recuperator", "Heat Exchanger Design", "", "", "" },
{ SSC_INPUT, SSC_NUMBER, "HTR_n_sub_hx", "HTR number of model subsections", "-", "High temperature recuperator", "Heat Exchanger Design", "?=10", "", "" },
{ SSC_INPUT, SSC_NUMBER, "HTR_od_model", "0: mass flow scale, 1: conductance ratio model", "-", "High temperature recuperator", "Heat Exchanger Design", "?=1", "", "" },
{ SSC_INPUT, SSC_NUMBER, "cycle_config", "1 = recompression, 2 = partial cooling, 3 = recomp with htr bypass", "", "High temperature recuperator", "Heat Exchanger Design", "?=1", "", "" },
{ SSC_INPUT, SSC_NUMBER, "is_recomp_ok", "1 = Yes, 0 = simple cycle only, < 0 = fix f_recomp to abs(input)","", "High temperature recuperator", "Heat Exchanger Design", "?=1", "", "" },
{ SSC_INPUT, SSC_NUMBER, "is_P_high_fixed", "1 = Yes (=P_high_limit), 0 = No, optimized (default)", "", "High temperature recuperator", "Heat Exchanger Design", "?=0", "", "" },
{ SSC_INPUT, SSC_NUMBER, "is_PR_fixed", "0 = No, >0 = fixed pressure ratio at input <0 = fixed LP at abs(input)", "High temperature recuperator", "", "Heat Exchanger Design", "?=0", "", "" },
{ SSC_INPUT, SSC_NUMBER, "is_IP_fixed", "partial cooling config: 0 = No, >0 = fixed HP-IP pressure ratio at input, <0 = fixed IP at abs(input)","","High temperature recuperator","Heat Exchanger Design","?=0", "", "" },
{ SSC_INPUT, SSC_NUMBER, "des_objective", "[2] = hit min phx deltat then max eta, [else] max eta", "", "High temperature recuperator", "Heat Exchanger Design", "?=0", "", "" },
{ SSC_INPUT, SSC_NUMBER, "min_phx_deltaT", "Minimum design temperature difference across PHX", "C", "High temperature recuperator", "Heat Exchanger Design", "?=0", "", "" },
{ SSC_INPUT, SSC_NUMBER, "rel_tol", "Baseline solver and optimization relative tolerance exponent (10^-rel_tol)", "-", "High temperature recuperator", "Heat Exchanger Design", "?=3","", "" },
// Cycle Design
{ SSC_INPUT, SSC_NUMBER, "eta_isen_mc", "Design main compressor isentropic efficiency", "-", "", "", "*", "", "" },
{ SSC_INPUT, SSC_NUMBER, "mc_comp_type", "Main compressor compressor type 1: SNL 2: CompA", "-", "", "", "?=1", "", "" },
{ SSC_INPUT, SSC_NUMBER, "eta_isen_rc", "Design re-compressor isentropic efficiency", "-", "", "", "*", "", "" },
{ SSC_INPUT, SSC_NUMBER, "eta_isen_pc", "Design precompressor isentropic efficiency", "-", "", "", "cycle_config=2", "", "" },
{ SSC_INPUT, SSC_NUMBER, "eta_isen_t", "Design turbine isentropic efficiency", "-", "", "", "*", "", "" },
{ SSC_INPUT, SSC_NUMBER, "PHX_co2_deltaP_des_in","PHX co2 side pressure drop as fraction of inlet pressure","-", "", "", "", "", "" },
{ SSC_INPUT, SSC_NUMBER, "deltaP_counterHX_frac","Fraction of CO2 inlet pressure that is design point counterflow HX (recups & PHX) pressure drop", "-", "", "", "?=0", "", ""},
{ SSC_INPUT, SSC_NUMBER, "P_high_limit", "High pressure limit in cycle", "MPa", "", "", "*", "", "" },
// PHX Design
{ SSC_INPUT, SSC_NUMBER, "dT_PHX_cold_approach", "Temp diff btw cold HTF and cold CO2", "C", "", "PHX Design", "*", "", "" },
{ SSC_INPUT, SSC_NUMBER, "PHX_n_sub_hx", "Number of subsections in PHX model", "-", "", "PHX Design", "?=10", "", "" },
{ SSC_INPUT, SSC_NUMBER, "PHX_od_model", "0: mass flow scale, 1: conductance ratio model", "-", "", "PHX Design", "?=1", "", "" },
// Air Cooler Design
{ SSC_INPUT, SSC_NUMBER, "is_design_air_cooler", "Defaults to True. False will skip air cooler calcs", "", "", "Air Cooler Design", "?=1.0", "", "" },
{ SSC_INPUT, SSC_NUMBER, "fan_power_frac", "Fraction of net cycle power consumed by air cooler fan", "", "", "Air Cooler Design", "*", "", "" },
{ SSC_INPUT, SSC_NUMBER, "deltaP_cooler_frac", "Fraction of CO2 inlet pressure that is design point cooler CO2 pressure drop", "", "", "Air Cooler Design", "*", "", "" },
{ SSC_INPUT, SSC_NUMBER, "eta_air_cooler_fan", "Air cooler fan isentropic efficiency", "", "", "Air Cooler Design", "?=0.5", "", "" },
{ SSC_INPUT, SSC_NUMBER, "N_nodes_air_cooler_pass", "Number of nodes in single air cooler pass", "", "", "Air Cooler Design", "?=10", "", "" },
// HTR Bypass Design
{ SSC_INPUT, SSC_NUMBER, "is_bypass_ok", "1 = Yes, 0 = No Bypass, < 0 = fix bp_frac to abs(input)","", "High temperature recuperator", "Heat Exchanger Design", "?=1", "", "" },
{ SSC_INPUT, SSC_NUMBER, "T_bypass_target", "HTR BP Cycle Target Temperature", "C", "", "System Design", "cycle_config=3", "", "" },
{ SSC_INPUT, SSC_NUMBER, "T_target_is_HTF", "Target Temperature is HTF (1) or cold sco2 at BP", "", "", "System Design", "?=1", "", "" },
{ SSC_INPUT, SSC_NUMBER, "deltaT_bypass", "sco2 Bypass Outlet Temp - HTR_HP_OUT Temp", "C", "", "System Design", "cycle_config=3", "", "" },
{ SSC_INPUT, SSC_NUMBER, "set_HTF_mdot", "For HTR Bypass ONLY, 0 = calculate HTF mdot (need to set dT_PHX_cold_approach), > 0 = HTF mdot kg/s", "kg/s", "", "System Design", "?=0", "", "" },
// Turbine Split Flow Design
{ SSC_INPUT, SSC_NUMBER, "is_turbine_split_ok", "1 = Yes, 0 = No Second Turbine, < 0 = fix split_frac to abs(input)","", "", "", "?=1", "", "" },
{ SSC_INPUT, SSC_NUMBER, "eta_isen_t2", "Design secondary turbine isentropic efficiency (TSF only)", "-", "", "", "cycle_config=4", "", "" },
// DEBUG
//{ SSC_OUTPUT, SSC_STRING, "debug_string", "output string used for debug", "C", "", "System Design", "cycle_config=3", "", "" },
// ** Design OUTPUTS **
{ SSC_OUTPUT, SSC_NUMBER, "cycle_success", "", "", "", "", "*", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "error_int", "", "", "", "", "*", "", "" },
{ SSC_OUTPUT, SSC_STRING, "error_msg", "", "", "", "", "error_int>0", "", "" },
// System Design Solution
{ SSC_OUTPUT, SSC_NUMBER, "T_htf_cold_des", "HTF design cold temperature (HTF outlet)", "C", "System Design Solution", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "T_htf_phx_out_des", "HTF design phx cold temperature (PHX outlet)", "C", "System Design Solution", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "m_dot_htf_des", "HTF mass flow rate", "kg/s", "System Design Solution", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "eta_thermal_calc", "Calculated cycle thermal efficiency", "-", "System Design Solution", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "m_dot_co2_full", "CO2 mass flow rate through HTR, PHX, turbine", "kg/s", "System Design Solution", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "recomp_frac", "Recompression fraction", "-", "System Design Solution", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "bypass_frac", "Bypass fraction", "-", "System Design Solution", "", "error_int=0&cycle_config=3", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "cycle_cost", "Cycle cost bare erected", "M$", "System Design Solution", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "cycle_spec_cost", "Cycle specific cost bare erected", "$/kWe", "System Design Solution", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "cycle_spec_cost_thermal", "Cycle specific (thermal) cost bare erected", "$/kWt", "System Design Solution", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "W_dot_net_less_cooling", "System power output subtracting cooling parastics", "MWe," "System Design Solution", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "eta_thermal_net_less_cooling_des","Calculated cycle thermal efficiency using W_dot_net_less_cooling", "-", "System Design Solution","", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "T_htf_bp_out_des", "HTF design htr bypass cold temperature (BPX outlet)", "C", "System Design Solution", "", "error_int=0&cycle_config=3", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "dT_htf_des", "HTF temperature difference", "C", "System Design Solution", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "q_dot_in_total", "Total heat from HTF into cycle", "MW", "System Design Solution", "", "error_int=0", "", "" },
// Compressor
{ SSC_OUTPUT, SSC_NUMBER, "T_comp_in", "Compressor inlet temperature", "C", "Compressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "P_comp_in", "Compressor inlet pressure", "MPa", "Compressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "P_comp_out", "Compressor outlet pressure", "MPa", "Compressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "mc_T_out", "Compressor outlet temperature", "C", "Compressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "mc_W_dot", "Compressor power", "MWe", "Compressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "mc_m_dot_des", "Compressor mass flow rate", "kg/s", "Compressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "mc_rho_in", "Compressor inlet density", "kg/m3", "Compressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "mc_ideal_spec_work", "Compressor ideal spec work", "kJ/kg", "Compressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "mc_phi_des", "Compressor design flow coefficient", "", "Compressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "mc_psi_des", "Compressor design ideal head coefficient", "", "Compressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_ARRAY, "mc_tip_ratio_des", "Compressor design stage tip speed ratio", "", "Compressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "mc_n_stages", "Compressor stages", "", "Compressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "mc_N_des", "Compressor design shaft speed", "rpm", "Compressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_ARRAY, "mc_D", "Compressor stage diameters", "m", "Compressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "mc_phi_surge", "Compressor flow coefficient where surge occurs", "", "Compressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "mc_psi_max_at_N_des", "Compressor max ideal head coefficient at design shaft speed", "", "Compressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_ARRAY, "mc_eta_stages_des", "Compressor design stage isentropic efficiencies", "", "Compressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "mc_cost_equipment", "Compressor cost equipment", "M$", "Compressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "mc_cost_bare_erected", "Compressor cost equipment plus install", "M$", "Compressor", "", "error_int=0", "", "" },
// Recompressor
{ SSC_OUTPUT, SSC_NUMBER, "rc_T_in_des", "Recompressor inlet temperature", "C", "Recompressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "rc_P_in_des", "Recompressor inlet pressure", "MPa", "Recompressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "rc_T_out_des", "Recompressor inlet temperature", "C", "Recompressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "rc_P_out_des", "Recompressor inlet pressure", "MPa", "Recompressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "rc_W_dot", "Recompressor power", "MWe", "Recompressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "rc_m_dot_des", "Recompressor mass flow rate", "kg/s", "Recompressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "rc_phi_des", "Recompressor design flow coefficient", "", "Recompressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "rc_psi_des", "Recompressor design ideal head coefficient", "", "Recompressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_ARRAY, "rc_tip_ratio_des", "Recompressor design stage tip speed ratio", "", "Recompressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "rc_n_stages", "Recompressor stages", "", "Recompressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "rc_N_des", "Recompressor design shaft speed", "rpm", "Recompressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_ARRAY, "rc_D", "Recompressor stage diameters", "m", "Recompressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "rc_phi_surge", "Recompressor flow coefficient where surge occurs", "", "Recompressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "rc_psi_max_at_N_des", "Recompressor max ideal head coefficient at design shaft speed", "", "Recompressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_ARRAY, "rc_eta_stages_des", "Recompressor design stage isenstropic efficiencies", "", "Recompressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "rc_cost_equipment", "Recompressor cost equipment", "M$", "Recompressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "rc_cost_bare_erected", "Recompressor cost equipment plus install", "M$", "Recompressor", "", "error_int=0", "", "" },
// Precompressor
{ SSC_OUTPUT, SSC_NUMBER, "pc_T_in_des", "Precompressor inlet temperature", "C", "Precompressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "pc_P_in_des", "Precompressor inlet pressure", "MPa", "Precompressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "pc_W_dot", "Precompressor power", "MWe", "Precompressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "pc_m_dot_des", "Precompressor mass flow rate", "kg/s", "Precompressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "pc_rho_in_des", "Precompressor inlet density", "kg/m3", "Precompressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "pc_ideal_spec_work_des", "Precompressor ideal spec work", "kJ/kg", "Precompressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "pc_phi_des", "Precompressor design flow coefficient", "", "Precompressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_ARRAY, "pc_tip_ratio_des", "Precompressor design stage tip speed ratio", "", "Precompressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "pc_n_stages", "Precompressor stages", "", "Precompressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "pc_N_des", "Precompressor design shaft speed", "rpm", "Precompressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_ARRAY, "pc_D", "Precompressor stage diameters", "m", "Precompressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "pc_phi_surge", "Precompressor flow coefficient where surge occurs", "", "Precompressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_ARRAY, "pc_eta_stages_des", "Precompressor design stage isenstropic efficiencies", "", "Precompressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "pc_cost_equipment", "Precompressor cost equipment", "M$", "Precompressor", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "pc_cost_bare_erected", "Precompressor cost equipment plus install", "M$", "Precompressor", "", "error_int=0", "", "" },
// Compressor Totals
{ SSC_OUTPUT, SSC_NUMBER, "c_tot_cost_equip", "Compressor total cost", "M$", "Compressor Totals", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "c_tot_W_dot", "Compressor total summed power", "MWe", "Compressor Totals", "", "error_int=0", "", "" },
// Turbine
{ SSC_OUTPUT, SSC_NUMBER, "t_W_dot", "Turbine power", "MWe", "Turbine", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "t_m_dot_des", "Turbine mass flow rate", "kg/s", "Turbine", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "T_turb_in", "Turbine inlet temperature", "C", "Turbine", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "t_P_in_des", "Turbine design inlet pressure", "MPa", "Turbine", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "t_T_out_des", "Turbine outlet temperature", "C", "Turbine", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "t_P_out_des", "Turbine design outlet pressure", "MPa", "Turbine", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "t_delta_h_isen_des", "Turbine isentropic specific work", "kJ/kg", "Turbine", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "t_rho_in_des", "Turbine inlet density", "kg/m3", "Turbine", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "t_nu_des", "Turbine design velocity ratio", "", "Turbine", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "t_tip_ratio_des", "Turbine design tip speed ratio", "", "Turbine", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "t_N_des", "Turbine design shaft speed", "rpm", "Turbine", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "t_D", "Turbine diameter", "m", "Turbine", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "t_cost_equipment", "Tubine cost - equipment", "M$", "Turbine", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "t_cost_bare_erected", "Tubine cost - equipment plus install", "M$", "Turbine", "", "error_int=0", "", "" },
// Secondary Turbine (TSF cycle only)
{ SSC_OUTPUT, SSC_NUMBER, "t2_W_dot", "Secondary Turbine power", "MWe", "Turbine 2", "", "error_int=0&cycle_config=4", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "t2_m_dot_des", "Secondary Turbine mass flow rate", "kg/s", "Turbine 2", "", "error_int=0&cycle_config=4", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "T_turb2_in", "Secondary Turbine inlet temperature", "C", "Turbine 2", "", "error_int=0&cycle_config=4", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "t2_P_in_des", "Secondary Turbine design inlet pressure", "MPa", "Turbine 2", "", "error_int=0&cycle_config=4", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "t2_T_out_des", "Secondary Turbine outlet temperature", "C", "Turbine 2", "", "error_int=0&cycle_config=4", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "t2_P_out_des", "Secondary Turbine design outlet pressure", "MPa", "Turbine 2", "", "error_int=0&cycle_config=4", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "t2_delta_h_isen_des", "Secondary Turbine isentropic specific work", "kJ/kg", "Turbine 2", "", "error_int=0&cycle_config=4", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "t2_rho_in_des", "Secondary Turbine inlet density", "kg/m3", "Turbine 2", "", "error_int=0&cycle_config=4", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "t2_nu_des", "Secondary Turbine design velocity ratio", "", "Turbine 2", "", "error_int=0&cycle_config=4", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "t2_tip_ratio_des", "Secondary Turbine design tip speed ratio", "", "Turbine 2", "", "error_int=0&cycle_config=4", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "t2_N_des", "Secondary Turbine design shaft speed", "rpm", "Turbine 2", "", "error_int=0&cycle_config=4", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "t2_D", "Secondary Turbine diameter", "m", "Turbine 2", "", "error_int=0&cycle_config=4", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "t2_cost_equipment", "Secondary Tubine cost - equipment", "M$", "Turbine 2", "", "error_int=0&cycle_config=4", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "t2_cost_bare_erected", "Secondary Tubine cost - equipment plus install", "M$", "Turbine 2", "", "error_int=0&cycle_config=4", "", "" },
// Recuperators
{ SSC_OUTPUT, SSC_NUMBER, "recup_total_UA_assigned", "Total recuperator UA assigned to design routine", "MW/K", "Recuperators", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "recup_total_UA_calculated", "Total recuperator UA calculated considering max eff and/or min temp diff parameter", "MW/K", "Recuperators", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "recup_total_cost_equipment","Total recuperator cost equipment", "M$", "Recuperators", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "recup_total_cost_bare_erected","Total recuperator cost bare erected", "M$", "Recuperators", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "recup_LTR_UA_frac", "Fraction of total conductance to LTR", "", "Recuperators", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "LTR_HP_T_out_des", "Low temp recuperator HP outlet temperature", "C", "Recuperators", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "LTR_UA_assigned", "Low temp recuperator UA assigned from total", "MW/K", "Recuperators", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "LTR_UA_calculated", "Low temp recuperator UA calculated considering max eff and/or min temp diff parameter", "MW/K", "Recuperators", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "eff_LTR", "Low temp recuperator effectiveness", "", "Recuperators", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "NTU_LTR", "Low temp recuperator NTU", "", "Recuperators", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "q_dot_LTR", "Low temp recuperator heat transfer", "MWt", "Recuperators", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "LTR_LP_deltaP_des", "Low temp recuperator low pressure design pressure drop", "-", "Recuperators", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "LTR_HP_deltaP_des", "Low temp recuperator high pressure design pressure drop","-", "Recuperators", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "LTR_min_dT", "Low temp recuperator min temperature difference", "C", "Recuperators", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "LTR_cost_equipment", "Low temp recuperator cost equipment", "M$", "Recuperators", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "LTR_cost_bare_erected","Low temp recuperator cost equipment and install", "M$", "Recuperators", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "HTR_LP_T_out_des", "High temp recuperator LP outlet temperature", "C", "Recuperators", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "HTR_HP_T_in_des", "High temp recuperator HP inlet temperature", "C", "Recuperators", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "HTR_UA_assigned", "High temp recuperator UA assigned from total", "MW/K", "Recuperators", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "HTR_UA_calculated", "High temp recuperator UA calculated considering max eff and/or min temp diff parameter", "MW/K", "Recuperators", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "eff_HTR", "High temp recuperator effectiveness", "", "Recuperators", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "NTU_HTR", "High temp recuperator NTRU", "", "Recuperators", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "q_dot_HTR", "High temp recuperator heat transfer", "MWt", "Recuperators", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "HTR_LP_deltaP_des", "High temp recuperator low pressure design pressure drop","-", "Recuperators", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "HTR_HP_deltaP_des", "High temp recuperator high pressure design pressure drop","-", "Recuperators", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "HTR_min_dT", "High temp recuperator min temperature difference", "C", "Recuperators", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "HTR_cost_equipment", "High temp recuperator cost equipment", "M$", "Recuperators", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "HTR_cost_bare_erected","High temp recuperator cost equipment and install", "M$", "Recuperators", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "HTR_HP_m_dot", "High temp recuperator high pressure mass flow rate", "kg/s", "Recuperators", "", "error_int=0", "", "" },
// PHX Design Solution
{ SSC_OUTPUT, SSC_NUMBER, "UA_PHX", "PHX Conductance", "MW/K", "PHX Design Solution", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "eff_PHX", "PHX effectiveness", "", "PHX Design Solution", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "NTU_PHX", "PHX NTU", "", "PHX Design Solution", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "T_co2_PHX_in", "CO2 temperature at PHX inlet", "C", "PHX Design Solution", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "P_co2_PHX_in", "CO2 pressure at PHX inlet", "MPa", "PHX Design Solution", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "deltaT_HTF_PHX", "HTF temp difference across PHX", "C", "PHX Design Solution", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "q_dot_PHX", "PHX heat transfer", "MWt", "PHX Design Solution", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "PHX_co2_deltaP_des", "PHX co2 side design pressure drop", "-", "PHX Design Solution", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "PHX_cost_equipment", "PHX cost equipment", "M$", "PHX Design Solution", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "PHX_cost_bare_erected","PHX cost equipment and install", "M$", "PHX Design Solution", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "PHX_min_dT", "PHX min temperature difference", "C", "PHX Design Solution", "", "error_int=0", "", "" },
// BPX Design Solution
{ SSC_OUTPUT, SSC_NUMBER, "UA_BPX", "BPX Conductance", "MW/K", "BPX Design Solution", "", "error_int=0&cycle_config=3", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "eff_BPX", "BPX effectiveness", "", "BPX Design Solution", "", "error_int=0&cycle_config=3", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "NTU_BPX", "BPX NTU", "", "BPX Design Solution", "", "error_int=0&cycle_config=3", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "T_co2_BPX_in", "CO2 temperature at BPX inlet", "C", "BPX Design Solution", "", "error_int=0&cycle_config=3", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "P_co2_BPX_in", "CO2 pressure at BPX inlet", "MPa", "BPX Design Solution", "", "error_int=0&cycle_config=3", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "deltaT_HTF_BPX", "HTF temp difference across BPX", "C", "BPX Design Solution", "", "error_int=0&cycle_config=3", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "q_dot_BPX", "BPX heat transfer", "MWt", "BPX Design Solution", "", "error_int=0&cycle_config=3", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "BPX_co2_deltaP_des", "BPX co2 side design pressure drop", "-", "BPX Design Solution", "", "error_int=0&cycle_config=3", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "BPX_cost_equipment", "BPX cost equipment", "M$", "BPX Design Solution", "", "error_int=0&cycle_config=3", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "BPX_cost_bare_erected","BPX cost equipment and install", "M$", "BPX Design Solution", "", "error_int=0&cycle_config=3", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "BPX_min_dT", "BPX min temperature difference", "C", "BPX Design Solution", "", "error_int=0&cycle_config=3", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "BPX_m_dot", "BPX sco2 mass flow rate", "kg/s", "BPX Design Solution", "", "error_int=0&cycle_config=3", "", "" },
// main compressor cooler
{ SSC_OUTPUT, SSC_NUMBER, "mc_cooler_T_in", "Low pressure cross flow cooler inlet temperature", "C", "Low Pressure Cooler", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "mc_cooler_P_in", "Low pressure cross flow cooler inlet pressure", "MPa", "Low Pressure Cooler", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "mc_cooler_rho_in", "Low pressure cross flow cooler inlet density", "kg/m3", "Low Pressure Cooler", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "mc_cooler_in_isen_deltah_to_P_mc_out", "Low pressure cross flow cooler inlet isen enthalpy rise to mc outlet pressure", "kJ/kg", "Low Pressure Cooler", "", "error_int=0", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "mc_cooler_m_dot_co2", "Low pressure cross flow cooler CO2 mass flow rate", "kg/s", "Low Pressure Cooler", "", "error_int=0", "", "" },