[Meep-discuss] PyMeep Conda Packages

2017-10-22 Thread Chris Hogan
PyMeep conda packages are currently available for python 2.7 and 3.6 on Linux (tested on Debian Jessie and Ubuntu Xenial). Note that PyMeep is still in its development stages, and should be considered alpha software. The conda packages are subject to change at any time. Installation instructions

Re: [Meep-discuss] PyMeep - possible progress_interval bug?

2018-01-15 Thread Chris Hogan
Hi Ian, Thanks for catching this. I've fixed it in PR#170. As a temporary workaround, you can adjust the progress_interval after constructing the Simulation object but before calling any run functions like this: sim=mp.Simulation(cell_size=cell, sources=[source1, source2],

Re: [Meep-discuss] PyMeep - output_Xfield_r, output_Xfield_p not implemented?

2018-01-16 Thread Chris Hogan
Hi Ian, The `output_Xfield_r` and `output_Xfield_p` functions are implemented and should work. Could you post your code? Maybe there's a bug somewhere else. Thanks, Chris On Mon, Jan 15, 2018 at 5:44 PM, Ian Sage wrote: > Again in my hands, I get no output or error message when I try to invok

Re: [Meep-discuss] python meep interface

2018-01-16 Thread Chris Hogan
Hi Midhat, > Ubuntu stops at the command where I try to copy the harminv.git. What is the output of running: $ git clone https://github.com/stevengj/harminv.git Chris ___ meep-discuss mailing list meep-discuss@ab-initio.mit.edu http://ab-initio.mit.ed

Re: [Meep-discuss] meep won't run in 3D

2018-02-01 Thread Chris Hogan
Hi Steve, To force 3 dimensions in the current conda package, you have to add `dimensions=3` to the Simulation constructor. This was fixed to behave as the documentation describes in PR #187 ( https://github.com/stevengj/meep/pull/187). There will be a new conda package soon with the correct behav

[Meep-discuss] Meep 1.4.3 Conda packages

2018-02-02 Thread Chris Hogan
Hello, New Conda packages corresponding to the Meep 1.4.3 release have been posted. These are available for Python 2.7 and 3.6 on Linux and MacOS. With the Conda package manager, installation is as simple as $ conda create -n meep -c chogan -c defaults -c conda-forge pymeep or for the MPI versio

Re: [Meep-discuss] Problem using output_field_function in at_every

2018-02-08 Thread Chris Hogan
Hi Ian, Wrapping `sim.output_field_function` in a step function should do the trick (leaving esq_mag in its original form). ``` def my_output(sim): sim.output_field_function('E_sq', [mp.Ex, mp.Ey, mp.Ez], esq_mag) sim.run(mp.to_appended('test', mp.at_every(0.1, my_output)), until=10) ``` `at

Re: [Meep-discuss] continuously changing structure during simulation

2018-02-19 Thread Chris Hogan
It is possible to change the material in a step function with something like this: ``` import meep as mp def change_mat(sim): t = sim.meep_time() fn = t * 0.2 geom = [mp.Sphere(radius=0.025, center=mp.Vector3(fn))] mp.set_materials_from_geometry( sim.structure, geo