NREL-PySAM is a wrapper for the National Renewable Energy Laboratory’s System Advisor Model (SAM), a simulator for renewable energy, not to be confused with pysam, which is for reading sequence alignment files often used in genetics.
SAM is a performance and financial model designed to facilitate decision making for people involved in the renewable energy industry:
- Project managers and engineers
- Policy analysts
- Technology developers
PySAM enables developers to run the underlying unit modules that make up a simulation in SAM. A single simulation may comprise a single module or a process chaining together multiple unit modules. PySAM exposes these unit modules in a native Python interface so that they can be customized and embedded in software applications.
Learn how to install the package from PyPi or the Conda registry. Write your first PySAM script and run a renewable energy power system simulation in a few steps following some examples. Or, take a look at how cases from the SAM Desktop application can be imported into PySAM.
Models and Tools¶
PySAM offers all the technology and financial models available in SAM as separate unit modules. Learn about individual modules and how to chain them together to represent a specific configuration such as Distributed Wind or Single Owner PV + Battery. PySAM also includes tools that provide design and resource functionality.