Multiple Embedded Boundaries #5400
-
Hello! I'm still in the process of learning how to use WarpX, and I was wondering if there's any way to create multiple embedded boundaries? I'm looking to set up an RZ simulation with EBs on the lower and upper radial boundaries, and I've set up the lower one but I'm having trouble determining how I might also create the upper one with a different geometry and potential function. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, Thanks for your question. As an example, you can create to cylinders having different radii with:
( This works because the implicit function will be negative inbetween Does this answer your question? |
Beta Was this translation helpful? Give feedback.
Hi,
Thanks for your question.
You can create multiple embedded boundaries with a single implicit function, keeping in mind that WarpX will place an embedded boundary wherever that function switches from positive to negative values. So can create several, disjoint embdedded boundaries this way.
As an example, you can create to cylinders having different radii with:
(
x
is interpreted asr
in RZ geometry)This works because the implicit function will be negative inbetween
rmin
andrmax
and positive outside.Does this answer your question?