23.03.2015 Views

Classical Calculation for Mutual Inductance of Two ... - Kurt Nalty

Classical Calculation for Mutual Inductance of Two ... - Kurt Nalty

Classical Calculation for Mutual Inductance of Two ... - Kurt Nalty

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

deltar.x = source_coord.x - sensor_coord.x;<br />

deltar.y = source_coord.y - sensor_coord.y;<br />

deltar.z = source_coord.z - sensor_coord.z;<br />

mag_deltar = sqrt(dot(deltar,deltar));<br />

d_mu = dot(source_tangent, sensor_tangent)/mag_deltar;<br />

mu += d_mu*ds;<br />

}<br />

return (mu);<br />

}<br />

double mu(void) // get mutual inductance<br />

{<br />

double theta; // angle along path, cylindrical coordinates<br />

double dtheta; // differential angle along path<br />

double r=0.5; // radius <strong>of</strong> loop = 1 m diameter<br />

double z_source= 0.5; // position <strong>of</strong> source loop<br />

double z_sensor=-0.5; // position <strong>of</strong> sensor loop<br />

double s; // path length along coil<br />

double ds; // differential path length<br />

double mag_deltar; // difference between source and sensor<br />

double mu; // mu_prime<br />

double d_mu; // incremental mu_prime<br />

vector source_coord, source_tangent,deltar;<br />

vector sensor_coord, sensor_tangent;<br />

int nturns = 1; // number <strong>of</strong> turns<br />

long i,j;<br />

s = 0.0;<br />

mu = 0.0;<br />

<strong>for</strong> (i=0; i

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!