Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop to main for 2024.12.12 #1267

Merged
merged 541 commits into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
541 commits
Select commit Hold shift + click to select a range
406acf0
Merge branch 'patch' into drilling-cost-ssc-equation
mjprilliman Jul 31, 2024
caf06c3
Merge pull request #1191 from NREL/drilling-cost-ssc-equation
mjprilliman Aug 1, 2024
bbcef4f
Add startup temp and shutdown temp as user inputs.
taylorbrown75 Mar 26, 2024
da4fefe
Add checks for missing T_startup or T_shutdown
taylorbrown75 Aug 1, 2024
0c3271a
Add optional startup and shutdown temperatures to iph cmod.
taylorbrown75 Aug 1, 2024
34906fd
SAM 2023.12.17 Revision 2 with ssc version 292 release candidate
sjanzou Aug 2, 2024
36ec7ee
Update for MacOS build - thanks to Darice
sjanzou Aug 2, 2024
ecec61a
change from ? required to empty
tyneises Aug 2, 2024
cd1170b
Remove ssc equations for mhk from pysam for patch
mjprilliman Aug 2, 2024
1829caa
Add comment for ssc equation linkage in next release
mjprilliman Aug 5, 2024
9c2f573
Merge pull request #1198 from NREL/ssc-equation-patch
mjprilliman Aug 5, 2024
a80f94b
Merge pull request #1199 from NREL/2023.12.17.r2.ssc.292
sjanzou Aug 6, 2024
ea545a1
Merge branch 'develop' into iph-split-heat-elec-pricing
tyneises Aug 7, 2024
f876b92
Merge branch 'develop' of https://github.com/NREL/ssc into develop
brtietz Aug 7, 2024
233a311
net billing: allow accrued net billing credits to expire at end of tr…
berg-michael Aug 7, 2024
84216d5
Merge branch 'patch' into patch_merge_take_one_more
brtietz Aug 8, 2024
83e310f
Revert "Rebase to patch"
brtietz Aug 8, 2024
db93f48
don't double count month excess credits
berg-michael Aug 9, 2024
6b966f6
replace csp files with merge issues
tyneises Aug 9, 2024
af4b6b4
REopt v3 API call working on MacOS 14.5 - addresses SAM #1830
sjanzou Aug 14, 2024
77ab00d
Remove unnecessary changes in cmod_pvsamv1_eqns for SAM #1830
sjanzou Aug 14, 2024
f2d6aed
Merge pull request #1203 from NREL/macos_reopt_bug
sjanzou Aug 14, 2024
288faa6
Scale snow loss with ratio of front irrad to front + rear irrad
mjprilliman Aug 15, 2024
7fb465d
Merge pull request #1201 from NREL/patch_merge_take_one_more
brtietz Aug 15, 2024
9834d69
Add bifaciality for DC loss scaling; update pvwatts snow
mjprilliman Aug 15, 2024
7087104
Merge branch 'develop' of https://github.com/NREL/ssc into iowa_billing
brtietz Aug 23, 2024
996b687
Add tests for new net billing checkboxes
brtietz Aug 23, 2024
7ba2f9b
Merge pull request #1200 from berg-michael/iowa_billing
brtietz Aug 25, 2024
274560a
Merge pull request #1205 from NREL/patch
brtietz Aug 25, 2024
807c099
Merge branch 'develop' into getem-om-cost-calc
mjprilliman Aug 26, 2024
862bb79
Update pump OM calculations
mjprilliman Aug 28, 2024
39ab404
Merge branch 'develop' into iph-split-heat-elec-pricing-v2
taylorbrown75 Sep 11, 2024
48f89fd
Fix bug from merge.
taylorbrown75 Sep 11, 2024
0d98ff8
Squashed commit of the following:
taylorbrown75 Sep 12, 2024
d81676e
Update cp_w for reservoir temp, check for working temperature
mjprilliman Sep 13, 2024
e99ce38
UPdate defaults, inputs to OM calc
mjprilliman Sep 13, 2024
28c2f20
Squashed commit of the following:
taylorbrown75 Sep 17, 2024
d31362a
Fix trough iph bug from merge.
taylorbrown75 Sep 17, 2024
03b07c1
Implement tier checks for energy periods
brtietz Sep 20, 2024
225fe67
translate code for demand charges as well
brtietz Sep 20, 2024
7f458f7
Fix mismatch tier in prior test
brtietz Sep 20, 2024
adb3abf
Correct test data, move to tolerance based approach for floating poin…
brtietz Sep 20, 2024
21d3c6f
Add debt fraction limiting calcs to community solar
brtietz Sep 20, 2024
d24d10a
Correct typo in demand charges. Start of error message edit for energ…
brtietz Sep 23, 2024
d2b1167
Merge pull request #1208 from NREL/sam_1708_debt_limits_for_all_finan…
brtietz Sep 23, 2024
8d1df7e
Merge branch 'develop' of https://github.com/NREL/ssc into sam_1783_e…
brtietz Sep 24, 2024
ef9bcbe
Merge branch 'develop' into getem-om-cost-calc
mjprilliman Sep 26, 2024
0be19a4
Merge branch 'develop' into getem-dtprodwell-fixes
mjprilliman Sep 26, 2024
3e380cb
Update error message as suggested in PR
brtietz Sep 26, 2024
f321838
Differentiate units by tier
brtietz Sep 27, 2024
8b61833
Merge pull request #1207 from NREL/sam_1783_enforce_sam_tiers
brtietz Sep 30, 2024
58b677b
Merge branch 'develop' into getem-om-cost-calc
mjprilliman Sep 30, 2024
f80c6e4
Merge branch 'develop' into getem-dtprodwell-fixes
mjprilliman Oct 1, 2024
dc80094
Update cooling water cost
mjprilliman Oct 1, 2024
17b568c
Sam 1803 basis corrections (#1193)
brtietz Oct 1, 2024
6216779
fixing dispatch infeasible problems
qualand Oct 2, 2024
f791869
Merge pull request #1213 from NREL/fixing_trough_dispatch
qualand Oct 2, 2024
5b799c6
Merge branch 'develop' into getem-dtprodwell-fixes
mjprilliman Oct 2, 2024
8f66b20
Merge pull request #1209 from NREL/getem-dtprodwell-fixes
mjprilliman Oct 3, 2024
d9f4e00
Merge branch 'develop' into getem-om-cost-calc
mjprilliman Oct 3, 2024
640e88c
Merge branch 'develop' into bifi-snow-correction
mjprilliman Oct 3, 2024
dc483af
Initial cmod, hybrids updates for renaming generic system
mjprilliman Oct 3, 2024
4a30d9a
Merge pull request #1210 from NREL/getem-om-cost-calc
mjprilliman Oct 3, 2024
d523fc1
Rename generic system ssc tests
mjprilliman Oct 4, 2024
941a093
Merge branch 'develop' into iph-split-heat-elec-pricing-v2
taylorbrown75 Oct 4, 2024
1cbb513
Merge branch 'develop' into custom-generation-profile-tech
mjprilliman Oct 4, 2024
52f4c28
Merge branch 'develop' into iph-split-heat-elec-pricing-v2
taylorbrown75 Oct 4, 2024
fc25a7e
Add year 1 metrics for kwh charged from grid, system
mjprilliman Oct 4, 2024
f187445
Merge branch 'standalone-batt-metrics' of https://github.com/nrel/ssc…
mjprilliman Oct 4, 2024
dec4b58
Add reservoir replacement check
mjprilliman Oct 4, 2024
0ab62c1
Add checking for lifetime time series, adjust in tidal and wave configs
mjprilliman Oct 7, 2024
fb220b5
Remove unused variables, add snow coverage metrics to pvwatts
mjprilliman Oct 7, 2024
374a5c3
Label updates
mjprilliman Oct 7, 2024
5f3fdc8
Merge pull request #1214 from NREL/bifi-snow-correction
mjprilliman Oct 8, 2024
0043814
Update ssc equation link for PySAM
mjprilliman Oct 8, 2024
8fe92cc
Merge remote-tracking branch 'origin/develop' into iph_fin_cmods
sjanzou Oct 8, 2024
77fb224
Add cmod_cashloan_heat and cmod_singleowner_heat
sjanzou Oct 8, 2024
175780c
Add capacity factor input to tidal turbine ssc eqn
mjprilliman Oct 8, 2024
b6792d0
Merge pull request #1215 from NREL/standalone-batt-metrics
mjprilliman Oct 8, 2024
27c73d0
Add checks for solar_resource data header info with errorcodes, return
mjprilliman Oct 8, 2024
35c62c8
Update variable names to indicate target capacity factor
mjprilliman Oct 8, 2024
dee392e
Merge branch 'develop' into custom-generation-profile-tech
mjprilliman Oct 8, 2024
d424d28
Merge remote-tracking branch 'origin/develop' into iph_fin_cmods
sjanzou Oct 9, 2024
f5fa339
update single owner from latest develop version
sjanzou Oct 9, 2024
8b6ff0e
Update naming from generic to custom generation
mjprilliman Oct 9, 2024
531d278
Add option to use tidal turbine with time series velocity
mjprilliman Oct 9, 2024
8373b8c
Change function to errorMessage, remove extra error code reference in
mjprilliman Oct 9, 2024
3e7af99
Update naming for tests
mjprilliman Oct 9, 2024
81a2c04
Delete duplicate test files
mjprilliman Oct 9, 2024
84d5f5e
Update README.md
mjprilliman Oct 10, 2024
5531ee9
Update generic hybrid test files, table names
mjprilliman Oct 10, 2024
6010edc
Merge pull request #1220 from NREL/update-readme-licensescan
mjprilliman Oct 10, 2024
9139b79
PV models speed up (#1212)
dguittet Oct 14, 2024
b74c5df
Merge branch 'develop' into iph_fin_cmods
sjanzou Oct 15, 2024
d39923e
Update IPH MSPT to output "load" to call cmod_utilityrate5
sjanzou Oct 15, 2024
90224f6
Merge branch 'develop' into solar-resource-errorcodes
cpaulgilman Oct 15, 2024
8e8c06f
New Wind Features 2024 (#1186)
janinefreeman Oct 15, 2024
08c6851
fix error messages in util::hour_of_year()
cpaulgilman Oct 15, 2024
36d08c9
Merge branch 'develop' into iph_fin_cmods
sjanzou Oct 16, 2024
3ce0bbf
Update cf_om_elec_price__for_heat_techs to utility_bill_wo_sys
sjanzou Oct 16, 2024
b26f79e
Merge branch 'develop' into getem-reservoir-replacements
mjprilliman Oct 16, 2024
5d1b5c6
Merge branch 'develop' into wave-tidal-adjust
mjprilliman Oct 16, 2024
f4f431a
Improve irradiance error messages
cpaulgilman Oct 16, 2024
1192d73
adding electric heater into trough IPH model
qualand Oct 17, 2024
e1c8169
Add wind data check for missing data (#1221)
cpaulgilman Oct 18, 2024
776e287
Add load output to IPH trough and fresnel. Change gen to gen_heat. Ch…
taylorbrown75 Oct 18, 2024
a48633a
Merge pull request #1222 from NREL/getem-reservoir-replacements
mjprilliman Oct 21, 2024
a6ce97a
Update error check for timeseries adjustment to check for three hour
mjprilliman Oct 21, 2024
86383b0
Set hdr elev to 0 when not provided in solar resource data; add error
mjprilliman Oct 21, 2024
96891e6
Merge branch 'develop' into me-eqn-update
mjprilliman Oct 22, 2024
5cb6ed4
Update docstrings for mhk equations
mjprilliman Oct 22, 2024
733cbff
Update NOCT equation to evaluate test changes
mjprilliman Oct 22, 2024
741a73c
Merge branch 'develop' into iph_fin_cmods
sjanzou Oct 22, 2024
44500e5
Merge branch 'develop' into solar-resource-errorcodes
mjprilliman Oct 22, 2024
d603919
Move optional variable handling to performance calcs, update test
mjprilliman Oct 22, 2024
89de2bc
Merge branch 'develop' into custom-generation-profile-tech
mjprilliman Oct 22, 2024
ab890dd
Add IRR to cashloan and migrate functions to lib_financial.h (#1223)
cpaulgilman Oct 22, 2024
7f757cf
Merge branch 'develop' into tidal-turbine-cf
mjprilliman Oct 22, 2024
e641c36
Merge pull request #1218 from NREL/tidal-turbine-cf
mjprilliman Oct 23, 2024
f7a0607
Merge branch 'develop' into wave-tidal-adjust
mjprilliman Oct 23, 2024
d3422c6
Add simulation timestep variable for stand alone battery
brtietz Oct 23, 2024
ba6e993
Add en_standalone_batt to tests as needed
brtietz Oct 23, 2024
e50d00f
Merge remote-tracking branch 'origin/develop' into iph_fin_cmods
sjanzou Oct 24, 2024
defd5ab
en standalone batt in one more place
brtietz Oct 24, 2024
52330da
Dynamic error messages given new standalone battery behavior
brtietz Oct 24, 2024
7a8ea18
Merge branch 'develop' into custom-generation-profile-tech
mjprilliman Oct 25, 2024
1363c39
Replace mention of weather file time step with simulation time step
cpaulgilman Oct 25, 2024
71f34ec
Merge pull request #1219 from NREL/solar-resource-errorcodes
mjprilliman Oct 25, 2024
2715be7
Improve standalone battery time step error message
cpaulgilman Oct 25, 2024
ce19e5f
Add thermalrate_iph cmod and configure gen and gen_heat for IPH models.
taylorbrown75 Oct 25, 2024
53bea61
Merge branch 'iph_fin_cmods' of https://github.com/nrel/ssc into iph_…
taylorbrown75 Oct 25, 2024
034af65
Remove curtailment and capacity inputs and revenue streams for heat
sjanzou Oct 27, 2024
c88364d
Remove capacity payment input dependency for cmod_singleowner_heat
sjanzou Oct 27, 2024
700751a
Update hourly_calculations class to handle heat values
sjanzou Oct 28, 2024
650c010
Merge pull request #1225 from NREL/wave-tidal-adjust
mjprilliman Oct 28, 2024
fa3bae1
Merge pull request #1227 from NREL/ssc_994_standalone_battery_subhourly
brtietz Oct 28, 2024
810ffd6
Merge branch 'develop' into noct-taualpha
mjprilliman Oct 28, 2024
393ce0c
Merge branch 'develop' into custom-generation-profile-tech
mjprilliman Oct 28, 2024
8fc7716
Add en_standalone_batt to custom generation battery test, remove
mjprilliman Oct 28, 2024
6b419ba
Merge branch 'develop' into iph_fin_cmods
sjanzou Oct 28, 2024
861034c
Update o and m and cash flow for cmod_singleowner_heat
sjanzou Oct 29, 2024
89554fc
Fix pvwatts losses label (#1229)
cpaulgilman Oct 29, 2024
df3df36
Updated tests (need to run lk scripts for defaults, json tests)
mjprilliman Oct 29, 2024
551b93b
Update battery tests
mjprilliman Oct 29, 2024
6313b02
Merge branch 'develop' into custom-generation-profile-tech
mjprilliman Oct 29, 2024
55c6512
Update json tests
mjprilliman Oct 29, 2024
59101ca
Reset lk script to generate jsons
mjprilliman Oct 29, 2024
4362ff5
Merge remote-tracking branch 'origin/develop' into iph_fin_cmods
sjanzou Oct 30, 2024
c7c9eb0
Add additional heat outputs
sjanzou Oct 30, 2024
77b85d4
make spa threadsafe again (#1232)
dguittet Oct 30, 2024
1750ef9
Merge pull request #1217 from NREL/me-eqn-update
mjprilliman Oct 30, 2024
588fd81
Remove commented code
mjprilliman Oct 30, 2024
80abf6a
Add monthly thermal rate options.
taylorbrown75 Oct 30, 2024
c519d65
Merge remote-tracking branch 'origin/develop' into iph_fin_cmods
sjanzou Oct 30, 2024
1733bd1
Merge branch 'iph_fin_cmods' of https://github.com/nrel/ssc into iph_…
taylorbrown75 Oct 30, 2024
8fa9f29
Add conversion efficiency to thermal buy rates.
taylorbrown75 Oct 30, 2024
189c3dc
Refactor adjust losses to use vartable instead of cmod to make them m…
brtietz Oct 30, 2024
ae13196
Merge branch 'develop' into custom-generation-profile-tech
mjprilliman Oct 30, 2024
5e77079
Update IPH direct steam linear fresnel cmod to work for single owner
taylorbrown75 Oct 30, 2024
afa33b9
Update heatmaps for all iph technologies
sjanzou Oct 31, 2024
6f8d859
Merge pull request #1228 from NREL/custom-generation-profile-tech
mjprilliman Oct 31, 2024
6ab0b01
Sam 181 interconnection limits (#1224)
brtietz Oct 31, 2024
3a0e8e3
Merge branch 'develop' into noct-taualpha
mjprilliman Oct 31, 2024
25065d0
Remove solesca test, upgrade save as json sam file, update json pvwatts
mjprilliman Oct 31, 2024
7ad514d
Add nameplate capacity outputs to IPH fresnel direct steam.
taylorbrown75 Oct 31, 2024
1a1d21a
Fix bug with annual_field_energy.
taylorbrown75 Nov 1, 2024
2917884
Align IPH tech cmod kWht and kWhe naming convention.
taylorbrown75 Nov 1, 2024
ab5afdc
Merge remote-tracking branch 'origin/develop' into iph_fin_cmods
sjanzou Nov 1, 2024
bb61128
Add MMBtu energy outputs to IPH tech cmods for display.
taylorbrown75 Nov 1, 2024
abea27e
Heat incentive updates
sjanzou Nov 3, 2024
5b7a910
cmod_singleowner_heat ready for testing
sjanzou Nov 4, 2024
3bffdaa
Fix load assignment in thermal rate compute module and cashloan_heat …
sjanzou Nov 4, 2024
9a1d72d
Update battery test tolerances with changing answers on mac
mjprilliman Nov 4, 2024
4ccc00a
Update test tolerance
mjprilliman Nov 4, 2024
184e156
Rename gamma r (#1231)
janinefreeman Nov 4, 2024
9aa17dc
Update trough LCOH model to match tower and MSLF method.
taylorbrown75 Nov 4, 2024
78a58ba
Merge pull request #1233 from NREL/noct-taualpha
mjprilliman Nov 4, 2024
a9b98ad
Merge pull request #1234 from NREL/adjust_loss_refactor
brtietz Nov 5, 2024
27c8e2b
Fix haf for custom generation profile
brtietz Nov 5, 2024
8b263f5
Merge pull request #1237 from NREL/fix_haf_for_custom_generation
brtietz Nov 5, 2024
00eb9a8
Rename piston cylinder TES model.
taylorbrown75 Nov 4, 2024
2e58d82
Consistent monthly and annual energy labels (#1236)
cpaulgilman Nov 6, 2024
50304fb
Sam 391 ssc 825 merchant plant forecast upgrades (#1235)
brtietz Nov 6, 2024
a1faa23
Merge branch 'develop' into iph_fin_cmods
sjanzou Nov 7, 2024
7086167
Update thermal buy/sell rate unit. Fix bug importing thermal load var…
taylorbrown75 Nov 7, 2024
fe7ab0f
Better handling of floating point numbers for tier tolerences
brtietz Nov 7, 2024
a990a5c
Merge pull request #1240 from NREL/revisit_tier_tolerences
brtietz Nov 7, 2024
6b241bb
Merge branch 'develop' into iph_fin_cmods
sjanzou Nov 8, 2024
e937920
Merge branch 'iph_fin_cmods' of https://github.com/nrel/ssc into iph_…
taylorbrown75 Nov 8, 2024
2f96214
Squashed commit of the following:
taylorbrown75 Nov 8, 2024
495b0a8
Battery cycle-calendar life model updated to use sum not min (#1239)
dguittet Nov 11, 2024
787cb76
Add option for absolute thermal load hourly input for system control.
taylorbrown75 Nov 11, 2024
4601202
Remove unused heat dispatch calls.
taylorbrown75 Nov 11, 2024
957a791
Remove construction financials from non single owner IPH models.
taylorbrown75 Nov 11, 2024
8727054
Add construction financing equations to trough and fresnel cmods.
taylorbrown75 Nov 12, 2024
47e6211
Define trough financial model in tests.
taylorbrown75 Nov 12, 2024
cb70a18
Clarify and sync CSP output labels to remove 'grid' terminology.
taylorbrown75 Nov 12, 2024
bdf8233
Shorten CSP generation vartable labels.
taylorbrown75 Nov 12, 2024
a95a943
PVWatts-Wind-FuelCell / Host Developer running with Thermal Rates and…
sjanzou Nov 13, 2024
ecb119f
Fix REopt API Calls (#1242)
cpaulgilman Nov 13, 2024
dc93257
Merge branch 'develop' into iph_fin_cmods
sjanzou Nov 14, 2024
1a06aba
2024.11.14.ssc.295 IPH beta expires 1/31/2025
sjanzou Nov 14, 2024
da7f153
Sam 1869 battery adjust losses (#1241)
brtietz Nov 14, 2024
ff30186
Cmake edits (#1243)
dguittet Nov 14, 2024
de25033
Define IPH monthly load output. Remove unused variables and function.
taylorbrown75 Nov 14, 2024
dbbb015
Merge branch 'iph_fin_cmods' of https://github.com/nrel/ssc into iph_…
taylorbrown75 Nov 14, 2024
b58cf62
Add cash flow net heat output in MMBtu to IPH single owner and cashlo…
taylorbrown75 Nov 15, 2024
71e2ec0
Fix bug outputting energy output in MMBtu
taylorbrown75 Nov 15, 2024
b241d0e
Merge branch 'develop' into SAM_1903
sjanzou Nov 15, 2024
7e52c1b
Update host developer to account for thermal savings for SAM #1903
sjanzou Nov 15, 2024
a7a6db2
Merge pull request #1244 from NREL/SAM_1903
sjanzou Nov 17, 2024
d77fb88
Fix bug assigning array in cashloan_heat
taylorbrown75 Nov 18, 2024
a008f8f
Add commercial model to IPH fresnel.
taylorbrown75 Nov 18, 2024
08b2aa7
Fix 6par sanity check that causes SAM to crash (#1245)
cpaulgilman Nov 18, 2024
17fe9c1
Merge branch 'develop' into iph_fin_cmods
taylorbrown75 Nov 19, 2024
444fda3
Delete duplicate vartable variables.
taylorbrown75 Nov 19, 2024
901ddf9
Merge pull request #1238 from NREL/iph_fin_cmods
sjanzou Nov 21, 2024
80538e5
2024.12.12.ssc.296.beta expires 1/31/2025
sjanzou Nov 21, 2024
8e67452
Add physical heat sink variables to IPH trough cmod.
taylorbrown75 Nov 22, 2024
366ae1a
Add physical heat sink variables to IPH tower cmod.
taylorbrown75 Nov 22, 2024
71a0b4b
Add physical heat sink variables to IPH MSLF cmod.
taylorbrown75 Nov 22, 2024
2992a19
Fix SAM issue 1927
sjanzou Nov 24, 2024
f28fc7d
UPdate marine device cost curves
mjprilliman Nov 25, 2024
65a89a5
Merge pull request #1248 from NREL/SAM_1927
sjanzou Nov 26, 2024
dd1fe7e
Merge pull request #1246 from NREL/2024.12.12.ssc.296.beta
sjanzou Nov 26, 2024
7616d40
Merge branch 'develop' into marine-cost-curve-updates
mjprilliman Nov 26, 2024
d70d1e9
Merge branch 'develop' into iph_heat_sink_shell
taylorbrown75 Dec 2, 2024
0256953
add updc option for no interpolation correction at max output
tyneises Dec 3, 2024
ff7ab60
Create functions for battery parameters that were accessed in the cod…
brtietz Dec 3, 2024
eb421a1
change variable for udpc mode from bool to int
tyneises Dec 3, 2024
2075768
Merge pull request #1253 from NREL/add-udpc-interp-option
tyneises Dec 3, 2024
850d489
Add nullptr check for heat sink
taylorbrown75 Dec 3, 2024
490e407
Fix bop and aux design calcs for MSLF IPH.
taylorbrown75 Dec 3, 2024
95c01cf
Fix error check for tidal compute module, update passing of monthly
mjprilliman Dec 4, 2024
6fadee0
Merge branch 'develop' into marine-cost-curve-updates
mjprilliman Dec 4, 2024
8179594
Merge branch 'marine-error-check' into marine-cost-curve-updates
mjprilliman Dec 4, 2024
30172dd
Merge pull request #1254 from NREL/mslf_bop_aux_bug
taylorbrown75 Dec 4, 2024
ac78e40
Merge pull request #1250 from NREL/iph_heat_sink_shell
taylorbrown75 Dec 4, 2024
0f2f2c6
Update hybrid om vartable to input monthly_energy, not inout
mjprilliman Dec 5, 2024
9b9a339
Move IPH edit to other PR
mjprilliman Dec 6, 2024
75fb542
Merge branch 'develop' into marine-cost-curve-updates
mjprilliman Dec 6, 2024
300743d
Merge pull request #1249 from NREL/marine-cost-curve-updates
mjprilliman Dec 6, 2024
09c20e9
Merge pull request #1257 from NREL/ssc-1255-fix
mjprilliman Dec 6, 2024
c4e33d0
move var table inputs to dispatch section
tyneises Dec 6, 2024
154e6ed
Merge pull request #1261 from NREL/move-linear-rec_su
tyneises Dec 7, 2024
bfca1ea
Ssc 1256 better hybrid batteries (#1258)
brtietz Dec 9, 2024
2daaee8
Fix inconsistent group names (#1263)
cpaulgilman Dec 10, 2024
7e7c049
Allow for zero time series buy and sell rates (#1264)
brtietz Dec 11, 2024
5d7c3e2
2024.12.12.ssc.298 public release
sjanzou Dec 12, 2024
ee3823e
Merge pull request #1266 from NREL/2024.12.12.ssc.298
sjanzou Dec 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
13 changes: 9 additions & 4 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@

doc/* linguist-documentation=true
doc/** linguist-documentation=true
tcsdata/docs/* linguist-documentation=true


*.c linguist-vendored
lpsolve/* linguist-vendored=true
nlopt/* linguist-vendored=true
examples/* linguist-vendored=true
lpsolve/** linguist-vendored=true
nlopt/** linguist-vendored=true
samples/** linguist-vendored=true
test/input_docs/** linguist-vendored=true
splinter/** linguist-vendored=true
rapidjson/** linguist-vendored=true

build_*/* linguist_generated=true

Expand All @@ -24,6 +28,7 @@ build_*/* linguist_generated=true
*.h text
*.csv text
*.lk text
*.json text

# Ensure those won't be messed up with
*.jpg binary
Expand Down
129 changes: 116 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ on:
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
GTEST_REF: b85864c64758dec007208e56af933fc3f52044ee

jobs:
build-on-ubuntu:
runs-on: ubuntu-latest

steps:
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v1.12
uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: '3.24.x'
- name: Test cmake version
Expand All @@ -27,14 +28,23 @@ jobs:
SSCDIR=$GITHUB_WORKSPACE/ssc
echo "SSCDIR=$SSCDIR" >> $GITHUB_ENV

- name: Get cached GTest
uses: actions/cache@v4
id: cachedgtest
with:
path: ${{env.GTEST}}/
key: gtest-ubuntu

- name: Clone Gtest
uses: actions/checkout@v2
if: steps.cachedgtest.outputs.cache-hit != 'true'
uses: actions/checkout@v4
with:
repository: google/googletest
path: googletest
ref: b85864c64758dec007208e56af933fc3f52044ee
ref: ${{env.GTEST_REF}}

- name: build Gtest
if: steps.cachedgtest.outputs.cache-hit != 'true'
run: |
export
mkdir ${GTEST}/build
Expand All @@ -43,7 +53,7 @@ jobs:
make

- name: Checkout SSC
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
path: ssc

Expand All @@ -68,19 +78,22 @@ jobs:
${SSCDIR}/build/test/Test

- name: Upload Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: SSC Linux Shared Libraries
path: |
${{env.SSCDIR}}/build/ssc/libssc.so
${{env.SSCDIR}}/build/ssc/ssc.so

build-on-mac:
runs-on: macos-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-14-large, macos-latest]

steps:
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v1.12
uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: '3.24.x'
- name: Test cmake version
Expand All @@ -93,14 +106,22 @@ jobs:
SSCDIR=$GITHUB_WORKSPACE/ssc
echo "SSCDIR=$SSCDIR" >> $GITHUB_ENV

- name: Get cached GTest
uses: actions/cache@v4
id: cachedgtest
with:
path: ${{env.GTEST}}/
key: gtest-${{ matrix.os }}
- name: Clone Gtest
uses: actions/checkout@v2
if: steps.cachedgtest.outputs.cache-hit != 'true'
uses: actions/checkout@v4
with:
repository: google/googletest
path: googletest
ref: b85864c64758dec007208e56af933fc3f52044ee
ref: ${{env.GTEST_REF}}

- name: build Gtest
if: steps.cachedgtest.outputs.cache-hit != 'true'
run: |
export
mkdir ${GTEST}/build
Expand All @@ -109,7 +130,7 @@ jobs:
make

- name: Checkout SSC
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
path: ssc

Expand All @@ -124,7 +145,7 @@ jobs:
# Build your program with the given configuration
run: |
cd ${SSCDIR}/build
make -j4
make -j3

- name: Test
# Turn off fast fail for when the landbosse tests write to cerr
Expand All @@ -134,10 +155,92 @@ jobs:
shell: bash

- name: Upload Artifacts
uses: actions/upload-artifact@v3
if: ${{ matrix.os == 'macos-latest' }}
uses: actions/upload-artifact@v4
with:
name: SSC Mac Shared Libraries
name: SSC Mac Arm Shared Libraries
path: |
${{env.SSCDIR}}/build/ssc/libssc.dylib
${{env.SSCDIR}}/build/ssc/ssc.dylib

- name: Upload Artifacts
if: ${{ matrix.os != 'macos-latest' }}
uses: actions/upload-artifact@v4
with:
name: SSC Mac Intel Shared Libraries
path: |
${{env.SSCDIR}}/build/ssc/libssc.dylib
${{env.SSCDIR}}/build/ssc/ssc.dylib

build-on-windows:
runs-on: windows-2019

steps:
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: '3.24.x'
- name: Test cmake version
run: cmake --version

- name: Set relative paths
shell: bash
run: |
GTEST=$GITHUB_WORKSPACE/googletest
echo "GTEST=$GTEST" >> $GITHUB_ENV
SSCDIR=$GITHUB_WORKSPACE/ssc
echo "SSCDIR=$SSCDIR" >> $GITHUB_ENV

- name: Get cached GTest
uses: actions/cache@v4
id: cachedgtest
with:
path: ${{env.GTEST}}/
key: gtest-windows

- name: Clone Gtest
if: steps.cachedgtest.outputs.cache-hit != 'true'
uses: actions/checkout@v4
with:
repository: google/googletest
path: googletest
ref: ${{env.GTEST_REF}}

- name: build Gtest
if: steps.cachedgtest.outputs.cache-hit != 'true'
shell: bash
run: |
export
mkdir ${GTEST}/build
cd ${GTEST}/build
cmake -Dgtest_force_shared_crt=ON ..
cmake --build . --config Release -j4

- name: Checkout SSC
uses: actions/checkout@v4
with:
path: ssc

- name: Configure CMake
shell: bash
# Configure cmake to build ssc tests but not tools
run: |
mkdir ${SSCDIR}/build
cd ${SSCDIR}/build
cmake .. -DSAM_SKIP_TOOLS=1 -DCMAKE_CONFIGURATION_TYPES="Release"
cmake --build . --config Release -j4
cp ssc/Release/* test/Release

- name: Test
shell: bash
# Turn off fast fail for when the landbosse tests write to cerr
run: |
cd ${SSCDIR}/build/test/Release
./Test.exe

- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: SSC Windows Shared Libraries
path: |
${{env.SSCDIR}}\build\ssc\Release\ssc.dll
15 changes: 5 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,14 @@ option(SAMAPI_EXPORT "Export of ssc binaries to the SAM_api directory; for Unix,
#

if(APPLE)
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15" CACHE STRING "Minimum OS X deployment version")
set(CMAKE_OSX_DEPLOYMENT_TARGET "12" CACHE STRING "Minimum OS X deployment version")
endif()

if (UNIX AND NOT CMAKE_C_COMPILER)
set(CMAKE_C_COMPILER gcc)
set(CMAKE_CXX_COMPILER g++)
endif()
set(CMAKE_CXX_STANDARD 11)

if ( NOT APPLE)
set(CURL_DIR build_resources/libcurl_ssl_x64)
endif()

Project(sam_simulation_core VERSION 1.0.0)
Project(sam_simulation_core VERSION 1.0.0 LANGUAGES CXX C)


#####################################################################################################################
Expand Down Expand Up @@ -82,14 +76,15 @@ function(set_default_compile_options target)
set(MAIN_CFLAGS "")
endif()
set(MAIN_CFLAGS "${MAIN_CFLAGS} -D__64BIT__")
set_property(TARGET ${target} PROPERTY CXX_STANDARD 11)
set_property(TARGET ${target} PROPERTY CXX_STANDARD_REQUIRED ON)
if(MSVC)
set(MAIN_CFLAGS "${MAIN_CFLAGS} /bigobj /MP")
set(MAIN_CFLAGS "${MAIN_CFLAGS} /D__WINDOWS__ /D_WINDOWS /D_CRT_SECURE_NO_WARNINGS /DLPWINAPP")
foreach (flag_var CMAKE_C_FLAGS_DEBUG CMAKE_CXX_FLAGS_DEBUG)
set(${flag_var} "${${flag_var}} /D_DEBUG" CACHE STRING "compile flags" FORCE)
endforeach()
else(MSVC)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
if (APPLE)
set(MAIN_CFLAGS "${MAIN_CFLAGS} -fno-common -DWX_PRECOMP -D__MACOSX__")
else()
Expand All @@ -102,7 +97,7 @@ function(set_default_compile_options target)
endif()
endif()
if (SAMAPI_EXPORT AND APPLE)
SET(MAIN_CFLAGS "${MAIN_CFLAGS} -mmacosx-version-min=10.15" )
SET(MAIN_CFLAGS "${MAIN_CFLAGS} -mmacosx-version-min=12" )
endif()
set_target_properties(${target} PROPERTIES COMPILE_FLAGS ${MAIN_CFLAGS})
endfunction()
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# SSC (SAM Simulation Core)
![Build](https://github.com/NREL/ssc/actions/workflows/ci.yml/badge.svg)
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgit.luolix.top%2FNREL%2Fssc.svg?type=shield)](https://app.fossa.io/projects/git%2Bgit.luolix.top%2FNREL%2Fssc?ref=badge_shield)

The SSC Open Source Project repository contains the source code for the technology and financial models contained within the National Renewable Energy Laboratory's System Advisor Model (SAM). For more details about SAM's capabilities, see the SAM website at [https://sam.nrel.gov/](https://sam.nrel.gov).
The SSC Open Source Project repository contains the source code for the technology and financial models contained within the National Renewable Energy Laboratory's System Advisor Model (SAM). For more details about SAM's capabilities, see the SAM website at [https://sam.nrel.gov/](https://sam.nrel.gov).

You could think of SSC as the home for the algorithms behind the SAM desktop program. Most people run the code through the desktop user interface, but SSC can also be run directly using the [SAM Sofware Develoment Kit](https://sam.nrel.gov/sdk).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,9 @@ class cm_trough_physical_csp_solver : public compute_module
as_double("W_pb_design") / as_double("eta_ref"), //[MWt]
as_double("solar_mult"), //[-]
0.0, //[MWht]
true, //Use fixed tank height
as_double("h_tank"), //[m]
0.0, // No input diameter (it is calculated)
as_double("u_tank"), //[W/m^2-K]
as_integer("tank_pairs"), //[-]
as_double("hot_tank_Thtr"), //[C]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,9 @@ class cm_trough_physical_process_heat : public compute_module
c_heat_sink.ms_params.m_q_dot_des / 1.0, //[MWt]
as_double("solar_mult"), //[-]
c_heat_sink.ms_params.m_q_dot_des / 1.0 * as_double("tshours"), //[hr]
true,
as_double("h_tank"), //[m]
0.0,
as_double("u_tank"), //[W/m^2-K]
as_integer("tank_pairs"), //[-]
as_double("hot_tank_Thtr"), //[C]
Expand Down
Loading
Loading