Skip to main content

A library to interact with simulations with.

Project description

PySim

PySim is a package for simply interacting with simulations in a pythonic, object oriented way.

from pysim.dhybridr import TurbSim
from pysim.plotting import show, show_video

s = TurbSim("path/to/simulation")
# examine initial conditions
show(s.B.z[0])
show(s.u.x[0])
# make video of density evolution over simulation
@show_video(name='energy_flux', latex=r'$\rho \mathcal{u}_\perp^2$')
def energy_flux(s, **kwargs) -> np.ndarray:
    return np.array([p*(ux**2+uy**2) for p, ux, uy in zip(s.density, s.u.x, s.u.y)])

energy_flux(s)

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

kgsim-0.1.5.tar.gz (38.6 kB view details)

Uploaded Source

Built Distribution

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

kgsim-0.1.5-py3-none-any.whl (50.1 kB view details)

Uploaded Python 3

File details

Details for the file kgsim-0.1.5.tar.gz.

File metadata

  • Download URL: kgsim-0.1.5.tar.gz
  • Upload date:
  • Size: 38.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for kgsim-0.1.5.tar.gz
Algorithm Hash digest
SHA256 6f58d34959913bf5829f3141952184e06226c5ae34ce93641a7c5f5273a62b8d
MD5 2b55f2454864c079dd9cab150ba43d57
BLAKE2b-256 cf2887ef125d8bf6e6fff8eba101802d8b205dea039e06bd6b2ae2359b4df980

See more details on using hashes here.

File details

Details for the file kgsim-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: kgsim-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 50.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for kgsim-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 62dd6ff2b7720c1fe20f950e177eeba773afe872fc4e8850d58a13cf68844fa6
MD5 d6f237ec0b4440dacea746f7c73ba23b
BLAKE2b-256 2d95d3bb52652a4b9a30891e0ae57cf05eb4766e85735546e93582f6d6dc2862

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