VPython Modelling of Electric and Magnetic Forces: Difference between revisions

From Physics Book
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
VPython Modelling of Electric and Magnetic Forces
VPython Modeling of Electric and Magnetic Forces
Claimed By: Griffin Bonnett Spring 2017
claimed by Fall 2016: Sam Webster
claimed by Fall 2016: Sam Webster
Spring 2016: Neil Acharya (nacharya)
Spring 2016: Neil Acharya (nacharya)


==The Main Idea==
==The Main Idea==
 
Vpython is a programming language designed to model physics properties in a 3D simulation. This section we will be focused on modeling the electric and magnetic forces in Vpython.
State, in your own words, the main idea for this topic
Electric Field of Capacitor


===A Mathematical Model===
===A Mathematical Model===
When you start a new Vpython program you should first write out all the equations and constants you might need.You should also define any variables you use in their appropriate forms such as vectors, arrows, or spheres.    Then, you should get a rough outline of what values need to be calculated and how the constants and equations can be best applied for the calculations.


What are the mathematical equations that allow us to model this topic. For example <math>{\frac{d\vec{p}}{dt}}_{system} = \vec{F}_{net}</math> where '''p''' is the momentum of the system and '''F''' is the net force from the surroundings.
For Magnetic forces:
We are going to simulate the motion of a charged particle immersed in a magnetic
field.  
'''Step 1: Frame the problem in fundamental ideas or equations'''
This is where you write down anything the problem gives you.
Equations:          Constants:
F = q·v x B          Charge of the particle(q)
dp/dt = Fnet        Velocity vector of the particle(v)
p = ma              Magnetic field vector(B)         
v= p/m              Mass of particle (m)
                     
Due to our understanding of the velocity being influenced by the magnetic force, we can craft a general outline for the calculations. We can also find expected values and predict the behavior of the model. We will need to calculate the magnetic force and use it to update its position and velocity.


===A Computational Model===
===A Computational Model===
This is when we begin to program using Vpython. A finished and working program will give us the ability to visualize the physics of magnetic and electric forces. 


How do we visualize or predict using this topic. Consider embedding some vpython code here [https://trinket.io/glowscript/31d0f9ad9e Teach hands-on with GlowScript]
'''Step2: Conceptualize the problem'''
We want to show the particle moving through space relative to time. Since computer programs only comprehend discreet values, we will want to move through time in discreet increments. We do this by using a while loop because while t is less than a certain value the loop will continue to be updated. We can put the limit of t to anytime so long as the rate is high enough to run the program reasonably fast and t is large enough to run the full length simulation. We will set the initial time to t = 0 and add a constant delta t to each iteration in the while loop. Each new iteration of time will allow us to update the position and velocity vector


==Examples==
==Examples==

Revision as of 21:30, 9 April 2017

VPython Modeling of Electric and Magnetic Forces Claimed By: Griffin Bonnett Spring 2017 claimed by Fall 2016: Sam Webster Spring 2016: Neil Acharya (nacharya)

The Main Idea

Vpython is a programming language designed to model physics properties in a 3D simulation. This section we will be focused on modeling the electric and magnetic forces in Vpython.

A Mathematical Model

When you start a new Vpython program you should first write out all the equations and constants you might need.You should also define any variables you use in their appropriate forms such as vectors, arrows, or spheres. Then, you should get a rough outline of what values need to be calculated and how the constants and equations can be best applied for the calculations.

For Magnetic forces: We are going to simulate the motion of a charged particle immersed in a magnetic field. Step 1: Frame the problem in fundamental ideas or equations This is where you write down anything the problem gives you. Equations: Constants:

F = q·v x B          Charge of the particle(q)
dp/dt = Fnet         Velocity vector of the particle(v)
p = ma               Magnetic field vector(B)          
v= p/m               Mass of particle (m) 
                     
Due to our understanding of the velocity being influenced by the magnetic force, we can craft a general outline for the calculations. We can also find expected values and predict the behavior of the model. We will need to calculate the magnetic force and use it to update its position and velocity.  

A Computational Model

This is when we begin to program using Vpython. A finished and working program will give us the ability to visualize the physics of magnetic and electric forces.

Step2: Conceptualize the problem

We want to show the particle moving through space relative to time. Since computer programs only comprehend discreet values, we will want to move through time in discreet increments. We do this by using a while loop because while t is less than a certain value the loop will continue to be updated. We can put the limit of t to anytime so long as the rate is high enough to run the program reasonably fast and t is large enough to run the full length simulation. We will set the initial time to t = 0 and add a constant delta t to each iteration in the while loop.  Each new iteration of time will allow us to update the position and velocity vector 

Examples

Be sure to show all steps in your solution and include diagrams whenever possible

Simple

Middling

Difficult

Connectedness

  1. How is this topic connected to something that you are interested in?
  2. How is it connected to your major?
  3. Is there an interesting industrial application?

History

Put this idea in historical context. Give the reader the Who, What, When, Where, and Why.

See also

Are there related topics or categories in this wiki resource for the curious reader to explore? How does this topic fit into that context?

Further reading

Books, Articles or other print media on this topic

External links

Internet resources on this topic

References

This section contains the the references you used while writing this page