Skip to content

Commit

Permalink
Merge branch 'develop' into particle_gen3_csp
Browse files Browse the repository at this point in the history
  • Loading branch information
qualand committed Nov 14, 2024
2 parents 689fa90 + ea128b9 commit 337b0a6
Show file tree
Hide file tree
Showing 152 changed files with 256,833 additions and 79,941 deletions.
3 changes: 2 additions & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ Please delete options that are not relevant.
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] This change requires a documentation update
- [ ] This change modifies variables in existing compute modules. Please see [Checking for PySAM Incompatible API Changes](https://github.com/NREL/SAM/wiki/Checking-for-PySAM-Incompatible-API-Changes).
- [ ] This change modifies variables in existing compute modules. Please see [Checking for PySAM Incompatible API Changes](https://github.com/NREL/SAM/wiki/PySAM-Incompatible-API-Changes-&-Regenerating-PySAM-Files).
- [ ] This change requires updating the PySAM files via export_config. Please see [When do the PySAM files need to be regenerated?](https://github.com/NREL/SAM/wiki/PySAM-Incompatible-API-Changes-&-Regenerating-PySAM-Files#when-do-the-pysam-files-need-to-be-regenerated-via-export_config)


## Checklist:
Expand Down
9 changes: 2 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ set(CMAKE_OSX_DEPLOYMENT_TARGET "12" CACHE STRING "Minimum OS X deployment versi

set(CMAKE_XCODE_ATTRIBUTE_OTHER_CODE_SIGN_FLAGS "-o linker-signed")

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


#####################################################################################################################
#
Expand All @@ -26,7 +21,7 @@ option(SAMAPI_EXPORT "Export of ssc binaries to the SAM_api directory; for Unix,

option(SAM_SKIP_AUTOGEN "Skips the automatic regeneration of SAMAPI files from export_config" ON)

Project(samos)
Project(samos LANGUAGES CXX C)

if (SAMAPI_EXPORT)
add_subdirectory(api)
Expand Down Expand Up @@ -95,7 +90,6 @@ set(SAM_SRC src/private.h
#
#####################################################################################################################

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)

if(MSVC)
Expand Down Expand Up @@ -183,6 +177,7 @@ else() # if Release or if MSVC multigenerator
${SAM_ICON})
set(SAM_EXE SAMOS)
endif()
target_compile_features(${SAM_EXE} PUBLIC cxx_std_11)

if (MSVC)
set_target_properties(${SAM_EXE}
Expand Down
9 changes: 2 additions & 7 deletions api/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,14 @@ if(APPLE)
set(CMAKE_MACOSX_RPATH 1)
endif()

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


#####################################################################################################################
#
# Project Settings
#
#####################################################################################################################

Project(SAM_API)
Project(SAM_API LANGUAGES CXX C)

if (NOT SAM_SKIP_AUTOGEN)
add_subdirectory(api_autogen)
Expand All @@ -49,7 +44,6 @@ file(GLOB SAM_API_MODULES ${PROJECT_SOURCE_DIR}/modules/*.cpp ${PROJECT_SOURCE_D
#
#####################################################################################################################

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)

if(MSVC)
Expand Down Expand Up @@ -81,6 +75,7 @@ endif()
#####################################################################################################################

add_library(SAM_api SHARED ${SAM_API_SRC} ${SAM_API_MODULES})
target_compile_features(SAM_api PUBLIC cxx_std_11)

target_include_directories(SAM_api PRIVATE include src $ENV{SSCDIR} $ENV{SSCDIR}/ssc $ENV{SSCDIR}/shared)

Expand Down
10 changes: 3 additions & 7 deletions api/api_autogen/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,14 @@ if(APPLE)
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()


#####################################################################################################################
#
# Project Settings
#
#####################################################################################################################

Project(EXPORT_SAM_UI)
Project(EXPORT_SAM_UI LANGUAGES CXX C)

set(SAM_SOURCES
../../src/variables.cpp
Expand All @@ -39,7 +34,6 @@ file(TO_CMAKE_PATH ../../../ssc/shared/lib_util.cpp SSC_SOURCES)
#
#####################################################################################################################

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)

if(MSVC)
Expand Down Expand Up @@ -116,6 +110,8 @@ set_target_properties(export_config
DEBUG_POSTFIX "d"
PREFIX ""
)
target_compile_features(export_config PUBLIC cxx_std_11)

if (MSVC)
set_target_properties(export_config
PROPERTIES
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@
"batt_cycle_cost_choice": 0,
"batt_dispatch_auto_can_charge": 1,
"batt_dispatch_auto_can_clipcharge": 0,
"batt_dispatch_auto_can_curtailcharge": 0,
"batt_dispatch_auto_can_fuelcellcharge": 0,
"batt_dispatch_auto_can_gridcharge": 0,
"batt_dispatch_choice": 3,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@
"batt_dispatch_auto_btm_can_discharge_to_grid": 0,
"batt_dispatch_auto_can_charge": 1,
"batt_dispatch_auto_can_clipcharge": 0,
"batt_dispatch_auto_can_curtailcharge": 0,
"batt_dispatch_auto_can_fuelcellcharge": 0,
"batt_dispatch_auto_can_gridcharge": 0,
"batt_dispatch_charge_only_system_exceeds_load": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@
"batt_dispatch_auto_btm_can_discharge_to_grid": 0,
"batt_dispatch_auto_can_charge": 1,
"batt_dispatch_auto_can_clipcharge": 0,
"batt_dispatch_auto_can_curtailcharge": 0,
"batt_dispatch_auto_can_fuelcellcharge": 0,
"batt_dispatch_auto_can_gridcharge": 0,
"batt_dispatch_charge_only_system_exceeds_load": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@
"batt_cycle_cost_choice": 0,
"batt_dispatch_auto_can_charge": 1,
"batt_dispatch_auto_can_clipcharge": 0,
"batt_dispatch_auto_can_curtailcharge": 0,
"batt_dispatch_auto_can_fuelcellcharge": 0,
"batt_dispatch_auto_can_gridcharge": 0,
"batt_dispatch_choice": 3,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@
"batt_cycle_cost_choice": 0,
"batt_dispatch_auto_can_charge": 1,
"batt_dispatch_auto_can_clipcharge": 1,
"batt_dispatch_auto_can_curtailcharge": 0,
"batt_dispatch_auto_can_fuelcellcharge": 0,
"batt_dispatch_auto_can_gridcharge": 0,
"batt_dispatch_choice": 3,
Expand Down Expand Up @@ -366,15 +367,19 @@
]
},
"Revenue": {
"mp_ancserv1_percent_gen": 0,
"mp_ancserv1_revenue_single": [
[0.000000]
],
"mp_ancserv2_percent_gen": 0,
"mp_ancserv2_revenue_single": [
[0.000000]
],
"mp_ancserv3_percent_gen": 0,
"mp_ancserv3_revenue_single": [
[0.000000]
],
"mp_ancserv4_percent_gen": 0,
"mp_ancserv4_revenue_single": [
[0.000000]
],
Expand Down Expand Up @@ -219384,7 +219389,8 @@
[38.730000],
[38.570000],
[5.350000]
]
],
"mp_market_percent_gen": 100
},
"ElectricityRates": {
"en_electricity_rates": 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@
"batt_dispatch_auto_btm_can_discharge_to_grid": 0,
"batt_dispatch_auto_can_charge": 1,
"batt_dispatch_auto_can_clipcharge": 0,
"batt_dispatch_auto_can_curtailcharge": 0,
"batt_dispatch_auto_can_fuelcellcharge": 0,
"batt_dispatch_auto_can_gridcharge": 0,
"batt_dispatch_charge_only_system_exceeds_load": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@
"batt_cycle_cost_choice": 0,
"batt_dispatch_auto_can_charge": 1,
"batt_dispatch_auto_can_clipcharge": 0,
"batt_dispatch_auto_can_curtailcharge": 0,
"batt_dispatch_auto_can_fuelcellcharge": 0,
"batt_dispatch_auto_can_gridcharge": 0,
"batt_dispatch_choice": 3,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@
"batt_cycle_cost_choice": 0,
"batt_dispatch_auto_can_charge": 1,
"batt_dispatch_auto_can_clipcharge": 0,
"batt_dispatch_auto_can_curtailcharge": 0,
"batt_dispatch_auto_can_fuelcellcharge": 0,
"batt_dispatch_auto_can_gridcharge": 0,
"batt_dispatch_choice": 3,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@
"batt_dispatch_auto_btm_can_discharge_to_grid": 0,
"batt_dispatch_auto_can_charge": 1,
"batt_dispatch_auto_can_clipcharge": 0,
"batt_dispatch_auto_can_curtailcharge": 0,
"batt_dispatch_auto_can_fuelcellcharge": 0,
"batt_dispatch_auto_can_gridcharge": 0,
"batt_dispatch_charge_only_system_exceeds_load": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@
"batt_dispatch_auto_btm_can_discharge_to_grid": 0,
"batt_dispatch_auto_can_charge": 1,
"batt_dispatch_auto_can_clipcharge": 0,
"batt_dispatch_auto_can_curtailcharge": 0,
"batt_dispatch_auto_can_fuelcellcharge": 0,
"batt_dispatch_auto_can_gridcharge": 0,
"batt_dispatch_charge_only_system_exceeds_load": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@
"batt_cycle_cost_choice": 0,
"batt_dispatch_auto_can_charge": 1,
"batt_dispatch_auto_can_clipcharge": 0,
"batt_dispatch_auto_can_curtailcharge": 0,
"batt_dispatch_auto_can_fuelcellcharge": 0,
"batt_dispatch_auto_can_gridcharge": 0,
"batt_dispatch_choice": 3,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"batt_replacement_option": 0,
"batt_replacement_schedule_percent": [0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000],
"batt_surface_area": 90.0157,
"en_batt": 1
"en_batt": 1,
"en_standalone_batt": 0
},
"SystemOutput": {
},
Expand Down Expand Up @@ -278,6 +279,7 @@
"batt_dispatch_auto_btm_can_discharge_to_grid": 0,
"batt_dispatch_auto_can_charge": 1,
"batt_dispatch_auto_can_clipcharge": 0,
"batt_dispatch_auto_can_curtailcharge": 0,
"batt_dispatch_auto_can_fuelcellcharge": 0,
"batt_dispatch_auto_can_gridcharge": 0,
"batt_dispatch_charge_only_system_exceeds_load": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"batt_replacement_option": 0,
"batt_replacement_schedule_percent": [0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000],
"batt_surface_area": 18000,
"en_batt": 1
"en_batt": 1,
"en_standalone_batt": 0
},
"SystemOutput": {
},
Expand Down Expand Up @@ -270,6 +271,7 @@
"batt_cycle_cost_choice": 0,
"batt_dispatch_auto_can_charge": 1,
"batt_dispatch_auto_can_clipcharge": 1,
"batt_dispatch_auto_can_curtailcharge": 0,
"batt_dispatch_auto_can_fuelcellcharge": 0,
"batt_dispatch_auto_can_gridcharge": 0,
"batt_dispatch_choice": 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@
"batt_cycle_cost_choice": 0,
"batt_dispatch_auto_can_charge": 1,
"batt_dispatch_auto_can_clipcharge": 0,
"batt_dispatch_auto_can_curtailcharge": 0,
"batt_dispatch_auto_can_fuelcellcharge": 0,
"batt_dispatch_auto_can_gridcharge": 1,
"batt_dispatch_choice": 3,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@
"batt_dispatch_auto_btm_can_discharge_to_grid": 0,
"batt_dispatch_auto_can_charge": 1,
"batt_dispatch_auto_can_clipcharge": 0,
"batt_dispatch_auto_can_curtailcharge": 0,
"batt_dispatch_auto_can_fuelcellcharge": 0,
"batt_dispatch_auto_can_gridcharge": 0,
"batt_dispatch_charge_only_system_exceeds_load": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@
"batt_cycle_cost_choice": 0,
"batt_dispatch_auto_can_charge": 1,
"batt_dispatch_auto_can_clipcharge": 0,
"batt_dispatch_auto_can_curtailcharge": 0,
"batt_dispatch_auto_can_fuelcellcharge": 0,
"batt_dispatch_auto_can_gridcharge": 0,
"batt_dispatch_choice": 3,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@
"batt_dispatch_auto_btm_can_discharge_to_grid": 0,
"batt_dispatch_auto_can_charge": 1,
"batt_dispatch_auto_can_clipcharge": 0,
"batt_dispatch_auto_can_curtailcharge": 0,
"batt_dispatch_auto_can_fuelcellcharge": 0,
"batt_dispatch_auto_can_gridcharge": 0,
"batt_dispatch_charge_only_system_exceeds_load": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@
"batt_cycle_cost_choice": 0,
"batt_dispatch_auto_can_charge": 1,
"batt_dispatch_auto_can_clipcharge": 0,
"batt_dispatch_auto_can_curtailcharge": 0,
"batt_dispatch_auto_can_fuelcellcharge": 0,
"batt_dispatch_auto_can_gridcharge": 0,
"batt_dispatch_choice": 3,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@
"batt_dispatch_auto_btm_can_discharge_to_grid": 0,
"batt_dispatch_auto_can_charge": 1,
"batt_dispatch_auto_can_clipcharge": 0,
"batt_dispatch_auto_can_curtailcharge": 0,
"batt_dispatch_auto_can_fuelcellcharge": 0,
"batt_dispatch_auto_can_gridcharge": 0,
"batt_dispatch_charge_only_system_exceeds_load": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@
"batt_cycle_cost_choice": 0,
"batt_dispatch_auto_can_charge": 1,
"batt_dispatch_auto_can_clipcharge": 0,
"batt_dispatch_auto_can_curtailcharge": 0,
"batt_dispatch_auto_can_fuelcellcharge": 0,
"batt_dispatch_auto_can_gridcharge": 0,
"batt_dispatch_choice": 3,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"defaults": {
"Simulation": {
"timestep_minutes": 60
},
"Lifetime": {
"analysis_period": 25,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"defaults": {
"Simulation": {
"timestep_minutes": 60
},
"Lifetime": {
"analysis_period": 25,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"defaults": {
"Simulation": {
"timestep_minutes": 60
},
"Lifetime": {
"analysis_period": 25,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"defaults": {
"Simulation": {
"timestep_minutes": 60
},
"Lifetime": {
"analysis_period": 25,
Expand Down
Loading

0 comments on commit 337b0a6

Please sign in to comment.