-
Notifications
You must be signed in to change notification settings - Fork 10
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
Help setting periodic boundary in box #236
Comments
Have a look at the example: "Examples-StokesFlow/Ex_WIP_Stokes_Periodic.py" It has the gmsh stuff and the dmplex setting-up stuff that you need. I'm not sure how we would handle particle advection or particle-based semi-Lagrange advection across that wraparound with the current setup but that may not matter for your case. |
Thanks Louis. I resorted to using PETSc for now, which seems to be working when no velocity is imposed (Ice benchmark).
However, seems to be an issue when using velocity BC with period conditions, will be investigating further |
Is it still the case that PETSc cannot export to VTK for our visualisation module when periodic ? |
If Plex is making the mesh, -dm_plex_periodic_cut is supposed to mark a
line in the mesh that we can cut to unroll it, using a DMLabel. Then the
viz part cuts it open when generating output. We can make this work for an
arbitrary mesh if we mark the cut line I think.
…On Thu, Aug 29, 2024 at 8:05 AM Louis Moresi ***@***.***> wrote:
Is it still the case that PETSc cannot export to VTK for our visualisation
module when periodic ?
—
Reply to this email directly, view it on GitHub
<#236 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEORCPVRFFSSGL3QMVVBCTZT4E7LAVCNFSM6AAAAABNHMW3CGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJXGQ2TOMZXG4>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
--
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
https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
|
Yes, that PETSC ERROR was also my experience. However, for the purposes of visualisation, the vtk mesh can be constructed on the fly (see what I am doing for higher order fields). We dump the fields with swarm-like information for exactly this kind of reason. I don't really care about the detailed connectivity in most cases, just the values, locations. The same issue with the erroneous location of some values - it's clearly just a storage / post-processing issue so we can work around it [For now ...] |
Closing this as the initial issue was solved |
Trying to get a periodic boundary using the following:
However, the solution does not appear to have a periodic boundary condition. Am I setting it up correctly?
The text was updated successfully, but these errors were encountered: