magnetic field of a circuar current loop

compute the magnetic field of a current loop using biot-savart's law
다운로드 수: 421
업데이트 날짜: 2018/7/11

라이선스 보기

example how to apply the universal(language independent) priciple of iteration to compute the Bx,By,Bz - components of a vectorfield for entries in a 3D grid representing (X,Y,Z ) cordinates of points in 3D space.
once you understand this principle you can easily compute fields in spherical or whatever coordinates as well and transform back to cartesian coordinates to plot the results
unfortunately matlab isn't the rigtht language if execution time is crucial
in this example the field is computed on a 10x10x10 - grid and the currentloop itself is additionally made up of 30 points where has to be iterated over for each entry in the grid ... altogther this takes several minutes
patience :)
The progress in percent is displayed in the command line
My implementation in C++ takes 0.008s to finish on the same machine

인용 양식

Lucas Tassilo Scharbrodt (2024). magnetic field of a circuar current loop (https://www.mathworks.com/matlabcentral/fileexchange/68004-magnetic-field-of-a-circuar-current-loop), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2017b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Calculus에 대해 자세히 알아보기
태그 태그 추가

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0