ResponseGT
ResponseGT is a software that computes electrical/mechanical flow within a graph network.
1. Prerequisites
This software requires Python version 3.12. Install it from here.
2 Installation
The software can be installed via pip or Conda.
2a. Install via pip
To install the software via pip:
pip install rgtlib
2b. Install via Conda
To install the software via Conda:
conda install -c conda-forge rgtlib
3. Usage
To run the GUI application, please follow these steps:
- Open a terminal application such as
CMDand execute the following command:
ResponseGT
4. Computations
This library provides computational methods for evaluating AC Response and Mechanical Response on graph-based network models.
AC Response
The AC Response computation solves the sparse linear system associated with the graph network to obtain the unknown node responses, denoted by (u_b).
Two sparse linear-system solvers are supported:
- Direct sparse solver:
scipy.sparse.linalg.spsolve - Algebraic Multigrid (AMG) solver:
pyamg.smoothed_aggregation_solver
The solver can be selected using the use_amg option.
When use_amg=True, the system is solved using a Smoothed Aggregation Algebraic Multigrid hierarchy:
import pyamg
ml = pyamg.smoothed_aggregation_solver(q_mat)
ub_list = ml.solve(p_mat, tol=1e-10)
When use_amg=False, the system is solved using SciPy's direct sparse solver:
from scipy.sparse.linalg import spsolve
ub_list = spsolve(q_mat, p_mat)
Here, q_mat represents the sparse system matrix and p_mat represents the corresponding right-hand side. The resulting ub_list contains the computed node responses.
The AMG solver is particularly useful for large sparse graph networks where iterative multilevel methods can provide improved computational scalability compared with a direct sparse factorization.
Mechanical Response
The library also provides methods for computing the Mechanical Response of the graph network. The mechanical computation evaluates the response of the network based on its graph topology and associated mechanical properties.
Both AC and Mechanical Response computations operate directly on the graph representation, allowing the resulting physical responses to be analyzed in relation to the underlying network structure.
Contributors ✨
Thanks go to these incredible people:
Made with contrib.rocks.
Metadata
Release files for rgtlib 1.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rgtlib-1.1.9.tar.gz | 214.1 kB | Without provenance | Details for rgtlib-1.1.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rgtlib-1.1.9-py3-none-any.whl | Python 3 | none | any | Details for rgtlib-1.1.9-py3-none-any.whl |
Total release size: 443.2 kB
Release files / rgtlib-1.1.9.tar.gz
| Download URL | rgtlib-1.1.9.tar.gz |
|---|---|
| Size | 214.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
885dc18629949bddaa459b82f699a5c1754520d87b4bd740379aa83f43651277
|
|
BLAKE2b-256 checksum How to use checksums |
eb574f6b8bb95a8c9d32ae2b2740f3a3adf2811bca218361dc3a28ff29687725
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Release files / rgtlib-1.1.9-py3-none-any.whl
| Download URL | rgtlib-1.1.9-py3-none-any.whl |
|---|---|
| Size | 229.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3d9f334abf6f3dde5ee113c3f191089062244bebd5756e3a7fb965bfdd19b704
|
|
BLAKE2b-256 checksum How to use checksums |
1a8dc13d14db383ca98e7430f739423e0c712e546a38764ff3d1e65bc066e5bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Security for rgtlib 1.1.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.