Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

periodic boundary conditions for arbitrary mesh files? #412

Closed
stevengj opened this issue Sep 28, 2020 · 5 comments
Closed

periodic boundary conditions for arbitrary mesh files? #412

stevengj opened this issue Sep 28, 2020 · 5 comments
Labels
help wanted Extra attention is needed wish-list

Comments

@stevengj
Copy link
Contributor

We saw in #266 and #318 that you support periodic boundary conditions for CartesianDiscreteModel. What would be needed to support them for arbitrary (periodic) meshes?

In particular, we are looking at periodic triangular meshes in a rectangular domain, generated by Gmsh, and would like a way to tell Gridap's matrix assembly to treat one of the directions as periodic.

@fverdugo fverdugo added wish-list help wanted Extra attention is needed labels Sep 29, 2020
@stevengj
Copy link
Contributor Author

stevengj commented Oct 5, 2020

@fverdugo, if you have a chance, it would be great to get a few hints from you on this.

@fverdugo
Copy link
Member

fverdugo commented Oct 6, 2020

It should be possible. One has to understand how Gmsh encodes information about periodic boundaries and then use it in Gridap. Essentially, one needs to pair the vertices at the two ends of a periodic boundary from the info provided by gmsh. The rest should be easy.

@jesusbonilla and @AndiMD have recently worked with GridapGmsh and perhaps they are also interested in this feature.

@jesusbonilla
Copy link
Collaborator

@stevengj I started to work on this point in a fork of GridapGmsh (these are the main modifications). However, the approach that I have followed so far might be quite basic/preliminary. It is still not working properly. I am able to construct the gird_topology, but some development is required to label faces properly. I am also assuming only one periodic direction (extension to multiple should be straightforward though) and I assume that the mesh is periodic, i.e., I am not checking that it is actually periodic (something that IMO should be done). I would like to have this working at some point, but unfortunately I will not be able to devote much time to this in the next weeks :(

@stevengj
Copy link
Contributor Author

Is this issue resolved by gridap/GridapGmsh.jl#35?

@fverdugo
Copy link
Member

Yes! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed wish-list
Projects
None yet
Development

No branches or pull requests

3 participants