Replies: 2 comments 12 replies
-
I’m trying to apply zero-gradient velocity boundary conditions on both west and east boundaries with no background velocity. But if I replace it with |
Beta Was this translation helpful? Give feedback.
-
Hi @Dixi9, Thanks for finding this issue. Even though FEOBC tries to make zero gradient across the boundary the interaction with the pressure solver does seem to cause it to suddenly create a veloicty when it goes non-zero on the boundary. You can set a relaxation timescale without setting a boundary velocity like: FlatExtrapolationOpenBoundaryCondition(; relaxation_timescale = 0.01) It might also be worth making the domain wider relative to the forcing region to make sure that the obc isn't effecting the interesting dynamics. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm new to Oceananigans and currently running a 2D simulation of natural convection in a channel. The top boundary has a constant heat flux, the bottom is adiabatic, and I want open boundaries on the left and right. For this, I use
FlatExtrapolationOpenBoundaryCondition(nothing)
for west and east velocity BCs andGradientBoundaryCondition(0.0)
for east buoyancy BCs. Initially, the temperature field diffuses as expected, but after some time (just few seconds), the velocity field suddenly surges across the domain (like wind goes through from west boundary), destroying the existing flow structure and collapsing it into a laminar pattern. Is this a known issue when using open boundaries, or am I missing something in the setup? I’ve tried many different initial conditions, and also smaller heat fluxes, but the issue still happens.Thank you in advance for your help and suggestions!
Here is my code:
U-Velocity.mp4
Temperature.mp4
The issue occurs at Ra = 5e10 even with uniform heating at the top.
Beta Was this translation helpful? Give feedback.
All reactions