Hi Mischa,

Thank you for you reply, it helped.
With apply I was able to implement this:
"
(define foo
  (list
    (make flux-region (center 0.2 -0.5) (size 0.1 0))
    (make flux-region (center -0.2 -0.5) (size 0.1 0))))

(define refl (apply add-flux fcen df nfreq foo))
"


On Mon, Apr 26, 2010 at 8:41 PM, Mischa Megens <[email protected]> wrote:
> Hi Marko,
>
>
> Marko wrote:
>>
>> Dear Meep users,
>>
>> I have another question, although this discuss list seems to be somehow
>> asleep.
>>
>
> No it is not at all asleep.  Although perhaps it is true that less
> interesting or too difficult questions get fewer replies...
>
>> I would like to make a flux-region in 2D which has some complicated
>> shape. I guess a possible way to do this would be to make a list of
>> point-like flux-regions and pass them to add-flux. But the function
>> add-flux doesn't take a list as an argument but only "a bunch of
>> flux-regions".
>
> To me, the ref. pages mean that the (add-flux ...) function can take
> multiple multiple arguments.
>
>> Is there a way to change a list to "a bunch"?
>
> You use (apply ...), presumably.
>
> Best,
> m.
>
>



-- 
Regards, Marko

_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Reply via email to