How to generate edge-information from a pde mesh?
Mostrar comentarios más antiguos
Hi there,
My task is generating a list of all edges in mesh. (ps. I mean not edges of geometry, i saw some function there, which shows edges of a geometry, they are performed bases on interacting between mesh and geometry.)
For a mesh i can easily get access to elements (3d : tetraeder). I am considering break down each element into four faces. It's easy for me to get edges from faces (2nd step).
(elements -> faces -> edges)
now the problem is in 1st step. A 3d quadratic case, that means an element consists of ten nodes. I have no idea which node is vertices which is in middle of edges.
The way to create mesh :
cubic = [100, 50, 20];
model = createpde(thermal="transient");
geo = multicuboid(cubic(1), cubic(2),...
cubic(3), 'Zoffset', 0);
model.Geometry = geo;
generateMesh(model, GeometricOrder='quadratic');
pdemesh(model)
Is there any tips for me?
Thank you all.
Best regards
Kun
2 comentarios
Saurav
el 5 de Oct. de 2024
When dealing with quadratic elements in a finite element mesh, each 3D tetrahedral element typically consists of ten nodes: four corner nodes (vertices) and six mid-edge nodes. Identifying which nodes are vertices and which are mid-edge nodes is crucial for generating a list of edges.
In a quadratic tetrahedral element, the nodes are typically arranged as follows:
- Nodes 1-4: The corner nodes (vertices) of the tetrahedron.
- Nodes 5-10: The mid-edge nodes, positioned at the midpoints of the edges connecting the corner nodes.
For a quadratic tetrahedral element, you can extract four triangular faces. Each face is defined by three corner nodes and three mid-edge nodes.
Each triangular face has three edges. The edges can be extracted using combinations of the corner and mid-edge nodes.
Kun Cheng
el 6 de Oct. de 2024
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Geometry and Mesh en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
