{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "5a509c2c",
"metadata": {
"execution": {
"iopub.execute_input": "2025-01-23T12:42:14.167124Z",
"iopub.status.busy": "2025-01-23T12:42:14.166816Z",
"iopub.status.idle": "2025-01-23T12:42:17.546565Z",
"shell.execute_reply": "2025-01-23T12:42:17.545571Z"
}
},
"outputs": [],
"source": [
"import finesse\n",
"finesse.configure(plotting=True)\n",
"\n",
"kat = finesse.Model()\n",
"kat.parse(\n",
" \"\"\"\n",
" # Optical setup: laser, space and mirror:\n",
" l l1 P=1\n",
" s s1 l1.p1 m1.p1\n",
" m m1 R=1 T=0\n",
"\n",
" # Define a pendulum for our mirror, with a z-motion resonance at 10Hz\n",
" # and Q factor of 1000\n",
" pendulum sus1 m1.mech mass=1 fz=10 Qz=1000\n",
"\n",
" # Measure the mirror's longitudinal motion\n",
" xd m1_z m1.mech.z\n",
"\n",
" # Set a signal frequency to activate the signal simulation\n",
" # (needed for radiation pressure effects to be observed)\n",
" fsig(1)\n",
"\n",
" # Generate amplitude modulation at the laser\n",
" sgen sig l1.amp\n",
" \"\"\"\n",
")"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "dfa519d0",
"metadata": {
"execution": {
"iopub.execute_input": "2025-01-23T12:42:17.550204Z",
"iopub.status.busy": "2025-01-23T12:42:17.549246Z",
"iopub.status.idle": "2025-01-23T12:42:18.586766Z",
"shell.execute_reply": "2025-01-23T12:42:18.585956Z"
}
},
"outputs": [
{
"data": {
"image/svg+xml": [
"\n",
"\n",
"\n"
],
"text/plain": [
""
]
},
"metadata": {
"filenames": {
"image/svg+xml": "/builds/ifosim/finesse/finesse3/docs/build/jupyter_execute/examples/06_radiation_pressure_1_0.svg"
}
},
"output_type": "display_data"
}
],
"source": [
"# Sweep the frequency of the amplitude modulation\n",
"out = kat.run(\"xaxis(fsig.f, log, 1, 100, 400)\")\n",
"out.plot(log=True);"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.13.1"
}
},
"nbformat": 4,
"nbformat_minor": 5
}