[petsc-users] [petsc-maint] How to impose boundary conditions using DMDA

Fengwen Wang fwan at mek.dtu.dk
Mon Oct 29 08:35:56 CDT 2018


Yes.  I would like to a rotational BCs(Twist bcs).


Such a boundary is needed to reduce the computational domain.


Thanks lot


Best regards

Fengwen




____________________________________________________
Senior Researcher
Department of Mechanical Engineering, DTU
Nils Koppels Allé
Building 404
2800  Kgs. Lyngby
fwan at mek.dtu.dk
________________________________
From: Lawrence Mitchell <wence at gmx.li>
Sent: Monday, October 29, 2018 1:17:34 PM
To: Matt Knepley
Cc: Fengwen Wang; PETSc; PETSc
Subject: Re: [petsc-users] [petsc-maint] How to impose boundary conditions using DMDA



> On 29 Oct 2018, at 10:56, Matthew Knepley <knepley at gmail.com> wrote:
>
> You can certainly map the right edge to the top edge (its topologically a square again), but that
> mapping is not smooth, and I do not know how you would make a global basis for the approximation space.

Yeah, I thought this was topologically just a cone, but that would have:

u(x=1) = -v(y=1)

and

v(x=1) = u(y=1) (note matching sign).

So if you wanted the v(x=1) = -u(y=1) there would be a twist somehow, and then a discontinuity in the mapping.

Lawrence
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20181029/8c86859c/attachment.html>


More information about the petsc-users mailing list