Replies: 1 comment 1 reply
-
Why does it create a problem to have both |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If I have a complex field the function: output_efield_z() will output a complex field as given by it function in the source code.
def output_efield_z(sim):$z$ component of the field e (electric). If the field is complex, outputs
"""
Output the
two datasets, e.g.
ex.r
andex.i
, within the same HDF5 file for the real andimaginary parts, respectively.
"""
sim.output_component(mp.Ez)
But if I want to create an animation, I need to only be using the real part of the field. So, using this function creates a problem when I want to create an animation using this code:
sim.run(mp.at_beginning(mp.output_epsilon),
mp.to_appended("ez", mp.at_every(0.6, mp.output_efield_z)),
until=200)
Is there any way to get only the real part of the field?
Beta Was this translation helpful? Give feedback.
All reactions