{"library":"nrel-pysam","title":"PySAM","description":"PySAM is a Python wrapper for the National Renewable Energy Laboratory's System Advisor Model (SAM), enabling simulation of renewable energy systems including PV, wind, battery storage, and CSP. Version 7.1.1.post1 supports SAM version 2024.11.21. Release cadence follows SAM releases (2-3 per year).","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install nrel-pysam"],"cli":null},"imports":["import PySAM.PySSC as PySSC","import PySAM.Pvwattsv8 as Pvwattsv8","from PySAM.Battery import Battery","from PySAM.CustomGeneration import CustomGeneration"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import PySAM.Pvwattsv8 as pv\n# Create default system\nsystem_model = pv.default('FlatPlatePV-NoSDK')\n# Modify parameters\nsystem_model.SolarResource.solar_resource_file = 'file.csv'\nsystem_model.execute()\nprint(system_model.Outputs.annual_energy)","lang":"python","description":"Run a default PVWatts simulation and print annual energy. Replace 'file.csv' with a solar resource file.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}