- Posts: 1
Modular Simulations
- jspring42
- Topic Author
Less
More
06 Apr 2022 08:43 #10807
by jspring42
Modular Simulations was created by jspring42
I have successfully used the json files generated from the SAM UI to recreate a Detailed PV - Merchant Plant simulation
in python, but now I'd like to adjust the 'Desired Array Size' from the System
Design tab programmatically in python and I believe that can be done by
changing the system capacity or nameplate capacity. The issue I'm having comes
with locating the various fields that are changed when the array size changes
and the calculations used to update those fields. I know the GitHub has the
runtime/ui folder, but it's been difficult to find what I'm looking for. Does
anyone know the fields and their associated calculations that are updated when
the array size changes?
in python, but now I'd like to adjust the 'Desired Array Size' from the System
Design tab programmatically in python and I believe that can be done by
changing the system capacity or nameplate capacity. The issue I'm having comes
with locating the various fields that are changed when the array size changes
and the calculations used to update those fields. I know the GitHub has the
runtime/ui folder, but it's been difficult to find what I'm looking for. Does
anyone know the fields and their associated calculations that are updated when
the array size changes?
Please Log in or Create an account to join the conversation.
- pgilman
Less
More
- Posts: 5447
06 Apr 2022 18:58 #10810
by pgilman
Replied by pgilman on topic Modular Simulations
Hi Jordan,
The "Estimate Subarray 1 configuration" option on the System Design page of SAM's Detailed PV model uses code that is embedded in the user interface to calculate the value of number of modules per string and number of strings in parallel for Subarray 1 as described in the PV Sizing and Configuration topic of Help: samrepo.nrelcloud.org/help/pv_sizing.htm
If you want that functionality in Python, you can write it yourself based on that description. The SSC inputs that determine the size of the array are:
subarray1_modules_per_string
subarray1_nstrings
inverter_count
If your design uses more than one subarray, then you'll need to assign values to subarray[n] variables, where n is the subarray number between 1 and 4, inclusive.
Best regards,
Paul.
The "Estimate Subarray 1 configuration" option on the System Design page of SAM's Detailed PV model uses code that is embedded in the user interface to calculate the value of number of modules per string and number of strings in parallel for Subarray 1 as described in the PV Sizing and Configuration topic of Help: samrepo.nrelcloud.org/help/pv_sizing.htm
If you want that functionality in Python, you can write it yourself based on that description. The SSC inputs that determine the size of the array are:
subarray1_modules_per_string
subarray1_nstrings
inverter_count
If your design uses more than one subarray, then you'll need to assign values to subarray[n] variables, where n is the subarray number between 1 and 4, inclusive.
Best regards,
Paul.
Please Log in or Create an account to join the conversation.
Moderators: pgilman