Modify solver #6447
Replies: 1 comment 2 replies
-
|
Hi @Aratopn. Thank you for your question. What you are trying to do can definitely be accomplished in WarpX and you are on the right track. and One complication is that the E-field is calculated from |
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.
-
Hello,
I am trying to simulate T.Charoy et al benchmark (DOI 10.1088/1361-6595/ab46c5).
Among other things, it involves recalculating the potential after solving the Poisson equation, taking into account the emission plane.
The mentioned benchmark uses the following approach:
Here,$x_e$ is the emission plane position.
I implemented this using a callback function:
X_gridis precalculated numpy meshgrid with x positions for all nodes.x_emiis the emission plane position.i_emiis the index corresponding tox_emi.I also added a function that should return back the potentials on the boundaries before a new step, so that the Poisson equation in this step is solved with the boundary conditions:$U(0,y)=200V$ and $U(Lx,y)=0V$ .
However, this approach doesn't seem to work
When I use the function$U(0,y)=200V$ and $U(Lx,y)=0V$ .
updatePhiin the next step, the calculated potential at the callback location "beforeEsolve" seems to use the updated potentials at the boundaries, not the original ones:Briefly about what I'm trying to achieve:
==step start==
==step end==
If you have a moment, I would be grateful for any insight you could share on how this can be achieved. Any details—such as the general approach, specific functions used, or a pointer to a relevant code section if it is publicly available—would be immensely helpful for my work
Thank you for your time.
Beta Was this translation helpful? Give feedback.
All reactions