{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "1e223bf9",
"metadata": {
"execution": {
"iopub.execute_input": "2025-05-15T10:09:47.740504Z",
"iopub.status.busy": "2025-05-15T10:09:47.740310Z",
"iopub.status.idle": "2025-05-15T10:09:49.614267Z",
"shell.execute_reply": "2025-05-15T10:09:49.613447Z"
}
},
"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": "9cc1e59e",
"metadata": {
"execution": {
"iopub.execute_input": "2025-05-15T10:09:49.617383Z",
"iopub.status.busy": "2025-05-15T10:09:49.616534Z",
"iopub.status.idle": "2025-05-15T10:09:50.340469Z",
"shell.execute_reply": "2025-05-15T10:09:50.339938Z"
}
},
"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.3"
}
},
"nbformat": 4,
"nbformat_minor": 5
}