Автора пока нетВзять себе
- Лицензия
- CC BY-SA 4.0По материалам www.appropedia.org
- Языки
- English
SAMA (Solar Alone Multi-objective Advisor) is an open-source (GNU GPL v3) energy system optimizer and analyzer. It is mainly concentrated on stand-alone, off-grid, solar photovoltaic (PV)-based renewable energy systems, and it also allows hybrid systems for locations that need a form of non-battery backup generation. Users can find the optimum size of a hybrid energy system for their property.

SAMA logo (Seyyed Ali Sadat on Appropedia, CC BY-SA 4.0).
What it does
From an electric load profile and meteorological data (irradiation, temperature and wind speed), SAMA finds the optimum size of a hybrid energy system for a property, and the user gets economic data for the optimal system. It is written in Python 3.9 with NumPy, Numba, time, pandas, math, matplotlib and seaborn. The tool is described in a paper by Seyyed Ali Sadat, Jonathan Takahashi and Joshua M. Pearce in Energy Conversion and Management 298 (2023), article 117686.
Its optimization is a swarm-based algorithm, run from the file pso.py. By default it runs for up to 200 iterations with a swarm of 50 particles, and the simulated system's lifetime is 25 years. With one setting the only objective is the net present cost; with another, the objectives are net present cost and levelized emissions. Constraints include a maximum acceptable loss of power supply probability and a minimum share of renewable energy.
Running it
The page describes the current version as plain Python code, with a web tool and application with a user interface planned. The newest version is on the project's GitHub repository, and a user manual describes the back end.
- Get the input data. Hourly electrical load data for a year (8,760 values) for U.S. cities can be downloaded from the NREL library on OpenEI; its values go into
Eload.csvin the content folder. Meteorological data for any location in the world come from NREL's National Solar Radiation Database (NSRDB), saved asMETEO.csv. The time interval must be 60 minutes, and all meteorological data fields should be downloaded. Other inputs, including costs, are set inInput_Data.py. - Run it. Open
pso.pyin a Python environment such as PyCharm and run it, after installing the required packages.
What you can define
| Input | Options |
|---|---|
| Electrical load | Nine ways: a CSV file, monthly hourly or daily averages, monthly totals, a generic profile, or an annual hourly average, daily average or total |
| Irradiance | A built-in plane-of-array calculator that uses the weather file, tilt, azimuth and soiling losses, or a CSV file (soiling is then not applied) |
| Temperature and wind speed | Simulated from the weather data, read from a CSV file, given as monthly averages, or a single annual average |
| Components | PV, wind turbine, diesel generator, battery and grid, each switched on or off; net metering with credits reconciled after 12 months |
| Technical parameters | Panel derating and efficiency, turbine hub height and cut-in, rated and cut-out speeds, diesel fuel curve and emissions, battery state of charge limits, round-trip efficiency and lifetime, inverter and charger lifetimes |
| Costs | Top-down pricing, which breaks PV system costs down from NREL PV cost benchmarks, or bottom-up pricing, where each piece of equipment gets its capital, replacement and maintenance cost |
| Utility rates | Flat, seasonal, monthly, tiered, seasonal tiered, monthly tiered or time-of-use buying prices, with monthly service charges flat or tiered |
| Selling to the grid | A flat rate, a monthly rate, or the same rate as buying, with limits on hourly purchases and sales and emission factors for grid power |
Sources
- Appropedia contributors, Solar Alone Multi-objective Advisor (SAMA), licensed under CC BY-SA 4.0. Logo by Seyyed Ali Sadat, CC BY-SA 4.0. Changed here: rewritten in hubnx's own words and shortened, with the parameter-by-parameter listing, code defaults and related links left out; this page stays under CC BY-SA 4.0.
- Seyyed Ali Sadat, Jonathan Takahashi and Joshua M. Pearce, A Free and open-source microgrid optimization tool: SAMA the solar alone Multi-Objective Advisor, Energy Conversion and Management 298, 2023, 117686, https://doi.org/10.1016/j.enconman.2023.117686.
Комментарии

Читать дальше
Ещё на тему «Природа»




