rennone / mpiFDTD

FDTD simulator by MPI Library
0 stars 1 forks source link

field_scatterdPulseで入射角を変えるとうまく行かないときがある. #13

Closed rennone closed 10 years ago

rennone commented 10 years ago

180, 270 , -90ではうまく行かなかった. 90ではうまく行った.

rennone commented 10 years ago

ピーク時間が変わるのが原因. -30°とかでは, かなり速くピークが来たため, それによるずれっぽい.

rennone commented 10 years ago

中心がピークになる時間は peak_time = cos(θ)_cx/C_S + sin(θ)_cy/C_S となる. なので, t0 = -peak_time + 100 とし

const double r = (i+gapX)_cos_per_c+(j+gapY)_sin_per_c-(time-t0); const double gaussian_coef = exp( -pow(r/beam_width, 2 ) ); とすれば,常に100ステップで中心にピークが来るようになる.