Lorentz Integrator Numerical Simulation

4 visualizaciones (últimos 30 días)
Daniel Matthew
Daniel Matthew el 29 de Oct. de 2018
Comentada: Daniel Matthew el 29 de Oct. de 2018
I need a bit of help to develop a numerical simulation to integrate the Lorentz force equation. These are some of the parameter I was given:
x0 = [0, 0, 0]
v0 = [0, 1, 0]
q = 1, m = 1
B = [0, 0, 10]; Magnetic Field
E = [0, 0, 0] Electric Field
n = 500: number of time steps
dt = 0.01: time step
I am supposed to use ode45 to solve 6 first order differential equations and plot the solution in a 3D plot. Not sure how to go about this.
  2 comentarios
Aquatris
Aquatris el 29 de Oct. de 2018
It would be better if you show what you did so far. What you tried, where you are not sure and which part did you not understand. Otherwise this is a "do it for me" type of question and it is highly unlikely for someone to do it for you.
Daniel Matthew
Daniel Matthew el 29 de Oct. de 2018
I'm pretty new to matlab so I'm not really sure how to start. I just need someone to point me in the right direction on how to go about it. I don't need the problem done for me

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Ordinary Differential Equations en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2016a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by