[petsc-users] import a mesh.
Olivier Bonnefon
olivier.bonnefon at avignon.inra.fr
Tue Aug 20 10:16:48 CDT 2013
Hello,
Thank-you, I'm using DMPlexCreateFromCellList(), and it works except for
the boundary conditions.
I'm using Dirichlet boundary conditions, and the corresponding degree of
freedom are not substituted (like when I use DMPlexCreateBoxMesh).
So, I do have missing a step to define the boundary ?
Olivier B
On 08/20/2013 03:08 PM, Matthew Knepley wrote:
> On Tue, Aug 20, 2013 at 7:50 AM, Olivier Bonnefon
> <olivier.bonnefon at avignon.inra.fr
> <mailto:olivier.bonnefon at avignon.inra.fr>> wrote:
>
> Hello,
>
> I have modify the ex12.c example for a like diffusive problem
> (FEM+unstructured mesh+SNES).
> The next step, is to replace the square mesh by my own mesh.
> I want import my mesh from a simple file, and after distributed it
> with DMPlexDistribute.
> Is it the good way ?
> Is it possible to import a mesh in petsc ? I didn't find the
> answer in the documentation. Is there an example ?
>
>
> There are a few formats supported:
>
> 1) Cell-vertex: DMPlexCreateFromCellList()
>
> 2) Exodus: DMPlexCreateExodus()
>
> 3) CGNS: DMPlexCreateCGNS()
>
> Thanks,
>
> Matt
>
> Thanks
> Olivier Bonnefon
>
> --
> Olivier Bonnefon
> INRA PACA-Avignon, Unité BioSP
> Tel: +33 (0)4 32 72 21 58 <tel:%2B33%20%280%294%2032%2072%2021%2058>
>
>
>
>
> --
> 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
--
Olivier Bonnefon
INRA PACA-Avignon, Unité BioSP
Tel: +33 (0)4 32 72 21 58
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20130820/ccef636d/attachment.html>
More information about the petsc-users
mailing list