Skip to main content

sdypy-model

A namespace Python package for the SDyPy project.

The package currently contains the following finite elements:

  • beam: Euler-Bernoulli and Timoshenko beam elements.

  • shell: MITC4 shell elements.

  • tet: Quadratic (10 node) tetrahedral elements.

It also provides an exterior acoustics solver:

  • acoustic_external: exterior acoustic radiation/scattering with a collocation boundary element method (BEM), including an optional Burton–Miller formulation to suppress spurious internal resonances.

Note: The package is still under development and may not be fully functional.

Beam elements

import sdypy as sd

beam_obj = sd.model.Beam(...)

M = beam_obj.M
K = beam_obj.K

Shell elements

import sdypy as sd

shell_obj = sd.model.Shell(...)

M = shell_obj.M
K = shell_obj.K

Tetrahedral elements

import sdypy as sd

tet_obj = sd.model.Tetrahedron(...)

M = tet_obj.M
K = tet_obj.K

Acoustic radiation (external BEM)

Solve for the acoustic field radiated by a vibrating surface. The surface is a triangular mesh (e.g. a pyvista.PolyData) with coordinates in metres. Define the boundary condition (either Dirichlet or Neumann). With a Neumann boundary condition you prescribe the normal velocity at each node; the solver returns the velocity potential φ on the boundary, from which the pressure p = jωρφ is recovered anywhere in the exterior field.

import numpy as np
import pyvista as pv
import sdypy as sd

# Vibrating surface (triangle mesh, coordinates in metres)
sphere = pv.Sphere(radius=0.15, theta_resolution=30, phi_resolution=30)
vn = 0.01 * np.ones(sphere.n_points)        # normal velocity [m/s]

prob = sd.model.AcousticExternalProblem(
    mesh=sphere,
    rho=1.225, c0=343.0,                    # air: density [kg/m3], sound speed [m/s]
    boundary_condition=vn,                  # (n_points,) scalar, or (n_points, 3) vector
    boundary_condition_type="Neumann",      # "Neumann" (velocity) | "Dirichlet" (pressure)
    frequency=500.0,                        # [Hz]
    use_burton_miller=False,                # combined (Burton–Miller) formulation, optional
)

phi, q = prob.solve_problem()               # boundary solution: potential + ∂φ/∂n

# Radiated velocity potential at field points of shape (N, 3) [m]
pts = np.array([[0.3, 0.0, 0.0], [0.0, 0.0, 0.5]])
phi_field = prob.evaluate_field(pts)        # velocity potential φ
p = 1j * 2 * np.pi * prob.frequency * prob.rho * phi_field   # pressure p = jωρφ [Pa]

Use set_frequency() / set_boundary_condition() to reuse the assembled model across a frequency sweep without rebuilding the mesh. All quantities are in SI units and the complex time convention is e^{jωt}. A complete, validated example (pulsating sphere vs. the analytical solution) is in examples/acoustic_external_example.py.

Disclaimer

This software is provided “as is”, without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages, or other liability, whether in an action of contract, tort, or otherwise, arising from, out of, or in connection with the software or the use or other dealings in the software.

Use of this software is at your own risk.

This software is distributed under the terms of the MIT License. See the LICENSE file for more details.

Metadata

Release files for sdypy-model 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sdypy-model 0.2.0
File Size Uploaded Provenance Actions
sdypy_model-0.2.0.tar.gz 983.5 kB Without provenance Details for sdypy_model-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sdypy-model 0.2.0
File Interpreter ABI Platform Actions
sdypy_model-0.2.0-py3-none-any.whl Python 3 none any Details for sdypy_model-0.2.0-py3-none-any.whl

Total release size: 1.0 MB

Release files / sdypy_model-0.2.0.tar.gz

Download URL sdypy_model-0.2.0.tar.gz
Size 983.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b0efc54cd0103a8a0332d0d0ee39391da5652691ae485e3f4484a74fc6dbbb1c
BLAKE2b-256 checksum
How to use checksums
43aa926bbd4a79e872a13e76e88e90531476bece88127aeae50ce9772ff25346
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / sdypy_model-0.2.0-py3-none-any.whl

Download URL sdypy_model-0.2.0-py3-none-any.whl
Size 64.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5c6c95492a7bc254e911d60cf929430d6d2984e0373ac6fc1dcd3d28a8545b17
BLAKE2b-256 checksum
How to use checksums
1df79b84e394f7b2c677e584acc5cfebd6df3247683d7e605552a9b73a056a6b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for sdypy-model 0.2.0

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.

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