A periodic computational domain with EB #327
Replies: 4 comments
-
By the way, the simulation is also fine with periodic x and outflow z. |
Beta Was this translation helpful? Give feedback.
-
@baperry2 Hi Bruce, doesn't the PeleLMeX support the periodicity of EB in two direactions? Do you have any advice? Thank you in advance! |
Beta Was this translation helpful? Give feedback.
-
I'm not aware of a reason why this wouldn't work (provided the EB surface matches across the periodic boundary). But this type of configuration with an EB intersecting periodic boundaries is not in any of our tests and I'm not aware of it being run before. So it's possible that I'm overlooking something, or that there are some bugs to shake loose. For your case as described, as the EB plane is coincident to the ylo boundary, the clear solution is just to remove EB and set the appropriate BCs on the ylo domain boundary. But, assuming you are working toward a case where the EB will be necessary, it may be beneficial to move the EB plane to occur a few grid cells away from the boundary rather than being coincident with it. Also, to debug your case, you should turn up diagnostic output with |
Beta Was this translation helpful? Give feedback.
-
@ZhaofanZhu Just catching up with this. I agree with Bruce, nothing wrong with EB + periodic boundary. This channel flow case is performed in a periodic domain with EB. But it looks like your initial solution has a zero-velocity and you do not have an inflow or a background pressure gradient, so basically nothing is driving your flow. In this case, the time step size estimate return huge value which might be the cause of the projection failure. Can you try specifying an inital time step size:
You will still need a pressure gradient to drive the flow since your initial solution has a zero velocity:
for instance to drive the flow in the +z direction. |
Beta Was this translation helpful? Give feedback.
-
I want to simulate a cubic domain with periodic boundary condition in x and z directions. As shown in the figure below.
There is an EB plane using 'AMReX_EB2_IF_Plane.H' at y=0.
The simulation is fine when I set periodic boundary condition in z direction and outflow boundary condition in x direction. Once I set both the x and z directions to periodic boundary condition, it's error with:
I don't know why this is happening, looking forward to your reply.
Beta Was this translation helpful? Give feedback.
All reactions