We have used this in our code, though I did not implement it, so I dont know the details.
Here is sample code // get gmsh boundary tag PetscInt bdry_tag; ierr = DMGetLabelValue(dm, "Face Sets", face_no, &bdry_tag); CHKERRQ(ierr); Best praveen > On 03-Dec-2020, at 2:21 PM, Sharan Roongta <s.roon...@mpie.de> wrote: > > Hello, > > I believe this can be used to create a Dm object > > > https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DMPLEX/DMPlexCreateFromFile.html#DMPlexCreateFromFile > > <https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DMPLEX/DMPlexCreateFromFile.html#DMPlexCreateFromFile> > > Where the input file is a mesh..? > > Best, > Sharan > > From: Christophe Geuzaine <cgeuza...@uliege.be <mailto:cgeuza...@uliege.be>> > To: Sharan Roongta <s.roon...@mpie.de <mailto:s.roon...@mpie.de>> > Cc: <gmsh@onelab.info <mailto:gmsh@onelab.info>> > Sent: 03/12/2020 8:46 AM > Subject: Re: [Gmsh] PETSc/DMPlex and .msh > > > > > On 2 Dec 2020, at 22:54, Sharan Roongta <s.roon...@mpie.de> wrote: > > > > Hello, > > > > I was wondering if PETSc/DMPlex can directly read the physical > > entity/(.msh) file , and we can directly get the physical Ids from the > > DMPlex object? > > I have no idea... PETSc/DMPlex reads .msh files? > > Christophe > > > > > > Thanks and Regards, > > Sharan > > > > > > ------------------------------------------------- > > Max-Planck-Institut für Eisenforschung GmbH > > Max-Planck-Straße 1 > > D-40237 Düsseldorf > > > > Handelsregister B 2533 > > Amtsgericht Düsseldorf > > > > Geschäftsführung > > Prof. Dr. Gerhard Dehm > > Prof. Dr. Jörg Neugebauer > > Prof. Dr. Dierk Raabe > > Dr. Kai de Weldige > > > > Ust.-Id.-Nr.: DE 11 93 58 514 > > Steuernummer: 105 5891 1000 > > > > > > Please consider that invitations and e-mails of our institute are > > only valid if they end with …@mpie.de. > > If you are not sure of the validity please contact r...@mpie.de > > > > Bitte beachten Sie, dass Einladungen zu Veranstaltungen und E-Mails > > aus unserem Haus nur mit der Endung …@mpie.de gültig sind. > > In Zweifelsfällen wenden Sie sich bitte an r...@mpie.de > > ------------------------------------------------- > > _______________________________________________ > > gmsh mailing list > > gmsh@onelab.info > > http://onelab.info/mailman/listinfo/gmsh > > — > Prof. Christophe Geuzaine > University of Liege, Electrical Engineering and Computer Science > http://people.montefiore.ulg.ac.be/geuzaine > > > > > > > ------------------------------------------------- > Max-Planck-Institut für Eisenforschung GmbH > Max-Planck-Straße 1 > D-40237 Düsseldorf > > Handelsregister B 2533 > Amtsgericht Düsseldorf > > Geschäftsführung > Prof. Dr. Gerhard Dehm > Prof. Dr. Jörg Neugebauer > Prof. Dr. Dierk Raabe > Dr. Kai de Weldige > > Ust.-Id.-Nr.: DE 11 93 58 514 > Steuernummer: 105 5891 1000 > > > Please consider that invitations and e-mails of our institute are > only valid if they end with …@mpie.de. > If you are not sure of the validity please contact r...@mpie.de > <mailto:r...@mpie.de> > > Bitte beachten Sie, dass Einladungen zu Veranstaltungen und E-Mails > aus unserem Haus nur mit der Endung …@mpie.de gültig sind. > In Zweifelsfällen wenden Sie sich bitte an r...@mpie.de <mailto:r...@mpie.de> > ------------------------------------------------- > _______________________________________________ > gmsh mailing list > gmsh@onelab.info <mailto:gmsh@onelab.info> > http://onelab.info/mailman/listinfo/gmsh > <http://onelab.info/mailman/listinfo/gmsh> --- http://cpraveen.github.io
_______________________________________________ gmsh mailing list gmsh@onelab.info http://onelab.info/mailman/listinfo/gmsh