martemyev / tethex Goto Github PK
View Code? Open in Web Editor NEWConversion from tetrahedra (triangles) to hexahedra (quadrangles)
License: MIT License
Conversion from tetrahedra (triangles) to hexahedra (quadrangles)
License: MIT License
This tool is designed to convert triangular (in 2D) or tetrahedral (in 3D) mesh to quadrilateral or hexahedral one respectively. At the moment _tethex_ takes a Gmsh's mesh file as input, then converts all simplices (tetrahedra and triangles) into bricks (hexahedra and quadrangles), and writes the resulting mesh in Gmsh's format again. New mesh can be used in many software packages working with bricks only - for example, deal.II - the package which this tool was originally designed for. Supported formats of input meshes: * Gmsh ASCII 2.0 (.msh) Format of output meshes is Gmsh ASCII 2.0 (.msh).
The wiki implies
tar -xf tethex-x.y.z-Source.tar.gz
that there are releases, but this is not the case.
I see that this is a small project, but i think it would still be good to introduce at least 1.0
release. Also it would be good to state the requirement for gmsh
version (if any).
Dear Michael, would you consider changing your license to more permissive to companies: LGPL or BSD?
Best regards,
Svetlana Shasharina
txcorp.com
Hello,
I opened an STL model file with only points and surfaces with gmsh, and discretized the tetrahedral mesh with gmsh, and then converted it to a hexahedron with tethex is wrong.
Thanks a lot.
MSH.zip
Hello,
I want to use this tool to change the mesh of my model, but I haven't learned how to use it from anywhere. I hope to have a simple description or file on how to use it.
Thanks a lot.
Greetings,
I recently discovered your code and tested it briefly on some of my projects. I currently perform my research using deal.ii(v 9.0.0 and v9.1.1) and Gmsh(v 2.10 and v4.5.1). I was interested in your code because my professor is interested in using a semi complex domain for our research.
I used your code on a unit square domain and a unit cube domain created in Gmsh(I know I can use transfinite lines/surfaces/volumes). I then used the meshes to simulate Darcy Flow with 3 different boundary conditions.
When used on the unit square, the results were what we should expect. However, when tested on the unit cube, the results were nonsensical.
It seemed like the boundary id's that I placed were overwritten or forgotten when I put the mesh into your code. For example, the floor of the cube has id 0, sides have id 1, and roof has id 2. (i.e. The roof has constant pressure value of 1 pascal). But when viewing the results, the roof has different values for every cell surface(i.e. three squares that made an original triangle would have values 1.01, 0.78, and 1.28, for example), when they should be constant.
My question is: Is there something I can do to preserve id's, or maybe I am doing something wrong?
I would greatly appreciate the feedback!
Do you believe you will eventually add support for GMSH 4.0 format (or is that a desired user contribution?)
Best,
BB
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.