Library that parses differential equations (PDEs) strings and automates the creation of scripts for PyEFVLib using the element-based finite volume method.
Project description
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
Usage
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()
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
bellbird-0.0.1.tar.gz
(15.3 kB
view details)
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
bellbird-0.0.1-py3-none-any.whl
(16.9 kB
view details)
File details
Details for the file bellbird-0.0.1.tar.gz.
File metadata
- Download URL: bellbird-0.0.1.tar.gz
- Upload date:
- Size: 15.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
605d3ab9c71e579aa4ae6bd4452da721bf2db2f5a576a4c4ccbf6034101c59ce
|
|
| MD5 |
190a254be46181c5ed9de71399e52919
|
|
| BLAKE2b-256 |
d78d8d6510dffc85eb6a9567bdad7a019c9dd440ccd0c4124acae77290be4087
|
File details
Details for the file bellbird-0.0.1-py3-none-any.whl.
File metadata
- Download URL: bellbird-0.0.1-py3-none-any.whl
- Upload date:
- Size: 16.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
479b616e1c536a2518c7d9bfe583d50572edae92efe7bc9216a0d9391c4ba87d
|
|
| MD5 |
8ff1d911d19423b921f9e62338077c46
|
|
| BLAKE2b-256 |
c974b83584230a0f55aed356a91a8887b01ac4637abe1196b6586650b841cf12
|