Skip to main content

Add your description here

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)

# 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()

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

pyvisq-1.0.0.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

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

pyvisq-1.0.0-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file pyvisq-1.0.0.tar.gz.

File metadata

  • Download URL: pyvisq-1.0.0.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.26

File hashes

Hashes for pyvisq-1.0.0.tar.gz
Algorithm Hash digest
SHA256 702cfff79ceb39bccd922e41fd5e6694d73d41ec18c7a2a65103b8df5b0940cb
MD5 f262e8c51765d3327405bdedeabc2d60
BLAKE2b-256 e18d7beb20062dc5dfb51eac99bcc9c70260de5e11e22185ae9dbe3bf30f7db9

See more details on using hashes here.

File details

Details for the file pyvisq-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pyvisq-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.26

File hashes

Hashes for pyvisq-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 49acf3f776a8d1c5d330dfa644118de685f3fa07ca86972198af9b313383e336
MD5 6e5bcf330d07d8aab780b19bff9d35ef
BLAKE2b-256 6d026050cc23fe0ae35834a0418b3758e086df17a61931fe33186a313d6952f0

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