Code covered by the BSD License  

Highlights from
Biot-Savart direct integration on a generic curve

5.0

5.0 | 1 rating Rate this file 22 Downloads (last 30 days) File Size: 2.28 KB File ID: #42237
image thumbnail

Biot-Savart direct integration on a generic curve

by

 

17 Jun 2013 (Updated )

Biot-Savart integration on a generic curve, by numerical integration.

| Watch this File

File Information
Description

Biot-Savart integration on a generic curve, by numerical integration.
You can insert the points of a generic curve and the script will calculate the B induction field everywhere.

You can choose between three test cases: simple straight wire, bent wire or solenoid, or you can insert the coordinates of your generic curve.
The script will also plot the quiver3 of the field.

Image in the screenshot has been simply taken using streamtube() function:

[xm, ym] = meshgrid(linspace(Dom(1,1), Dom(1,2), ND), linspace(Dom(2,1), Dom(2,2), ND));
zm = xm * 0;

streamtube(stream3(X,Y,Z,U,V,W,xm,ym,zm+6), 0.1);

You can find more info (in Italian) here:
http://www.wirgilio.it/blog/2013/06/19/campo-magnetico-e-velocita-indotta-da-un-vortice-lungo-una-curva-generica-con-matlab/

Required Products MATLAB
MATLAB release MATLAB 8.0 (R2012b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
07 Nov 2013 David  
17 Jun 2013 Alessandro Masullo

There is a little bug @ line 43:
linspace(Dom(2,1), Dom(3,2), ND));
should be:
linspace(Dom(3,1), Dom(3,2), ND));

Sorry :)

Updates
17 Jun 2013

@line 43, just changed an index

19 Jun 2013

Updated description link.

Contact us