Hi Joel,
The DC / AC ratio is not an input to the pvsamv1 model. There are a couple of ways to verify that. One is in the PySAM module documentation here:
nrel-pysam.readthedocs.io/en/master/py-modindex.html (follow the link to the pvsamv1 module), and the other is to use module browser in the SDKtool application that comes with the SAM desktop application as described under "SDKtool" here:
sam.nrel.gov/software-development-kit-sdk.html.
The desired_dcac_ratio input in LK is part of the SAM desktop application's user interface, but not an input to the underlying SSC module. The SAM user interface has some functions that are not available in SSC. Examples of those are the PV size estimator on the System Design page and the weather data download functions on the Location and Resource page.
To set the DC / AC ratio, you'll have to write your own code to set the number of inverters, modules per string, and strings in parallel to achieve the desired DC / AC ratio. The variables you will need to use for that calculation, assuming your array has one subarray, are:
subarray1_modules_per_string
You will also need to know the inverter and module rated AC and DC power, respectively, which depends on the inverter and module model you are using:
For the Sandia inverter model:
For the CEC Module Model with Database Parameters, you can calculated the module rated power by multiplying
and
.
When you set the number of modules per string, you may want to compare the Vmp and Voc ratings to the inverter minimum and maximum Vmppt ratings to ensure the voltage ratings are within specifications.
If this is more detail than you need, you could use the pvwattsv7 module instead, where the system size is defined more simply using a DC power rating and DC / AC ratio.
Thanks,
Paul.