Skip to main content

Simulate the evolution of any given vortex filament over time

Project description

Vortex Filament Simulation

Creating a Vortex Filament Simulation using Python

How to use the library

Functions:

  • BiotSavart( curve, curveTangent, fieldPoints )
  • RegularBiotSavart( curve, curveTangent, fieldPoints, epsilon )
  • KappaBinormal( curve, meshpoints )
  • EvolveKappaBinormal( curve, meshpoints, tspan, method )
  • EvolveRegularBiotSavart( curve, meshpoints, eps, tspan, method )

EvolveKappaBinormal

Example Code:

from filamentlib import EvolveKappaBinormal

# Creating the initial curve with 100 initial meshpoints from -pi to pi
meshpoints = np.linspace(-np.pi,np.pi,100,endpoints=False)  
f = lambda t: [ np.cos(t), np.sin(t), t*0 ]  
curve = np.array( f(meshpoints) )

# Integrator Settings
tspan = [0,10]  
method = "rk23"     # By default the method is rk23  

evolvedCurve = EvolveKappaBinormal( curve, meshpoints, tspan, method )

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

filamentlib-0.1.2.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

filamentlib-0.1.2-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file filamentlib-0.1.2.tar.gz.

File metadata

  • Download URL: filamentlib-0.1.2.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for filamentlib-0.1.2.tar.gz
Algorithm Hash digest
SHA256 0e63947fbe1506eeef30ceb47e63d1fcd14c45d5504d4f7b6fc7bf1b24e2e42f
MD5 7fdb7f669a06139c278a2c4f0f7c367c
BLAKE2b-256 b173a65eb8f42c89fa858ec5150d098bf2af349cbe4c17c9fdb23c77b8532656

See more details on using hashes here.

File details

Details for the file filamentlib-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: filamentlib-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for filamentlib-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b9d359afe5bebb24b8412f22747cdf546d9bc60a071d637fde0ade89de397a15
MD5 17053081345383717ca068efd81c8544
BLAKE2b-256 477bb6254cf636c07b0e900225d0e388f142cb0c06ce794af07452a4e3ebe1b3

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