Outflow boundary conditions along x

37 views
Skip to first unread message

Manohar Teja

unread,
Apr 30, 2025, 7:26:39 PM4/30/25
to dedalu...@googlegroups.com
Hi all,

Have some tried using outflow boundary conditions in a 2D domain? I am trying to simulate a 2D box with outflow boundary conditions along x. I have used Fourier basis along x and given boundary conditions as

# Background conditions
problem.add_equation("dx(u)(x=0) = 0")
problem.add_equation("dx(u)(x=1) = 0")

In the above my intention is to set du/dx = 0 at left and right of the domain, which I belive gives the outflow boundary conditions? Am I doing this correctly?

While I try to run, an error comes up
/home/manohar/miniforge3/envs/dedalus3/lib/python3.12/site-packages/dedalus/core/arithmetic.py:250: RuntimeWarning: invalid value encountered in add
  np.add(arg0.data, arg1.data, out=out.data)
I don't suppose this is because of boundary conditions but I am just trying to make sure.

Also if there is a more straightforward way to implement outflow boundary conditions, could someone tell me?

Regards.
Manohar Teja Kalluri
CGAFD, Univ of Exeter

Keaton Burns

unread,
May 1, 2025, 11:12:16 AM5/1/25
to dedalu...@googlegroups.com
Hi Manohar,

Boundary conditions cannot be set on a Fourier basis.

Best,
-Keaton


--
You received this message because you are subscribed to the Google Groups "Dedalus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dedalus-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/dedalus-users/CAGuRpfTWZTU985%3DSgdT_g8mLDwotHnbF42OBx8wyGYfHkRoP0w%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages