Issue with potential boundary conditions and cpu acceleration #6754
Replies: 1 comment 2 replies
-
|
Seeing the plot helps a lot. At least from the image, the EB geometry itself looks mostly right to me — it does look like the channel opens up around What stands out more is that the potential / field behavior seems to extend through the larger region, so this feels less like “the EB shape is wrong” and more like “the BC tied to that geometry is not being applied the way you expect”. So my guess would be:
So for your questions, I’d split it like this:
So based on the image, I’d focus less on rewriting the EB expression and more on checking:
The geometry plot makes me think you’re already pretty close on the shape part — the bigger issue is probly how the BCs are being imposed on top of it. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,I am working on a Hall thruster simulation, and the geometry looks like this:

I use EB to describe the geometry:
eb_expr = f"max( min({x_exit} - x, {z_lower} - z), min({x_exit} - x, z - {z_upper}) )"Here,
x_exit = 0.5 * lx(2.5 cm),z_lower = 0.25 * lz(1.5 cm), andz_upper = 0.75 * lz(3.5 cm).I shifted the whole coordinate system downward because I set the origin of the z-axis to lie on the x-axis. With this coordinate choice, is the EB setup above correct?
I would also like to know whether this EB definition will affect the wall potential boundary condition. I only want to impose a potential on part of the middle region, but WarpX seems to apply the potential boundary condition along the entire boundary by default. How should I handle this?Can the EB setup directly enforce this, or does it only define the geometry?
Also, are the EB boundaries treated as absorbing boundaries and Dirichlet boundaries by default? If not, what is the proper way to impose the potential boundary conditions? I know that callbacks can also be used for boundary-condition handling.
Finally, I am currently running on CPUs, but the speed is lower than I expected. Are there any recommended ways to improve performance? In particular, are there any important CPU-related settings in WarpX that should be configured carefully?
Thank you very much for any suggestions.
Beta Was this translation helpful? Give feedback.
All reactions