diff --git a/FDTD/operator.cpp b/FDTD/operator.cpp index 1d98e03..d4e2ee4 100644 --- a/FDTD/operator.cpp +++ b/FDTD/operator.cpp @@ -141,6 +141,22 @@ void Operator::CalcGaussianPulsExcitation(double f0, double fc) } } +void Operator::CalcSinusExcitation(double f0, int nTS) +{ + if (dT==0) return; + if (nTS<=0) return; + + ExciteLength = (unsigned int)(nTS); + delete[] ExciteSignal; + ExciteSignal = new FDTD_FLOAT[ExciteLength+1]; + ExciteSignal[0]=0.0; + for (unsigned int n=1;n