ElectricFieldsOfCha​rgeDistributionsIn3​d

版本 1.0.1 (1.4 MB) 作者: Duncan Carlsmith
Illustrates ways to numerically calculate and visualize the electric field and electric potential of charge distributions in 3D.
165.0 次下载
更新时间 2022/7/28

查看许可证

This script calculates the electric field and potential within a volume of space due to stacks of rings of point charges, rings sharing a common axis (the z-axis). The point charge density on the rings may be modulated and the ring density may be varied to represent the fields of charge distributions that are discrete of continuous in azimuth or height. Thusly, the user can explore arrays of line charges and tubes withe constant or variable charge density.
Once the charge distribution is set up, the potential and electric fields are calculated in two ways, using MATLAB vectorized methods and using a loop structure, to explore the computation time difference. Visualization techniques include surface plots of the potential and quiver plots of the vector field in sectional planes within the volume.
This script is designed as a tutorial for physics students and contains a variety of Try this suggestions for exploration entailing simple changes in parameter values, and some suggestions for coding extensions at the end. Many of the functions used are hyperlinked to MATLAB documentation for ready reference.

引用格式

Duncan Carlsmith (2024). ElectricFieldsOfChargeDistributionsIn3d (https://www.mathworks.com/matlabcentral/fileexchange/110140-electricfieldsofchargedistributionsin3d), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2022a
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

ElectricFieldsOfChargeDistributionsIn3d

版本 已发布 发行说明
1.0.1

Spell check

1.0.0