Skip to main content

Calculates multijunction solar cell efficiency

Project description

Calculate yearly average efficiencies for multijunction tandem solar cells

Random sampling of multijunction photovoltaic efficiencies. Jose M. Ripalda

The main file is tandems.py

Tested with Python 2.7 and 3.6

SMARTS 2.9.5 is required only to generate a new set of random spectra.

File "data/lat40.npy" can be used instead of SMARTS to load a set of averaged spectra.

Clone or download from https://github.com/Ripalda/Tandems to obtain full set of spectra (about 600 MB).

genBins.py imports tandems.py to generate sets of proxy spectra

Project Organization

.
├── LICENSE
├── README.md
└── data

USAGE EXAMPLE

import tandems

tandems.docs()

eff = tandems.effs(junctions=4, bins=6, concentration=500)    #    Include as many or as few options as needed.
eff.findGaps()
eff.plot() # Figures saved to PNG files.

eff.save() # Data saved for later reuse/replotting. Path and file name set in eff.name, some parameters and timestamp are appended to filename

eff2 = tandems.deepcopy(eff)
eff2.__init__(junctions=4,bins=8, concentration=1, R=4e-5)  # Change input parameters but keep previously found set of optimal gap combinations.
eff2.recalculate() # Recalculate efficiencies for previously found set of optimal gap combinations.
eff2.compare(eff) # Compares efficiencies in two datasets by doing eff2 - eff. Plots difference and saves PNG files.

# eff = tandems.load('/path/and file name here') # Load previusly saved data
# eff.results()
# eff.plot()

# The .npy files with the spectra used to calculate the yearly average efficiency have been generated with genBins.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tandems-0.989.tar.gz (6.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tandems-0.989-py3-none-any.whl (6.4 MB view details)

Uploaded Python 3

File details

Details for the file tandems-0.989.tar.gz.

File metadata

  • Download URL: tandems-0.989.tar.gz
  • Upload date:
  • Size: 6.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.3

File hashes

Hashes for tandems-0.989.tar.gz
Algorithm Hash digest
SHA256 ba2bfef80b82ff27bd2b32a71dd170626f15ce438c32d7691371e12c132f588d
MD5 1bec5205de4a021496b2d498a7b470ce
BLAKE2b-256 e97fd4cd7a51e3a51ffc22c08da162281c40b71b2137996d5a6a3ecb9a5684f9

See more details on using hashes here.

File details

Details for the file tandems-0.989-py3-none-any.whl.

File metadata

  • Download URL: tandems-0.989-py3-none-any.whl
  • Upload date:
  • Size: 6.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.3

File hashes

Hashes for tandems-0.989-py3-none-any.whl
Algorithm Hash digest
SHA256 3495147372217432223a4f44f166a0fa94cb6a598d41e5996ca833ae5f418f56
MD5 ff6a35fb99c06741453e1455355d35c0
BLAKE2b-256 4b252bfa737fe0f3ee670a47642a13de843d0ed65605d50acd072b3f6b79ea8e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page