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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e63947fbe1506eeef30ceb47e63d1fcd14c45d5504d4f7b6fc7bf1b24e2e42f
|
|
| MD5 |
7fdb7f669a06139c278a2c4f0f7c367c
|
|
| BLAKE2b-256 |
b173a65eb8f42c89fa858ec5150d098bf2af349cbe4c17c9fdb23c77b8532656
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9d359afe5bebb24b8412f22747cdf546d9bc60a071d637fde0ade89de397a15
|
|
| MD5 |
17053081345383717ca068efd81c8544
|
|
| BLAKE2b-256 |
477bb6254cf636c07b0e900225d0e388f142cb0c06ce794af07452a4e3ebe1b3
|