Skip to content

Commit

Permalink
'clasicol'
Browse files Browse the repository at this point in the history
  • Loading branch information
DPotoyan authored Oct 21, 2024
1 parent d0052b2 commit e23ea3a
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions ch04/note02.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,24 @@
"source": [
"### Bead, spring and a wall. \n",
"\n",
"![](images/harm-osc1.png)\n",
"- The classical **harmonic oscillator** is a system of bead attached to a wall with a spring. \n",
"- When bead is displaced from its equilibrium or resting position $r_0$ to some point $r$, experiences a restoring force $F$ proportional to the displacement $x=r-r_0$:\n",
"\n",
"- The classical **harmonic oscillator** is a system of bead attached to a wall with a spring. When bead is displaced from its equilibrium or resting position $r_0$ to some point $r$, experiences a restoring force $F$ proportional to the displacement $x=r-r_0$:\n",
"\n",
"$$F=-kx$$\n",
":::{figure-md} markdown-fig\n",
"\n",
"<img src=\"images/harm-osc1.png\" alt=\"compton\" class=\"bg-primary mb-1\" width=\"300px\">\n",
"\n",
"Illustration of harmonic motion governed by Hook's law. Any deviation from equilibrium (resting) position is met with restoring force. In the absence of friction the bead keeps oscillating around equilibrium position. \n",
"\n",
":::\n",
"\n",
"- The above expression is also known as **Hooke's law**, where minus sign indicates that the direction of force is always towards restoring equilibrium location. The constant k characterizes stiffness of the spring and is called **spring constant.**\n",
"\n",
"![](images/harm-osc1.png)\n",
"\n",
"![](https://askeyphysics.files.wordpress.com/2011/08/solveharmonic.gif)\n"
"$$F=-kx$$\n",
"\n",
"- This is **Hooke's law**, where minus sign indicates that the direction of force is always towards restoring equilibrium location. \n",
"- The constant k characterizes stiffness of the spring and is called **spring constant.**"
]
},
{
Expand Down Expand Up @@ -90,7 +97,7 @@
"# Constants\n",
"A = 1 # Amplitude\n",
"phi = 0 # Phase (set to 0 for simplicity)\n",
"t = np.linspace(0, 10, 1000) # Time array\n",
"t = np.linspace(0, 4, 1000) # Time array\n",
"\n",
"# Define angular frequency as a function of k and m\n",
"def angular_frequency(k, m):\n",
Expand Down Expand Up @@ -157,9 +164,6 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"### Conservative system \n",
"\n",
"\n",
":::{figure-md} markdown-fig\n",
"\n",
"<img src=\"https://www.physicslens.com/wp-content/uploads/2021/11/simple-harmonic-motion-graphs.gif\" alt=\"compton\" class=\"bg-primary mb-1\" width=\"300px\">\n",
Expand All @@ -169,8 +173,7 @@
":::\n",
"\n",
"\n",
"### Diatomic molecule and two-body problem\n",
"\n",
"### Diatomic molecules and two-body problem\n",
"\n",
":::{figure-md} markdown-fig\n",
"<img src=\"images/osc-2.jpeg\" alt=\"compton\" class=\"bg-primary mb-1\" width=\"300px\">\n",
Expand Down

0 comments on commit e23ea3a

Please sign in to comment.