Re: [Meep-discuss] How to manipulate the output file name in c++ interface

2009-09-22 Thread Nizamov Shawkat
You can use open_h5file() method of field class to obtain a filehandle for arbitrarily named datafile. Then you can supply it as h5file argument (not dataname) for any output_hdf5 method. dataname has different meaning - it is a name of dataset in datafile. 2009/9/19, 李志强 : > Hi all! > > I want

Re: [Meep-discuss] negative epsilon

2009-09-22 Thread cícero julião
Hello, Meep-discuss! Ok, I should be more specific. My problem involves a cylinder of epsilon = -8 +0.31i. I read the manual section that explains how to observe the imaginary part, but found nothing about negative. So, thank you very much for clarification on this point. 2009/9/22, Mischa Meg

[Meep-discuss] help

2009-09-22 Thread lfwang
Dear Steven and Meep users: Thank you in advance. I want to calculate the infrared (8-14um)reflection spectrum. The structure is the following. source plane observation plane || || air layer TiO2 layer: 30 nm

[Meep-discuss] one question about the parallelization of my simulations

2009-09-22 Thread phcgroup
Dear Steven and other meep users, I have a problem with the parallelization of my simulations. We have a cluster with several nodes. Every node is connected with each other through a one Gbit Ethernet switch. Every node has two processors with two physical cores, i.e., four cores. I have found t

Re: [Meep-discuss] Question about setting the current source

2009-09-22 Thread Roy Zhang
(I don't see my reply posted, so I'm posting it again. I'm sorry if this mail is duplicated.) Hi Steven, Thanks a lot for helping me find out a big mistake I made - that is, I was confused by the defination of current in MEEP, which is totally different from that in driving circuit. So here co

Re: [Meep-discuss] Geometry artifacts (and workaround)

2009-09-22 Thread Steven G. Johnson
On Sep 14, 2009, at 1:13 PM, Adam Fedor wrote: I'm trying to do a 3D simulation of a structure. I create the structure out of multiple blocks. The problem I have is that, in certain locations, there is an artifact in the epsilon geometry where two blocks are adjacent to each other - I get

Re: [Meep-discuss] plane waves and distortions in the field pattern

2009-09-22 Thread Steven G. Johnson
On Sep 13, 2009, at 3:42 AM, sohrab safavi wrote: 1-) i want to simulate a plane wave with angle incident on a priodic structure. i have got this code from the forum. for theta between 0 and pi/2 it works like a charm but for theta = pi/2 there are distortions in the plane wave field pattern,

Re: [Meep-discuss] meep-mpi and NFS: output/simulation error

2009-09-22 Thread Steven G. Johnson
On Sep 14, 2009, at 8:33 AM, Paul Muellner wrote: Thank you for the hint with openMPI. We changed our MPI installation from mpich to openMPI and recompiled meep-mpi. Now everything seems to work fine. Just for all other users that want to switch from mpich to openMPI: You have to type "MPICX

Re: [Meep-discuss] I am puzzled with quality factor

2009-09-22 Thread Steven G. Johnson
On Sep 14, 2009, at 11:10 AM, liu wrote: I think there should be two resonant frequency, one is about 0.640, the other is about 0.6623, not four resonant frequency. however, when I increse the resolution from 16 to 32 to 64 and to 128, I always get four resonant frequency. While the quali

Re: [Meep-discuss] Spectral width

2009-09-22 Thread Steven G. Johnson
On Sep 11, 2009, at 12:35 PM, Bernd Schmid wrote: I am simulating a continuous source which I switch off after time T=100. Over this time I am using the add-flux fluntion to obtain the spectrum. Theoretically, the spectrum should show equidistant nodes, the distance between them being df=1/

[Meep-discuss] FDTD phase calculation

2009-09-22 Thread Tenner S Lee
Hi meep discussion, I am trying to calculate the phase of my E field inside a waveguide and i was wondering if i can get some input. I am not sure if i am doing this correctly since my phase diagrams are not matching my calculations. I decided to go back to a waveguide i know the phase for, a

[Meep-discuss] How to manipulate the output file name in c++ interface

2009-09-22 Thread 李志强
Hi all! I want to manipulate the output filename in c++ interface. I have browsed the meep source code and find the function output_hdf5 is overloaded, it contained one which I think may be used manipulate the output name: void output_hdf5 (const char *dataname, int num_Fields, const componen

Re: [Meep-discuss] Meep hanging on silver drude model simulation

2009-09-22 Thread Steven G. Johnson
From your output, it sounds like the problem is harminv, not Meep per se. Can you verify that running without harminv works okay, and e.g. outputting the data at some point as a function of time looks okay (e.g. not blowing up etc.)? ___ meep-dis

Re: [Meep-discuss] how can I include mpb.h during meep configure process?

2009-09-22 Thread Steven G. Johnson
On Sep 16, 2009, at 8:53 AM, ChangGyun Shin wrote: during configure of meep, I discovered searching mpb.h routine...as follows You should not be specifying the -I flags to the MPB directories. (In general, you should only use -I and -L to specify directories where you *install* things w

Re: [Meep-discuss] Question about setting the current source

2009-09-22 Thread Roy Zhang
Hi Steven, Thanks a lot for helping me find out a big mistake I made - that is, I was confused by the defination of current in MEEP, which is totally different from that in driving circuit. So here comes another question. I notice that in other FDTD softwares such as XFDTD and SEMCAD, source

Re: [Meep-discuss] help

2009-09-22 Thread Steven G. Johnson
On Sep 16, 2009, at 11:34 PM, lfwang wrote: How to understand the phrase " (/ sy -2))" ? And where I can acquire the algorithm of phrases of like it? This is just the Scheme programming language. There are lots of resources and tutorials about Scheme online; see: http://ab-initio.mit.edu

[Meep-discuss] negative epsilon

2009-09-22 Thread cícero julião
I need help to use a negative value to epsilon . I have not found an explanation in the manuals for it. Thanks -- Cícero Julião da Silva Junior Optics and Materials Group - Optma Institute of Physics Universidade Federal

Re: [Meep-discuss] Use of custom_src_time function

2009-09-22 Thread Steven G. Johnson
On Sep 11, 2009, at 1:09 AM, Chintha Handapangoda wrote: I am trying to simulate a two dimensional photonic crystal with a square lattice composed of cylinders, using the C++ interface to meep. My source is in the form of discrete values in both spatial and time domains (stored in an array)

[Meep-discuss] The relationship between current source in MEEP and in XFDTD?

2009-09-22 Thread Roy Zhang
(I don't see my reply posted, so I'm posting it again. I'm sorry if this mail is duplicated.) Hi Steven, Thanks a lot for helping me find out a big mistake I made - that is, I was confused by the defination of current in MEEP, which is totally different from that in driving circuit. So here com