bellbird-0.0.1
توضیحات
Library that parses differential equations (PDEs) strings and automates the creation of scripts for PyEFVLib using the element-based finite volume method.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | bellbird-0.0.1 |
| نام | bellbird |
| نسخه کتابخانه | 0.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Gustavo Exel |
| ایمیل نویسنده | gustavoexelgpe@gmail.com |
| آدرس صفحه اصلی | https://github.com/GustavoExel/bellbird |
| آدرس اینترنتی | https://pypi.org/project/bellbird/ |
| مجوز | - |
# bellbird
Library that parses differential equations (PDEs) strings and automates the creation of scripts for PyEFVLib using the element-based finite volume method.
## Dependencies & Installation
- [Python 3](https://www.python.org/downloads/) (3.8.2);
- [meshio](https://pypi.org/project/meshio/) (4.0.15);
- [numpy](https://numpy.org/) (1.17.4);
- [pandas](https://pandas.pydata.org/)(1.1.3);
- [scipy](https://www.scipy.org/) (1.5.3);
- [PyEFVLib](https://pypi.org/project/PyEFVLib/) (1.0.1);
## Usage
```python
import sys,os
sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir))
import bellbird
# Heat Transfer
model = bellbird.Model(
name = "Heat Transfer",
equationsStr = ["k * div( grad(T) ) + q = rho * cp * d/dt(T)"],
variables = ["T"],
properties = {
"Body":{
"k" : 10000.0,
"q" : 0.0,
"rho" : 1.0,
"cp" : 1.0,
},
},
boundaryConditions = [
bellbird.InitialCondition("T", 0.0),
bellbird.BoundaryCondition("T", bellbird.Dirichlet, "West", 0.0),
bellbird.BoundaryCondition("T", bellbird.Dirichlet, "East", 100.0),
bellbird.BoundaryCondition("T", bellbird.Neumann, "South", 0.0),
bellbird.BoundaryCondition("T", bellbird.Neumann, "North", 0.0),
],
meshPath = "mesh.msh",
timeStep = 0.05,
tolerance = 1e-4,
maxNumberOfIterations = 300,
sparse = False,
)
model.run()
```
نیازمندی
| مقدار | نام |
|---|---|
| ~=1.19.2 | numpy |
| ~=1.0.1 | PyEFVLib |
نحوه نصب
نصب پکیج whl bellbird-0.0.1:
pip install bellbird-0.0.1.whl
نصب پکیج tar.gz bellbird-0.0.1:
pip install bellbird-0.0.1.tar.gz