Code covered by the BSD License  

Highlights from
Particle in electric and magnetic field

5.0

5.0 | 1 rating Rate this file 31 Downloads (last 30 days) File Size: 19.5 KB File ID: #33317
image thumbnail

Particle in electric and magnetic field

by

 

17 Oct 2011 (Updated )

It simulates the trajectory of a particle in electric and magnetic field.

| Watch this File

File Information
Description

Simulation of the trajectory of a particle in electric and magnetic field (electromagnetic field). The trajectory is calculated by computationally solving differential equations. The direction and magnitude of magnetic and electric field can be changed along with other attributes of motion.

This simulation can be used in teaching for explaining the motion of particle in electromagnetic field.
This simulation has been developed under guidance of prof KG Suresh, Phy dep, IITB.

MATLAB release MATLAB 7.10 (R2010a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (3)
05 Jun 2014 simar

Hi,
I have used a ode23 differential equation solver in the .m file.
y0 = [r0; v0];
f = @(t,y) [y(4:6); (q/m)*cross(y(4:6),B)+E];
[t,y] = ode23t(f,tspan,y0);

05 Jun 2014 IchennS

Hi, simar

So I cannot find how you calculate the trajectory, and how you solve the differential equation. In which part do you do the calculations?

Thank you!

14 Nov 2011 simar

This has been developed under the guidance of prof KG Suresh, Phy dept, IITB

Updates
22 Oct 2011

description improved

14 Nov 2011

updated desc

Contact us