Skip to main content

Downloads Downloads Dependents Dependents

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 CMD and 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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rgtlib-1.1.9.tar.gz (214.1 kB view details)

Uploaded Source

Built Distribution

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

rgtlib-1.1.9-py3-none-any.whl (229.2 kB view details)

Uploaded Python 3

File details

Details for the file rgtlib-1.1.9.tar.gz.

File metadata

  • Download URL: rgtlib-1.1.9.tar.gz
  • Upload date:
  • Size: 214.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for rgtlib-1.1.9.tar.gz
Algorithm Hash digest
SHA256 885dc18629949bddaa459b82f699a5c1754520d87b4bd740379aa83f43651277
MD5 765760ea0952cf3163b57a5db1e2d142
BLAKE2b-256 eb574f6b8bb95a8c9d32ae2b2740f3a3adf2811bca218361dc3a28ff29687725

See more details on using hashes here.

File details

Details for the file rgtlib-1.1.9-py3-none-any.whl.

File metadata

  • Download URL: rgtlib-1.1.9-py3-none-any.whl
  • Upload date:
  • Size: 229.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for rgtlib-1.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 3d9f334abf6f3dde5ee113c3f191089062244bebd5756e3a7fb965bfdd19b704
MD5 fa1bf86ac21d39d632c75cab97aefd3e
BLAKE2b-256 1a8dc13d14db383ca98e7430f739423e0c712e546a38764ff3d1e65bc066e5bc

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.1.9 This release

2 files

1.1.8

2 files

1.1.7

2 files

1.1.6

2 files

1.1.5

2 files

1.1.4

2 files

1.1.3

2 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