<div style="font-family: Arial, sans-serif; font-size: 14px;">Hi,</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">This page explains polyMesh in the section 4.1.2: <span><a target="_blank" rel="noreferrer nofollow noopener" href="https://www.openfoam.com/documentation/user-guide/4-mesh-generation-and-conversion/4.1-mesh-description">https://www.openfoam.com/documentation/user-guide/4-mesh-generation-and-conversion/4.1-mesh-description</a></span></div><div style="font-family: Arial, sans-serif; font-size: 14px;">(Also I added my polyMesh files as attachment.)</div><div style="font-family: Arial, sans-serif; font-size: 14px;"></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">After my first email I generated valid mesh by finding 2 of the 6 faces which have no common vertex, then arranging them to look like this: 1-2-3-4 is my first face, 5-6-7-8 is my second face. But this approach isn't a general solution (but currently it works because my mesh consists of only hexahedral elements), If I could learn the true solution I'd be happy! Thank you again </div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;"> 1 2</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span style="font-family: Menlo, Consolas, "Courier New", monospace;"> +------+. </span><div><span style="font-family: Menlo, Consolas, "Courier New", monospace;"> |`. | `. </span></div><div><span style="font-family: Menlo, Consolas, "Courier New", monospace;"> | 4+--+---+3 </span></div><div><span style="font-family: Menlo, Consolas, "Courier New", monospace;"> | | | | </span></div><div><span style="font-family: Menlo, Consolas, "Courier New", monospace;">5+---+--+8 | </span></div><div><span style="font-family: Menlo, Consolas, "Courier New", monospace;"> `. | `.| </span></div><span style="font-family: Menlo, Consolas, "Courier New", monospace;"> 6+------+7</span><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div>
<div class="protonmail_signature_block" style="font-family: Arial, sans-serif; font-size: 14px;">
<div class="protonmail_signature_block-user protonmail_signature_block-empty">
</div>
<div class="protonmail_signature_block-proton">
Sent with <a target="_blank" href="https://proton.me/" rel="noopener noreferrer">Proton Mail</a> secure email.
</div>
</div>
<div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div class="protonmail_quote">
On Wednesday, December 13th, 2023 at 2:16 AM, Matthew Knepley <knepley@gmail.com> wrote:<br><br>
<blockquote class="protonmail_quote" type="cite">
<div dir="ltr"><div dir="ltr">On Tue, Dec 12, 2023 at 12:22 PM onur.notonur via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov" rel="noreferrer nofollow noopener" target="_blank">petsc-users@mcs.anl.gov</a>> wrote:<br></div><div class="gmail_quote"><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0);background-color:rgb(255,255,255)">Hi,</div><div><p style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin:1.25em 0px"><span style="font-family:Arial,sans-serif;font-size:14px;line-height:normal;font-weight:400">I hope this email finds you well. I am currently working on importing an OpenFOAM PolyMesh into DMPlex, and I've encountered an issue. The PolyMesh format includes face owner cells/neighbor cells and face-to-vertex connectivity. I was using the "DMPlexCreateFromCellListPetsc()" function, which required cell-to-vertex connectivity. However, when attempting to create the cell connectivity using an edge loop [p_0, p_1, ..., p_7] (p_n and p_(n+1) are valid edges in my mesh), I encountered an error stating, "Could not find orientation for quadrilateral."</span></p><p style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin:1.25em 0px"><span style="font-family:Arial,sans-serif;font-size:14px;line-height:normal;font-weight:400">(Actually at first, I generated the connectivity list by simply creating a cell-to-face list and then using that to create a cell-to-vertex list. (just map over the list and remove duplicates) This created a DMPlex successfully, however, resulted in a mesh that was incorrect when looking with ParaView. I think that was because of I stated wrong edge loop to create cells)</span></p><p style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin:1.25em 0px"><span style="font-family:Arial,sans-serif;font-size:14px;line-height:normal;font-weight:400">I understand that I may need to follow a different format for connectivity, but I'm not sure what that format is. My current mesh is hexahedral, consisting of 8 corner elements(if important). I would appreciate any guidance on a general approach to address this issue.</span></p></div></blockquote><div>Can you start by giving the PolyMesh format, or some URL with it documented?</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div><p style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin:1.25em 0px"><span style="font-family:Arial,sans-serif;font-size:14px">Thank you for your time and assistance.</span></p></div><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0);background-color:rgb(255,255,255)">Best,</div><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0);background-color:rgb(255,255,255)">Onur</div>
<div><span style="font-family:Arial,sans-serif;font-size:14px;line-height:normal;font-weight:400">
</span><div><span style="font-family:Arial,sans-serif;font-size:14px;line-height:normal;font-weight:400">
</span></div><span style="font-family:Arial,sans-serif;font-size:14px;line-height:normal;font-weight:400">
</span><div><span style="font-family:Arial,sans-serif;font-size:14px;line-height:normal;font-weight:400">
Sent with </span><span style="font-family:Arial,sans-serif;font-size:14px;line-height:normal;font-weight:400">Proton Mail</span><span style="font-family:Arial,sans-serif;font-size:14px;line-height:normal;font-weight:400"> secure email.</span>
</div>
</div>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div class="gmail_signature" dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a target="_blank" href="http://www.cse.buffalo.edu/~knepley/" rel="noreferrer nofollow noopener">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>
</blockquote><br>
</div>