Skip to main content

A simple tool that generates Gamma matrix and E matrix, given the elastic constants, mass, dimansions and shape of a sample, in Resonant Ultrasound Spectroscopy. Use scipy.linalg.eigh(...) to solve the forward problem

Project description

RUSpectroscopy_tools

A C extension module for generating Gamma and Epsilon matrices, in Resonant Ultrasound Spectroscopy.

Authors

Import:

from rusmodules import rus

Usage Example

gamma = rus.gamma_matrix(N, C, geometry, shape)
E = rus.E_matrix(N, shape) 

Where:

  • N represents the maximim grade of the polynomials of the basis functions
  • C <np.array> 6x6 matrix with the elastic constants
  • geometry <np.array> (3,) shape array containing the dimensions of the sample
  • shape 0 for parallelepiped, 1 for cylinder and 2 to spheroid

Solve forward problem with scipy: Eigenvalues return $m\omega^2$

eigenvals, eigenvects = scipy.linalg.eigh(a = gamma, b = E)
omega = (eigenvals[6:]/m)**(1/2) #remember the fisrt 6 eigenvalues must be near zero
frequencies = omega/(2*np.pi)

Installation:

pip3 install ruspectroscopy_tools

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

ruspectroscopy_tools-0.0.1.tar.gz (8.9 kB view details)

Uploaded Source

Built Distributions

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

ruspectroscopy_tools-0.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (97.9 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

ruspectroscopy_tools-0.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (97.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

ruspectroscopy_tools-0.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (97.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

ruspectroscopy_tools-0.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (96.8 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

ruspectroscopy_tools-0.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (98.1 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

ruspectroscopy_tools-0.0.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (97.5 kB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ x86-64

ruspectroscopy_tools-0.0.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (97.5 kB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.17+ x86-64

File details

Details for the file ruspectroscopy_tools-0.0.1.tar.gz.

File metadata

  • Download URL: ruspectroscopy_tools-0.0.1.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for ruspectroscopy_tools-0.0.1.tar.gz
Algorithm Hash digest
SHA256 2f86aa5c433f86b793f521aacb564acc4fb1a32338cd9208cd75788e110ceddc
MD5 4712c87a54b6f164b719e396593ecfa4
BLAKE2b-256 c1e899ab0152e7f796f10c246c8348e49018bc701ed429c39ab37270cf7a352f

See more details on using hashes here.

File details

Details for the file ruspectroscopy_tools-0.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ruspectroscopy_tools-0.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 358bb62312703a1a3e74b56b51200b6c2df20fb6806677387ea43f5902abd894
MD5 29b907853e8ee5b02da2300cc6416017
BLAKE2b-256 c2fd92d392a63fc75cfeac183947bd0f8b044e31530866caf1ebece1aa1cc3f2

See more details on using hashes here.

File details

Details for the file ruspectroscopy_tools-0.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ruspectroscopy_tools-0.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8002ed40b0c41f97172c5012945cf1a3154d609630e39163eadd60418230506d
MD5 814aa18a9ae33cbdd1f0a6b50527744d
BLAKE2b-256 675eb712b1d47e36c9ad0295dd2f53d7fc407ef4bda1d40d75c871bec25c4ddf

See more details on using hashes here.

File details

Details for the file ruspectroscopy_tools-0.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ruspectroscopy_tools-0.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2847df0d74f9abad56b960edff211fb538872cac9b6926a4deafadb608abde5f
MD5 2663968218a062cf06ba53e5ff8bf523
BLAKE2b-256 0eb3db99d382ffd0eb2b3d8823d1e0be69b0f2e6c6bbdc54e7abd027f7703b64

See more details on using hashes here.

File details

Details for the file ruspectroscopy_tools-0.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ruspectroscopy_tools-0.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9e3d9bf5bae32f79f20b09d1a151405022890b9b86be36688cf99aa0c63020b4
MD5 7495bec8428e7dfbc41d52641985f4ea
BLAKE2b-256 c6352cbb44cfdafa8e409a674e7d4495bfc3b924b46df7cca0d6b6851344141b

See more details on using hashes here.

File details

Details for the file ruspectroscopy_tools-0.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ruspectroscopy_tools-0.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bce1c66b8477ded3f67c74509c8da1ed1cf809b57665efb965fdea02dffd4182
MD5 780a304df188f00721626c4a3aea981b
BLAKE2b-256 7e21620027d551654ee2235b165974ee08c8b47738e4e698c1ef58e9760ecb0a

See more details on using hashes here.

File details

Details for the file ruspectroscopy_tools-0.0.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ruspectroscopy_tools-0.0.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fa173070f54e778b69e62fc3736400e20830cccf45054c5019a809005875cbf2
MD5 2119ab1c40b2aa492c1801f4289cb047
BLAKE2b-256 0a84c11b0588a799b644291b669ecf448be1d9dd7b14f0c05d7cac2610484d19

See more details on using hashes here.

File details

Details for the file ruspectroscopy_tools-0.0.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ruspectroscopy_tools-0.0.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c607aeb2403654829e08d331747cdaf29d024667379cfbea22c5ecdb7f6d7c5d
MD5 5d6a86e1b43bfb1e00c7ef0e7c275eef
BLAKE2b-256 258e5155293bd19e75e1f1d92df80e413cfb0c8db5afbee00dccc3496a673b34

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