Creates structured hexahedral meshes for volumes with cylindrical symmetry
Project description
HexMeshCylinders generates hexagonal meshes for OpenFOAM. It is restricted to volumes with radial-rotational symmetry, i.e. solids that can be described as a "stack" of cylinders (see examples bellow).
One to two paragraph statement about your product and what it does.
Installation
OS X & Linux:
npm install my-crazy-module --save
Windows:
edit autoexec.bat
Usage example
The following example generates the mesh shown in the image bellow. For more demos, please
refer to the examples
folder.
from HexMeshCylinders import Cylinder, Stack
# Cylinder.cell_edge defines the x and y dimensions for all the cells in the mesh
Cylinder.cell_edge = 1E-3 # 1 milimeter
# The volume will be made of two cylinders,
cylinders = [
Cylinder(diameter=51, height=100E-3, n_layers=100), # this one with 51 cells on its diameter,
Cylinder(diameter=21, height= 50E-3, n_layers= 20), # and this one with a diameter of 21 cells.
]
stack = Stack(cylinders, verbose=True)
stack.export('/tmp/HexMeshCylinders/basic')
Development setup
Describe how to install all development dependencies and how to run an automated test-suite of some kind. Potentially do this for multiple platforms.
make install
npm test
Release History
- 0.2.1
- CHANGE: Update docs (module code remains unchanged)
- 0.2.0
- CHANGE: Remove
setDefaultXYZ()
- ADD: Add
init()
- CHANGE: Remove
- 0.1.1
- FIX: Crash when calling
baz()
(Thanks @GenerousContributorName!)
- FIX: Crash when calling
- 0.1.0
- The first proper release
- CHANGE: Rename
foo()
tobar()
- 0.0.1
- Work in progress
Meta
Gui Miotto – @gmiotto – YourEmail@example.com
Distributed under the MIT license. See LICENSE
for more information.
Contributing
- Fork it (https://github.com/yourname/yourproject/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request
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
Built Distribution
Hashes for HexMeshCylinders-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83cb2b2712c59e182ed596bb6e5d28ca9df8e4442f1b4b1ed997816c92bd737f |
|
MD5 | 4266271ce63a4d66d31c756004e9171d |
|
BLAKE2b-256 | f6f12de777705f540b7fd2ec7a77814a9bbacfff8f9fc5cde6f404ac98333492 |