Enhance SAM with features tailored to your specific needs! We collaborate with companies, universities, and organizations to privately fund new capabilities or analyses. Your investment drives innovation while benefiting the broader energy community. Email us to learn more.

STC variable and SetInput("pv.mod.cec.module_name")

  • jtopham
  • Topic Author
More
10 Jan 2013 10:38 #1152 by jtopham
I have a two part question:

first, where is the variable for STC watt rating for a module? It seems pretty basic but I can't seem to find it, I looked through the exelib file and wasn't even able to find it there (thank you pete for drawing my attention to it).

second, I am trying to use the code you gave me to input a module name from the library into the CEC model, and again to input the inverter name into the sandia model, by using the SetInput() function. I have this on a loop so that I can do separate simulations per each inverter and module. In the example you gave me, it accessed an element in the library with a number. I may be doing this incorrectly, but is there a way to access by string? If you could help me with this it would be greatly appreciated. i will work more on this after lunch and will post my concusion if I figure it out before then, but I could still use help with the first part.

Thanks,

Jonathan Topham

Please Log in or Create an account to join the conversation.

  • Paul Gilman
More
10 Jan 2013 15:14 #1153 by Paul Gilman
Replied by Paul Gilman on topic STC variable and SetInput("pv.mod.cec.module_name")
Hi Jonathan,

For the benefit of other readers, this discussion is about using SamUL to model a PV system, and is related to the following thread:

sam.nrel.gov/content/cec-module-database-values

1. The module nameplate capacity for modules in the CEC library is
Code:
pv.mod.cec.p_mp_ref
. For the CEC library, this is the maximum power at the reference conditions shown on the Module page: 1,000 W/m2 and 25 degrees C cell temperature.

2. To set the current module to one from the CEC (or Sandia) library, you have to use the array index as I showed in my response to your earlier post . If you wanted to use a string instead, you could build a lookup table with one column of array indexes and a second column of module names.

Best regards,
Paul.

Please Log in or Create an account to join the conversation.

  • jtopham
  • Topic Author
More
11 Jan 2013 07:49 #1154 by jtopham
function cec_lib_fill(excel_string)
lib_cec = library("CECModule")
for(i=0;i

Please Log in or Create an account to join the conversation.

  • jtopham
  • Topic Author
More
11 Jan 2013 08:00 #1155 by jtopham
and for inverters

function setinput_inverter(excel_string)
lib_sandia = library("SandiaInverter")
for(i=0;i

Please Log in or Create an account to join the conversation.

Moderators: Paul Gilman
Powered by Kunena Forum