<div dir="ltr"><div><div><div><div>Dear all,<br><br></div>I have this kind of mesh file, and I want to use PETSc to include the information of this file.<br><br><br></div>In short, this file contains of:<br><br></div><NUM_OF_NODES> <NUM_OF_ELEMENTS> <1> <2> <3><br></div><NODE1_X_COORD>  <NODE1_Y_COORD> <NODE1_Z_COORD> <FLAG><br><NODE2_X_COORD>  <NODE2_Y_COORD> <NODE2_Z_COORD> <FLAG><br><div><div><div><div><div><div><NODE3_X_COORD>  <NODE3_Y_COORD> <NODE3_Z_COORD> <FLAG><br>...<br>...<br>...<br></div><div><NODEN_X_COORD>  <NODEN_Y_COORD> <NODEN_Z_COORD> <FLAG><br></div><div><ELEMENT_NUMBER_1> <ELEMENT_NUMBER_2> <ELEMENT_NUMBER_3> <ELEMENT_NUMBER_4> <----showing element connectivity from node 1 2 3 and 4.<br><br></div><div>Can I read this kind of data into PETSc? I am new in PETSc and want to use it for this purpose.<br><br><br></div><div>Actually, this file contains a mesh of cardiac heart, and I want to convert this data into a suitable mesh data structure, and I thought that PETSc have a kind of mesh data structure. However, after surfing into a lot of tutorial, I cannot find any references that suits my purpose.<br></div><div><br><br><br></div><div>​<div class="gmail_chip gmail_drive_chip" style="width:396px;height:18px;max-height:18px;background-color:rgb(245,245,245);padding:5px;color:rgb(34,34,34);font-family:arial;font-style:normal;font-weight:bold;font-size:13px;border-width:1px;border-style:solid;border-color:rgb(221,221,221);line-height:1"><a href="https://drive.google.com/file/d/0B7k-y9MbsuJUNU9PNWVmYU51alk/view?usp=drive_web" target="_blank" style="display:inline-block;max-width:366px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none;padding:1px 0px;border-width:medium;border-style:none;border-color:currentcolor"><img style="vertical-align: bottom; border-width: medium; border-style: none; border-color: currentcolor; border-image: none;" src="https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png"> <span dir="ltr" style="color:rgb(17,85,204);text-decoration:none;vertical-align:bottom">heart_het.dat</span></a><img src="//ssl.gstatic.com/ui/v1/icons/common/x_8px.png" style="display: none; opacity: 0.55; cursor: pointer; float: right; top: -1px;"></div>​<br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><font size="4">Aroli Marcellinus</font><br><b>Kumoh Institute of Technology<br></b><b>Computational Medicine Laboratory</b><br>61 Daehak-ro (Sinpyeong-dong), Gumi, Gyeongbuk<br>+82 10 9724 3957<br>KTalk ID: vondarkness</div></div></div></div></div>
</div></div></div></div></div></div></div>