Skip to main content

Derivative of vis3dpy, aimed at visualizing ℝ³ vector fields

Project description

vis3dvf

Dependencies

  • pygame
  • PyOpenGL
  • PyOpenGL_accelerate

Quickstart

A simple example of a time-dependent vector field can be found in the example.py file. To quickstart this example, run:

pip install vis3dvf                                     # installs vis3dvf (and dependencies)
git clone https://github.com/LukasDrsman/vis3dvf.git    # fetches repo with example.py
cd vis3dvf
python3 example.py                                      # runs example.py

Usage

vis3dvf.plot.Figure(window width, window height)

  • Figure constructor, necessary for rendering.
  • "Public" methods:
    • add(plot) - adds plot object to the render que (plot object must have an implemented render() method)
    • show() - creates a window and starts rendering

vis3dvf.vectorfield.VectorField(u, v, w, density)

  • Static vector field plot object constructor
  • Parameters:
    • u = u(x,y,z) - the x component of the vector field at (x,y,z) (function)
    • v = v(x,y,z) - the y component of the vector field at (x,y,z) (function)
    • w = w(x,y,z) - the z component of the vector field at (x,y,z) (function)

vis3dvf.vectorfield.VectorFieldT(u, v, w, density, initial time, final time, time delta)

  • Time-dependent vector field plot object constructor
  • Parameters:
    • u = u(x,y,z,t) - the x component of the vector field at (x,y,z) and time t (function)
    • v = v(x,y,z,t) - the y component of the vector field at (x,y,z) and time t (function)
    • w = w(x,y,z,t) - the z component of the vector field at (x,y,z) and time t (function)

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

vis3dvf-1.0.2.tar.gz (44.0 kB view details)

Uploaded Source

Built Distribution

vis3dvf-1.0.2-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file vis3dvf-1.0.2.tar.gz.

File metadata

  • Download URL: vis3dvf-1.0.2.tar.gz
  • Upload date:
  • Size: 44.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for vis3dvf-1.0.2.tar.gz
Algorithm Hash digest
SHA256 cbe48be0ac025df4cb9387d728710752e5b91b758c991f89369bd6c435b89000
MD5 d4dd668e6103c67e45e66a9363875a5e
BLAKE2b-256 e87b274e9f9cec661fa4126d86c8a43eb3dcdfa543b565bdaae8d754accadf51

See more details on using hashes here.

File details

Details for the file vis3dvf-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: vis3dvf-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for vis3dvf-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 56af0ffd5e2c31ff409b1a115ccfc4be69c13dfe858f8e04f0e9f03928aaf87d
MD5 88caa5394888f65b40590fb98a76f141
BLAKE2b-256 a50840f6b4b9a901ce3e0fc500860257ea1706112a97ca496a2325f7143d8aa3

See more details on using hashes here.

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