Skip to content
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

How to generate quadratic meshes? #66

Open
acbergan opened this issue May 6, 2020 · 2 comments
Open

How to generate quadratic meshes? #66

acbergan opened this issue May 6, 2020 · 2 comments

Comments

@acbergan
Copy link

acbergan commented May 6, 2020

Thanks for the awesome package! It's really an amazing tool.

I would like to use the mesh in structural analysis, for which a quadratic mesh is preferred. Do you have a suggestion for generating a quadratic mesh either instead of the linear mesh or a method to convert the linear mesh to a quadratic mesh (insert midside nodes)?

@teseoch
Copy link

teseoch commented May 8, 2020

The method generates linear meshes (ie linear tetrahedron).

You can add midpoints on every edge to transform it into quadratic. Note that even if you will have additional nodes the tetrahedra will remain linear (a part if you move the midpoints).
I don't understand how this will benefit the simulation. You can use P2 FE bases on linear meshes without any problem.

That being said, you can use gmsh to open a mesh, open the mesh menu on the left, and click set order 2, this will add the midpoints. You can toggle the node visibility to verify.

Once you have your "fake" quadratic mesh in gmsh you export it for you simulation.

@acbergan
Copy link
Author

acbergan commented May 8, 2020

Thanks for the comments. I'm not a gmsh user so I didn't know it had the capability to add the midside nodes. That is helpful.

I mainly use hex meshes so I apologize if this an ignorant comment. My understanding is that state-of-the-art meshing of curved CAD geometries using quadratic tet elements utilizes the midside nodes to approximate curvature, for a better representation comparable with the faceted representation of linear tet elements. I suppose in most problems, this small difference in the initial geometric representation is negligible. Just a curiosity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants