An open-source package to model/visualize viscoelastic responses.
Project description
pyvisq
An open-source package to model/visualize viscoelastic responses.
Models
Run the code below to see available models:
from pyvisq.models import hierarchy
hierarchy.show()
Output:
models\burgers
├── Burgers
models\elements
├── Spring
├── Dashpot
├── Springpot
models\generalized
├── Generalized
models\kelvinvoigt
├── KelvinVoigt
├── FracDashpotKelvinVoigt
├── FracSpringKelvinVoigt
├── FracKelvinVoigt
models\maxwell
├── Maxwell
├── FracDashpotMaxwell
├── FracSpringMaxwell
├── FracMaxwell
models\powerlaw
├── Powerlaw
models\poynting_thomson
├── SLSPT
├── JeffreysPT
├── FracSLSPT
├── FracJeffreysPT
├── FracPT
models\zener
├── SLS
├── JeffreysZener
├── FracJeffreysZener
├── FracSolidZener
├── FracSLSZener
├── FracZener
Example:
from pyvisq import Test, TestMethod
from pyvisq.models import zener
# Define the test method and parameters
method = TestMethod.CREEP
test_params = {
"I": 1.0,
"D1": 0.01,
"L1": 2,
"D2": 0.01,
"L2": 2
}
test = Test(method=method, **test_params)
"""
input profile:
I ==========
//: :\\
// : : \\
// :D1 :L1\\D2==========L2
"""
# Define the Zener model parameters
dashpot_a = zener.DashpotParams(c=1)
spring_b = zener.SpringParams(k=1)
spring_c = zener.SpringParams(k=1)
sls_params = zener.SLSParams(
dashpot_a=dashpot_a,
spring_b=spring_b,
spring_c=spring_c
)
sls = zener.SLS(params=sls_params)
# Print the SLS model diagram and parameters
print(sls)
""" Output:
___
____| |______╱╲ ╱╲ ╱╲ _____
| _|_| ca ╲╱ ╲╱ ╲╱ kb |
____| |____
| |
|__________╱╲ ╱╲ ╱╲ ________|
╲╱ ╲╱ ╲╱ kc
SLSParams(dashpot_a=DashpotParams(c=1), spring_b=SpringParams(k=1), spring_c=SpringParams(k=1))
"""
# Set up and run the test
sls.set_test(test)
sls.set_time()
sls.set_input() # Optional: set the input profile for visualization
sls.run()
References
-
J. L. Kaplan, A. Bonfanti, A. J. Kabla (2019). RHEOS.jl -- A Julia Package for Rheology Data Analysis. Journal of Open Source Software, 4(41), 1700, https://doi.org/10.21105/joss.01700
-
A. Bonfanti, J. L. Kaplan, G. Charras, A. J. Kabla (2020). Fractional viscoelastic models for power-law materials. Soft Matter, 16, 6002-6020, https://doi.org/10.1039/D0SM00354A
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
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 pyvisq-1.2.0.tar.gz.
File metadata
- Download URL: pyvisq-1.2.0.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.26
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c16107eaff4a7cb2ac858b0832dac6a7539828a4fcd5179819b3171537b81a4
|
|
| MD5 |
0dbeaadeadead3420379b73688026626
|
|
| BLAKE2b-256 |
a2dae0bd74b3a7720faf309780b86a00755ec0b00c86d64f6aa2145cc507bbb4
|
File details
Details for the file pyvisq-1.2.0-py3-none-any.whl.
File metadata
- Download URL: pyvisq-1.2.0-py3-none-any.whl
- Upload date:
- Size: 16.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.26
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2a1bbe5bad0540e5fb7608faeb6f81c8094b7e643baa2f9f664f0d1a268d234
|
|
| MD5 |
c31b6ab655d7036e833849f9d9cf6ad7
|
|
| BLAKE2b-256 |
701f391e33162db26c19ca1f0248d9c68acf1ca4cc52bd114a8dde4a8498941a
|