📄 update_voltage_sources.m
字号:
% 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -