Skip to main content

UBC Solar's Simulation Environment

Project description

UBC Solar Physics

Documentation Status

UBC Solar's physics and environment models for simulating our groundbreaking solar cars.

The API is currently unstable, and backwards compatibility may not be maintained.

Requirements

Versions indicated are recommended

  • Git [^1]
  • Python >=3.9 [^2]
  • Rustc >=1.79.0 [^3]
  • Cargo >=1.79.0 [^4]

Installation

First, clone this repository.

git clone https://github.com/UBC-Solar/physics.git

Then, create and activate a virtual environment. Next, install dependencies in editable mode.

pip3 install -e .

Getting Started

Example of calculating solar arrays produced energy

from physics.models.arrays import BasicArray
import numpy as np

efficiency = 0.25  # 25.0% efficient
panel_size = 4.0   # 4.0m^2 of panels
tick = 1.0         # 1.0s interval

arrays = BasicArray(panel_efficiency=efficiency, panel_size=panel_size)

irradiance = np.full([5], 400.0)  # 10 seconds of 400.0W/m^2 irradiance

solar_power_produced = arrays.calculate_produced_energy(solar_irradiance=irradiance, tick=tick)

assert np.array_equal(solar_power_produced, np.array([400.0, 400.0, 400.0, 400.0, 400.0]))

Appendix

[^1]: use git --version to verify version

[^2]: use python3 --version to verify version

[^3]: use rustc --version to verify version

[^4]: use cargo --version to verify version

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

ubc_solar_physics-1.0.5.tar.gz (37.4 kB view details)

Uploaded Source

Built Distributions

ubc_solar_physics-1.0.5-cp313-cp313-win_amd64.whl (198.2 kB view details)

Uploaded CPython 3.13 Windows x86-64

ubc_solar_physics-1.0.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (354.8 kB view details)

Uploaded CPython 3.13 manylinux: glibc 2.17+ x86-64

ubc_solar_physics-1.0.5-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (359.3 kB view details)

Uploaded CPython 3.13 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

ubc_solar_physics-1.0.5-cp313-cp313-macosx_11_0_arm64.whl (299.8 kB view details)

Uploaded CPython 3.13 macOS 11.0+ ARM64

ubc_solar_physics-1.0.5-cp313-cp313-macosx_10_13_x86_64.whl (306.5 kB view details)

Uploaded CPython 3.13 macOS 10.13+ x86-64

ubc_solar_physics-1.0.5-cp312-cp312-win_amd64.whl (198.2 kB view details)

Uploaded CPython 3.12 Windows x86-64

