-
In the Electrostatic PIC tutorial ( authored by @atmyers ), we set up
Presumably, the reason why we effectively have an have an array of What I'm wondering is: If |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
In that particular example, the electric field could be stored in a multi-component Multifab as you suggest, and the code would likely be a cleaner, because all the components of E have the same nodal centering. However, if you have a case where the different components might have different staggering, like on a Yee grid, then you need to store then as separate Multifabs. I think I was probably starting from a more general code that had (or could potentially have based on runtime options) staggered E fields. |
Beta Was this translation helpful? Give feedback.
In that particular example, the electric field could be stored in a multi-component Multifab as you suggest, and the code would likely be a cleaner, because all the components of E have the same nodal centering. However, if you have a case where the different components might have different staggering, like on a Yee grid, then you need to store then as separate Multifabs. I think I was probably starting from a more general code that had (or could potentially have based on runtime options) staggered E fields.