ComputationalRadiationPhysics / clara2

Clara2 - a parallel classical radiation calculator based on Liénard-Wiechert potentials
GNU General Public License v3.0
13 stars 9 forks source link

detector energy method uses arbitry freqency bin width #76

Open PrometheusPi opened 7 years ago

PrometheusPi commented 7 years ago

Currently the frequency bin width used to calculate the total energy radiated in a given direction is set by an arbitrary index:

result *= (frequency[7] - frequency[6]);

This should be avoided - to avoid arbitrary frequency scales.