meenpy is a library of utilities for mechanical engineering problem solving.
Project description
meenpy
meenpy is a library of utilities for mechanical engineering problem solving.
meenpy.numerics enables the succinct articulation equations, efficient assembly of systems, and provides a transparent solving interface.
Installation
Check out the package manager uv and add meenpy to your project or workspace.
uv add meenpy
Alternatively, install meenpy directly with pip.
pip install meenpy
Usage
from meenpy.numerics import ScalarEquation, MatrixEquation, TabularEquation, System
import sympy as sym, pandas as pd
## Variable Definitions
T, x, p, v = sym.symbols("T, x, p, v")
T_amb, h, Qd = sym.symbols("T_amb, h, Qd")
column_map = {T: "Temperature", x: "Quality", p: "Pressure", v: "Specific Volume"}
## Equation Definitions
water = TabularEquation(pd.read_csv("test/assets/water.csv"), ["Temperature", "Quality"], residual_type="all_column_differential")
convection = ScalarEquation(Qd, h * (T - T_amb))
## System Composition and Solution
water_system = System([water, convection], column_map)
water_system_solution = water_system.solve({T_amb: 25, h: 1, Qd: 100}, {T: 100})
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file meenpy-0.1.4.tar.gz.
File metadata
- Download URL: meenpy-0.1.4.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.8.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e416c07102f84f26ef5710ed5303580e1df650c63aab9afdda7cf5118b621b9
|
|
| MD5 |
e9e29a7d4685755fab5ad97c78bde70f
|
|
| BLAKE2b-256 |
d8a11885bf3c11f5565cbcfb9b200ee43f54712d0f1aa9e7f91e73dec2d5afc9
|
File details
Details for the file meenpy-0.1.4-py3-none-any.whl.
File metadata
- Download URL: meenpy-0.1.4-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.8.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61e898a5253989f0a447b6533537348c1a292ada165b954bb5942db6288a2e77
|
|
| MD5 |
6057ff34110a79e6cde4b9cc2878aabb
|
|
| BLAKE2b-256 |
4699aed7b6e77fb138792a22b259dc061c8c722947a90255e9ed4b38090e66d9
|