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.8.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.8-py3-none-any.whl (229.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rgtlib-1.1.8.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.8.tar.gz
Algorithm Hash digest
SHA256 8fb27d0c458d8ef45bddf2dffd98d38618b0b78f751dc3d60ae442776cfabed0
MD5 2aac2aae53f669613eeb9a0696972e4b
BLAKE2b-256 d3af5b4a5700724a56fb9c9849276ef8ccb814ecdc10a74e428b30133036e49f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rgtlib-1.1.8-py3-none-any.whl
  • Upload date:
  • Size: 229.1 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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 b7fa5c4f653f2a91af9c37391100cb8a291a459b997bf422b17d023cec67b04b
MD5 30dbedaa3516b958c04b2092084f0465
BLAKE2b-256 5a379ef7d9f284580175d64e9591e96ea2dc1e5aff890a45b267e5c49cf5550e

See more details on using hashes here.

Release history Release notifications | RSS feed

1.1.9

2 files

This release

1.1.8 This release

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