Re: [MPB-discuss] Computing energy in multiple objects

2016-09-02 Thread Adam Klimont
It does seem to work this way. Thanks Hector. Adam On 01/09/16 21:45, Hector Perez wrote: I believe it works like: (output-dpwr-in-objects band-func min-energy object1 object2 object3 ... objectn) So for example: (output-dpwr-in-objects (combine-band-functions fix-efield-phase

[MPB-discuss] Computing energy in multiple objects

2016-08-31 Thread Adam Klimont
Hello, How to compute the energy of a field in a supercell? Take e.g. MPB's tutorial script for triangular rods: https://github.com/stevengj/mpb/blob/master/examples/tri-rods.ctl. I can calculate the energy in one rod by invoking: ((output-dpwr-in-objects output-dpwr 0.001 (make cylinder