Hi Mattia, get_field(component c , vec pos), here "pos" means the position in your structure where you want the field to be read from. Once you have your structure drawn on paper it would clear to you where you need to extract the field and you would know the position as well. This is how I do it, it is often quite clear then, what the coordinates are.
For example: it would be something like, "my_field.get_field( Ey, vec(x1,y1))", my_field being your object of the class Fields. Hope this helps in some way. Cheers, Geeth On Tue, May 24, 2011 at 6:57 PM, Mattia Lupetti <[email protected]>wrote: > Hi everyone, > > to do the same thing described above in the C++ interface, I'm using the > meep::Fields function "get_field(component c, vec pos)". I don't understand > what it does when you pass a point "pos" that's not on the grid. Does it > take the nearest point? > > Thank you, > > Mattia > > _______________________________________________ > meep-discuss mailing list > [email protected] > http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss >
_______________________________________________ meep-discuss mailing list [email protected] http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

