Fourier solutions of some plate and beam bending problems in Python
Project description
SigmaEpsilon.Solid.Fourier - Fourier solutions of some plate and beam bending problems in Python
Note Here and there, implementation of the performance critical parts of the library rely on the JIT-compilation capabilities of Numba. This means that the library performs well even for large scale problems, on the expense of a longer first call.
What is sigmaepsilon.solid.fourier?
The sigmaepsilon.solid.fourier
library offers semi-analytic solutions to some beam and plate bending problems, where the boundary conditions are a-priori satisfied by careful selection of the approximating functions. Although the calculations only cover a handful of boundary conditions, when they are applicable, they are significantly faster than let say a finite element solution. For this reason, it is very useful for a couple of things:
- experimentation
- verification
- concept validation
- education
- publication
Highlights
- Semi-analytic, Navier solutions of beam and plate problems.
- Easy to use, high level interface to define various kinds of loads.
- Support for arbitrary loads using Monte-Carlo based coefficient determination.
- Industry-grade performance based on highly parallel, performant code.
- Tight integration with popular Python libraries like NumPy, SciPy, xarray, etc.
- A gallery of examples for plotting with Matplotlib for all types of problems.
- A collection of downloadable Jupyter Notebooks ready for execution covering all available functionality.
- Getting Started, User Guide and API Reference in the documentation.
- The library is intensively tested on CircleCI and has a high coverage level (read more about testing below).
Documentation
The documentation is built with Sphinx using the PyData Sphinx Theme and hosted on ReadTheDocs. Check it out for the user guide, an ever growing set of examples, and API Reference.
Installation
sigmaepsilon.solid.fourier can be installed from PyPI using pip
on Python >= 3.8:
>>> pip install sigmaepsilon.solid.fourier
or chechkout with the following command using GitHub CLI
gh repo clone sigma-epsilon/sigmaepsilon.solid.fourier
and install from source by typing
>>> pip install .
If you want to run the tests, you can install the package along with the necessary optional dependencies like this
>>> pip install ".[test]"
If want to execute on the GPU, you need to manually install the necessary requirements. Numba is a direct dependency, so even in this case you have to care about having the prover version of the cuda toolkit installed. For this, you need to know the version of the cuda compute engine, which depends on the version of GPU card you are having.
Development mode
If you are a developer and want to install the library in development mode, the suggested way is by using this command:
>>> pip install "-e .[test, dev]"
Checking your installation
You should be able to import sigmaepsilon.mesh from the Python prompt:
$ python
Python 3.10.2 (tags/v3.10.2:3d8993a, May 3 2023, 11:48:03) [MSC v.1928 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sigmaepsilon.solid.fourier
>>> sigmaepsilon.solid.fourier.__version__
'0.0.1a'
Testing and coverage
The following command runs all tests and creates a html report in a folder named htmlcov
(the settings are governed by the .coveragerc
file):
python -m pytest --cov-report html --cov-config=.coveragerc --cov sigmaepsilon.solid.fourier
Open htmlcov/index.html
to see the results.
Changes and versioning
See the changelog, for the most notable changes between releases.
The project adheres to semantic versioning.
How to contribute?
Contributions are currently expected in any the following ways:
- finding bugs If you run into trouble when using the library and you think it is a bug, feel free to raise an issue.
- feedback All kinds of ideas are welcome. For instance if you feel like something is still shady (after reading the user guide), we want to know. Be gentle though, the development of the library is financially not supported yet.
- feature requests Tell us what you think is missing (with realistic expectations).
- examples If you've done something with the library and you think that it would make for a good example, get in touch with the developers and we will happily inlude it in the documention.
- sharing is caring If you like the library, share it with your friends or colleagues so they can like it too.
In all cases, read the contributing guidelines before you do anything.
Acknowledgements
A lot of the packages mentioned on this document here and the introduction have a citable research paper. If you use them in your work through sigmaepsilon.mesh, take a moment to check out their documentations and cite their papers.
Also, funding of these libraries is partly based on the size of the community they are able to support. If what you are doing strongly relies on these libraries, don't forget to press the :star: button to show your support.
License
This package is licensed under the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file sigmaepsilon.solid.fourier-0.0.1a0.tar.gz
.
File metadata
- Download URL: sigmaepsilon.solid.fourier-0.0.1a0.tar.gz
- Upload date:
- Size: 5.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31c219068487f5d18607dc59a2e057042fb22efe4b4c569f5246e8e69e87e1b3 |
|
MD5 | c5fb8bbdc38573bc622a8b9c17920d68 |
|
BLAKE2b-256 | 4670c70b33f3a4757540fa7b38324d9f22e9e7b37e501abcccab91a7a650ae67 |
File details
Details for the file sigmaepsilon.solid.fourier-0.0.1a0-py3-none-any.whl
.
File metadata
- Download URL: sigmaepsilon.solid.fourier-0.0.1a0-py3-none-any.whl
- Upload date:
- Size: 20.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 765d4231db359683e5b154d20a652fe4d69d0ebfb1812d1eebac8eacb4c0d305 |
|
MD5 | 55c5a906c54eba0179f20483fb0aac27 |
|
BLAKE2b-256 | 58430ac9deac52d5ff265de190b878d8228ad7e103ac59e4b668e173c942f933 |