• HOME
  • YEAR 9
    • Assessment System
    • Inheritance
    • Plants >
      • Kitchen Garden Project
    • Acids and Alkalis
    • Energetic Reactions
    • Energy Resources
    • Mechanics
    • Environmental Science
  • IGCSE
    • Forces and Motion
    • Energy and Energy Resources
    • Solids, Liquids and Gases
    • Waves
    • Astrophysics
    • Electricity
    • Magnetism
    • Nuclear Physics
    • IGCSE revision
  • Physics I
    • Kinematics >
      • Variables and Units
      • Describing Motion
      • Equations of Motion
      • Problem Solving
      • Projectiles
      • Kinematics Animations
    • Dynamics >
      • Forces
      • Static Equilibrium
      • Newton's Laws
      • Friction
      • Advanced Problems
    • Gravitation and Orbits >
      • Circular Motion
      • Vertical Circles
      • Universal Gravitation
      • Orbits
      • Circular Motion Animation
    • Energy >
      • Work
      • Springs
      • PE and KE
      • Conservation of Energy
      • Work-Energy Theorem
    • Linear Momentum >
      • Impulse
      • Conservation of Momentum
      • Types of Collision
      • 2-D Collisions
    • Simple Harmonic Motion >
      • Mass on Spring
      • Pendulums
      • SHM Animations
    • Rotational Mechanics >
      • Torque
      • Rotational Kinematics
      • Rotational Dynamics
      • Angular Momentum
      • Rotational Energy
    • Mechanical Waves >
      • Waves on a String
      • Sound
    • AP-1 Revision
    • AP Physics C (Mechanics)
  • Physics II
    • Fluid Mechanics
    • Thermal Physics
    • DC Circuits >
      • Voltage and Current
      • Resistance
      • Series and Parallel
      • Internal Resistance
    • Electrostatics
    • Magnetic Fields >
      • EM Induction
    • Interference and Diffraction
    • Optics
    • Modern Physics
    • AP 2 Revision
  • OCEANOGRAPHY
    • The World Ocean >
      • What is Oceanography
      • History
      • Lat and Long
      • Size and Origin
      • Plate Tectonics
    • Seawater >
      • A Salty Sea
      • Measuring Salinity
      • Thermal Properties
      • Density Profiles
      • Drinking Seawater
    • Circulation and Climate >
      • Global Heating
      • Coriolis Effect
      • Surface Currents
      • Vertical Motion
      • Thermohaline Circulation
      • El Nino
      • Carbon Cycle
    • Waves and Tides >
      • Wave Motion
      • Formation of Waves
      • Beaches
      • Tsunamis
      • Tides
    • Observation Systems >
      • Challenges
      • The CTD
      • Moorings
      • Sound Waves
      • Robotics
      • Satellites
    • Weather and Navigation >
      • Weather Systems
      • Weather Forecasting
      • Hurricanes
      • Navigation
      • Life at Sea
    • Oceans and Mankind >
      • Ocean Acidification
      • Pollution
      • Fish Stocks
      • Climate Change
      • Energy Resources
    • Atlantic Explorer Cruise
    • ROVs
  • COLLEGE
    • College Physics I
    • College Physics II
  • CONTACT
Island Physics

RanDOM Ramblings

Coding Simulations

9/8/2019

1 Comment

 
Picture
I decided to start including some coding into the AP Physics I course this coming year.  The reason for it was to try to increase the level of understanding of how objects move.  Especially the idea that motion can be broken into components and that a constant acceleration can change the direction of motion.  In order to produce a realistic animation of a moving object, for example a projectile, a student must have a good understanding of the physics involved.  If the physics is wrong, then the animation will not realistic.  Fairly sure that is the basis of the Matrix and Inception?  Anyway...

So, then I started investigating and trialing a number of languages.  Ideally I wanted something that was easy to install and get to grips with as I definitely did NOT want to teach the students complicated syntax and compiling (so Fortran was out), or that costs money (ditto Matlab).  As the IT dept teaches Python, I tried that out using an online tool called Trinket.  This looked promising as a basic code could be embedded into this website and the students could modify and play with it.  The problem was that the syntax of Python, or rather Glowscript, is not terribly easy to get to grips with.

