[petsc-users] Can I use PETSc DMPlex to output the surface mesh?
    Matthew Knepley 
    knepley at gmail.com
       
    Wed Nov  2 08:19:16 CDT 2022
    
    
  
On Wed, Nov 2, 2022 at 8:57 AM Gong Yujie <yc17470 at connect.um.edu.mo> wrote:
> Dear development team,
>
> Now I'm doing a project about visualization. In the process of
> visualization, the surface mesh is preferred. I have two questions about
> the DMPlex mesh.
>
>
>    1. Can I output the 3D volume mesh in DMPlex as a .obj or .fbx file?
>    Both these two meshes are just surface mesh.
>
> 1) These are undocumented, proprietary formats. We would have to link
Autodesk in order to write them.
>
>    1. If not, can I output part of the mesh out? Since I have some labels
>    for this part of mesh, can I output this part of mesh (boundary surface
>    mesh) separately?
>
> 2) Yes, you can output the surface or the volume to VTK or HDF5. To get
just the surface, you can use
  https://petsc.org/main/docs/manualpages/DMPlex/DMPlexCreateSubmesh/
with the boundary label.
  Thanks,
     Matt
> Best Regards,
> Jerry
>
-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20221102/688017c7/attachment-0001.html>
    
    
More information about the petsc-users
mailing list