On Thu, Nov 8, 2018 at 9:08 AM Ham, David A <david.ham@imperial.ac.uk> wrote:

Dear Floriane,

 

Importing from FEniCS definitely won’t work as we have a completely different concept of periodicity from them.

 

It might be possible to load the existing gmsh file, map the boundary vertices to each other and produce the corresponding DG coordinate field, but that will be quite a fiddly process.


Gmsh supports periodicity to some extent. We can read periodic GMsh files and do the right thing in Plex. Is this a periodic Gmsh?

  Thanks,

     Matt
 

 

Regards,

 

David

 

From: <firedrake-bounces@imperial.ac.uk> on behalf of "Floriane Gidel [RPG]" <mmfg@leeds.ac.uk>
Date: Wednesday, 7 November 2018 at 15:16
To: Lawrence Mitchell <wencel@gmail.com>
Cc: firedrake <firedrake@imperial.ac.uk>
Subject: Re: [firedrake] Periodic domain with imported mesh

 

Ok so there's no other way to do it with Firedrake?

 

Could I do it with FeniCs and import my mesh and corresponding function space to firedrake ?

 


De : Lawrence Mitchell <wencel@gmail.com>
Envoyé : mercredi 7 novembre 2018 14:24
À : Floriane Gidel [RPG]
Cc : firedrake
Objet : Re: [firedrake] Periodic domain with imported mesh

 



> On 7 Nov 2018, at 14:23, Floriane Gidel [RPG] <mmfg@leeds.ac.uk> wrote:
>
> Hi Lawrence,
>
> I need a way to distinguish the two subdomains, that are 1) the disk, 2) the square with a hole instead of the disk (see black and blue meshes in the attached figure).
> Can I make the equivalent to the blue mesh (i.e., a square with a hole) using PeriodicUnitSquareMesh ? And if so, can I make sure that the nodes at the boundary of my disk mesh (black) match those of the plane mesh (blue) at the hole boundary?

Ah, that's the bit I was missing. With periodic unit square mesh it is not possible. One could hack something that moved the mesh nodes around to capture the circle appropriately. But that's going to be fiddly too.

Cheers,
Lawrence

_______________________________________________
firedrake mailing list
firedrake@imperial.ac.uk
https://mailman.ic.ac.uk/mailman/listinfo/firedrake


--
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