![]() |
SAM is Now Open Source! |
All of the source code and tools required to build SAM is now available to the public. NREL will continue to maintain and update the code, and to release NREL versions of SAM for Windows, Mac and Linux with new features and updates.
SAM Open Source is the latest addition to the suite of ways you can use SAM for your research and analysis. It provides:
To learn more, watch a recording of the SAM Open Source webinar from September 2017.
Are you ready to dig in? Check it out at https://github.com/NREL/SAM.
Do you love SAM? Are you super excited that it’s now open source? Share with us what you’re doing with it and how it has helped you! Testimonials like yours help us secure funding to continue to develop this great tool.
Are you new to SAM? Check out our home page or download the desktop version to learn more about the many other ways that SAM can help you in your research, analysis, and development!
Where do I find SAM's source code?
SAM's source code is hosted on GitHub.com repositories. The main repository is at https://github.com/nrel/sam. See the README and Wiki pages for information about the code repositories and instructions for building and contributing to the project.
What computer language is SAM written in?
Most of SAM is written in C++, and some of the user interface elements are written in LK script. SAM's code uses standard C libraries along with WxWidgets and WEX (an extension of WXWidgets written for SAM) libraries for the user interface, and LK libraries for scripting functionality. See this SAM Open Source wiki page for more about software dependencies.
Will NREL continue to maintain the source code?
Yes. NREL will continue to maintain the source code and to release NREL versions of SAM. NREL will also review contributions before accepting them as part of the open source code base.
Can I build and distribute my own version of SAM?
Yes, as long as you follow the terms of the SAM license.
What other ways can I extend SAM’s functionality?
The desktop version of SAM includes tools for more advanced analysis, including parametric and stochastic simulations, P50/P90 analysis, and the built-in LK scripting language for full automated control over assigning inputs, running simulations, reading outputs, and reading and writing data to files. You can also use the SAM API that comes with the SAM SDK to access the SAM Simulation Core (SSC) library and run SAM from your own applications written in C/C++, Python, VBA, MATLAB, PHP, and other languages.
Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer