-
Notifications
You must be signed in to change notification settings - Fork 149
/
startup.lk
2232 lines (2039 loc) · 140 KB
/
startup.lk
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
// SAM startup script.
en_iscc = 0;
en_pvsamv3 = 0;
// define all the configurations
if ( en_pvsamv3 ) addconfig( 'Photovoltaic', ['None'] );
// order of performance models in configuration tree determined by order of calls to addconfig(), except order of parent items, which appear at the top of the tree with order determined in
// PopulateTech() function in main.cpp.
// order of financial models for each performance model determined by order of array items in second parameter of addconfig().
addconfig( 'Flat Plate PV', ['Residential', 'Commercial', 'Third Party', 'Host Developer', 'Single Owner', 'Merchant Plant', 'Leveraged Partnership Flip', 'All Equity Partnership Flip', 'Sale Leaseback', 'LCOE Calculator', 'None'] );
addconfig( 'PVWatts', [ 'Residential', 'Commercial', 'Third Party', 'Host Developer', 'Single Owner', 'Merchant Plant', 'Leveraged Partnership Flip', 'All Equity Partnership Flip', 'Sale Leaseback', 'LCOE Calculator', 'None' ] );
addconfig( 'High-X Concentrating PV', ['Single Owner', 'Merchant Plant', 'Leveraged Partnership Flip', 'All Equity Partnership Flip', 'Sale Leaseback', 'LCOE Calculator', 'None']);
addconfig( 'Wind Power', [ 'Residential', 'Commercial', 'Single Owner', 'Merchant Plant', 'Leveraged Partnership Flip', 'All Equity Partnership Flip', 'Sale Leaseback', 'LCOE Calculator', 'None'] );
addconfig( 'Physical Trough', ['Single Owner', 'Merchant Plant', 'Leveraged Partnership Flip', 'All Equity Partnership Flip', 'Sale Leaseback', 'LCOE Calculator', 'None']);
addconfig( 'Empirical Trough', ['Commercial','Single Owner', 'Merchant Plant', 'Leveraged Partnership Flip', 'All Equity Partnership Flip', 'Sale Leaseback', 'LCOE Calculator', 'None']);
addconfig( 'MSPT', ['Single Owner', 'Merchant Plant', 'Leveraged Partnership Flip', 'All Equity Partnership Flip', 'Sale Leaseback']);
addconfig( 'DSPT', ['Single Owner', 'Merchant Plant', 'Leveraged Partnership Flip', 'All Equity Partnership Flip', 'Sale Leaseback']);
addconfig( 'MSLF', ['Commercial','Single Owner', 'Merchant Plant', 'Leveraged Partnership Flip', 'All Equity Partnership Flip', 'Sale Leaseback', 'LCOE Calculator', 'None']);
addconfig( 'DSLF', ['Commercial','Single Owner', 'Merchant Plant', 'Leveraged Partnership Flip', 'All Equity Partnership Flip', 'Sale Leaseback', 'LCOE Calculator', 'None']);
addconfig( 'Dish Stirling', ['Commercial','Single Owner', 'Merchant Plant', 'Leveraged Partnership Flip', 'All Equity Partnership Flip', 'Sale Leaseback', 'LCOE Calculator', 'None']);
addconfig( 'Generic CSP System', ['Commercial','Single Owner', 'Merchant Plant', 'Leveraged Partnership Flip', 'All Equity Partnership Flip', 'Sale Leaseback', 'LCOE Calculator', 'None']);
if ( en_iscc ) { addconfig( 'ISCC', ['Single Owner']); }
addconfig( 'Physical Trough IPH', ['None', 'LCOH Calculator']);
addconfig( 'ETES', ['Single Owner']);
addconfig( 'DSGL IPH', ['None', 'LCOH Calculator']);
addconfig( 'Fuel Cell', ['Commercial', 'Single Owner']);
addconfig( 'MEwave', ['LCOE Calculator', 'None']);
addconfig( 'MEtidal', ['LCOE Calculator']);
addconfig( 'Geothermal Power', ['Single Owner', 'Merchant Plant', 'Leveraged Partnership Flip', 'All Equity Partnership Flip', 'Sale Leaseback', 'LCOE Calculator', 'None']);
addconfig( 'Solar Water Heating', ['Residential', 'Commercial', 'LCOE Calculator', 'None']);
addconfig( 'Biopower', ['Single Owner', 'Merchant Plant', 'Leveraged Partnership Flip', 'All Equity Partnership Flip', 'Sale Leaseback', 'LCOE Calculator', 'None']);
addconfig( 'Generic System', ['Residential', 'Commercial', 'Third Party', 'Host Developer', 'Single Owner', 'Merchant Plant', 'Leveraged Partnership Flip', 'All Equity Partnership Flip', 'Sale Leaseback', 'LCOE Calculator', 'None']);
addconfig( 'PV Battery', ['Residential', 'Commercial', 'Third Party', 'Host Developer', 'Single Owner', 'Merchant Plant', 'Leveraged Partnership Flip', 'All Equity Partnership Flip', 'Sale Leaseback'] );
addconfig( 'PVWatts Battery', ['Residential', 'Commercial', 'Third Party', 'Host Developer'] );
addconfig( 'Generic Battery', ['Residential', 'Commercial', 'Third Party', 'Host Developer', 'Single Owner', 'Merchant Plant', 'Leveraged Partnership Flip', 'All Equity Partnership Flip', 'Sale Leaseback'] );
addconfig( 'Retired', ['None']);
// tree_parent for performance models defined in PopulateTech() in main.cpp
if ( en_pvsamv3 ) { configopt( 'Photovoltaic', {'tree_parent'='PV', 'long_name'='Photovoltaic (super detailed)', 'short_name'='Photovoltaic', 'description'='Photovoltaic system using detailed photovoltaic model with separate module and inverter component models' } ); }
configopt( 'Flat Plate PV', { 'tree_parent'='PV', 'long_name'='Detailed PV Model', 'short_name'='Photovoltaic', 'description'='Photovoltaic system using detailed photovoltaic model with separate module and inverter component models' } );
configopt( 'PVWatts', { 'tree_parent'='PV','long_name'='PVWatts', 'short_name'='PVWatts', 'description'='Photovoltaic system using basic NREL PVWatts V7 algorithm. Does not do detailed degradation or loss modeling. If those are important, please use pvsamv1.' } );
configopt( 'High-X Concentrating PV', { 'tree_parent'='PV', 'long_name'='High Concentration PV', 'short_name'='HCPV', 'description'='Concentrating photovoltaic system with a high concentration photovoltaic module model and separate inverter model' } );
configopt( 'PV Battery', { 'tree_parent'='BATT', 'long_name'='Detailed PV-Battery', 'short_name'='PV-Battery', 'description'='Detailed photovoltaic model with battery storage' } );
configopt( 'PVWatts Battery', { 'tree_parent'='BATT', 'long_name'='PVWatts-Battery', 'short_name'='PVWatts-Battery', 'description'='PVWatts system model with battery storage' } );
configopt( 'Generic Battery', { 'tree_parent'='BATT', 'long_name'='Generic System-Battery', 'short_name'='Generic-Battery', 'description'='Generic system model with battery storage' } );
configopt( 'Wind Power', { 'long_name'='Wind', 'short_name'='Wind', 'description'='Small or large wind power system' } );
configopt( 'Biopower', { 'long_name'='Biomass Combustion', 'short_name'='Biopower', 'description'='Biomass combustion for electricity generation' } );
configopt( 'Geothermal Power', { 'long_name'='Geothermal', 'short_name'='Geothermal', 'description'='Geothermal power model for hydrothermal and EGS systems with flash or binary conversion' } );
configopt( 'Solar Water Heating', { 'long_name'='Solar Water Heating', 'short_name'='Solar water', 'description'='Solar water heating model for residential and commercial building applications' } );
configopt( 'Fuel Cell', { 'long_name'='Fuel Cell-PV-Battery', 'short_name'='Fuel Cell', 'description'='Fuel cell with photovoltaic system and optional electric battery for commercial building or PPA project applications' } );
configopt( 'Generic System', { 'long_name'='Generic System', 'short_name'='Generic', 'description'='Basic power system model using either capacity, capacity factor, and heat rate, or an hourly power generation profile as input' } );
configopt( 'MSPT', { 'tree_parent'='CSP', 'long_name'='Power Tower Molten Salt', 'short_name'='Tower (salt)', 'description'='CSP molten salt power tower system using heat transfer and thermodynamic component models' } );
configopt( 'DSPT', { 'tree_parent'='Retired', 'long_name'='Power Tower Direct Steam', 'short_name'='Tower (steam)', 'description'='CSP direct steam power tower system using heat transfer and thermodynamic component models' } );
configopt( 'Physical Trough', { 'tree_parent'='CSP', 'long_name'='Parabolic Trough - Physical', 'short_name'='Trough (phys)', 'description'='CSP parabolic trough system using heat transfer and thermodynamic component models' } );
configopt( 'Empirical Trough', { 'tree_parent'='CSP', 'long_name'='Parabolic Trough - Empirical', 'short_name'='Trough (empr)', 'description'='CSP parabolic trough system using model with empirically-derived coefficients and equations' } );
configopt( 'Dish Stirling', { 'tree_parent'='Retired', 'long_name'='Dish Stirling', 'short_name'='Dish Stirling', 'description'='Dish Stirling model with parameters for SES and WGA-ADDS systems' } );
configopt( 'Generic CSP System', { 'tree_parent'='CSP', 'long_name'='Generic Model', 'short_name'='Generic CSP', 'description'='CSP power system with solar field modeled using a table of optical efficiency values' } );
configopt( 'DSLF', { 'tree_parent'='CSP', 'long_name'='Linear Fresnel Direct Steam', 'short_name'='Fresnel (steam)', 'description'='CSP power system that uses long small mirrors to line focus sunlight on fixed receiver tubes mounted above them.' } );
configopt( 'MSLF', { 'tree_parent'='CSP', 'long_name'='Linear Fresnel Molten Salt', 'short_name'='Fresnel (salt)', 'description'='CSP power system that uses long small mirrors to line focus sunlight on fixed receiver tubes mounted above them.' } );
if ( en_iscc ) { configopt( 'ISCC', { 'tree_parent'='CSP', 'long_name'='Integrated Solar Combined Cycle', 'short_name'='Tower Salt ISCC', 'description'='A triple pressure NGCC cycle connected to a molten salt power tower solar field/receiver' } ); }
configopt( 'Physical Trough IPH', { 'tree_parent'='CSP', 'long_name'='Parabolic Trough - Heat', 'short_name'='IPH Trough', 'description'='Industrial process heat parabolic trough system using heat transfer and thermodynamic component models' } );
configopt( 'ETES', { 'tree_parent'='BATT', 'long_name'='ETES', 'short_name'='ETES', 'description'='Electric thermal energy storage' } );
configopt( 'DSGL IPH', { 'tree_parent'='CSP', 'long_name'='Linear Fresnel Direct Steam - Heat', 'short_name'='IPH Linear (steam)','description'='Industrial process heat linear collector system' } );
configopt( 'MEwave', { 'tree_parent'='ME', 'long_name'='Wave', 'short_name'='Marine Wave', 'description'='Marine energy wave system' });
configopt( 'MEtidal', { 'tree_parent'='ME', 'long_name'='Tidal', 'short_name'='Marine Tidal', 'description'='Marine energy tidal system' });
configopt( 'Retired', { 'tree_parent'='Retired', 'long_name'= 'Retired technology', 'short_name' = 'Retired', 'description'= 'Retired technologies' });
// tree_parent for financial models defined in UpdateFinTree() in main.cpp
configopt( 'LCOE Calculator', { 'long_name'='LCOE Calculator (FCR Method)', 'short_name'='LCOE Calculator', 'description'='Calculate LCOE using fixed charge rate method' } );
configopt( 'Residential', { 'tree_parent'='DISTRIBUTED', 'long_name'='Residential Owner', 'short_name'='Residential', 'description'='Renewable energy system displaces residential home electric load' } );
configopt( 'Commercial', { 'tree_parent'='DISTRIBUTED','long_name'='Commercial Owner', 'short_name'='Commercial', 'description'='Renewable energy system displaces commercial building electric load' } );
configopt( 'Third Party', { 'tree_parent'='DISTRIBUTED', 'long_name'='Third Party Owner - Host', 'short_name'='TPO Host', 'description'='Third party ownership from host perspective for PPA or lease agreement' } );
configopt( 'Host Developer', { 'tree_parent'='DISTRIBUTED', 'long_name'='Third Party - Host / Developer', 'short_name'='TPO Host-Developer', 'description'='Third party ownershop from host and developer perspective for PPA' } );
configopt( 'Single Owner', { 'tree_parent'='PPA', 'long_name'='Single Owner', 'short_name'='Single owner', 'description'='Single owner PPA with constant DSCR and IRR target year, reserve accounts and depreciation allocations' } );
configopt( 'Leveraged Partnership Flip', { 'tree_parent'='PPA', 'long_name'='Partnership Flip with Debt', 'short_name'='Flip (debt)', 'description'='Developer/investor partnership flip PPA structure with debt' } );
configopt( 'All Equity Partnership Flip', { 'tree_parent'='PPA', 'long_name'='Partnership Flip without Debt', 'short_name'='Flip (no debt)', 'description'='Developer/investor partnership flip PPA structure without debt' } );
configopt( 'Sale Leaseback', { 'tree_parent'='PPA', 'long_name'='Sale Leaseback', 'short_name'='Sale leaseback', 'description'='Sale leaseback partnership PPA structure' } );
configopt( 'Merchant Plant', { 'long_name'='Merchant Plant', 'short_name'='Merchant', 'description'='Merchant plant with constant DSCR and ancillary services revenue, reserve accounts and depreciation allocations' } );
configopt( 'None', { 'long_name'='No Financial Model', 'short_name'='No financial', 'description'='Run the performance model with no financial model' } );
enum { LOAD_SIMPLE, LOAD_BELPE, LOAD_SIMPLE_CRIT, LOAD_BELPE_CRIT, NO_LOAD };
enum { DEGRADATION_AC_SINGLE_YEAR, DEGRADATION_DC_LIFETIME, DEGRADATION_AC_LIFETIME, DEGRADATION_PVSAM };
function setup_elec_load_page( mode ) //i is 1 for technologies that HAVE the building load calculator (for now just PV, CSP, Biopower, and Generic Solar- MUST HAVE SOLAR RESOURCE DATA), 2 for techs without ANY load pages (SWH), and 0 for technologies that don't
{
if (mode == LOAD_BELPE)
{
addpage( [ [{'name' ='Electric Load', 'caption' = 'No Load Data'}], [{'name'='Electric Load Other', 'caption'='Input Time Series Load Data'}], [{'name'='Electric Building Load Calculator', 'caption'='Calculate Load Data'}] ],
{ 'sidebar'='Electric Load', 'exclusive_var'='load_model', 'help'='electric_load' } );
}
elseif( mode == LOAD_SIMPLE )
{
addpage( [ [{'name' ='Electric Load', 'caption' = 'No Load Data'}], [{'name'='Electric Load Other', 'caption'='Input Time Series Load Data'}] ],
{ 'sidebar'='Electric Load', 'exclusive_var'='load_model', 'help'='electric_load' } );
}
elseif( mode == LOAD_BELPE_CRIT )
{
addpage( [ [{'name' ='Electric Load', 'caption' = 'No Load Data'}], [{'name'='Electric Load Crit', 'caption'='Input Time Series Load Data'},
{'name'='Electric Load Critical', 'caption'='Critical Loads', 'collapsible'=true, 'collapsible_var'='crit_load_is_shown'}], [{'name'='Electric Building Load Calculator', 'caption'='Calculate Load Data'}] ],
{ 'sidebar'='Electric Load', 'exclusive_var'='load_model', 'help'='electric_load' } );
}
elseif ( mode == LOAD_SIMPLE_CRIT )
{
addpage( [ [{'name' ='Electric Load', 'caption' = 'No Load Data'}], [{'name'='Electric Load Crit', 'caption'='Input Time Series Load Data'},
{'name'='Electric Load Critical', 'caption'='Critical Loads', 'collapsible'=true, 'collapsible_var'='crit_load_is_shown'}] ],
{ 'sidebar'='Electric Load', 'exclusive_var'='load_model', 'help'='electric_load' } );
}
else return;
}
function setup_pages_battery_cell_and_system(is_reopt)
{
if ( is_reopt )
{
addpage([['Battery Model',
'Battery REopt Optimization',
'Battery Bank Sizing',
'Battery Current and Capacity',
'Battery Configuration',
{'name'='Battery Voltage', 'caption'='Battery Voltage', 'collapsible'=true, 'collapsible_var'='battery_voltage_shown'},
{'name'='Battery Ancillary Losses', 'caption'='Battery Losses', 'collapsible'=true, 'collapsible_var'='battery_losses_shown'},
{'name'='Battery Thermal', 'caption'='Battery Thermal', 'collapsible'=true, 'collapsible_var'='battery_thermal_shown'},
]], { 'sidebar'='Battery Cell and System', 'help'='battery_storage_btm' } );
}
else
{
addpage([['Battery Model',
'Battery Bank Sizing',
'Battery Current and Capacity',
'Battery Configuration',
{'name'='Battery Voltage', 'caption'='Battery Voltage', 'collapsible'=true, 'collapsible_var'='battery_voltage_shown'},
{'name'='Battery Ancillary Losses', 'caption'='Battery Losses', 'collapsible'=true, 'collapsible_var'='battery_losses_shown'},
{'name'='Battery Thermal', 'caption'='Battery Thermal', 'collapsible'=true, 'collapsible_var'='battery_thermal_shown'},
]], { 'sidebar'='Battery Cell and System', 'help'='battery_storage_btm' } );
}
}
function setup_pages_battery_life()
{
addpage([ [{'name'='Battery Life Cycle Calendar', 'caption'='Calendar and Cycle Degradation'}],
[{'name'='Battery Life Empty 1','caption'='Li-on NMC/Graphite Degradation'}],
[{'name'='Battery Life Empty 2','caption'='Li-ion LMO/LTO Degradation'}]],
{'sidebar'='Battery Life',
'help'='battery_life' ,
'exclusive_var' = 'batt_life_excl',
'exclusive_header_pages' = ['Battery Replacements','Battery Life Options' ], 'exclusive_tabs' = true, 'exclusive_hide' = true } );
}
function setup_pages_battery_dispatch_btm()
{
addpage( [[ {'name'='Battery Dispatch Peak Shaving BTM', 'caption'='Peak Shaving'} ],
[ {'name'='Battery Dispatch Grid Power Targets', 'caption'='Grid Power Targets'} ],
[ {'name'='Battery Dispatch Battery Power Targets', 'caption'='Battery Power Targets'}],
[ {'name'='Battery Dispatch Manual', 'caption'='Manual'}],
[ {'name'='Battery Dispatch Price Signal', 'caption'='Price Signal'} ]],
{ 'sidebar'='Battery Dispatch', 'help'='battery_dispatch_btm',
'exclusive_var' = 'batt_dispatch_excl',
'exclusive_header_pages' = ['Battery Dispatch Common', 'Battery Dispatch BTM Outage SOC', 'Battery Dispatch Options BTM'], 'exclusive_tabs'=true, 'exclusive_hide'=true } );
}
function setup_pages_battery_dispatch_fom()
{
addpage( [
[ {'name'='Battery Dispatch Automated FOM', 'caption'='Automated'} ],
[{'name'='Battery Dispatch PV Smoothing', 'caption'='PV Smoothing'}],
[{'name'='Battery Dispatch Custom Time Series', 'caption'='Custom Time Series'} ],
[{'name'='Battery Dispatch Manual', 'caption'='Manual'}],
],
{ 'sidebar'='Battery Dispatch', 'help'='battery_dispatch_fom', 'exclusive_var' = 'batt_dispatch_excl',
'exclusive_header_pages' = ['Battery Dispatch Common', 'Battery Dispatch Options FOM'], 'exclusive_tabs'=true, 'exclusive_hide'=true} );
}
function setup_pvwatts_battery_pages_behind_the_meter()
{
addpage( [[ 'Solar Resource Data' ]], { 'sidebar'='Location and Resource', 'help'='pv_location_and_resource' } );
addpage( [[ 'PVWatts',
{'name'='PVWatts Land Area', 'caption' = 'Land Area', 'collapsible'=true, 'collapsible_var'='pvwatts_land_area_is_shown'},
{'name'='PVWatts Advanced Inputs', 'caption' = 'Advanced Inputs', 'collapsible'=true, 'collapsible_var'='pvwatts.advanced.is_shown'},
'Battery Model Simple with REopt' ]],
{ 'sidebar'='System Design', 'help'='pvwatts_system_design' } );
setup_grid_page_with_outage();
}
function setup_pvwatts_pages()
{
addpage( [[ 'Solar Resource Data' ]], { 'sidebar'='Location and Resource', 'help'='pv_location_and_resource' } );
addpage( [[ 'PVWatts',
{'name'='PVWatts Land Area', 'caption' = 'Land Area', 'collapsible'=true, 'collapsible_var'='pvwatts_land_area_is_shown'},
{'name'='PVWatts Advanced Inputs', 'caption' = 'Advanced Inputs', 'collapsible'=true, 'collapsible_var'='pvwatts.advanced.is_shown'} ]],
{ 'sidebar'='System Design', 'help'='pvwatts_system_design' } );
setup_grid_page();
}
function setup_flat_plate_pv_pages()
{
//addpage( [ ['AA Widgets'] ], { 'sidebar'='Widgets' } ); // use for widget testing
addpage( [[ 'Solar Resource Data', {'name'='PV Albedo and Radiation', 'caption' = 'Albedo - Sky Diffuse Model - Irradiance Data (Advanced)', 'collapsible'=true, 'collapsible_var'='pv.radmode.is_shown'} ]], { 'sidebar'='Location and Resource', 'help'='pv_location_and_resource' } );
addpage( [ ['Simple Efficiency Module Model'],
['CEC Performance Model with Module Database'],
['CEC Performance Model with User Entered Specifications'],
['Sandia PV Array Performance Model with Module Database'],
['IEC61853 Single Diode Model'] ],
{ 'sidebar'='Module', 'help'='pv_module', 'exclusive_var'='module_model' } );
addpage( [ ['Inverter CEC Database', 'Inverter Temp Derate CEC DB'],
['Inverter Datasheet', 'Inverter Temp Derate DS'],
['Inverter Part Load Curve', 'Inverter Temp Derate PLC'],
['Inverter CEC Coefficient Generator', 'Inverter Temp Derate CEC CG'] ],
{ 'sidebar'='Inverter', 'help'='pv_inverter', 'exclusive_var'='inverter_model' } );
// Battery Enable form stores hidden en_batt variable required by some UI forms to determine if there is a battery
addpage( [ ['PV System Design', {'name'='PV Subarray Voltage Mismatch', 'collapsible'=true, 'collapsible_var' = 'mismatch_shown'}, 'Battery Enable'] ], { 'sidebar'='System Design', 'help'='pv_system_design' } );
addpage( [ ['PV Shading'] ], { 'sidebar'='Shading and Layout', 'help'='pv_shading' } );
addpage( [ ['PV Losses'] ], { 'sidebar'='Losses', 'help'='pv_losses' } );
setup_grid_page();
}
function setup_lifetime_page( degradation_mode )
{
sidebar_name = 'Lifetime and Degradation';
help_name = 'lifetime';
// annual DC degradation over analysis period, 'dc_degradation' requires 'system_use_lifetime = 1'
// PVWatts, PVWatts Battery, Fuel Cell
if ( degradation_mode == DEGRADATION_DC_LIFETIME )
{
addpage( [ [ 'Degradation DC Lifetime' ] ], { 'sidebar'=sidebar_name,'help'=help_name } );
}
// annual AC degradation over analysis period, 'generic_degradation' requires 'system_use_lifetime = 1'
// Generic Battery
elseif ( degradation_mode == DEGRADATION_AC_LIFETIME )
{
addpage( [ [ 'Degradation AC Lifetime'] ], { 'sidebar'=sidebar_name,'help'=help_name } );
}
// annual DC degradation over analysis period with daily AC / DC losses over lifetime
// 'dc_degradation' requires 'system_use_lifetime = 1'
// Flat Plate PV, PV Battery
elseif ( degradation_mode == DEGRADATION_PVSAM )
{
addpage( [ [ 'Degradation DC Lifetime', 'Degradation AC DC Lifetime Daily', 'Degradation Lifetime Variables'], ],
{ 'sidebar'=sidebar_name,'help'=help_name } );
}
// annual AC degradation over one year, 'degradation' requires 'system_use_lifetime = 0'
// everything else.
else // DEGRADATION_AC_SINGLE_YEAR
{
addpage( [ [ 'Degradation AC Single Year'] ], { 'sidebar'=sidebar_name,'help'=help_name } );
}
}
//// Financial input pages /////////////////////////////////////////////////////
function setup_residential_pages( mode ) // mode determines whether or not the building load calculator is included (see function:setup_elec_load_page)
{
setting( { 'analysis_period_var'='cf_length' } );
addpage( [[ 'Financial Debt Residential',
'Financial Analysis Parameters',
'Financial Tax and Insurance Rates',
'Financial Salvage Value' ]],
{ 'sidebar'='Financial Parameters', 'help'='fin_residential'} );
addpage( [[ 'Financial DSIRE Download',
{ 'name'='Financial Tax Credits','caption'='Tax Credits','collapsible'=true,'collapsible_var'='show_tax_credits', 'collapsed_by_default'=false },
{ 'name'='Financial Cash Incentives','caption'='Direct Cash Incentives','collapsible'=true,'collapsible_var'='show_cash_incentives', 'collapsed_by_default'=false } ]],
{ 'sidebar'='Incentives','help'='incentives' } );
setup_utility_rate();
setup_elec_load_page( mode );
}
function setup_thirdparty_pages( load ) // Third party host
{
setting( { 'analysis_period_var'='cf_length' } );
addpage( [[ 'Financial Third Party Ownership']],
{ 'sidebar'='Financial Parameters', 'help'='fin_tpo_host'} );
setup_utility_rate();
setup_elec_load_page( load ); // BELPE IS VALID FOR BOTH PVWATTS AND PV DETAILED, but not generic system
}
function setup_host_developer_pages(mode) // third party host-developer
{
setting( { 'analysis_period_var'='cf_length' } );
addpage( [[ 'Financial Solution Mode Single Owner',
'Financial Analysis Host Developer Parameters',
'Financial Tax and Insurance Rates',
'Financial Salvage Value',
{'name'='Financial Debt DSCR or Debt Fraction','caption'='Project Term Debt','collapsible'=true,'collapsible_var'='show_DebtConstDSCR'},
{'name'='Financial Cost of Financing Single Owner', 'caption'='Cost of Acquiring Financing','collapsible'=true,'collapsible_var'='show_CapitalCostSO'},
{'name'='Financial Construction Financing','caption'='Construction Financing','collapsible'=true,'collapsible_var'='show_construction_period', 'collapsed_by_default'=false},
{'name'='Financial Reserve Accounts', 'caption'='Reserve Accounts','collapsible'=true,'collapsible_var'='show_ReserveAccounts'},
{'name'='Financial Return on Equity', 'caption'='Return on Equity','collapsible'=true,'collapsible_var'='show_ReturnonEquity', 'collapsed_by_default'=true} ]],
{ 'sidebar'='Financial Parameters', 'help'='fin_tpo_host_developer' } );
addpage( [[ 'Financial TOD Factors' ]], { 'sidebar'='Time of Delivery Factors', 'help'='tod_factors' });
addpage( [[ 'Financial Tax Credits','Financial Cash Incentives']],
{ 'sidebar'='Incentives', 'help'='incentives' } );
addpage( [['Financial Depreciation Detailed' ]],
{ 'sidebar'='Depreciation', 'help'='depreciation' });
setup_utility_rate();
setup_elec_load_page( mode );
}
function setup_lcoefcr_pages() // LCOE calculator will not work with tower models because cost inputs required for solar pilot
{
addpage( [[ 'Financial LCOE Calculator']],
{ 'sidebar'='Financial Parameters', 'help'='fin_lcoefcr'} );
}
function setup_iph_lcoefcr_pages() // LCOE calculator will not work with tower models because cost inputs required for solar pilot
{
addpage( [[ 'Financial LCOE Calc IPH Add',
'Financial LCOE Calculator']],
{ 'sidebar'='Financial Parameters', 'help'='fin_lcoefcr'} );
}
function setup_commercial_pages( mode ) // mode determines whether or not the building load calculator is included (see function:setup_elec_load_page)
{
setting( { 'analysis_period_var'='cf_length' } );
addpage( [[ 'Financial Debt Min DSCR',
'Financial Analysis Parameters',
'Financial Tax and Insurance Rates',
'Financial Salvage Value',
'Financial Depreciation Simple', ]],
{ 'sidebar'='Financial Parameters','help'='fin_commercial'} );
addpage( [[ 'Financial DSIRE Download',
{ 'name'='Financial Tax Credits','caption'='Tax Credits','collapsible'=true,'collapsible_var'='show_tax_credits', 'collapsed_by_default'=false },
{ 'name'='Financial Cash Incentives','caption'='Direct Cash Incentives','collapsible'=true,'collapsible_var'='show_cash_incentives', 'collapsed_by_default'=false } ]],
{ 'sidebar'='Incentives', 'help'='incentives' } );
setup_utility_rate();
setup_elec_load_page( mode );
}
function setup_grid_page()
{
addpage( [[ 'Grid Interconnection', 'Grid Curtailment']],
{ 'sidebar'='Grid', 'help'='grid_limits' } );
}
function setup_grid_page_with_outage()
{
addpage( [[ 'Grid Interconnection', 'Grid Curtailment', 'Grid Outage']],
{ 'sidebar'='Grid', 'help'='grid_limits' } );
}
// note 'collapsed by default' does not seem to do anything. To set default behavior, set default value of collapsible_var. For example, to collapse description by default, use Defaults Manager to set ur_desc_is_shown = 0.
function setup_utility_rate()
{
addpage( [[ 'Utility Rate - Flat',
{ 'name'='Utility Rate - Description', 'caption'='Description and Applicability', 'collapsible'=true, 'collapsible_var'='ur_desc_is_shown', 'collapsed_by_default'=true },
{ 'name'='Utility Rate - Energy Charge', 'caption'='Energy Charges', 'collapsible'=true, 'collapsible_var'='ur_ec_is_shown', 'collapsed_by_default'=false },
{ 'name'='Utility Rate - Billing Demand for Energy Charge', 'caption'='Billing Demand for Energy Charges', 'collapsible'=true, 'collapsible_var'='ur_ec_billing_demand_is_shown', 'collapsed_by_default'=true },
{ 'name'='Utility Rate - Demand Charge', 'caption'='Demand Charges', 'collapsible'=true, 'collapsible_var'='ur_dc_is_shown', 'collapsed_by_default'=false },
{ 'name'='Utility Rate - Unused', 'caption'='Unused Items', 'collapsible'=true, 'collapsible_var'='ur_unused_is_shown', 'collapsed_by_default'=true },]],
{ 'sidebar'='Electricity Rates', 'help'='electricity_rates' } );
}
// 'en_electricity_rates' is only an input available for single owner configurations
function setup_electricity_purchases()
{
addpage( [[{'name'='Utility Rate - Enable','caption'='Use PPA Price'}],
[{'name'='Utility Rate - Flat', 'caption'='Use Retail Rates'},
{ 'name'='Utility Rate - Description', 'caption'='Description and Applicability', 'collapsible'=true, 'collapsible_var'='ur_desc_is_shown', 'collapsed_by_default'=true },
{ 'name'='Utility Rate - Energy Charge', 'caption'='Energy Charges', 'collapsible'=true, 'collapsible_var'='ur_ec_is_shown', 'collapsed_by_default'=false },
{ 'name'='Utility Rate - Billing Demand for Energy Charge', 'caption'='Billing Demand for Energy Charges', 'collapsible'=true, 'collapsible_var'='ur_ec_billing_demand_is_shown', 'collapsed_by_default'=true },
{ 'name'='Utility Rate - Demand Charge', 'caption'='Demand Charges', 'collapsible'=true, 'collapsible_var'='ur_dc_is_shown', 'collapsed_by_default'=false},
{ 'name'='Utility Rate - Unused', 'caption'='Unused Items', 'collapsible'=true, 'collapsible_var'='ur_unused_is_shown', 'collapsed_by_default'=true },]],
{ 'sidebar'='Electricity Purchases', 'help'='electricity_purchases', 'exclusive_var'='en_electricity_rates' } );
}
function setup_single_owner_pages()
{
setting( { 'analysis_period_var'='cf_length' } );
addpage( [[ 'Financial Analysis Parameters',
'Financial Tax and Insurance Rates',
'Financial Salvage Value',
{'name'='Financial Debt DSCR or Debt Fraction','caption'='Project Term Debt','collapsible'=true,'collapsible_var'='show_DebtConstDSCR'},
{'name'='Financial Cost of Financing Single Owner', 'caption'='Cost of Acquiring Financing','collapsible'=true,'collapsible_var'='show_CapitalCostSO'},
{'name'='Financial Construction Financing','caption'='Construction Financing','collapsible'=true,'collapsible_var'='show_construction_period', 'collapsed_by_default'=false},
{'name'='Financial Reserve Accounts', 'caption'='Reserve Accounts','collapsible'=true,'collapsible_var'='show_ReserveAccounts'},
{'name'='Financial Return on Equity', 'caption'='Return on Equity','collapsible'=true,'collapsible_var'='show_ReturnonEquity', 'collapsed_by_default'=true} ]],
{ 'sidebar'='Financial Parameters', 'help'='fin_single_owner' } );
addpage( [[ 'Financial Solution Mode Single Owner',
{ 'name'='Financial TOD Factors', 'caption'='Time of Delivery', 'collapsible'=true, 'collapsible_var'='revenue_TOD_is_shown', 'collapsed_by_default'=true },
{ 'name'='Financial Capacity Payments', 'caption'='Capacity Payments', 'collapsible'=true, 'collapsible_var'='revenue_capacity_payments_is_shown', 'collapsed_by_default'=true },
{ 'name'='Financial Curtailment Price', 'caption'='Curtailment Payments', 'collapsible'=true, 'collapsible_var'='revenue_curtailment_is_shown', 'collapsed_by_default'=true } ]],
{ 'sidebar'='Revenue', 'help'='revenue_ppa' } );
addpage( [[ 'Financial Tax Credits','Financial Cash Incentives']],
{ 'sidebar'='Incentives', 'help'='incentives' } );
addpage( [['Financial Depreciation Detailed' ]],
{ 'sidebar'='Depreciation', 'help'='depreciation' });
}
function setup_single_owner_Dispatch_pages()
{
setting( { 'analysis_period_var'='cf_length' } );
addpage( [[ 'Financial Analysis Parameters',
'Financial Tax and Insurance Rates',
'Financial Salvage Value',
{'name'='Financial Debt DSCR or Debt Fraction','caption'='Project Term Debt','collapsible'=true,'collapsible_var'='show_DebtConstDSCR'},
{'name'='Financial Cost of Financing Single Owner', 'caption'='Cost of Acquiring Financing','collapsible'=true,'collapsible_var'='show_CapitalCostSO'},
{'name'='Financial Construction Financing','caption'='Construction Financing','collapsible'=true,'collapsible_var'='show_construction_period', 'collapsed_by_default'=false},
{'name'='Financial Reserve Accounts', 'caption'='Reserve Accounts','collapsible'=true,'collapsible_var'='show_ReserveAccounts'},
{'name'='Financial Return on Equity', 'caption'='Return on Equity','collapsible'=true,'collapsible_var'='show_ReturnonEquity', 'collapsed_by_default'=true} ]],
{ 'sidebar'='Financial Parameters', 'help'='fin_single_owner' } );
addpage( [[ 'Financial Solution Mode Single Owner ETES',
{ 'name'='Financial TOD Factors', 'caption'='Time of Delivery', 'collapsible'=true, 'collapsible_var'='revenue_TOD_is_shown', 'collapsed_by_default'=true },
{ 'name'='Financial Capacity Payments', 'caption'='Capacity Payments', 'collapsible'=true, 'collapsible_var'='revenue_capacity_payments_is_shown', 'collapsed_by_default'=true },
{ 'name'='Financial Curtailment Price', 'caption'='Curtailment Payments', 'collapsible'=true, 'collapsible_var'='revenue_curtailment_is_shown', 'collapsed_by_default'=true } ]],
{ 'sidebar'='Revenue', 'help'='revenue_ppa' } );
addpage( [[ 'Financial Tax Credits','Financial Cash Incentives']],
{ 'sidebar'='Incentives', 'help'='incentives' } );
addpage( [['Financial Depreciation Detailed' ]],
{ 'sidebar'='Depreciation', 'help'='depreciation' });
}
function setup_merchant_plant_pages()
{
setting( { 'analysis_period_var'='cf_length' } );
addpage( [[ 'Financial Analysis Parameters',
'Financial Tax and Insurance Rates',
'Financial Salvage Value',
{'name'='Financial Debt DSCR or Debt Fraction','caption'='Project Term Debt','collapsible'=true,'collapsible_var'='show_DebtConstDSCR'},
{'name'='Financial Cost of Financing Single Owner', 'caption'='Cost of Acquiring Financing','collapsible'=true,'collapsible_var'='show_CapitalCostSO'},
{'name'='Financial Construction Financing','caption'='Construction Financing','collapsible'=true,'collapsible_var'='show_construction_period', 'collapsed_by_default'=false},
{'name'='Financial Reserve Accounts', 'caption'='Reserve Accounts','collapsible'=true,'collapsible_var'='show_ReserveAccounts'},
{'name'='Financial Return on Equity', 'caption'='Return on Equity','collapsible'=true,'collapsible_var'='show_ReturnonEquity', 'collapsed_by_default'=true} ]],
{ 'sidebar'='Financial Parameters', 'help'='fin_merchant_plant' } );
addpage( [[{'name'='Financial Merchant Plant Energy Market Revenue', 'caption'='Energy Market'}],
[{'name'='Financial Merchant Plant Ancillary Service 1', 'caption'='Ancillary Service 1' }],
[{'name'='Financial Merchant Plant Ancillary Service 2', 'caption'='Ancillary Service 2' }],
[{'name'='Financial Merchant Plant Ancillary Service 3', 'caption'='Ancillary Service 3' }],
[{'name'='Financial Merchant Plant Ancillary Service 4', 'caption'='Ancillary Service 4' }]],
{ 'sidebar'='Revenue', 'help'='revenue_merchant_plant', 'exclusive_var'='revenue_tab',
'exclusive_header_pages' = ['Financial Merchant Plant Description','Financial Capacity Payments','Cambium API Data'], 'exclusive_tabs'=true, 'exclusive_hide' = false} );
addpage( [[ 'Financial Tax Credits','Financial Cash Incentives']],
{ 'sidebar'='Incentives', 'help'='incentives' } );
addpage( [['Financial Depreciation Detailed' ]],
{ 'sidebar'='Depreciation', 'help'='depreciation' });
}
function setup_leveraged_partnership_flip_pages()
{
setting( { 'analysis_period_var'='cf_length' } );
addpage( [[ 'Financial Solution Mode Flip Leaseback',
'Financial Equity Flip Structure',
'Financial Analysis Parameters',
'Financial Tax and Insurance Rates',
'Financial Salvage Value',
// {'name'='Financial Debt Constant DSCR','caption'='Project Term Debt','collapsible'=true,'collapsible_var'='show_DebtConstDSCR'},
{'name'='Financial Debt DSCR or Debt Fraction','caption'='Project Term Debt','collapsible'=true,'collapsible_var'='show_DebtConstDSCR'},
{'name'='Financial Cost of Financing Flip Leaseback', 'caption'='Cost of Acquiring Financing','collapsible'=true,'collapsible_var'='show_CapitalCostSO'},
{'name'='Financial Construction Financing','caption'='Construction Financing','collapsible'=true,'collapsible_var'='show_construction_period'},
{'name'='Financial Reserve Accounts', 'caption'='Reserve Accounts','collapsible'=true,'collapsible_var'='show_ReserveAccounts'} ]],
{ 'sidebar'='Financial Parameters', 'help'='fin_leveraged_partnership' } );
addpage( [[ 'Financial TOD Factors' ]], { 'sidebar'='Time of Delivery Factors', 'help'='tod_factors' });
/* addpage( [[ {'name'='Financial TOD Factors', 'caption'='TOD Factors by Schedule'}],
[ {'name'='Financial TOD Factors Timestep', 'caption'='TOD Factors by Time Step' }],],
{ 'sidebar'='Time of Delivery Factors','help'='tod_factors', 'exclusive_var'='ppa_multiplier_model' } );*/
addpage( [[ 'Financial Tax Credits',
'Financial Cash Incentives']],
{ 'sidebar'='Incentives', 'help'='incentives' } );
addpage( [['Financial Depreciation Detailed' ]],
{ 'sidebar'='Depreciation', 'help'='depreciation' });
}
function setup_all_equity_partnership_flip_pages()
{
setting( { 'analysis_period_var'='cf_length' } );
addpage( [[ 'Financial Solution Mode Flip Leaseback',
'Financial Equity Flip Structure',
'Financial Flip Developer Capital Recovery',
'Financial Analysis Parameters',
'Financial Tax and Insurance Rates',
'Financial Salvage Value',
{'name'='Financial Cost of Financing Flip Leaseback', 'caption'='Cost of Acquiring Financing','collapsible'=true,'collapsible_var'='show_CapitalCostSO'},
{'name'='Financial Construction Financing','caption'='Construction Financing','collapsible'=true,'collapsible_var'='show_construction_period'},
{'name'='Financial Reserve Accounts', 'caption'='Reserve Accounts','collapsible'=true,'collapsible_var'='show_ReserveAccounts'} ]],
{ 'sidebar'='Financial Parameters', 'help'='fin_all_equity_partnership' } );
addpage( [[ 'Financial TOD Factors' ]], { 'sidebar'='Time of Delivery Factors', 'help'='tod_factors' });
/* addpage( [[ {'name'='Financial TOD Factors', 'caption'='TOD Factors by Schedule'}],
[ {'name'='Financial TOD Factors Timestep', 'caption'='TOD Factors by Time Step' }],],
{ 'sidebar'='Time of Delivery Factors','help'='tod_factors', 'exclusive_var'='ppa_multiplier_model' } );*/
addpage( [[ 'Financial Tax Credits',
'Financial Cash Incentives']],
{ 'sidebar'='Incentives', 'help'='incentives' } );
addpage( [['Financial Depreciation Detailed' ]],
{ 'sidebar'='Depreciation', 'help'='depreciation' });
}
function setup_sale_leaseback_pages()
{
setting( { 'analysis_period_var'='cf_length' } );
addpage( [[ 'Financial Solution Mode Flip Leaseback',
'Financial Sale Leaseback',
'Financial Analysis Parameters',
'Financial Tax and Insurance Rates',
'Financial Salvage Value',
{'name'='Financial Cost of Financing Flip Leaseback', 'caption'='Cost of Acquiring Financing','collapsible'=true,'collapsible_var'='show_CapitalCostSO'},
{'name'='Financial Construction Financing','caption'='Construction Financing','collapsible'=true,'collapsible_var'='show_construction_period'},
{'name'='Financial Reserve Accounts', 'caption'='Reserve Accounts','collapsible'=true,'collapsible_var'='show_ReserveAccounts'} ]],
{ 'sidebar'='Financial Parameters', 'help'='fin_sale_leaseback' } );
addpage( [[ 'Financial TOD Factors' ]], { 'sidebar'='Time of Delivery Factors', 'help'='tod_factors' });
/* addpage( [[ {'name'='Financial TOD Factors', 'caption'='TOD Factors by Schedule'}],
[ {'name'='Financial TOD Factors Timestep', 'caption'='TOD Factors by Time Step' }],],
{ 'sidebar'='Time of Delivery Factors','help'='tod_factors', 'exclusive_var'='ppa_multiplier_model' } );*/
addpage( [[ 'Financial Tax Credits',
'Financial Cash Incentives']],
{ 'sidebar'='Incentives', 'help'='incentives' } );
addpage ( [['Financial Depreciation Detailed' ]],
{ 'sidebar'='Depreciation', 'help'='depreciation' });
}
function setup_windpower_pages()
{
addpage( [[ 'Wind Resource File'],
[ 'Wind Speed Weibull Distribution'],
[ 'Wind Resource Probability Table']],
{ 'sidebar'='Wind Resource', 'exclusive_var'='wind_resource_model_choice', 'help'='wind_resource' } );
//addpage( [[ 'Wind Siting Considerations' ]], { 'sidebar'='Siting Considerations' } );
addpage( [[ 'Wind Turbine Design' ]], { 'sidebar'='Wind Turbine', 'help'='wind_turbine' } );
addpage( [[ 'Wind Farm Specifications' ]], { 'sidebar'='Wind Farm', 'help'='wind_farm' } );
addpage( [[ 'Wind Losses' ]], { 'sidebar'='Losses', 'help'='wind_losses'} );
addpage( [ [{ 'name'='Wind Uncertainty None','caption'='No Uncertainty Model'}],
[{ 'name'='Wind Uncertainty','caption'='Enable Uncertainty Model' }] ],
{ 'sidebar'='Uncertainties','help'='wind_uncertainties', 'exclusive_var' = 'en_wind_uncertainty'} );
setup_grid_page();
}
function setup_solar_water_heating_pages()
{
addpage( [[ 'Solar Resource Data' ]], { 'sidebar'='Location and Resource' , 'help'='shw_location_and_resource' });
addpage( [[ 'Solar Water Heating' ]], { 'sidebar'='Solar Water Heating', 'help'='shw_system' } );
}
function setup_fuel_cell_pages_btm()
{
addpage([ [{'name'='Battery None','caption'='No Battery'}],
[{'name'='Battery Model', 'caption'='Enable Battery'},
'Battery Bank Sizing',
'Battery Current and Capacity',
'Battery Configuration',
'Battery Dispatch Common',
'Battery Dispatch BTM Outage SOC',
'Battery Life Options',
'Battery Life Cycle Calendar',
{'name'='Battery Replacements', 'caption'='Battery Replacements', 'collapsible'=true, 'collapsible_var'='battery_replacements_shown'},
{'name'='Battery Voltage', 'caption'='Battery Voltage', 'collapsible'=true, 'collapsible_var'='battery_voltage_shown'},
{'name'='Battery Ancillary Losses', 'caption'='Battery Losses', 'collapsible'=true, 'collapsible_var'='battery_losses_shown'},
{'name'='Battery Thermal', 'caption'='Battery Thermal', 'collapsible'=true, 'collapsible_var'='battery_thermal_shown'}
]],
{ 'sidebar'='Battery Storage', 'help'='battery_model', 'exclusive_var'='en_batt'} );
addpage([['Fuel Cell']], {'sidebar'='Fuel Cell', 'help'='fuelcell_fuel_cell'});
addpage( [[ {'name'='Battery Dispatch Peak Shaving BTM', 'caption'='Peak Shaving'} ], [ {'name'='Battery Dispatch Grid Power Targets', 'caption'='Grid Power Targets'} ],
[{'name'='Battery Dispatch Battery Power Targets', 'caption'='Battery Power Targets'}], ['Battery Dispatch Empty'], [{'name'='Battery Dispatch Price Signal', 'caption'='Price Signal'}]],
{ 'sidebar'='Dispatch', 'help'='fuelcell_dispatch', 'exclusive_var' = 'batt_dispatch_excl',
'exclusive_header_pages' = ['Fuel Cell Dispatch', 'Battery Dispatch Options BTM', 'Fuel Cell Dispatch Manual' ], 'exclusive_tabs'=true, 'exclusive_hide'=true} );
setup_grid_page_with_outage();
}
function setup_fuel_cell_pages_fom()
{
addpage([ [{'name'='Battery None','caption'='No Battery'}],
[{'name'='Battery Model', 'caption'='Enable Battery'},
'Battery Bank Sizing',
'Battery Current and Capacity',
'Battery Configuration',
'Battery Dispatch Common',
'Battery Life Options',
'Battery Life Cycle Calendar',
{'name'='Battery Replacements', 'caption'='Battery Replacements', 'collapsible'=true, 'collapsible_var'='battery_replacements_shown'},
{'name'='Battery Voltage', 'caption'='Battery Voltage', 'collapsible'=true, 'collapsible_var'='battery_voltage_shown'},
{'name'='Battery Ancillary Losses', 'caption'='Battery Losses', 'collapsible'=true, 'collapsible_var'='battery_losses_shown'},
{'name'='Battery Thermal', 'caption'='Battery Thermal', 'collapsible'=true, 'collapsible_var'='battery_thermal_shown'}
]],
{ 'sidebar'='Battery Storage', 'help'='battery_model', 'exclusive_var'='en_batt'} );
addpage([['Fuel Cell']], {'sidebar'='Fuel Cell', 'help'='fuelcell_fuel_cell'});
addpage( [[ {'name'='Battery Dispatch Automated FOM', 'caption'='Automated'} ], [ {'name'='Battery Dispatch Custom Time Series', 'caption'='Custom Time Series'} ],
[{'name'='Fuel Cell Dispatch Manual', 'caption'='Manual'}],
[{'name'='Battery Dispatch PV Smoothing', 'caption'='PV Smoothing'}]],
{ 'sidebar'='Dispatch', 'help'='fuelcell_dispatch', 'exclusive_var' = 'batt_dispatch_excl',
'exclusive_header_pages' = ['Fuel Cell Dispatch', 'Battery Dispatch Options FOM'], 'exclusive_tabs'=true, 'exclusive_hide'=true} );
setup_grid_page();
}
function setup_etes_pages()
{
addpage( [['Solar Resource Data']], { 'sidebar'='Location and Resource', 'help'='trough_location_and_resource' } );
addpage( [['ETES System Design']], { 'sidebar'='System Design' } );
addpage( [['ETES Heater']], {'sidebar'='Heater' } );
addpage( [[ 'Rankine Cycle Air or Evaporative Cooling' ], [ 'User Defined Power Cycle' ]],
{ 'sidebar'='Power Cycle', 'help'='mspt_power_cycle', 'exclusive_var' = 'pc_config',
'exclusive_header_pages' = ['ETES Power Block Common']} );
addpage( [[ 'TES Direct Two Tank' ]], { 'sidebar'='Thermal Storage', 'help'='mspt_thermal_storage' } );
addpage( [[ 'ETES System Control' ]], { 'sidebar'='System Control', 'help'='mspt_system_control'});
}
function setup_csp_physical_trough_pages()
{
addpage( [[ 'Solar Resource Data' ]], { 'sidebar'='Location and Resource', 'help'='trough_location_and_resource' } );
addpage( [[ 'Physical Trough System Design' ]], { 'sidebar'='System Design', 'help'='troughphysical_system_design' } );
addpage( [[ 'Physical Trough Solar Field' ]], { 'sidebar'='Solar Field', 'help'='troughphysical_solar_field' } );
addpage( [[ 'Physical Trough Collector Header',
{'name'='Physical Trough Collector Type 1', 'caption'='Collector Type 1', 'collapsible'=false, 'collapsible_var'='sca_1_is_shown'},
{'name'='Physical Trough Collector Type 2', 'caption'='Collector Type 2', 'collapsible'=true, 'collapsible_var'='sca_2_is_shown'},
{'name'='Physical Trough Collector Type 3', 'caption'='Collector Type 3', 'collapsible'=true, 'collapsible_var'='sca_3_is_shown'},
{'name'='Physical Trough Collector Type 4', 'caption'='Collector Type 4', 'collapsible'=true, 'collapsible_var'='sca_4_is_shown'} ]],
{ 'sidebar'='Collectors (SCAs)', 'help'='troughphysical_collectors_scas' } );
addpage( [[ 'Physical Trough Receiver Header',
{'name'='Physical Trough Receiver Type 1', 'caption'='Receiver Type 1', 'collapsible'=false, 'collapsible_var'='hce_1_is_shown'},
{'name'='Physical Trough Receiver Type 2', 'caption'='Receiver Type 2', 'collapsible'=true, 'collapsible_var'='hce_2_is_shown'},
{'name'='Physical Trough Receiver Type 3', 'caption'='Receiver Type 3', 'collapsible'=true, 'collapsible_var'='hce_3_is_shown'},
{'name'='Physical Trough Receiver Type 4', 'caption'='Receiver Type 4', 'collapsible'=true, 'collapsible_var'='hce_4_is_shown'} ]],
{ 'sidebar'='Receivers (HCEs)', 'help'='troughphysical_receivers_hces' } );
addpage( [[ 'Rankine Cycle' ], [ 'User Defined Power Cycle' ]],
{ 'sidebar'='Power Cycle', 'help'='troughphysical_power_cycle', 'exclusive_var' = 'pc_config',
'exclusive_header_pages' = ['Physical Trough Power Cycle Common']} );
//addpage( [[ 'Physical Trough Power Block Common' ,
//{'name' = 'Physical Trough Rankine Cycle', 'caption' = 'Rankine Cycle', 'collapsible'=false, 'collapsible_var'='csp_dispatch_is_shown'} ]],
//{ 'sidebar'='Power Cycle', 'help'='troughphysical_power_cycle' } );
//addpage( [[ 'Physical Trough Power Block' ]], { 'sidebar'='Power Cycle', 'help'='troughphysical_power_cycle' } );
addpage( [[ 'Physical Trough Thermal Storage' ]], { 'sidebar'='Thermal Storage', 'help'='troughphysical_thermal_storage' } );
addpage( [[ 'Physical Trough System Control' ,
{'name' = 'Physical Trough Dispatch Control', 'caption'='Dispatch Control', 'collapsible'=false, 'collapsible_var'='csp_dispatch_is_shown'} ]],
{ 'sidebar'='System Control', 'help'='troughphysical_system_control' } );
setup_grid_page();
}
function setup_cst_physical_trough_pages()
{
addpage( [[ 'Solar Resource Data' ]], { 'sidebar'='Location and Resource', 'help'='iph_trough-location_resource' } );
addpage( [[ 'Phys Trough System Design' ]], { 'sidebar'='System Design', 'help'='iph_trough-system_design' } );
addpage( [[ 'Physical Trough Solar Field' ]], { 'sidebar'='Solar Field', 'help'='iph_trough-solar_field' } );
addpage( [[ 'Physical Trough Collector Header',
{'name'='Physical Trough Collector Type 1', 'caption'='Collector Type 1', 'collapsible'=false, 'collapsible_var'='sca_1_is_shown'},
{'name'='Physical Trough Collector Type 2', 'caption'='Collector Type 2', 'collapsible'=true, 'collapsible_var'='sca_2_is_shown'},
{'name'='Physical Trough Collector Type 3', 'caption'='Collector Type 3', 'collapsible'=true, 'collapsible_var'='sca_3_is_shown'},
{'name'='Physical Trough Collector Type 4', 'caption'='Collector Type 4', 'collapsible'=true, 'collapsible_var'='sca_4_is_shown'} ]],
{ 'sidebar'='Collectors (SCAs)', 'help'='iph_trough-collectors' } );
addpage( [[ 'Physical Trough Receiver Header',
{'name'='Physical Trough Receiver Type 1', 'caption'='Receiver Type 1', 'collapsible'=false, 'collapsible_var'='hce_1_is_shown'},
{'name'='Physical Trough Receiver Type 2', 'caption'='Receiver Type 2', 'collapsible'=true, 'collapsible_var'='hce_2_is_shown'},
{'name'='Physical Trough Receiver Type 3', 'caption'='Receiver Type 3', 'collapsible'=true, 'collapsible_var'='hce_3_is_shown'},
{'name'='Physical Trough Receiver Type 4', 'caption'='Receiver Type 4', 'collapsible'=true, 'collapsible_var'='hce_4_is_shown'} ]],
{ 'sidebar'='Receivers (HCEs)', 'help'='iph_trough-receivers' } );
addpage( [[ 'Phys Trough Direct Storage' ]], { 'sidebar'='Thermal Storage', 'help'='iph_trough-tes' } );
addpage( [[ 'Phys Trough System Control' ,
{'name' = 'Phys Trough Dispatch Control', 'caption'='Dispatch Control', 'collapsible'=false, 'collapsible_var'='csp_dispatch_is_shown'} ]],
{ 'sidebar'='System Control', 'help'='iph_trough-system_control' } );
}
function setup_csp_empirical_trough_pages()
{
addpage( [[ 'Solar Resource Data' ]], { 'sidebar'='Location and Resource', 'help'='trough_location_and_resource' } );
addpage( [[ 'Empirical Trough Solar Field' ]], { 'sidebar'='Solar Field', 'help'='troughempirical_solar_field' } );
addpage( [[ 'Empirical Trough SCA' ]], { 'sidebar'='Collectors (SCAs)', 'help'='troughempirical_collectors_scas' } );
addpage( [[ 'Empirical Trough HCE' ]], { 'sidebar'='Receivers (HCEs)', 'help'='troughempirical_receivers_hces' } );
addpage( [[ 'Empirical Trough Power Block' ]], { 'sidebar'='Power Block', 'help'='troughempirical_power_block' } );
addpage( [[ 'Empirical Trough Thermal Storage',
{'name' = 'CSP Dispatch Control', 'caption'='Dispatch Control', 'collapsible'=false, 'collapsible_var'='csp_dispatch_is_shown'} ]],
{ 'sidebar'='Thermal Storage', 'help'='troughempirical_thermal_storage' } );
addpage( [[ 'Empirical Trough Parasitics' ]], { 'sidebar'='Parasitics', 'help'='troughempirical_parasitics' } );
setup_grid_page();
}
function setup_geothermal_power_pages()
{
addpage( [[ 'Solar Resource Data' ]], { 'sidebar'='Ambient Conditions', 'help'='geo_ambient_conditions' } );
addpage( [[ 'Geothermal Resource' ]], { 'sidebar'='Geothermal Resource', 'help'='geo_geothermal_resource' } );
addpage( [[ 'Geothermal Plant and Equipment' ]], { 'sidebar'='Plant and Equipment', 'help'='geo_plant_equipment' } );
addpage( [[ 'Geothermal Power Block' ]], { 'sidebar'='Power Block', 'help'='geo_power_block' } );
setup_grid_page();
}
////////////////////////////////////////////////////////////////////////////////
// now set up all the pages ////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
// CSP - Empirical Trough ///////////////////////////////////////////////////////
setconfig( 'Empirical Trough', 'LCOE Calculator' );
setmodules( ['tcstrough_empirical', 'lcoefcr']);
setup_csp_empirical_trough_pages();
setup_lcoefcr_pages();
setconfig( 'Empirical Trough', 'None' );
setmodules( ['tcstrough_empirical']);
setup_csp_empirical_trough_pages();
setconfig( 'Empirical Trough', 'Commercial' );
setmodules( ['tcstrough_empirical', 'utilityrate5', 'cashloan']);
setup_csp_empirical_trough_pages();
setup_lifetime_page(DEGRADATION_AC_SINGLE_YEAR);
addpage( [[ 'Empirical Trough Capital Costs' ]], { 'sidebar'='Installation Costs', 'help'='cc_trough' } );
addpage( [[ 'Operating Costs Fuel' ]], {'sidebar' = 'Operating Costs', 'help'='oc_operating'} );
setup_commercial_pages(LOAD_SIMPLE); //belpe not valid for commercial
setconfig( 'Empirical Trough', 'Single Owner' );
setmodules( ['tcstrough_empirical', 'singleowner']);
setup_csp_empirical_trough_pages();
setup_lifetime_page(DEGRADATION_AC_SINGLE_YEAR);
addpage( [[ 'Empirical Trough Capital Costs' ]], { 'sidebar'='Installation Costs', 'help'='cc_trough' } );
addpage( [[ 'Operating Costs Fuel' ]], {'sidebar' = 'Operating Costs', 'help'='oc_operating'} );
setup_single_owner_pages();
setconfig( 'Empirical Trough', 'Merchant Plant' );
setmodules( ['tcstrough_empirical', 'merchantplant']);
setup_csp_empirical_trough_pages();
setup_lifetime_page(DEGRADATION_AC_SINGLE_YEAR);
addpage( [[ 'Empirical Trough Capital Costs' ]], { 'sidebar'='Installation Costs', 'help'='cc_trough' } );
addpage( [[ 'Operating Costs Fuel' ]], {'sidebar' = 'Operating Costs', 'help'='oc_operating'} );
setup_merchant_plant_pages();
setconfig( 'Empirical Trough', 'Leveraged Partnership Flip' );
setmodules( ['tcstrough_empirical', 'levpartflip']);
setup_csp_empirical_trough_pages();
setup_lifetime_page(DEGRADATION_AC_SINGLE_YEAR);
addpage( [[ 'Empirical Trough Capital Costs' ]], { 'sidebar'='Installation Costs', 'help'='cc_trough' } );
addpage( [[ 'Operating Costs Fuel' ]], {'sidebar' = 'Operating Costs', 'help'='oc_operating'} );
setup_leveraged_partnership_flip_pages();
setconfig( 'Empirical Trough', 'Sale Leaseback' );
setmodules( ['tcstrough_empirical', 'saleleaseback']);
setup_csp_empirical_trough_pages();
setup_lifetime_page(DEGRADATION_AC_SINGLE_YEAR);
addpage( [[ 'Empirical Trough Capital Costs' ]], { 'sidebar'='Installation Costs', 'help'='cc_trough' } );
addpage( [[ 'Operating Costs Fuel' ]], {'sidebar' = 'Operating Costs', 'help'='oc_operating'} );
setup_sale_leaseback_pages();
setconfig( 'Empirical Trough', 'All Equity Partnership Flip' );
setmodules( ['tcstrough_empirical', 'equpartflip']);
setup_csp_empirical_trough_pages();
setup_lifetime_page(DEGRADATION_AC_SINGLE_YEAR);
addpage( [[ 'Empirical Trough Capital Costs' ]], { 'sidebar'='Installation Costs', 'help'='cc_trough' } );
addpage( [[ 'Operating Costs Fuel' ]], {'sidebar' = 'Operating Costs', 'help'='oc_operating'} );
setup_all_equity_partnership_flip_pages();
// Flat Plate PV ////////////////////////////////////////////////////////////////
setconfig( 'Flat Plate PV', 'LCOE Calculator' );
setup_flat_plate_pv_pages();
setup_lcoefcr_pages();
setmodules( ['pvsamv1', 'grid', 'lcoefcr'] );
setconfig( 'Flat Plate PV', 'None' );
setup_flat_plate_pv_pages();
setmodules( ['pvsamv1', 'grid'] );
setconfig( 'Flat Plate PV', 'Residential' );
setmodules( ['belpe', 'pvsamv1', 'grid', 'utilityrate5', 'cashloan']);
setup_flat_plate_pv_pages();
setup_lifetime_page( DEGRADATION_PVSAM );
addpage( [[ 'PV Capital Costs' ],
[ 'PV Capital Cost Curve', 'PV Capex Table', 'PV Capex Table AC', 'PV Capex Table Land' ]],
{ 'sidebar'='Installation Costs', 'exclusive_var'='pv_capex_cost_choice','help'='cc_pv'} );
addpage( [[ 'Operating Costs' ]], {'sidebar' = 'Operating Costs', 'help'='oc_operating'} );
setup_residential_pages( LOAD_BELPE ); //includes building load calculator
setconfig( 'Flat Plate PV', 'Third Party' );
setmodules( ['belpe', 'pvsamv1', 'grid', 'utilityrate5', 'thirdpartyownership']);
setup_flat_plate_pv_pages();
setup_lifetime_page( DEGRADATION_PVSAM );
setup_thirdparty_pages( LOAD_BELPE ); //includes building load calculator by default in this function
setconfig( 'Flat Plate PV', 'Host Developer' );
setmodules( ['pvsamv1', 'grid', 'utilityrate5', 'host_developer']);
setup_flat_plate_pv_pages();
setup_lifetime_page( DEGRADATION_PVSAM );
addpage( [[ 'PV Capital Costs' ],
[ 'PV Capital Cost Curve', 'PV Capex Table', 'PV Capex Table AC', 'PV Capex Table Land']],
{ 'sidebar'='Installation Costs', 'exclusive_var'='pv_capex_cost_choice','help'='cc_pv' } );
addpage( [[ 'Operating Costs' ]], {'sidebar' = 'Operating Costs', 'help'='oc_operating'} );
setup_host_developer_pages( LOAD_SIMPLE );
setconfig( 'Flat Plate PV', 'Commercial' );
setmodules( ['pvsamv1', 'grid', 'utilityrate5', 'cashloan']);
setup_flat_plate_pv_pages();
setup_lifetime_page( DEGRADATION_PVSAM );
addpage( [[ 'PV Capital Costs' ],
[ 'PV Capital Cost Curve', 'PV Capex Table', 'PV Capex Table AC', 'PV Capex Table Land']],
{ 'sidebar'='Installation Costs', 'exclusive_var'='pv_capex_cost_choice','help'='cc_pv'} );
addpage( [[ 'Operating Costs' ]], {'sidebar' = 'Operating Costs', 'help'='oc_operating'} );
setup_commercial_pages( LOAD_SIMPLE ); //belpe not valid for commercial
setconfig( 'Flat Plate PV', 'Single Owner' );
// TO DO include utilityrate5 for inverter nighttime consumption? update all PPA and Merchant Plant configs accordingly
//setmodules( ['pvsamv1', 'grid', 'utilityrate5', 'singleowner'] );
setmodules( ['pvsamv1', 'grid', 'singleowner'] );
setup_flat_plate_pv_pages();
setup_lifetime_page( DEGRADATION_PVSAM );
addpage( [[ 'PV Capital Costs' ],
[ 'PV Capital Cost Curve', 'PV Capex Table', 'PV Capex Table AC', 'PV Capex Table Land']],
{ 'sidebar'='Installation Costs', 'exclusive_var'='pv_capex_cost_choice','help'='cc_pv'} );
addpage( [[ 'Operating Costs' ]], {'sidebar' = 'Operating Costs', 'help'='oc_operating'} );
setup_single_owner_pages( );
//addpage( [[ 'Financial Capacity Payments' ]], { 'sidebar'='Ancillary Services', 'help'='ancillary_services' });
// setup_electricity_purchases(); // required if utilityrate5 included in config
setconfig( 'Flat Plate PV', 'Merchant Plant' );
setmodules( ['pvsamv1', 'grid', 'merchantplant']);
setup_flat_plate_pv_pages();
setup_lifetime_page( DEGRADATION_PVSAM );
addpage( [[ 'PV Capital Costs' ],
[ 'PV Capital Cost Curve', 'PV Capex Table', 'PV Capex Table AC', 'PV Capex Table Land']],
{ 'sidebar'='Installation Costs', 'exclusive_var'='pv_capex_cost_choice','help'='cc_pv'} );
addpage( [[ 'Operating Costs' ]], {'sidebar' = 'Operating Costs', 'help'='oc_operating'} );
setup_merchant_plant_pages( );
setconfig( 'Flat Plate PV', 'Leveraged Partnership Flip' );
setmodules( ['pvsamv1', 'grid', 'levpartflip']);
setup_flat_plate_pv_pages();
setup_lifetime_page( DEGRADATION_PVSAM );
addpage( [[ 'PV Capital Costs' ],
[ 'PV Capital Cost Curve', 'PV Capex Table', 'PV Capex Table AC', 'PV Capex Table Land']],
{ 'sidebar'='Installation Costs', 'exclusive_var'='pv_capex_cost_choice','help'='cc_pv'} );
addpage( [[ 'Operating Costs' ]], {'sidebar' = 'Operating Costs', 'help'='oc_operating'} );
setup_leveraged_partnership_flip_pages( );
setconfig( 'Flat Plate PV', 'All Equity Partnership Flip' );
setmodules( ['pvsamv1', 'grid', 'equpartflip']);
setup_flat_plate_pv_pages();
setup_lifetime_page( DEGRADATION_PVSAM );
addpage( [[ 'PV Capital Costs' ],
[ 'PV Capital Cost Curve', 'PV Capex Table', 'PV Capex Table AC', 'PV Capex Table Land']],
{ 'sidebar'='Installation Costs', 'exclusive_var'='pv_capex_cost_choice','help'='cc_pv'} );
addpage( [[ 'Operating Costs' ]], {'sidebar' = 'Operating Costs', 'help'='oc_operating'} );
setup_all_equity_partnership_flip_pages( );
setconfig( 'Flat Plate PV', 'Sale Leaseback' );
setmodules( ['pvsamv1', 'grid', 'saleleaseback']);
setup_flat_plate_pv_pages();
setup_lifetime_page( DEGRADATION_PVSAM );
addpage( [[ 'PV Capital Costs' ],
[ 'PV Capital Cost Curve', 'PV Capex Table', 'PV Capex Table AC', 'PV Capex Table Land']],
{ 'sidebar'='Installation Costs', 'exclusive_var'='pv_capex_cost_choice','help'='cc_pv'} );
addpage( [[ 'Operating Costs' ]], {'sidebar' = 'Operating Costs', 'help'='oc_operating'} );
setup_sale_leaseback_pages( );
// ETES ///////
setconfig('ETES', 'Single Owner');
setmodules( ['etes_electric_resistance', 'singleowner']);
setup_etes_pages();
setup_lifetime_page(DEGRADATION_AC_SINGLE_YEAR);
addpage([['ETES Capital Costs']],{'sidebar'='System Costs','help'='pt_system_costs'});
addpage([['Operating Costs']], {'sidebar' = 'Operating Costs', 'help'='oc_operating'} );
setup_single_owner_Dispatch_pages();
//setconfig('ETES', 'Merchant Plant');
//setmodules( ['etes_electric_resistance', 'merchantplant']);
//setup_etes_pages();
//setup_lifetime_page(DEGRADATION_AC_SINGLE_YEAR);
//addpage([['ETES Capital Costs']],{'sidebar'='System Costs','help'='pt_system_costs'});
//addpage([['Operating Costs']], {'sidebar' = 'Operating Costs', 'help'='oc_operating'} );
//setup_merchant_plant_pages();
// CSThermal - Physical Trough ////////////////////////////////
setconfig( 'Physical Trough IPH', 'None' );
setmodules( ['trough_physical_process_heat']);
setup_cst_physical_trough_pages();
setconfig( 'Physical Trough IPH', 'LCOH Calculator' );
setmodules( ['trough_physical_process_heat', 'iph_to_lcoefcr', 'lcoefcr']);
setup_cst_physical_trough_pages();
setup_iph_lcoefcr_pages();
// CSP - Physical Trough ///////////////////////////////////////////////////////
setconfig( 'Physical Trough', 'LCOE Calculator' );
setmodules( ['trough_physical', 'grid', 'lcoefcr']);
setup_csp_physical_trough_pages();
setup_lcoefcr_pages();
setconfig( 'Physical Trough', 'None' );
setmodules( ['trough_physical', 'grid']);
setup_csp_physical_trough_pages();
//-----------------------------------------------------
setconfig( 'Physical Trough', 'Leveraged Partnership Flip' );
setmodules( ['trough_physical', 'grid', 'levpartflip']);
setup_csp_physical_trough_pages();
setup_lifetime_page(DEGRADATION_AC_SINGLE_YEAR);
addpage( [[ 'Physical Trough Capital Costs' ]], { 'sidebar'='Installation Costs', 'help'='cc_trough' } );
addpage( [[ 'Operating Costs' ]], {'sidebar' = 'Operating Costs', 'help'='oc_operating'} );
setup_leveraged_partnership_flip_pages();
//-----------------------------------------------------
setconfig( 'Physical Trough', 'All Equity Partnership Flip' );
setmodules( ['trough_physical', 'grid', 'equpartflip']);
setup_csp_physical_trough_pages();
setup_lifetime_page(DEGRADATION_AC_SINGLE_YEAR);
addpage( [[ 'Physical Trough Capital Costs' ]], { 'sidebar'='Installation Costs', 'help'='cc_trough' } );
addpage( [[ 'Operating Costs' ]], {'sidebar' = 'Operating Costs', 'help'='oc_operating'} );
setup_all_equity_partnership_flip_pages();
//-----------------------------------------------------
setconfig( 'Physical Trough', 'Sale Leaseback' );
setmodules( ['trough_physical', 'grid', 'saleleaseback']);
setup_csp_physical_trough_pages();
setup_lifetime_page(DEGRADATION_AC_SINGLE_YEAR);
addpage( [[ 'Physical Trough Capital Costs' ]], { 'sidebar'='Installation Costs', 'help'='cc_trough' } );
addpage( [[ 'Operating Costs' ]], {'sidebar' = 'Operating Costs', 'help'='oc_operating'} );
setup_sale_leaseback_pages();
//-----------------------------------------------------
setconfig( 'Physical Trough', 'Single Owner' );
setmodules( ['trough_physical', 'grid', 'singleowner']);
setup_csp_physical_trough_pages();
setup_lifetime_page(DEGRADATION_AC_SINGLE_YEAR);
addpage( [[ 'Physical Trough Capital Costs' ]], { 'sidebar'='Installation Costs', 'help'='cc_trough' } );
addpage( [[ 'Operating Costs' ]], {'sidebar' = 'Operating Costs', 'help'='oc_operating'} );
setup_single_owner_pages();
setconfig( 'Physical Trough', 'Merchant Plant' );
setmodules( ['trough_physical', 'grid', 'merchantplant']);
setup_csp_physical_trough_pages();
setup_lifetime_page(DEGRADATION_AC_SINGLE_YEAR);
addpage( [[ 'Physical Trough Capital Costs' ]], { 'sidebar'='Installation Costs', 'help'='cc_trough' } );
addpage( [[ 'Operating Costs' ]], {'sidebar' = 'Operating Costs', 'help'='oc_operating'} );
setup_merchant_plant_pages();
// PVWatts /////////////////////////////////////////////////////////////////////
setconfig( 'PVWatts', 'LCOE Calculator' );
setmodules( ['pvwattsv8', 'grid','lcoefcr']);
setup_pvwatts_pages();
setup_lcoefcr_pages();
setconfig( 'PVWatts', 'None' );
setmodules( ['pvwattsv8','grid']);
setup_pvwatts_pages();
setconfig( 'PVWatts', 'Residential' );
setmodules( ['pvwattsv8', 'belpe', 'grid', 'utilityrate5', 'cashloan']);
setup_pvwatts_pages();
setup_lifetime_page( DEGRADATION_AC_SINGLE_YEAR );
addpage( [[ 'PV Capital Costs' ],
[ 'PVWatts Capital Cost Curve', 'PV Capex Table', 'PV Capex Table AC']],
{ 'sidebar'='Installation Costs', 'exclusive_var'='pv_capex_cost_choice','help'='cc_pv'} );
addpage( [[ 'Operating Costs' ]], {'sidebar' = 'Operating Costs', 'help'='oc_operating'} );
setup_residential_pages( LOAD_BELPE ); //includes building load calculator
setconfig( 'PVWatts', 'Commercial' );
setmodules( ['pvwattsv8', 'grid', 'utilityrate5', 'cashloan']);
setup_pvwatts_pages();
setup_lifetime_page( DEGRADATION_AC_SINGLE_YEAR );
addpage( [[ 'PV Capital Costs' ],
[ 'PVWatts Capital Cost Curve', 'PV Capex Table', 'PV Capex Table AC']],
{ 'sidebar'='Installation Costs', 'exclusive_var'='pv_capex_cost_choice','help'='cc_pv'} );
addpage( [[ 'Operating Costs' ]], {'sidebar' = 'Operating Costs', 'help'='oc_operating'} );
setup_commercial_pages(LOAD_SIMPLE); //belpe not valid for commercial
setconfig( 'PVWatts', 'Leveraged Partnership Flip' );
setmodules( ['pvwattsv8', 'grid', 'levpartflip']);
setup_pvwatts_pages();
setup_lifetime_page( DEGRADATION_AC_SINGLE_YEAR );
addpage( [[ 'PV Capital Costs' ],
[ 'PVWatts Capital Cost Curve', 'PV Capex Table', 'PV Capex Table AC']],
{ 'sidebar'='Installation Costs', 'exclusive_var'='pv_capex_cost_choice','help'='cc_pv'} );
addpage( [[ 'Operating Costs' ]], {'sidebar' = 'Operating Costs', 'help'='oc_operating'} );
setup_leveraged_partnership_flip_pages();
setconfig( 'PVWatts', 'All Equity Partnership Flip' );
setmodules( ['pvwattsv8', 'grid', 'equpartflip']);
setup_pvwatts_pages();
setup_lifetime_page( DEGRADATION_AC_SINGLE_YEAR );
addpage( [[ 'PV Capital Costs' ],
[ 'PVWatts Capital Cost Curve', 'PV Capex Table', 'PV Capex Table AC']],
{ 'sidebar'='Installation Costs', 'exclusive_var'='pv_capex_cost_choice','help'='cc_pv'} );
addpage( [[ 'Operating Costs' ]], {'sidebar' = 'Operating Costs', 'help'='oc_operating'} );
setup_all_equity_partnership_flip_pages();
setconfig( 'PVWatts', 'Sale Leaseback' );
setmodules( ['pvwattsv8', 'grid', 'saleleaseback']);
setup_pvwatts_pages();
setup_lifetime_page( DEGRADATION_AC_SINGLE_YEAR );
addpage( [[ 'PV Capital Costs' ],
[ 'PVWatts Capital Cost Curve', 'PV Capex Table', 'PV Capex Table AC']],
{ 'sidebar'='Installation Costs', 'exclusive_var'='pv_capex_cost_choice','help'='cc_pv'} );
addpage( [[ 'Operating Costs' ]], {'sidebar' = 'Operating Costs', 'help'='oc_operating'} );
setup_sale_leaseback_pages();
setconfig( 'PVWatts', 'Single Owner' );
setmodules( ['pvwattsv8', 'grid', 'singleowner']);
setup_pvwatts_pages();
setup_lifetime_page( DEGRADATION_AC_SINGLE_YEAR );
addpage( [[ 'PV Capital Costs' ],
[ 'PVWatts Capital Cost Curve', 'PV Capex Table', 'PV Capex Table AC']],
{ 'sidebar'='Installation Costs', 'exclusive_var'='pv_capex_cost_choice','help'='cc_pv'} );
addpage( [[ 'Operating Costs' ]], {'sidebar' = 'Operating Costs', 'help'='oc_operating'} );
setup_single_owner_pages();
setconfig( 'PVWatts', 'Merchant Plant' );
setmodules( ['pvwattsv8', 'grid', 'merchantplant']);
setup_pvwatts_pages();
setup_lifetime_page( DEGRADATION_AC_SINGLE_YEAR );
addpage( [[ 'PV Capital Costs' ],
[ 'PVWatts Capital Cost Curve', 'PV Capex Table', 'PV Capex Table AC']],
{ 'sidebar'='Installation Costs', 'exclusive_var'='pv_capex_cost_choice','help'='cc_pv'} );
addpage( [[ 'Operating Costs' ]], {'sidebar' = 'Operating Costs', 'help'='oc_operating'} );
setup_merchant_plant_pages();