SamUL automate CEC performance model

10 views
Skip to first unread message

Alex Thornton

unread,
Oct 18, 2011, 8:37:21 PM10/18/11
to SAM User Group
I am trying to use SamUL to automate simulations of many different
types of PV modules, with all other simulation parameters remaining
the same. To do this manually, the user simply selects the Module Name
under the CEC Performance Model. However, changing the
pv.mod.cec.module_name variable in SamUL does not load the associated
parameters for the model. Does anyone have experience with a situation
like this, and how you got around this issue? Is it even possible to
automate the simulation of different PV modules in SamUL?

Thanks,
Alex

Paul Gilman

unread,
Oct 19, 2011, 1:51:38 PM10/19/11
to SAM User Group
Dear Alex,

Here's a simple SamUL code snippet that does what you describe:

<begin>

SetActiveCase("New Photovoltaics Case 1")

SetInput("pv.mod.cec.module_name","SAM/CEC Modules/First Solar
FS-267")

Simulate()

OutLn(GetOutput("system.annual.e_net"))

SetInput("pv.mod.cec.module_name","SAM/CEC Modules/GE Energy GEPVp-066-
G")

Simulate()

OutLn(GetOutput("system.annual.e_net"))

<end>

Note that you have to use the full module name as it appears in the
list on the module page.

Thanks,
Paul.




On Oct 18, 5:37 pm, Alex Thornton <alex.thorn...@locusenergy.com>
wrote:

Alex Thornton

unread,
Oct 19, 2011, 2:06:31 PM10/19/11
to SAM User Group
Thanks for the quick response Paul.

The "SAM/CEC Modules/" was the part I was missing. I have added this to my code and it now works as expected.

---
Alex



--
You received this message because you are subscribed to the Google
Groups "SAM User Group".
To post to this group, send email to sam-use...@googlegroups.com
To unsubscribe from this group, send email to
sam-user-grou...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/sam-user-group?hl=en

Reply all
Reply to author
Forward
0 new messages