Advertisement
hiddenGem

Wave from Wire Antenna

Jul 25th, 2020
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.87 KB | None | 0 0
  1. %% Wave from Wire Antenna
  2. % Determines the x and y components at time t and the magnitude of the
  3. % Poynting vector
  4.  
  5. % Constants
  6. c = 3.00*10^8;              % [m/s] Speed of Light
  7. mu = 4*pi*10^-7;         % [N/A^2] Magnetic Constant
  8. E = 8.85*10^-12;         % [C^2/N*m^2] Permittivity Constant
  9.  
  10. % Inputs and Variables
  11. Bmax = input('What is the magnetic field at point O, t = 0s\n')
  12. f  = input('What is the frequency of the wave?\n');
  13. t  = input('t = ?s \n');
  14.  
  15. % Outputs and Equations
  16. omega = 2*pi*f;
  17. Emax = c*Bmax;
  18. S = Emax*Bmax/mu;
  19. Bt = -Bmax*cos(omega*t);
  20. fprintf('x-component at t=0: %.3f V/m\nmagnitude of Poynting vector at t=0: %.3e W/m^2\ny-component of B-field at t = %.2e: %.3e T', Emax, S, t, Bt)
  21.  
  22. %{
  23. Under the assumption tha the electromagnetic wave travels into the screen
  24. and at point O the magnetic field vector is pointing in the negative
  25. direction
  26. %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement