[Meep-discuss] Conductor simulation

2015-05-22 Thread Gib Bogle
I am simulating a very simple scatterer exposed to a plane wave. This is a metal strip with length equal to lambda/2. It is my understanding that this should behave like a half-wave dipole. To check the response, I'd like to estimate the current in the conductor - I think this should have a

Re: [Meep-discuss] Strange memory allocation

2015-05-05 Thread Gib Bogle
I'm not a real programmer either, and I don't know what the function is doing, but I think I can make sense of the way p and p_prev are incremented. p is initialised to d-data, and p_prev to d-data + ntot, i.e. a memory address ntot*sizeof(realnum) past p. This is because when a

Re: [Meep-discuss] about the transmission flux

2015-04-13 Thread Gib Bogle
Look at the tutorial examples. The command (display-fluxes trans refl) writes out the flux spectra. From: meep-discuss [meep-discuss-boun...@ab-initio.mit.edu] on behalf of nadera [nadera.2...@hotmail.com] Sent: Tuesday, 14 April 2015 7:42 a.m. To:

Re: [Meep-discuss] about the transmission flux

2015-04-13 Thread Gib Bogle
I have no experience in driving Meep from C code. I can only suggest that you inspect the source code. From: 김휘 [hwi...@korea.ac.kr] Sent: Tuesday, 14 April 2015 8:36 a.m. To: Gib Bogle; nadera ; meep-discuss@ab-initio.mit.edu Subject: RE: Re: [Meep-discuss

Re: [Meep-discuss] Low frequency modulation

2015-03-31 Thread Gib Bogle
to use the frequency domain solver, but it ran for hours and failed to converge. I don't know what that signifies. Cheers Gib From: Filip Dominec [filip.domi...@gmail.com] Sent: Tuesday, 31 March 2015 8:54 p.m. To: Gib Bogle Cc: meep-discuss@ab

Re: [Meep-discuss] Low frequency modulation

2015-03-31 Thread Gib Bogle
Indeed the ramp works well - see the attached pic. This used width=2*wavelength, and the simulation was for 20 periods. From: Filip Dominec [filip.domi...@gmail.com] Sent: Wednesday, 1 April 2015 2:30 a.m. To: Gib Bogle Cc: meep-discuss Subject: Re: [Meep

[Meep-discuss] Low frequency modulation

2015-03-30 Thread Gib Bogle
I appreciate that most Meep users, those who post on this mailing list anyway, are working in optics, while my project is in the microwave range (5-6 GHz), but there may be someone who can throw some light (ha!) on my question. I am exciting a slot antenna, which is supposed to be resonant at

[Meep-discuss] Odd output-png behaviour

2015-03-29 Thread Gib Bogle
I have been running meep-mpi (latest code) on our cluster, using output-png. All has been going well, but now a couple of runs show an odd problem. Looking at the output directory I see the expected sequence of .png files, but then there is a .h5 file as well as the corresponding .png file.

Re: [Meep-discuss] Is Flux a function of resolution?

2015-03-21 Thread Gib Bogle
Hi Steve, I am a beginner with Meep, but I have seen posts with various recommendations. One recommendation is that the flux plane (in 3D) should be located at least one wavelength from the scatterer, and also from the wave source. The PML should be at least one wavelength thick, and the

Re: [Meep-discuss] Frequency-domain solver

2015-03-18 Thread Gib Bogle
I don't think you were confused, but I'm wondering where I should get the fixed code from. Is this it? git clone https://github.com/stevengj/meep Gib From: Filip Dominec [filip.domi...@gmail.com] Sent: Thursday, 19 March 2015 12:05 p.m. To: Gib Bogle Cc

Re: [Meep-discuss] Frequency-domain solver

2015-03-18 Thread Gib Bogle
From: Filip Dominec [filip.domi...@gmail.com] Sent: Thursday, 19 March 2015 11:26 a.m. To: Gib Bogle Cc: meep-discuss Subject: Re: [Meep-discuss] Frequency-domain solver Hi, Gib, it looks exactly like the bug that has been resolved in git commit https

Re: [Meep-discuss] Frequency-domain solver

2015-03-18 Thread Gib Bogle
, 19 March 2015 12:16 p.m. To: Gib Bogle Cc: meep-discuss Subject: Re: [Meep-discuss] Frequency-domain solver Exactly, this is the trunk repository with the most fresh code. F. D. 2015-03-19 0:11 GMT+01:00, Gib Bogle g.bo...@auckland.ac.nz: I don't think you were confused, but I'm wondering where

[Meep-discuss] Frequency-domain solver

2015-03-18 Thread Gib Bogle
I am trying to use the frequency-domain solver for a 3D problem, 25x25x22 with resolution=10. The output from (meep-fields-solve-cw fields) is: Meep: using complex fields. on time step 1 (time=0.05), 41.9989 s/step final residual = 0 Finished solve_cw after 1 steps and 0 CG iters. It seems that

[Meep-discuss] Strange results with metal

2015-02-14 Thread Gib Bogle
I am trying to characterize the reflection spectrum of a simple metal scatterer, but the results do not make sense. The structure I am now testing with has the shape of a simple rectangular loop, and is made of metal with a rectangular cross-section (the details are in the control file that

Re: [Meep-discuss] Puzzling results for reflection spectrum

2015-02-11 Thread Gib Bogle
coarse. Do I need to reduce the time step? Thanks Gib From: Filip Dominec [filip.domi...@gmail.com] Sent: Wednesday, 11 February 2015 9:29 p.m. To: Gib Bogle Subject: Re: [Meep-discuss] Puzzling results for reflection spectrum This looks good to me

[Meep-discuss] h5utils writepng compile problem with libpng15

2015-02-10 Thread Gib Bogle
It took me a while to track down the fix for the error: dereferencing pointer to incomplete type when compiling h5topng.c with libpng version = 15. I realize that this has been solved before, but the relevant messages are buried and not easily decyphered. I am posting this to save another from

[Meep-discuss] Puzzling results for reflection spectrum

2015-02-10 Thread Gib Bogle
I am getting puzzling inconsistencies between results for the reflection spectrum of a scatterer when I vary the width of the Gaussian pulse. Since I am a beginner this probably stems from my lack of understanding of something. The scattering antenna is a metal loop with a small gap (i.e. the

Re: [Meep-discuss] Puzzling results for reflection spectrum

2015-02-10 Thread Gib Bogle
. From: Filip Dominec [filip.domi...@gmail.com] Sent: Wednesday, 11 February 2015 10:49 a.m. To: Gib Bogle Cc: meep-discuss@ab-initio.mit.edu Subject: Re: [Meep-discuss] Puzzling results for reflection spectrum Hi, if you properly divide the reflected amplitude by the incident amplitude