Convert a Quadrangle to a Triangle

  • Thread starter Thread starter luonganh89
  • Start date Start date
  • Tags Tags
    Convert Triangle
AI Thread Summary
The discussion centers on converting a quadrilateral mesh to a triangle mesh for computational fluid dynamics (CFD) applications. The user has a mesh file containing elements defined by four nodes each and is seeking guidance on the conversion process. A common method suggested involves splitting each quadrilateral into two triangles by drawing a diagonal. However, complications arise if the quadrilaterals are curved, as the choice of diagonal can affect the outcome. An alternative approach mentioned is to find the center of the quadrilateral and connect it to the corners, creating four triangles. The user is also working on a remeshing code and plans to share results but is encountering some difficulties.
luonganh89
Messages
12
Reaction score
0
Hi all !

I got stuck in establising an method to Convert a Quadrangle mesh to a Triangle mesh (CFD).
I have a mesh file (.dat) which have information:
Number of Element - Node 1 - Node 2 - Node 3 - Node 4
1 1 2 3 4
2 3 4 5 6
Have anyone done like me. Can share me some information thank you so much

luong anh
pfiev
 
Technology news on Phys.org
You need to be more specific.
What exactly is the problem?
What is the method that you established and where are you stuck?
 
The obvious thing to do is turn each quadrilateral into two triangles by drawing a diagonal. But if the quadrilaterals are curved (i.e. a 3D surface) the results may look different depending on which diagonal you choose.

If that is a problem, maybe you need to find the "center" of the quadrilateral (i.e. the average of the 4 corner points) and join that to the corners to make 4 triangles.

As gsal says it really depends what the triangle mesh will be used for.
 
:D of course , I've just wanted to remesh my model, and i write a short code to remesh it and open it by using tecplot , but now i come back home , tomorrow i will send my result to you but i got some trouble @@
 
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.
Thread 'Project Documentation'
Trying to package up a small bank account manager project that I have been tempering on for a while. One that is certainly worth something to me. Although I have created methods to whip up quick documents with all fields and properties. I would like something better to reference in order to express the mechanical functions. It is unclear to me about any standardized format for code documentation that exists. I have tried object orientated diagrams with shapes to try and express the...

Similar threads

Replies
3
Views
1K
Replies
3
Views
1K
Replies
9
Views
3K
Replies
1
Views
2K
Replies
1
Views
3K
Replies
1
Views
1K
Replies
5
Views
2K
Back
Top