pyUngewiss
Python librarY for Uncertainty aNalysis in liGhtwEight desiGn with IntervalS and fuzzy numberS
Python-Bibliothek zur Unsicherheitsanalyse im Leichtbau mit Intervallen und unscharfen Zahlen
Libreria Python per l'analisi dell'incertezza nella costruzione leggera con intervalli e numeri sfocati
Installation
Prerequisites
Python 3 and you can install the necessary libraries via PIP:
pip install scipy
pip install numpy
pip install matplotlib
pip install pygmo
pip install cma
Further, for the use of gradient-based optimizers, you will need the package pyOpt.
svn checkout http://svn.pyopt.org/trunk pyopt
cd pyopt
python -m pip install -U .
For details see www.pyopt.org
Note to PyGMO: the PIP installation is currently not working. Therefore PaGMO and then PyGMO must be compiled to use the algorithms in that package.
Install
python -m pip install -U .
PIP
You can also install pyUngewiss via PIP
pip install pyUngewiss
Getting started
See iPython notebooks and Python files under examples.
Set up uncertain function with uncertain parameters and further parameters as input:
def Eigenfrequency1DoF(p, x):
m = p[0]
k = p[1]
omega0 = np.sqrt(k/m)
f0 = omega0/2/np.pi
return(f0)
Then define the uncertain parameters -- here as intervals -- and combine in one list:
m = pu.UncertainNumber([2., 2.5])
k = pu.UncertainNumber([40000, 60000])
pUnc = [m, k]
Initialize the uncertain problem and set parameter options:
Prob = pu.UncertainAnalysis(Eigenfrequence1DoF, pUnc)
Prob.deltax = 1e-3
Prob.epsStop = 1e-3
Calculate:
Prob.calculate()
Print and plot results:
m.printValue()
k.printValue()
plt, _ = pu.plotIntervals([m.Value, k.Value],
labels=["mass $m$ [kg]", "stiffness $k$ [N/mm]"])
plt.show()
Author
E. J. Wehrle
Metadata
Release files for pyUngewiss 1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyUngewiss-1.1.tar.gz | 289.2 kB | Without provenance | Details for pyUngewiss-1.1.tar.gz |
Release files / pyUngewiss-1.1.tar.gz
| Download URL | pyUngewiss-1.1.tar.gz |
|---|---|
| Size | 289.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a34c507014bac06e7c6ae65027d5dd250c4e63ca6dcb9995e80c4c11c494b0f4
|
|
BLAKE2b-256 checksum How to use checksums |
98226fd3fa130b0a314532f713d4fe05c2112d3f76e9685a1b528645e35b589d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Security for pyUngewiss 1.1
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.