Re: [petsc-users] DMPlex PETSCViewer for Surface Component

2023-03-30 Thread Mike Michell
Hi Matt, this is a follow-up to the previous question: I have created a short code as below to create a sub-dm on the surface, extracted from the original volume dmplex: - call DMClone(dm_origin, dm_wall, ierr);CHKERRA(ierr) ! label for face sets

Re: [petsc-users] DMPlex PETSCViewer for Surface Component

2022-08-05 Thread Mike Michell
Thank you Jed and Matt. That is exactly what I wanted to do. I was wondering if there is an example of mapping between DMPLEXs. I have several requirements of the mapping for my code, such as - mapping solution vectors on cell-centroids into vertices - mapping from volume dmplex into sub-dm for

Re: [petsc-users] DMPlex PETSCViewer for Surface Component

2022-08-02 Thread Matthew Knepley
Yes, you can use DMPlexCreateSubmesh() (and friends depending on exactly what kind of submesh you want). This will allow you to create a vector over only this mesh, and map your volumetric solution to that subvector. Then you can view the subvector (which pulls in the submesh). Thanks,

Re: [petsc-users] DMPlex PETSCViewer for Surface Component

2022-08-01 Thread Jed Brown
I would create a sub-DM containing only the part you want to view. Mike Michell writes: > Hi, > > I am a user of DMPlex object in 3D grid topology. Currently the solution > field is printed out using viewer PETSCVIEWERVTK in .vtu format. By doing > that the entire volume components are written

[petsc-users] DMPlex PETSCViewer for Surface Component

2022-08-01 Thread Mike Michell
Hi, I am a user of DMPlex object in 3D grid topology. Currently the solution field is printed out using viewer PETSCVIEWERVTK in .vtu format. By doing that the entire volume components are written in the file. I was wondering if there is an option that I can tell PETSc viewer to print out only