In this project we will study the motion and energetics of a classical harmonic oscillator perturbed by an oscillating electric field. Assuming that the mechanical oscillator displacement from equilibrium represents a dipolar motion (e.g., the displacement could correspond to a normal-mode vibration of a heteronuclear diatomic molecule or the motion of an effective "electronic cloud" near a nucleus with charge of equal magnitude as the cloud in which case the model below would represent the interaction of an atom with light), the interaction with the electric field creates an oscillating force. The main goal here is to determine how efficient this interaction is as a function of the detuning (i.e. the difference between the frequency of the mechanical and the electrical oscillators:
The coordinate system of the problem is illustrated in the figure below
The mechanical oscillator is constrained to move harmonically along the
Once the electric field is turned on, we need to account for the electric force acting upon the charged mass (dipole).
Taking
Next, we define the a detuning parameter
such that
In order to numerically integrate the model above, we will need to discretize the problem in time steps such that a snapshot of the system can be computed from a previous one after a fixed time interval. To that end, we will employ the Verlet algorithm described here.
The general expansion of a function
From this equation, we can see that information about the function at some region
where we used the dot notation for time detivatives. Defining the time step
Alternatively, we could inquire the position of the particle at previous time step
Enforcing time intervals to be fixed
Adding equations 2 and 3 yields
from which we find an approximation for the updated position
Equation 2 by itself could be used to integrate this model. However, the error due to neglecting higher order terms (or due to a finite time step) would be greater. Why?
Recognizing that
Starting our model with two position values
The energy of the system can be computed from its kinetic and potential component. The potential energy at some time
Thus,
Write a function that takes in a number of simulation parameters and returns arrays of position and energy values. For each time step your simulation must
-
Compute the force. Note that the electric force must only be include within the time interval given above.
-
Compute new position.
-
Compute total energy.
The following parameters may be used for all computations:
-
$y_0 = 2.0$ and$y_1 = 2.0$ and$v_0 = 0.0$ -
$E_0 = 20.0$ and$\omega = 5.0$ . -
Electrical pulse duration of 10 units of time.
-
Total simulation duration of 20 units of time (with the pulse happening in the middle).
Plot position over time for different detuning values: 0.5, 0.8, 1.0, 1.2, 1.5
Feel free to also plot the electric field intensity in the same picture!
Plot energy transferred (energy before the electric pulse minus energy after the electric pulse) as a function of detuning values (0.4 - 1.6 with steps of 0.01). The result should resemble an absorption spectrum.
For less noisy results, you can average the energy before and after the electric pulse and take their difference as the energy absorbed.
Repeat the energy transferred computations for different values of pulse duration (8, 10, 15, 20, 30). Normalize the energy transferred and plot them in the same pictures for comparison. How does the pulse duration affect the absorption spectra?
