-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gmsh -> Warp Converter #6
Comments
Hello, Glad you are attempting to write this code. I investigated GMESH again a few months ago but was disappointed that the user cannot define loading on the model (e.g. pressures on element faces). Maybe I don't understand GMESH capabilities well enough. WARP3D has no concept of surfaces, points, cubes, circles. Those are just the geometry items in GMESH. You just need the nodal coordinates, element types such as 8-node hex, 20-node hex, 10-node tet,... and the incidences (that's what us old timers call the element-to-node connectivities). A key point for WARP3D: the nodes must be numbered sequentially from 1 -> last node. Elements must be numbered sequentially from 1-> last element. If GMESH does not provide this capability, it can be done in your Python translator. I would focus on getting a simple model with a few hex-8 elements converted to WARP3D. Then extend code from there. I would be glad to help - this is much needed for WARP3D. Also, make sure you are using Python 3. You can use my direct email if you wish: [email protected] Best Bob Dodds |
I see, yeah this is handled in the code already. On a related note, does warp3d prescribe a specific ordering on the nodes that comprise the element (lexicographical, increasing)? How about handling different element types for different sets of nodes, say tets on boundaries and hexes elsewhere? Is it as simple as:
I will go ahead and open a PR then, that way you can take a look at the src |
Bob |
Hello,
I am writing a python gmsh to warp format mesh converter. I have nodal coordinates working correctly, however I have hit a snag when building the element table. In gmsh v4.0+ elements are provided as such:
i.e.
This means there are 45 entities (surfaces, cubes, circles, whatever you "mark" as an entity while creating the geometry), with 199932 total elements, with ID's ranging from 1 -> 199932. The first entity has dimension 0, ID 1, element type 15 (a single point), and 1 element. That element has ID 1 is made up of coordinate 1.
My question: what is the corresponding definition in warp3d language for points? I looked through
setelb.f
which as far as I could find was the place where these things are defined, and the closest identifier I could find was eitherbar2
orlink2
, but I'm not sure if this is correct. If not, should I just ignore points in the converter?P.S. If there is interest, I would happily share the converter with the repo via a PR when it is completed.
The text was updated successfully, but these errors were encountered: