How natlabrockies/ssc works
SSC is the simulation core behind SAM: users or SDK callers select compute modules, which model renewable-energy technologies and project finances and expose results through SSC’s variable-table/API layer. The sampled PV module shows irradiance and resilience responsibilities; the molten-salt module shows CSP coordination with SolarPILOT and thermal-system components. The README establishes the compute-module workflow and model scope. Several major modules are unsampled, so their presence is represented at directory level without inferred call chains.
Main entry points: cmod_tcsmolten_salt.cpp Molten-salt model · storage_hx.cpp Thermal storage · cmod_pvsamv1.cpp PV system model · core.h Module runtime
Components 18
SSC API
- Module runtime
ssc/core.h - Variable tables
ssc/vartab.cpp - Common services
ssc/common.h
Compute Models
PV Simulation
- PV system model
ssc/cmod_pvsamv1.cpp - PV input/output
shared/lib_pv_io_manager.h - Resilience analysis
shared/lib_resilience.h - Irradiance models
shared/lib_irradproc.h
CSP Simulation
- Molten-salt model
ssc/cmod_tcsmolten_salt.cpp - Solar field design
solarpilot/SolarField.cpp - CSP system solver
tcs/csp_solver_core.h - CSP dispatch
tcs/csp_dispatch_ortools.h - Thermal storage
tcs/storage_hx.cpp
Shared Physics
- Heat-fluid properties
tcs/htf_props.h - CSP utilities
tcs/sam_csp_util.h - General utilities
shared/lib_util.h
Other components
- SDK caller
Connections 15
- SDK caller → Module runtime: invokes
README.md - Module runtime → Variable tables: uses
ssc/core.h - Common services → Module runtime: includes
ssc/common.h - SDK caller → Technology models: selects model
README.md - SDK caller → Financial models: selects model
README.md - PV system model → PV input/output: uses inputs
ssc/cmod_pvsamv1.cpp - PV system model → Resilience analysis: runs analysis
ssc/cmod_pvsamv1.cpp - PV system model → Irradiance models: calculates irradiance
ssc/cmod_pvsamv1.cpp - Molten-salt model → Solar field design: uses field
ssc/cmod_tcsmolten_salt.cpp - Molten-salt model → CSP system solver: uses solver
ssc/cmod_tcsmolten_salt.cpp - Molten-salt model → CSP dispatch: uses dispatch
ssc/cmod_tcsmolten_salt.cpp - Molten-salt model → Thermal storage: uses storage
- Thermal storage → Heat-fluid properties: reads properties
tcs/storage_hx.cpp - Thermal storage → CSP utilities: uses utilities
- Thermal storage → General utilities: uses helpers