Skip to content

Multiple Embedded Boundaries #5400

Answered by RemiLehe
connor-powers asked this question in Q&A
Discussion options

You must be logged in to vote

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:

warpx.eb_implicit_function = "(x-rmin)*(x-rmax)"

(x is interpreted as r in RZ geometry)

This works because the implicit function will be negative inbetween rmin and rmax and positive outside.

Does this answer your question?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@connor-powers
Comment options

Answer selected by connor-powers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants