update_voltage_sources.m
来自「The Finite Difference Time Domain Method」· M 代码 · 共 18 行
M
18 行
% updating electric field components
% associated with the voltage sources
for ind = 1:number_of_voltage_sources
fi = voltage_sources(ind).field_indices;
switch (voltage_sources(ind).direction(1))
case 'x'
Ex(fi) = Ex(fi) + voltage_sources(ind).Cexs ...
* voltage_sources(ind).voltage_per_e_field(time_step);
case 'y'
Ey(fi) = Ey(fi) + voltage_sources(ind).Ceys ...
* voltage_sources(ind).voltage_per_e_field(time_step);
case 'z'
Ez(fi) = Ez(fi) + voltage_sources(ind).Cezs ...
* voltage_sources(ind).voltage_per_e_field(time_step);
end
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?