[petsc-users] different periodicity per dof in DMDA?
Matthew Knepley
knepley at gmail.com
Mon May 2 11:07:28 CDT 2022
On Mon, May 2, 2022 at 11:25 AM Matteo Semplice <
matteo.semplice at uninsubria.it> wrote:
> Hi.
>
> I know that when I create a DMDA I can select periodic b.c. per grid
> direction.
>
> I am facing a PDE with 2 dofs per node in which one dof has periodic
> b.c. in the x direction and the other one periodic b.c. in the y
> direction. Is there a (possibly quick-and-dirty) solution to represent
> this in a DM (not necessarily a DMDA)?
>
I am trying to understand what this means. Usually we think of periodicity
as arising from the domain, not the field.
I think it would be easiest to:
a) Use two different DMDA for the fields that "match up" where needed
or
b) Use a DMStag since it sounds like these should live on horizontal and
vertical edges
Thanks,
Matt
> I understand the request it's strange, but I should add that we are
> experimenting numerically with this toy model, so in fact the b.c. may
> change in the future... just to stress once more that I am not after a
> perfect solution, but anything that would at least allow parallel runs
> with few processors would do for now.
>
> Thanks in advance
>
> Matteo
>
>
--
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/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20220502/b41a2756/attachment.html>
More information about the petsc-users
mailing list