Software Developoment Kit (SDK)

3 posts / 0 new
Last post
burakomersaracoglu
burakomersaracoglu's picture
Integration Possibility Of Tools & Models Under R&D

Dear SAM Developers;

We have been developing some tools and models (small software parts or models).

Can we integrate them to the SAM and present them on the SAM according to "Collaboration: Contribute new models, fix bugs, or work with NREL to implement new features that can be added to the NREL versions of SAM."? (directly on SAM)

If we can, what do we have to do and take into consideration in our R&D processes, studies, and publications?

Have a nice day

Best Regards

9 posts / 0 new
Last post
emiliocernadas@...
pvwatts version 5 calculator demo. sscphp.so

Hi,
I am trying to run pvwatts version 5 calculator demo, the php that comes in the sam open source folder. When I press the button "calculate" I get this error message: Fatal error: Call to undefined function sscphp_data_create() in /www/docs/FILE_PATH/pvwatts.php on line 267

Any idea how to fix it?

Probably is because I didn`t create the "sscphp.so"

Could it be possible to have the steps needed to create the dynamic library "sscphp.so" for a mac 10.10, please

thank you very much!
Best regards

1 post / 0 new
caseyzak24
unable to access singlediodeparams or singlediode compute modules

I am using the python SDK to try and run the singlediode and singlediodeparams modules. Below is my code (note that as far as I know it is all properly indented, but I couldn't get the formatting right in this post):

irr_value_goal = list(range(25,1025,25))
singlediodecurve25 = {'irr':irr_value_goal,'Imp':[],'Vmp':[],'I_sc':[],'V_oc':[],'Pmp':[],'All_V':[],'All_I':[]}
ssc = PySSC()
# ssc.module_exec_set_print(0)
#create the data container where everthing gets carried around
data1 = ssc.data_create()

1 post / 0 new
caseyzak24
unable to access singlediodeparams or singlediode compute modules

I am using the python SDK to try and run the singlediode and singlediodeparams modules. Below is my code (note that as far a I can tell it is all properly indented but I couldn't figure out how to display it correctly in this post):

irr_value_goal = list(range(25,1025,25))
singlediodecurve25 = {'irr':irr_value_goal,'Imp':[],'Vmp':[],'I_sc':[],'V_oc':[],'Pmp':[],'All_V':[],'All_I':[]}
ssc = PySSC()
# ssc.module_exec_set_print(0)
#create the data container where everthing gets carried around

3 posts / 0 new
Last post
nbroderick
Unset variable causes crash but not set in any generated code

I am using the SAM SDK (ver. 186) to run a basic model via the JNI in a Java web servlet environment (wind/levpartflip with default parameters). However, I cannot get it to run; it crashes with the following notice message form the SAM SDK:

SAM module log [levpartflip;-1.0] [NOTICE]: precheck input: variable 'gen' required but not assigned

2 posts / 0 new
Last post
adam_gaglione
Modeling of an Off-Grid, DC only system with SSC SDKTool

I'm hoping to model an off-grid, dc-only system using a combination of SSC SDK and Excel. It looks like I can use wfreader, irradproc, and pv6parmod to get hourly dc output, then I can use Excel to derive the battery SOC for each hour. FYI, I am also using the CEC Modules.csv file that I dug out of the SAM folders, which gives me the pv module coefficients that are needed for pv6parmod. I not able to find much documentation for pv6parmod. Assuming this is the right approach, which model does pv6parmod use for dc output?

3 posts / 0 new
Last post
caseyzak24
Sub-hourly modeling and 'hourly' DC loss adjustments

According to the SAM help docs:
"The SAM CSV format supports hourly and sub-hourly data with up to a one-minute resolution. SAM recognizes the weather file's time resolution based on the number of data rows in the weather file. For example, SAM recognizes a file with 8,670 data rows as an hourly data file, and a file with 35,040 rows as 15-minute data."

2 posts / 0 new
Last post
syj9065
Values for "DC to AC ratio" and "Losses"

I need help with putting correct input values in SAM.

Question 1:
If my system has DC to AC derate factor of 85%, then what should I use for DC to AC ratio in SAM? Default value in SAM is 1.2 and it confuses me whether I have to put 1.15 or 0.85 or some other value.

Question 2:
If I knew my solar panel efficiency is 15%, how can I input that into the SAM model? Would I set total system losses to 85%? Or is there some other way to input this?

4 posts / 0 new
Last post
jranalli
SAM Open Source Compilation Problem

I'm having some trouble compiling the SAM open source SSC. I'm working with Visual Studio Community Edition 2017, updated to the latest version today, in Windows 10. I followed the instructions from the Wiki all along, successfully compiled wxWidgets, GoogleTest, lk, and wex. The SSC Solution compiles up through solarpilot. On solarpilot I get the following two compile errors:

Severity Code Description Project File Line Suppression State

7 posts / 0 new
Last post
caseyzak24
Running irradproc submodule with PySSC

I am attempting to use the irradproc module and the PySSC wrapper to calculate sun zenith angle. Here is my Python code:

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer