Lesson III: Naive Modeling
July 31, 2020
Water, Chemicals and more with Computers for Chemistry (WC3m)
Rohit Goswami and Amrita Goswami
Recap:
Trajectories
Programming
We talked about how a program views variables. Each variable has a type, a value and a label (name).
Our Goal
Programming Goals and Tools
What did we learn and use?
We can mimic observed behaviour with programming languages
Have we done any physics?
Problem: Simulating a Turtle Constrained by a Spring!
Imagine that the turtle (let’s call him Yoda) is attached to a point (called the origin) by an invisible string. Every time Yoda moves away from the origin, Yoda misses home and goes back towards the origin. We want to write a simulation predicting Yoda’s movements in this situation.
Why?
A solid “model” built of springs and balls
A representation of the system we just simulated
References