That worked; thanks! -db
> On May 28, 2020, at 9:15 AM, Alec Hammond <alec.m.hamm...@gmail.com> wrote: > > Try this: > > Animate = mp.Animate2D(sim, fields=mp.Ey, f=f, realtime=False, > normalize=True, output_plane=mp.Volume(center=mp.Vector3(0,0,0), > size=mp.Vector3(20, 20, 0))) > > On Thu, May 28, 2020 at 9:09 AM David Banas <capn.fre...@gmail.com > <mailto:capn.fre...@gmail.com>> wrote: > I’m trying to annotate a 3D simulation, by confining my run using the > “in_volume()” function: > > import matplotlib.pyplot as plt > > sim.reset_meep() > f = plt.figure(dpi=100) > Animate = mp.Animate2D(sim, fields=mp.Ey, f=f, realtime=False, normalize=True) > plt.close() > sim.run(mp.in_volume(mp.Volume(center=mp.Vector3(0,0,0), size=mp.Vector3(20, > 20, 0))), > mp.at_every(1, Animate), until=10) > plt.close() > > And I’m getting this error in response: > > ----------- > Initializing structure... > block, center = (0,-2,0) > size (1e+20,2,1e+20) > axes (1,0,0), (0,1,0), (0,0,1) > block, center = (0,0,0) > size (1e+20,2,1e+20) > axes (1,0,0), (0,1,0), (0,0,1) > block, center = (0,2,0) > size (4,2,100) > axes (1,0,0), (0,1,0), (0,0,1) > ValueError: Plane volume must be 2D (a plane). > > Can anyone help me get unstuck? > > Thanks! > -db > > _______________________________________________ > meep-discuss mailing list > meep-discuss@ab-initio.mit.edu <mailto:meep-discuss@ab-initio.mit.edu> > http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss > <http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss>
_______________________________________________ meep-discuss mailing list meep-discuss@ab-initio.mit.edu http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss