<div dir="ltr"><div dir="ltr">On Wed, Nov 8, 2023 at 4:50 PM Blaise Bourdin <<a href="mailto:bourdin@mcmaster.ca">bourdin@mcmaster.ca</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
Hi,
<div><br>
</div>
<div>I think that you need to use the magical keyword “<span style="font-family:"Fira Code";font-size:11px">-dm_plex_gmsh_mark_vertices</span><font face="Fira Code"><span style="font-size:11px">” for that</span></font></div></div></blockquote><div><br></div><div>I try to describe the options here:</div><div><br></div><div> <a href="https://petsc.org/main/manualpages/DMPlex/DMPlexCreateGmsh/">https://petsc.org/main/manualpages/DMPlex/DMPlexCreateGmsh/</a></div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
<div><font face="Fira Code"><span style="font-size:11px">Blaise<br>
</span></font>
<div><br>
<blockquote type="cite">
<div>On Nov 8, 2023, at 1:13 PM, Sharan Roongta <<a href="mailto:s.roongta@mpie.de" target="_blank">s.roongta@mpie.de</a>> wrote:</div>
<br>
<div>
<table border="0" cellspacing="0" cellpadding="0" align="left" width="100%" style="font-family:Helvetica;letter-spacing:normal;text-transform:none;word-spacing:0px;text-decoration:none">
<tbody>
<tr>
<td style="background:rgb(122,0,60);padding:5pt 2pt"></td>
<td width="100%" cellpadding="7px 6px 7px 15px" style="padding:5pt 4pt 5pt 12pt">
<div><span style="font-weight:bold">Caution:<span> </span></span>External email.<span> </span></div>
</td>
</tr>
</tbody>
</table>
<br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<div>
<div style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">
Dear Petsc team,<u></u><u></u></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">
<u></u> <u></u></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">
I want to load a .msh file generated using Gmsh software into the DMPlex object. There are several things I would want to clarify, but I would like to start with “Physical tags”.<u></u><u></u></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">
<u></u> <u></u></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">
If I have defined “Physical Points”, “Physical Surface”, and “Physical Volume” in my .geo file, I get the physical tags in the “.msh” file.<br>
When I load this mesh in DMPlex, and view the DM:<u></u><u></u></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">
<u></u> <u></u></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">
call DMView(globalMesh, PETSC_VIEWER_STDOUT_WORLD,err_PETSc)<u></u><u></u></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">
CHKERRQ(err_PETSc)<u></u><u></u></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">
<u></u> <u></u></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">
This is the output I get:<u></u><u></u></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">
<u></u> <u></u></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">
DM Object: n/a 1 MPI process<u></u><u></u></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">
type: plex<u></u><u></u></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">
n/a in 3 dimensions:<u></u><u></u></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">
Number of 0-cells per rank: 14<u></u><u></u></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">
Number of 1-cells per rank: 49<u></u><u></u></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">
Number of 2-cells per rank: 60<u></u><u></u></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">
Number of 3-cells per rank: 24<u></u><u></u></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">
Labels:<u></u><u></u></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">
celltype: 4 strata with value/size (0 (14), 6 (24), 3 (60), 1 (49))<u></u><u></u></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">
depth: 4 strata with value/size (0 (14), 1 (49), 2 (60), 3 (24))<u></u><u></u></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">
Cell Sets: 1 strata with value/size (8 (24))<u></u><u></u></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">
Face Sets: 6 strata with value/size (2 (4), 3 (4), 4 (4), 5 (4), 6 (4), 7 (4))<br>
<br>
I was expecting to get the “Node Sets” or “Vertex Sets” also. Is my assumption wrong?<br>
<br>
If yes, then how can one figure out the boundary nodes and their tags where I want to apply certain boundary conditions?<br>
Currently we apply boundary conditions on faces, therefore “Face Sets” was enough. But now we want to apply displacements on certain boundary nodes.<u></u><u></u></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">
<u></u> <u></u></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">
I have also attached the .geo and .msh file (hope you can open it)<u></u><u></u></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">
The Petsc version I am using is 3.18.6.<br>
<br>
<br>
Thanks and Regards,<u></u><u></u></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">
Sharan Roongta<u></u><u></u></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">
<u></u> <u></u></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">
<span style="font-family:"Courier New"">-----------------------------------------------<br>
Max-Planck-Institut für Eisenforschung GmbH<span> </span><br>
Max-Planck-Straße 1<span> </span><br>
D-40237 Düsseldorf<span> </span><br>
<br>
Handelsregister B 2533<span> </span><br>
Amtsgericht Düsseldorf<span> </span><br>
<span> </span><br>
Geschäftsführung<span> </span><br>
Prof. Dr. Gerhard Dehm<span> </span><br>
Prof. Dr. Jörg Neugebauer<span> </span><br>
Prof. Dr. Dierk Raabe<span> </span><br>
Dr. Kai de Weldige<span> </span><br>
<br>
Ust.-Id.-Nr.: DE 11 93 58 514<span> </span><br>
Steuernummer: 105 5891 1000<span> </span><br>
-------------------------------------------------<span> </span><br>
Please consider that invitations and e-mails of our institute are<span> </span><br>
only valid if they end with …@<a href="http://mpie.de" target="_blank">mpie.de</a>.<span> </span><br>
If you are not sure of the validity please contact<span> </span><a href="mailto:rco@mpie.de" style="color:rgb(149,79,114);text-decoration:underline" target="_blank"><span style="color:blue">rco@mpie.de</span></a><br>
<br>
Bitte beachten Sie, dass Einladungen zu Veranstaltungen und E-Mails<span> </span><br>
aus unserem Haus nur mit der Endung …@<a href="http://mpie.de" target="_blank">mpie.de</a> gültig sind.<span> </span><br>
In Zweifelsfällen wenden Sie sich bitte an<span> </span><a href="mailto:rco@mpie.de" style="color:rgb(149,79,114);text-decoration:underline" target="_blank"><span style="color:blue">rco@mpie.de</span></a></span><u></u><u></u></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">
<u></u> <u></u></div>
</div>
<br>
<br>
<hr>
-------------------------------------------------<br>
Stay up to date and follow us on LinkedIn, Twitter and YouTube.<br>
<br>
Max-Planck-Institut für Eisenforschung GmbH<br>
Max-Planck-Straße 1<br>
D-40237 Düsseldorf<br>
<br>
Handelsregister B 2533 <br>
Amtsgericht Düsseldorf<br>
<br>
Geschäftsführung<br>
Prof. Dr. Gerhard Dehm<br>
Prof. Dr. Jörg Neugebauer<br>
Prof. Dr. Dierk Raabe<br>
Dr. Kai de Weldige<br>
<br>
Ust.-Id.-Nr.: DE 11 93 58 514 <br>
Steuernummer: 105 5891 1000<br>
<br>
<br>
Please consider that invitations and e-mails of our institute are <br>
only valid if they end with …@<a href="http://mpie.de" target="_blank">mpie.de</a>. <br>
If you are not sure of the validity please contact <a href="mailto:rco@mpie.de" style="color:rgb(149,79,114);text-decoration:underline" target="_blank">rco@mpie.de</a><br>
<br>
Bitte beachten Sie, dass Einladungen zu Veranstaltungen und E-Mails<br>
aus unserem Haus nur mit der Endung …@<a href="http://mpie.de" target="_blank">mpie.de</a> gültig sind. <br>
In Zweifelsfällen wenden Sie sich bitte an <a href="mailto:rco@mpie.de" style="color:rgb(149,79,114);text-decoration:underline" target="_blank">rco@mpie.de</a><br>
-------------------------------------------------<br>
</div>
<span id="m_4940545783119087213cid:134B1B72-C46F-4885-84D9-5CFB935ECA7C"><cube_check.msh></span><span id="m_4940545783119087213cid:D92426DD-6E94-42EF-A443-7AE3C2EE5D86"><cube_check.geo></span></div>
</blockquote>
</div>
<br>
<div>
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<div>— <br>
Canada Research Chair in Mathematical and Computational Aspects of Solid Mechanics (Tier 1)</div>
<div>Professor, Department of Mathematics & Statistics<br>
Hamilton Hall room 409A, McMaster University<br>
1280 Main Street West, Hamilton, Ontario L8S 4K1, Canada <br>
<a href="https://www.math.mcmaster.ca/bourdin" target="_blank">https://www.math.mcmaster.ca/bourdin</a> | +1 (905) 525 9140 ext. 27243</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
</div>
</div>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><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 href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>