I'd like to run one physics simulation (solve for 2D electric field given a particular electrode geometry), and then use the output of the first simulation (the electric field distribution) to input into the second simulation's material properties.
In other words, I solve for electric field and then I know electric field at every point in space. Next I take this electric field and use it to define the refractive index in the second simulation. (Refractive index is usually just a material property and is fixed and just one number for all spatial points that are composed of that material, rather than variable spatially.)
How would I do this? I've been poking around for a while but can't figure out how to (A) run a second simulation using the first simulation's output, and (B) make a material property like refractive index be spatially dependent.
Thanks
In other words, I solve for electric field and then I know electric field at every point in space. Next I take this electric field and use it to define the refractive index in the second simulation. (Refractive index is usually just a material property and is fixed and just one number for all spatial points that are composed of that material, rather than variable spatially.)
How would I do this? I've been poking around for a while but can't figure out how to (A) run a second simulation using the first simulation's output, and (B) make a material property like refractive index be spatially dependent.
Thanks