Skip to main content
#+TITLE: pyblockmesh
#+AUTHOR: Vishakh Pradeep Kumar
#+EMAIL: grokkingStuff@gmail.com

Python Library

#+BEGIN_SRC sh :exports results
.
├── CHANGELOG.md
├── CONTRIBUTING.md
├── index.org
├── LICENSE
├── pyblockmesh
│   ├── edge.py
│   ├── face.py
│   ├── hexahedron.py
│   ├── __init__.py
│   └── vertex.py
├── pytest.ini
├── README.md
├── README.org
├── requirements.txt
├── script
│   └── test
├── setup.py
└── tests
├── helpers
│   ├── __init__.py
│   └── my_helper.py
├── __init__.py
├── tests_helper.py
└── unit
├── __init__.py
├── test_example.py
└── test_version.py

5 directories, 22 files
#+END_SRC

* Example


#+BEGIN_SRC python
import pyblockmesh as pbm


v0 = pbm.Vertex(-1,-1,-1)
v1 = pbm.Vertex( 1,-1,-1)
v2 = pbm.Vertex( 1, 1,-1)
v3 = pbm.Vertex(-1, 1,-1)
v4 = pbm.Vertex(-1,-1, 1)
v5 = pbm.Vertex( 1,-1, 1)
v6 = pbm.Vertex( 1, 1, 1)
v7 = pbm.Vertex(-1, 1, 1)

h1 = pbm.Hexahedron([v0,v1,v2,v3,v4,v5,v6,v7],numberOfCells=[3,3,3])
h1.add_edge(v0,v1,'line')
h1.add_face([v0,v1,v2,v3],name='inlet',patchType='wall')

string = pbm.buildBlockMesh()

print(string)
blockMeshDict = open("blockmeshdict.txt", "w")
blockMeshDict.write(string)
blockMeshDict.close()
#+END_SRC

#+RESULTS:
: None

#+BEGIN_EXAMPLE
vertices
(
(-1 -1 -1)
(1 -1 -1)
(1 1 -1)
(-1 1 -1)
(-1 -1 1)
(1 -1 1)
(1 1 1)
(-1 1 1)
)

blocks
(
hex 0 1 2 3 4 5 6 7 ( 3 3 3 )
)

edges
(
line 0 1
)

boundary
(
inlet
{
type wall;
faces
(
( 0 3 2 1 )
);
}
)
#+END_EXAMPLE



* Requirements

Package requirements are handled using pip. To install them do

#+BEGIN_SRC sh
pip install -r requirements.txt
#+END_SRC

Metadata

Release files for pyblockMesh 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyblockMesh 0.0.3
File Size Uploaded Provenance Actions
pyblockMesh-0.0.3.tar.gz 5.4 kB Without provenance Details for pyblockMesh-0.0.3.tar.gz

Release files / pyblockMesh-0.0.3.tar.gz

Download URL pyblockMesh-0.0.3.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a1f03cf1b5c662e88c5c1cb9c5b61b030ca70018b8b3b6b9a6f0b26115e0f76c
BLAKE2b-256 checksum
How to use checksums
bc12affac98a41e4df4400932028ee50e7b522d9080e1040babc7d65a5d972f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/28.8.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.1

Security for pyblockMesh 0.0.3

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.

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page