So, I found PhysGL which appears to fit the bill.  It is free and online, although I cannot embed either the code or the animations.  The syntax seems pretty intuitive, which is ideal, and the simulations look pretty nice.  There are a couple of downsides, a) there is not too much in the way of instruction manuals, so I have had to work a bit out myself using trial and error, and b) as it is online and runs through the web it can be slow.  This is especially a problem as using long time intervals can lead to errors.  I need to think more about the circular motion and SHM simulations when I am back in Bermuda and with a faster laptop.  However, for the basic kinematics stuff in both one and two dimensions (or three?!) it seems ideal.     

The idea is to focus entirely on the physics and the logic behind how animations, kinematics and dynamics work in ever shorter steps, and not the nuts and bolts of the language itself.  
The basic structure of any animation code is:
  • define parameters and variables
  • draw a background, if required
  • run the physics inside a loop
  • display vectors and/or a trace
​
​So, the plan is to include this activity along with the usual labs and problem solving in class.

1 Comment
Abrasive Blasting Kentucky link
9/2/2023 10:25:02

This is awessome

Reply



Leave a Reply.

    Archives

    August 2020
    March 2020
    February 2020
    September 2019
    August 2019
    May 2019
    April 2019
    January 2019
    December 2018

    Categories

    All

    RSS Feed

    Older Posts
  • HOME
  • YEAR 9
    • Assessment System
    • Inheritance
    • Plants >
      • Kitchen Garden Project
    • Acids and Alkalis
    • Energetic Reactions
    • Energy Resources
    • Mechanics
    • Environmental Science
  • IGCSE
    • Forces and Motion
    • Energy and Energy Resources
    • Solids, Liquids and Gases
    • Waves
    • Astrophysics
    • Electricity
    • Magnetism
    • Nuclear Physics
    • IGCSE revision
  • Physics I
    • Kinematics >
      • Variables and Units
      • Describing Motion
      • Equations of Motion
      • Problem Solving
      • Projectiles
      • Kinematics Animations
    • Dynamics >
      • Forces
      • Static Equilibrium
      • Newton's Laws
      • Friction
      • Advanced Problems
    • Gravitation and Orbits >
      • Circular Motion
      • Vertical Circles
      • Universal Gravitation
      • Orbits
      • Circular Motion Animation
    • Energy >
      • Work
      • Springs
      • PE and KE
      • Conservation of Energy
      • Work-Energy Theorem
    • Linear Momentum >
      • Impulse
      • Conservation of Momentum
      • Types of Collision
      • 2-D Collisions
    • Simple Harmonic Motion >
      • Mass on Spring
      • Pendulums
      • SHM Animations
    • Rotational Mechanics >
      • Torque
      • Rotational Kinematics
      • Rotational Dynamics
      • Angular Momentum
      • Rotational Energy
    • Mechanical Waves >
      • Waves on a String
      • Sound
    • AP-1 Revision
    • AP Physics C (Mechanics)
  • Physics II
    • Fluid Mechanics
    • Thermal Physics
    • DC Circuits >
      • Voltage and Current
      • Resistance
      • Series and Parallel
      • Internal Resistance
    • Electrostatics
    • Magnetic Fields >
      • EM Induction
    • Interference and Diffraction
    • Optics
    • Modern Physics
    • AP 2 Revision
  • OCEANOGRAPHY
    • The World Ocean >
      • What is Oceanography
      • History
      • Lat and Long
      • Size and Origin
      • Plate Tectonics
    • Seawater >
      • A Salty Sea
      • Measuring Salinity
      • Thermal Properties
      • Density Profiles
      • Drinking Seawater
    • Circulation and Climate >
      • Global Heating
      • Coriolis Effect
      • Surface Currents
      • Vertical Motion
      • Thermohaline Circulation
      • El Nino
      • Carbon Cycle
    • Waves and Tides >
      • Wave Motion
      • Formation of Waves
      • Beaches
      • Tsunamis
      • Tides
    • Observation Systems >
      • Challenges
      • The CTD
      • Moorings
      • Sound Waves
      • Robotics
      • Satellites
    • Weather and Navigation >
      • Weather Systems
      • Weather Forecasting
      • Hurricanes
      • Navigation
      • Life at Sea
    • Oceans and Mankind >
      • Ocean Acidification
      • Pollution
      • Fish Stocks
      • Climate Change
      • Energy Resources
    • Atlantic Explorer Cruise
    • ROVs
  • COLLEGE
    • College Physics I
    • College Physics II
  • CONTACT