MatEngine
MatEngine is a Python library designed for the engineering and scientific community focused on materials science. When fully developed, it will facilitate material discovery through micro to macrostructural generation and characterisation through simulation.
Features:
- Material Generation: Tools to generate material structures at various scales
- random field generation
- plurigaussian simulation
- plotting functionality
NB: MatEngine is currently in development, and as such, the feature list will continue to be updated
Quick Start
Below is an example of how to generate a discrete two-phase structure with plurigaussian simulation
from matengine.generation.generators import random_field, create_covariance_model
from matengine.generation.decisiontree import decision_tree, ellipse
from matengine.generation.plurigaussian import plurigaussian_simulation
from matengine.utils.plotting import array_to_vtk
dim = [50,50]
ls=5
var=1
kernel = 'gau'
seed1 = 123
seed2 = 1234
mdl = create_covariance_model(kernel, dim, var, ls)
z1 = random_field(mdl, dim, seed=seed1)
z2 = random_field(mdl, dim, seed=seed2)
fields = [z1, z2]
Config = {
'root': {
'type': 'decision',
'func': ellipse,
'args': {
'key1': 'Z1',
'key2': 'Z2',
'cx': 0,
'cy': 0,
'sx': 2.6,
'sy': 0.3
},
'yes_branch': 'phase1',
'no_branch': 'phase0'
},
'phase0': {
'type': 'leaf',
'action': 0
},
'phase1': {
'type': 'leaf',
'action': 1
},
}
tree_config = Config
tree = decision_tree()
tree.build_tree(tree_config)
L, P = plurigaussian_simulation(dim, tree, fields, ldim=500)
array_to_vtk(L, 'L')
array_to_vtk(P, 'P')
Documentation
License
MatEngine is made available under the MIT License, allowing for liberal reuse and modification for both academic and commercial purposes.
Contact
For support, feedback, or inquiries, please contact via email: rickettse1@cardiff.ac.uk
Metadata
Release files for matengine 0.0.8
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 |
|---|---|---|---|---|
| matengine-0.0.8.tar.gz | 8.9 kB | Without provenance | Details for matengine-0.0.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| matengine-0.0.8-py3-none-any.whl | Python 3 | none | any | Details for matengine-0.0.8-py3-none-any.whl |
Total release size: 19.6 kB
Release files / matengine-0.0.8.tar.gz
| Download URL | matengine-0.0.8.tar.gz |
|---|---|
| Size | 8.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
58932980d6f36fe30da7a9519c6b367a5315e7c4a9d2e273a9de3745b2b46801
|
|
BLAKE2b-256 checksum How to use checksums |
e3c7f64b17c2812e7d16da2c6b8a3e31b1b442dabb82deedfa6fe03ab0811361
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / matengine-0.0.8-py3-none-any.whl
| Download URL | matengine-0.0.8-py3-none-any.whl |
|---|---|
| Size | 10.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8e1a1fafd109f7ed0299f0e6e6abf141d7b1e392e6ec2123e318f90e0b270b5f
|
|
BLAKE2b-256 checksum How to use checksums |
a0a52e60b8f300b09e9728c611105691bc5c2763155f3b4323b9ef246abfe207
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Security for matengine 0.0.8
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.