- Posts: 2
Where to find how ssc handles bi-directional inverters in the source code
- Casey Zak
- Topic Author
Less
More
04 Mar 2025 21:06 #13917
by Casey Zak
Where to find how ssc handles bi-directional inverters in the source code was created by Casey Zak
Hi there,
I've been poking around the ssc source code trying to figure out how ssc treats bi-directional inverters (or an inverter-charger) for DC-coupled PV-battery hybrid systems. I've found some github issues and forum posts with some diagrams but haven't been able to trace it in the actual code.
Specifically, I'd like to understand if the inverter is modeled as working the same (same efficiency curve, pso, clipping limit etc) whether you are converting DC to AC or AC to DC.
Thanks!
I've been poking around the ssc source code trying to figure out how ssc treats bi-directional inverters (or an inverter-charger) for DC-coupled PV-battery hybrid systems. I've found some github issues and forum posts with some diagrams but haven't been able to trace it in the actual code.
Specifically, I'd like to understand if the inverter is modeled as working the same (same efficiency curve, pso, clipping limit etc) whether you are converting DC to AC or AC to DC.
Thanks!
Please Log in or Create an account to join the conversation.
- Paul Gilman
Less
More
- Posts: 5507
05 Mar 2025 16:33 #13924
by Paul Gilman
Replied by Paul Gilman on topic Where to find how ssc handles bi-directional inverters in the source code
Hi Casey,
For PV+Battery systems with DC-connected batteries, SAM treats the inverter as bi-directional with the same parameters regardless of whether it is converting DC to AC, or AC to DC.
The model is defined in lib_shared_inverter.cpp: github.com/NREL/ssc/blob/patch/shared/lib_shared_inverter.cpp
(For PV+Battery AC-connected, standalone, and generic battery configurations, the model uses the simple "battery bidirectional inverter" defined in lib_power_electronics.cpp: github.com/NREL/ssc/blob/31d4a54a01f2531fbb412aee93e5ac39a973a3ce/shared/lib_power_electronics.cpp#L38 .)
Best regards,
Paul.
Best regards,
Paul.
For PV+Battery systems with DC-connected batteries, SAM treats the inverter as bi-directional with the same parameters regardless of whether it is converting DC to AC, or AC to DC.
The model is defined in lib_shared_inverter.cpp: github.com/NREL/ssc/blob/patch/shared/lib_shared_inverter.cpp
(For PV+Battery AC-connected, standalone, and generic battery configurations, the model uses the simple "battery bidirectional inverter" defined in lib_power_electronics.cpp: github.com/NREL/ssc/blob/31d4a54a01f2531fbb412aee93e5ac39a973a3ce/shared/lib_power_electronics.cpp#L38 .)
Best regards,
Paul.
Best regards,
Paul.
Please Log in or Create an account to join the conversation.
Moderators: Paul Gilman