Re: [Meep-discuss] How to define triangle in Meep

2010-05-15 Thread Steven G. Johnson
On May 12, 2010, at 12:40 PM, easylife wrote: I want to know how to define a triangle in Meep. There are lots of ways. In a 2d simulation, you can just use a cone oriented in the plane. More generally, you can make various polygons by combining multiple blocks. _

Re: [Meep-discuss] How to view Ez from X/Y direction

2010-05-15 Thread Steven G. Johnson
On May 12, 2010, at 12:30 PM, easylife wrote: Could anyone tell me how to set the output of Ez not from vertical cross-section(along Z axis) but from horizental cross-setion(along X or Y direction)? You can output any cross-section you want using the "in-volume" command to specify the cross

Re: [Meep-discuss] Output to file during simulation

2010-05-15 Thread Steven G. Johnson
On May 13, 2010, at 7:16 AM, Shravan S wrote: Is it possible to save the field values to a file (without overwriting) during a simulation. Also, if I am giving two run commands and storing the data after each simulation, is it possible to append it to the same file where meep stores the dat

Re: [Meep-discuss] flux calculation with polarization

2010-05-15 Thread Steven G. Johnson
The flux facility in Meep doesn't provide any feature to differentiate between the contributions from different polarizations (although this would be pretty easy to hack into the source code if you don't mind getting your hands dirty). If the reflection is single-mode (i.e. a single planew

Re: [Meep-discuss] Performance of meep-mpi on multicore processors

2010-05-15 Thread Steven G. Johnson
On May 14, 2010, at 1:29 PM, Jonathan Hodges wrote: The problem is that the performance is worse with 4 cores than it is with one core. For example, running the holey-wvg-cavity.ctl example takes 27s and 76s with 1 and 4 cores, respectively. In order to benefit from multiple processors, th

Re: [Meep-discuss] Performance of meep-mpi on multicore processors

2010-05-15 Thread Nizamov Shawkat
It is well known - small simulations are better with single core than multicore. In order to get a reasonable speed-up on a multicore a simulation should exceed e.g. 100 Mb (in occupied memory). Just use a higher resolution and see how the speedup will change. If increase of resolution leads to bet