ubc_solar_physics-1.0.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (354.8 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

ubc_solar_physics-1.0.5-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (359.3 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

ubc_solar_physics-1.0.5-cp312-cp312-macosx_11_0_arm64.whl (299.8 kB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

ubc_solar_physics-1.0.5-cp312-cp312-macosx_10_9_x86_64.whl (306.5 kB view details)

Uploaded CPython 3.12 macOS 10.9+ x86-64

ubc_solar_physics-1.0.5-cp311-cp311-win_amd64.whl (198.1 kB view details)

Uploaded CPython 3.11 Windows x86-64

ubc_solar_physics-1.0.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (354.9 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

ubc_solar_physics-1.0.5-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (360.2 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

ubc_solar_physics-1.0.5-cp311-cp311-macosx_11_0_arm64.whl (299.5 kB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

ubc_solar_physics-1.0.5-cp311-cp311-macosx_10_9_x86_64.whl (307.7 kB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

ubc_solar_physics-1.0.5-cp310-cp310-win_amd64.whl (198.3 kB view details)

Uploaded CPython 3.10 Windows x86-64

ubc_solar_physics-1.0.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (354.8 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

ubc_solar_physics-1.0.5-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (360.1 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

ubc_solar_physics-1.0.5-cp310-cp310-macosx_11_0_arm64.whl (299.4 kB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

ubc_solar_physics-1.0.5-cp310-cp310-macosx_10_9_x86_64.whl (307.7 kB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

ubc_solar_physics-1.0.5-cp39-cp39-win_amd64.whl (198.4 kB view details)

Uploaded CPython 3.9 Windows x86-64

ubc_solar_physics-1.0.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (355.6 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

ubc_solar_physics-1.0.5-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (360.2 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

ubc_solar_physics-1.0.5-cp39-cp39-macosx_11_0_arm64.whl (300.4 kB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

ubc_solar_physics-1.0.5-cp39-cp39-macosx_10_9_x86_64.whl (307.6 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

File details

Details for the file ubc_solar_physics-1.0.5.tar.gz.

File metadata

  • Download URL: ubc_solar_physics-1.0.5.tar.gz
  • Upload date:
  • Size: 37.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for ubc_solar_physics-1.0.5.tar.gz
Algorithm Hash digest
SHA256 23612127bbfafdf9b2e2f5e821b7d20960a9938162de28eaa97971a042099455
MD5 ebb7f2aa270a0c7b3a345e9d3291c688
BLAKE2b-256 dffb7a8613fce72c5ffadd57a5c68169c060d6b1d3e896fd046d61116853f2cb

See more details on using hashes here.

Provenance

File details

Details for the file ubc_solar_physics-1.0.5-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for ubc_solar_physics-1.0.5-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 7acabfb5a82c303e92c8d3a3d1635f248c9d7c5adb36f58d766fc6f98ff0026b
MD5 960cabebfc0b655f628b5a29985d5b2c
BLAKE2b-256 7a6e5f6c084665ec8567a232a3df04325ce922d7f0e8c8ba6e537527c7fa87a2

See more details on using hashes here.

Provenance

File details

Details for the file ubc_solar_physics-1.0.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ubc_solar_physics-1.0.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 da36f30eb37e23b6518afabf3eb510305320c2fd5df2052019fa29a0c5f3a18b
MD5 790239ffa5433e58b4a5479cbc834cdb
BLAKE2b-256 c43eeb7ca3c806af9cd6f2aaff07f53b6566db5b572bc7834bf2731dec75245f

See more details on using hashes here.

Provenance

File details

Details for the file ubc_solar_physics-1.0.5-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for ubc_solar_physics-1.0.5-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 c3095744ee3ef28a0c14bae648ade9a65d10bad7a246092e120db1aa9446eafe
MD5 b3d090d47adf596aa805fd0fad7a20d2
BLAKE2b-256 1c825ee1b123467e894366a6254855d5bfd9bb647ec77e6a45248f4c1cdce976

See more details on using hashes here.

Provenance

File details

Details for the file ubc_solar_physics-1.0.5-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ubc_solar_physics-1.0.5-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4a9a65e7bf41dcf0f9dbc5036ef67f9bf24a79bfa66856de5f8db114346b4734
MD5 efe53cb6bf8f0539ebb75a445e5216d3
BLAKE2b-256 67048bc1fd54ef55fdaf5260d2761ed042063bc74f334da560ff70c72a822f27

See more details on using hashes here.

Provenance

File details

Details for the file ubc_solar_physics-1.0.5-cp313-cp313-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for ubc_solar_physics-1.0.5-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 411480118b5840ab25e807cbf445f1f49d9981e0db92d427e8345c5ac46fdd0e
MD5 d3cada065477c0781dd17bfca5fdb9a6
BLAKE2b-256 b45707c2ccf0bd364c89986376b649053345ce5adda8e52229a9c4b279f4f019

See more details on using hashes here.

Provenance

File details

Details for the file ubc_solar_physics-1.0.5-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for ubc_solar_physics-1.0.5-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4f3f393332612358e066acdb65e836a03af1f261eadfac1a785b2824371248e5
MD5 c49ba5422aa8b53f2617c579b50f3a7b
BLAKE2b-256 468d4da29b36d41f1fc5e47ed56dd42eacc277b5d9b8b2c77fd824e11bf30bfb

See more details on using hashes here.

Provenance

File details

Details for the file ubc_solar_physics-1.0.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ubc_solar_physics-1.0.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 57958b060cf0823bf177582949d823818e9d4d661a04da46eaee7f5790a749a5
MD5 66bbd38e12a3062fb1ab1a43c04a40be
BLAKE2b-256 02bb02737fc25b6fe648340c248781823e65ecbdeb302321339a97e802e8ce27

See more details on using hashes here.

Provenance

File details

Details for the file ubc_solar_physics-1.0.5-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for ubc_solar_physics-1.0.5-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 92d7cf6afefbfabc96f7d28b086a6f71f7fd4c9810ca8343ac3e4b0824027bb5
MD5 c483e68c4b5496df554287fa7053dd43
BLAKE2b-256 4856163448c878bb933b3dd37847b3914e34bf32fb87a69677a7fc099fb9e91f

See more details on using hashes here.

Provenance

File details

Details for the file ubc_solar_physics-1.0.5-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ubc_solar_physics-1.0.5-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c3416454e1cf6e043baca6d4f38644d3228c9c135dac1c0c7df3b340f481c847
MD5 b93506afce82025774ff28757d700cc2
BLAKE2b-256 f8e3670c6f5374a7aa137a23f7988eb11df2d91510095f8876d68e1e1c513434

See more details on using hashes here.

Provenance

File details

Details for the file ubc_solar_physics-1.0.5-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for ubc_solar_physics-1.0.5-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 4f1c797139d1a382f357792f9c729dc48479f8d89223494dc3dd62ae80693e52
MD5 99f3f71edea797e8f12b61aa971a95b2
BLAKE2b-256 d8b5298eadaf0f7b6e1523bf4df56b36542519f04a2e50b755f278bc6613623b

See more details on using hashes here.

Provenance

File details

Details for the file ubc_solar_physics-1.0.5-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for ubc_solar_physics-1.0.5-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 03631fa0543bcfea5dee531214621cd3e87ab5f54f0cfdd424b85a0e1fc16d6c
MD5 833c083da76c4b18d1e3072fe4f830ed
BLAKE2b-256 15d8b37b04bf81789b97d16b17169708e6d217d1004355faf78eed54b08ceb4c

See more details on using hashes here.

Provenance

File details

Details for the file ubc_solar_physics-1.0.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ubc_solar_physics-1.0.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c0803937fd7f91e228ba9ec7ead7d23901079b9cb2a853036e9f780ba4a509a5
MD5 74f2c208bbea5eebc44d610d9dff3c49
BLAKE2b-256 2c4ef42fcda506800be1300a965631dfae1c473da6f90558cd5e380093bc3cec

See more details on using hashes here.

Provenance

File details

Details for the file ubc_solar_physics-1.0.5-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for ubc_solar_physics-1.0.5-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 0b97a747d950dc08c47ce3bb681ac5b161c26046c1ded5ecf04ae1be162e070e
MD5 a555e64eb8d49567db007084ab0057e1
BLAKE2b-256 fe6d4105911633b750cb98c529c44c9e17e16b3663fb0fe5d6e20451ef99462a

See more details on using hashes here.

Provenance

File details

Details for the file ubc_solar_physics-1.0.5-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ubc_solar_physics-1.0.5-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 242a09bbbdfae934d4efe05f26391753cfb65acae8be0ed10c1efafa879aff40
MD5 d62d01a386721a972e5ce81e23663b64
BLAKE2b-256 9e1dbe03387decf4b336aa5f5d3d54649e42b1070bba9260fe8317b641773c8e

See more details on using hashes here.

Provenance

File details

Details for the file ubc_solar_physics-1.0.5-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for ubc_solar_physics-1.0.5-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 9c185f683b57c315846b9809277f64634fe070dc3269e4323ac33c3937cb782e
MD5 907760441227758092d368c2bc1be3f6
BLAKE2b-256 30153615d995b0015d558d6891b784c4cdad79c118628a9c7a9f9965a2d8d55e

See more details on using hashes here.

Provenance

File details

Details for the file ubc_solar_physics-1.0.5-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for ubc_solar_physics-1.0.5-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e91217187b5b8f20338271cc809117dfa4d4a0c4e244988e737731620f5ac916
MD5 5665a457ba52c9422458d246ca91abe1
BLAKE2b-256 816e871a9189e206b0b9cf3da7812ecee06f8c31e1e5fc4a6040e1ca3a070d79

See more details on using hashes here.

Provenance

File details

Details for the file ubc_solar_physics-1.0.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ubc_solar_physics-1.0.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a376a0469b5a7579f91e8d75b9862ff91b0af8b7f0489f4fef7b1361cfad4696
MD5 464cedf3891de449108049ceb91547ef
BLAKE2b-256 ffa620366a2c9a17c0d5710b1f56f072c36bac4111fa8cbfd76e28bd13f12882

See more details on using hashes here.

Provenance

File details

Details for the file ubc_solar_physics-1.0.5-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for ubc_solar_physics-1.0.5-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 9015822e8c55410fd6c8166a7524ce348454730e5d959d8f7b848e8dd2926cc1
MD5 7b3dfd5baac822eeabc1bc2cd09938c8
BLAKE2b-256 3fbb248e1358205a05113a38a3ec76aff6fc2658983ca8c16236aeabe48437e0

See more details on using hashes here.

Provenance

File details

Details for the file ubc_solar_physics-1.0.5-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ubc_solar_physics-1.0.5-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 826f36b31c08e8cf3522da783f02e4d089ae0f1b555f238368a0c78836a93c68
MD5 f74704050e9de782ff7904a686087371
BLAKE2b-256 8d57cbf388763c40905f9c06bbb52e7e8856617415d784294edddf18e705e6c8

See more details on using hashes here.

Provenance

File details

Details for the file ubc_solar_physics-1.0.5-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for ubc_solar_physics-1.0.5-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d6aa87042c6e241fe88ca8137eb20aa4a36c932ead1a2811fa6a57b855cb516d
MD5 183eca156aa2bf93eca9bdc850797d0f
BLAKE2b-256 c05c98498c2daf87efe53b09405e56dad55e5f116d9e98878ea2339799afb1c2

See more details on using hashes here.

Provenance

File details

Details for the file ubc_solar_physics-1.0.5-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for ubc_solar_physics-1.0.5-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 1f12fa2d6a5513d61834938353393f41509257817c2522fa1e4cff28ef1b8d07
MD5 a11d55c9b92708993c2c50d611e326f9
BLAKE2b-256 5d995edfc54364aaa0e3e75cf386b9dabac16a81c0133ce1c9e110687d0f2914

See more details on using hashes here.

Provenance

File details

Details for the file ubc_solar_physics-1.0.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ubc_solar_physics-1.0.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a7cd861bef27bf228f640b038dde22c0204c8e7900b9e51eefdf81c57bf19797
MD5 300d963aaa870d0f04f55379ee3c4702
BLAKE2b-256 c91878448a58379332f49b4466dc24435fe740fdaeea277aa09969a182b626e8

See more details on using hashes here.

Provenance

File details

Details for the file ubc_solar_physics-1.0.5-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for ubc_solar_physics-1.0.5-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 1cd7cd8b3f40652b1c478699d10c6bf1b8d3265d198c3bfeef9061d63aedec73
MD5 c6e0df3dde97e8b04dfc871ffca3dba8
BLAKE2b-256 74a251a8bcd4a3bca44298792ecc1ce4ce5f293bea1730718cd6e22bd2ac4583

See more details on using hashes here.

Provenance

File details

Details for the file ubc_solar_physics-1.0.5-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ubc_solar_physics-1.0.5-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b9dd7c3564d2f8566bcf8ca5977116839a48ba5cea317a10843bb11b66736761
MD5 1562f81cd5f71668589f00b9a090d80f
BLAKE2b-256 e118addc58ec91d985f23d0b01a06313ea938687d99a31cddf0bfd85673ecdd6

See more details on using hashes here.

Provenance

File details

Details for the file ubc_solar_physics-1.0.5-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for ubc_solar_physics-1.0.5-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1eea6b86f032b82a2d5c5cb26609b4250b7f9e295872041fac098552c62507d7
MD5 0d4a4973d92e1dba2d2cb6d9ed20ee65
BLAKE2b-256 12ab10fb412cf1948a40b0283016ddc0e3928aedfab77d1a288b349484e3e374

See more details on using hashes here.

Provenance

Supported by

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