thliebig / openEMS

openEMS is a free and open-source electromagnetic field solver using the EC-FDTD method.
http://openEMS.de
GNU General Public License v3.0
458 stars 156 forks source link

changed the scaling of the result, added some comments #13

Closed Magger closed 3 years ago

Magger commented 8 years ago

The original scaling is fine, but only works for pulse-like signals.

If the original example is started with a time range of t=linspace(0,3,100); then the answer is not approx. 0.9, but 2.7, which is not equal to the amplitude of the given sine function.

The added scaling option still gives the correct results of 0.9, no matter which time range is used for the input time function.