[petsc-users] Using PETSc to read/manipulate mesh files

Aroli Marcellinus aroli.marcellinus at gmail.com
Wed Apr 26 02:42:57 CDT 2017


Dear all,

I have this kind of mesh file, and I want to use PETSc to include the
information of this file.


In short, this file contains of:

<NUM_OF_NODES> <NUM_OF_ELEMENTS> <1> <2> <3>
<NODE1_X_COORD>  <NODE1_Y_COORD> <NODE1_Z_COORD> <FLAG>
<NODE2_X_COORD>  <NODE2_Y_COORD> <NODE2_Z_COORD> <FLAG>
<NODE3_X_COORD>  <NODE3_Y_COORD> <NODE3_Z_COORD> <FLAG>
...
...
...
<NODEN_X_COORD>  <NODEN_Y_COORD> <NODEN_Z_COORD> <FLAG>
<ELEMENT_NUMBER_1> <ELEMENT_NUMBER_2> <ELEMENT_NUMBER_3> <ELEMENT_NUMBER_4>
<----showing element connectivity from node 1 2 3 and 4.

Can I read this kind of data into PETSc? I am new in PETSc and want to use
it for this purpose.


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.



​
 heart_het.dat
<https://drive.google.com/file/d/0B7k-y9MbsuJUNU9PNWVmYU51alk/view?usp=drive_web>
​
Aroli Marcellinus

*Kumoh Institute of Technology**Computational Medicine Laboratory*
61 Daehak-ro (Sinpyeong-dong), Gumi, Gyeongbuk
+82 10 9724 3957
KTalk ID: vondarkness
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20170426/67b562b8/attachment-0001.html>


More information about the petsc-users mailing list