Prony series identification for linear viscoelastic material models.
Project description
pyvisco
Pyvisco is a Python library that supports the identification of Prony series parameters for Generalized Maxwell models describing linear viscoelastic materials.
Overview
The mechanical response of linear viscoelastic materials is often described with Generalized Maxwell models. The necessary material model parameters are typically identified by fitting a Prony series to the experimental measurement data in either the frequency-domain (via Dynamic Mechanical Thermal Analysis) or time-domain (via relaxation measurements). Pyvisco performs the necessary data processing of the experimental measurements, mathematical operations, and curve-fitting routines to identify the Prony series parameters. The experimental data can be provided as raw measurement sets at different temperatures or as pre-processed master curves.
-
If raw measurement data are provided, the time-temperature superposition principle is applied to create a master curve and obtain the shift functions prior to the Prony series parameters identification.
-
If master curves are provided, the shift procedure can be skipped, and the Prony series parameters identified directly.
An optional minimization routine is provided to reduce the number of Prony elements. This routine is helpful for Finite Element simulations where reducing the computational complexity of the linear viscoelastic material models can shorten the simulation time.
Installation
pip install pyvisco
Requires Python 3.11 or newer.
Usage
There are three ways to use pyvisco:
-
Interactive web app (no install required). The
LinViscoFit.ipynbnotebook provides a graphical interface (upload data → fit → download Prony series) and is rendered with voila on Binder: -
Tutorial notebook & scripts. The
tutorials/folder contains a non-interactive walkthrough notebook (tutorial.ipynb) and three standalone Python scripts (freq_master.py,freq_raw.py,time_master.py) mirroring the verification scenarios — suitable for headless / CI / batch use. -
As a library. Import
pyviscoand call the modules directly. See the API documentation for details.
Bundled example input files live under sample_data/ and are also published as a downloadable archive on every GitHub release: pyvisco-examples.zip.
Verification
The Python implementation is verified against the curve-fitting routine of the commercial package ANSYS APDL 2021 R1. The notebooks and reference material cards live in the verification/ folder and are executed end-to-end on every push.
Citation
If you use pyvisco in your published work, please cite it along with the version number and the specific DOI for that version on Zenodo: .
APA
Springer, Martin (2022). PYVISCO: A Python library for identifying Prony series parameters of linear viscoelastic materials (Version {insert version}) [Computer software]. doi:{insert DOI}
BibTeX
@software{Springer_pyvisco_2022,
author = {Springer, Martin},
doi = {insert DOI},
title = {{PYVISCO: A Python library for identifying Prony series parameters of linear viscoelastic materials}},
url = {https://github.com/NatLabRockies/pyvisco},
version = {insert version},
year = {2022}
}
License
Released under the CLA 1.0 license.
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
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 pyvisco-2.0.1.tar.gz.
File metadata
- Download URL: pyvisco-2.0.1.tar.gz
- Upload date:
- Size: 3.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1c9e61fb1a60e423c6815b06b886f8920fc0491595baa76de429009cae16221
|
|
| MD5 |
90372f972b293003cb9d55c1153c62e8
|
|
| BLAKE2b-256 |
0426286addc65b45df84d3a08433ed3575c2486fe49008259b36ce3410d7f67b
|
Provenance
The following attestation bundles were made for pyvisco-2.0.1.tar.gz:
Publisher:
publish-to-pypi.yaml on NatLabRockies/pyvisco
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyvisco-2.0.1.tar.gz -
Subject digest:
a1c9e61fb1a60e423c6815b06b886f8920fc0491595baa76de429009cae16221 - Sigstore transparency entry: 1698004346
- Sigstore integration time:
-
Permalink:
NatLabRockies/pyvisco@4d702f6dad117cc122450ea8a48edf614bbdf459 -
Branch / Tag:
refs/tags/v2.0.1 - Owner: https://github.com/NatLabRockies
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yaml@4d702f6dad117cc122450ea8a48edf614bbdf459 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pyvisco-2.0.1-py3-none-any.whl.
File metadata
- Download URL: pyvisco-2.0.1-py3-none-any.whl
- Upload date:
- Size: 41.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37e682766e0900986ba93cdc8a41d5cfff18448fbb477db676ceef991775a2b6
|
|
| MD5 |
b54fcbaabaf013b85347fbf5c6ae1c9e
|
|
| BLAKE2b-256 |
d0faa63c83e53fa80647c2d707078473375360e1789249354a98957c70c4d36c
|
Provenance
The following attestation bundles were made for pyvisco-2.0.1-py3-none-any.whl:
Publisher:
publish-to-pypi.yaml on NatLabRockies/pyvisco
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyvisco-2.0.1-py3-none-any.whl -
Subject digest:
37e682766e0900986ba93cdc8a41d5cfff18448fbb477db676ceef991775a2b6 - Sigstore transparency entry: 1698004417
- Sigstore integration time:
-
Permalink:
NatLabRockies/pyvisco@4d702f6dad117cc122450ea8a48edf614bbdf459 -
Branch / Tag:
refs/tags/v2.0.1 - Owner: https://github.com/NatLabRockies
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yaml@4d702f6dad117cc122450ea8a48edf614bbdf459 -
Trigger Event:
push
-
Statement type: