Advertisement
hiddenGem

Spinning Elliptical Coil

Jul 7th, 2020
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.58 KB | None | 0 0
  1. %% Spinning Elliptical Coil
  2. % Determines the maxmium voltage induced in the coil  if the axis of
  3. % rotation of the coil is along its major axis
  4.  
  5. % Inputs and Variables
  6. N = input('Number of Turns\n');
  7. Major = input('What is the major axis?\n')/2;
  8. Minor = input('What is the minor aixs?\n')/2;
  9. w = input('RMP\n')*pi/30;
  10. B = input('Magnetic field from earth\n');
  11.  
  12. % Outputs and Equations
  13. A = pi*Major*Minor;
  14. E = N*B*A*w;
  15. fprintf('The maximum voltage is %.3e V \n', E)
  16. %{
  17. The code will ask the user to input the rotation speed in RPM. It will save
  18. the variable is saved in rad/s
  19. %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement