Skip to main content

Python CUFSM (Constrained and Unconstrained Finite Strip Method)

Project description

pyCUFSM

Python tests Documentation Status PyPI - Version PyPI - Downloads Latest Release Commits since latest release

Description

This package is primarily a port of CUFSM v5.01, written by Benjamin Schafer PhD et al at Johns Hopkins University, from its original MATLAB language to Python v3, using the Numpy and Scipy packages for matrix manipulation and other advanced mathematics functionality. The goal of this project is to create a derivative of CUFSM which can be used either in Jupyter Notebooks or in headless (library) applications. This project is not affiliated with Benjamin Schafer PhD or Johns Hopkins University in any way.

The original MATLAB CUFSM program may be accessed at the following address: https://www.ce.jhu.edu/cufsm/

Installation

This package is still under heavy development, but it may be installed in several different possible forms, as described below:

  1. Minimal (headless) installation: pip install pycufsm
  2. Installation with plotting capabilities: pip install pycufsm[plot]
  3. Installation with Jupyter Notebooks: pip install pycufsm[jupyter]
  4. Installation with full development dependencies: pip install pycufsm[dev]

Contributing

If you would like to contribute to the pyCUFSM project, then please do - all productive contributions are welcome! However, please make sure that you're working off of the most recent development version of the pyCUFSM code, by cloning the GitHub repository, and please review our wiki article on Contributing to the Code.

Current Status

Complete and Generally Tested

  • Unconstrained FSM (signature curve generation)
  • Constrained FSM
  • Added template_path() function to define a complete arbitrary cross-section by simple paths
  • Add automated validation testing of FSM calculations via pytest
  • Various efficiency and readability improvements:
    • Cythonise a few computation-heavy functions in analysis.py, including klocal(), kglocal(), and assemble()
    • Moved computation-heavy cFSM functions to analysis.py and cythonised them
    • Review code for places where matrices can be preallocated rather than concatenated together

Complete But Untested

  • Equation constraints
  • Spring constraints
  • General boundary conditions

Planned Further Work

  • Handle holes in cross-sections in some meaningful way
  • Various efficiency and readability improvements:
    • Make use of scipy.sparse for sparse matrices where possible
    • Convert some numerical inputs and data to dictionaries with strings
    • Eliminate matrix columns which are nothing more than the index number of the row
    • Review code for function calls that are unnecessarily repeated (a couple of these have already been addressed, e.g. base_properties() did not need to be re-run for every half wavelength)
  • Write API-style documentation (for now, generally refer to MATLAB CUFSM documentation and/or comments)

Disclaimer

While the original MATLAB CUFSM has been extensively tested, and best efforts have been made to check accuracy of this package against the original MATLAB CUFSM program, including via automated validation testing, no warrant is made as to the accuracy of this package. The developers accept no liability for any errors or inaccuracies in this package, including, but not limited to, any problems which may stem from such errors or inaccuracies in this package such as under-conservative engineering designs or structural failures.

Always check your designs and never blindly trust any engineering program, including this one.

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

pycufsm-0.1.5.tar.gz (120.6 kB view hashes)

Uploaded Source

Built Distributions

pycufsm-0.1.5-cp312-cp312-win_amd64.whl (264.3 kB view hashes)

Uploaded CPython 3.12 Windows x86-64

pycufsm-0.1.5-cp312-cp312-musllinux_1_2_x86_64.whl (1.7 MB view hashes)

Uploaded CPython 3.12 musllinux: musl 1.2+ x86-64

pycufsm-0.1.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.4 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

pycufsm-0.1.5-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.4 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ ARM64

pycufsm-0.1.5-cp312-cp312-macosx_11_0_arm64.whl (284.8 kB view hashes)

Uploaded CPython 3.12 macOS 11.0+ ARM64

pycufsm-0.1.5-cp312-cp312-macosx_10_13_x86_64.whl (304.6 kB view hashes)

Uploaded CPython 3.12 macOS 10.13+ x86-64

pycufsm-0.1.5-cp311-cp311-win_amd64.whl (271.7 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

pycufsm-0.1.5-cp311-cp311-musllinux_1_2_x86_64.whl (1.7 MB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.2+ x86-64

pycufsm-0.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.4 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

pycufsm-0.1.5-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.4 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

pycufsm-0.1.5-cp311-cp311-macosx_11_0_arm64.whl (291.7 kB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

pycufsm-0.1.5-cp311-cp311-macosx_10_9_x86_64.whl (311.4 kB view hashes)

Uploaded CPython 3.11 macOS 10.9+ x86-64

pycufsm-0.1.5-cp310-cp310-win_amd64.whl (270.7 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

pycufsm-0.1.5-cp310-cp310-musllinux_1_2_x86_64.whl (1.6 MB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.2+ x86-64

pycufsm-0.1.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.3 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

pycufsm-0.1.5-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.2 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

pycufsm-0.1.5-cp310-cp310-macosx_11_0_arm64.whl (291.6 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

pycufsm-0.1.5-cp310-cp310-macosx_10_9_x86_64.whl (311.3 kB view hashes)

Uploaded CPython 3.10 macOS 10.9+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page