You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There aren't many functionalities implemented in meshtools right now. A few easy functions would be potentially useful:
Generating a box. This is trivial and hasn't been done before because the native Nek5000 tool genbox does it, but having it in pymech would allow using it as a building blocks for more complex meshes.
A function to map geometries, for example to map a [0, 1]×[0, 1] box to an arbitrary shape with four corners. This is also trivial and would allow for generating more complex meshes.
Coons patches? (trivial using the two functions above)
A function to generate the outside of a circle.
Functions to add, delete or change boundary conditions for velocity, temperature and passive scalars.
More complicated and speculative:
A function to generate a cylinder-box junction.
Integrating my airfoils script in some way. Perhaps by generating a boundary-layer mesh and returning some kind of analytic representation of the outer boudary. Then, combined with the functions above it might be possible to write a tutorial for generating a complete airfoil mesh with a boundary layer and a few free-stream blocks.
Getting inspired by Vitor's extrude_refine function to perform some kind of mesh refinement.
Do you have an idea of what library to use? For 3D or large meshes I don't think matplotlib is the way to go, maybe some OpenGL library, but I don't want to add dependencies that can break easily either.
No objections if it works on all OSs. Perhaps you can consider creating a subpackage called meshtools, so we can accomodate other visualization libraries in the future.
Activity
ashwinvis commentedon Dec 26, 2022
Visualize the mesh as a
plot
guillaumechauvat commentedon Dec 27, 2022
Do you have an idea of what library to use? For 3D or large meshes I don't think matplotlib is the way to go, maybe some OpenGL library, but I don't want to add dependencies that can break easily either.
guillaumechauvat commentedon Dec 27, 2022
wxpython with pyOpenGL seems to work. I'll start with that, and if there are objections I can switch to something else.
ashwinvis commentedon Dec 29, 2022
No objections if it works on all OSs. Perhaps you can consider creating a subpackage called meshtools, so we can accomodate other visualization libraries in the future.