Directly specifying electric field boundary condition #567
Replies: 1 comment 14 replies
-
Short answer: The values will be overwritten. The MHD diagrams here are applicable: https://github.com/PrincetonUniversity/athena/wiki/Code-Structure The face-centered electric fields are calculated via the Riemann solver in The diagrams are a bit out of date (though it doesn't affect this issue). You can always check the actual dependencies of the tasks in (Crawling through the dependencies can be a bit tedious. This is perhaps why no one has had the time to write a robust way of diagramming the task flow automatically, and I haven't manually remade the diagrams in quite a long time.) Modifying electric fields, like modifying hydrodynamical fluxes, is not particularly supported by the code. That said, if you really want, this should be doable, and perhaps has been done by others, but it will require writing some code outside the usual safe places for user modifications. |
Beta Was this translation helpful? Give feedback.
-
Has anyone implemented an electric field boundary condition through directly specifying electric field values e.g. in corners within the CT algorithm? There seems to be direct access to the electric field register i.e. pmb->pfileld->e.x1e etc. but I am wondering if this is overridden by the CT algorithm? I couldn't see a flow diagram including CT in the programmer guide. I suppose it is done as part of the flux solve routine and so it will override whatever is put in the boundary function?
Beta Was this translation helpful? Give feedback.
All reactions