Ansys Learning Forum Forums Discuss Simulation Photonics FDTD crash when plotting figures using script Reply To: FDTD crash when plotting figures using script

Greg Baethge
Ansys Employee
Thanks. The plot shouldn't require anything really specific, as they're not that demanding, but I'm trying to eliminate possible causes. I'll ask my colleagues if they encounter this problem.
Does the crash also occurs with "visualize"? You can try:
MFD = 8.9e-6;
sigma = MFD / 2;

x = linspace(-20,20, 20000)*1e-6;
Gaussian = exp(-(x /sigma)^2);

G = matrixdataset("Gaussian");
G.addparameter("x", x);
G.addattribute("G", Gaussian);

visualize(G);