Skip to main content

pylsewave

pylsewavelogo

Repository structure

.
+-- doc # documentation directory
+-- JupyterNbs # jupyter notebooks
+-- data # input data for case studies
+-- pylsewave # the package directory (contains all modules)
+-- test # unit test files
+. README.md
+. LICENCE
+. setup.py
+. pyproject.toml
+. Adan_77_example.py # case study for a whole arterial network (linear-elastic arterial walls)
+. vtk_example.py (example with vtk)

A Python package to solve pulse wave dynamics in arterial networks

The following diagram depicts the rationale along with the structure of the package

pylsewave toolkit

A c/python library to solve 1D pulse wave propagation in blood vessels or any hyperbolic PDE system in the form of

Hyperbolic system

Purpose

This library is designed to solve efficiently pulse wave dynamics in human arteries. It is written in python, cython and there are some bits of C++.

Install pylsewave

To install pylsewave toolkit, use pip:

pip install pylsewave

Run the example

There are two examples in this directory:

  • Adan_77_example.py

To run the case go to the top level directory of the repository and type:

python Adan_77_example.py -ivesseldatafile data\Arterial_Network_ADAN56.txt -ibcinflowfile data\inflow_Aorta.txt -oresfile arterial_network_77_vessels -language py

NOTE: You can execute the file with python classes translated via cython by changing the -language py to -language cy.

  • vtk_example.py

This is an example for storing the results in vtk multiblock file. The user should install pyvtk first (it can be found on PYPI).

python vtk_example.py -resfile <resfile> -ovisfile <visfile>

Examples in Jupyter notebooks

There are several case studies in jupyter notebooks under JupyterNbs directory. To run the cases, the user should install jupyter either with conda or pip (see the latest install instructions`` in Jupyter documentaion):

  • conda
conda install jupyter
  • pip
pip install jupyter

Build the docs

To build the documentation, under the docs directory type (you will need sphinx):

make html

Cite pylsewave

Prefered citation style for pylsewave:

Georgios E. Ragkousis (2019). PylseWave: A python package to solve pulse wave dynamics in arterial networks. Zenodo. DOI

Release files for pylsewave 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pylsewave 1.0.1
File Size Uploaded
pylsewave-1.0.1.tar.gz 317.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pylsewave 1.0.1
File Interpreter ABI Platform
pylsewave-1.0.1-cp35-cp35m-win_amd64.whl CPython 3.5 CPython 3.5 pymalloc Windows x86-64 Details

Total release size: 675.0 kB

Release files / pylsewave-1.0.1.tar.gz

Download URL pylsewave-1.0.1.tar.gz
Size 317.2 kB
Tags Source
SHA-256 checksum
How to use checksums
3cc7f506bf6f7a7d8250210ee5c249b9c103080a87db96a2dee9e5b783954f24
BLAKE2b-256 checksum
How to use checksums
79749acf0f415044ae8a13887347eaafd6d522e4bdee3265f9765ef30dd46f3a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.4.3 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.5.5

Release files / pylsewave-1.0.1-cp35-cp35m-win_amd64.whl

Download URL pylsewave-1.0.1-cp35-cp35m-win_amd64.whl
Size 357.8 kB
Tags CPython 3.5 CPython 3.5 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
9ded7fa3fc726f880102ab78cb017da999a7df15e21e47eaa66a011809cfe5c4
BLAKE2b-256 checksum
How to use checksums
2538b10648acabefe1611365a5473584c0f4b892962db8ad47463a1b74d1a179
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.4.3 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.5.5

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page