Example of use of SeriesImpedance into a Circuit example
"# scikit-rf: using Circuit builder \n",
"port1 = rf.Circuit.Port(frequency=LC_designer.frequency, name='port1', z0=50)\n",
"port2 = rf.Circuit.Port(frequency=LC_designer.frequency, name='port2', z0=50)\n",
- "line = rf.media.DefinedGammaZ0(frequency=LC_designer.frequency, z0=50)\n",
- "cap = line.capacitor(70e-12, name='cap')\n",
- "ind = line.inductor(24e-9, name='ind')\n",
+ "cap = rf.Circuit.SeriesImpedance(frequency=LC_designer.frequency, name='cap', z0=50,\n",
+ " Z=1/(1j*LC_designer.frequency.w*70e-12))\n",
+ "ind = rf.Circuit.SeriesImpedance(frequency=LC_designer.frequency, name='ind', z0=50,\n",
+ " Z=1j*LC_designer.frequency.w*24e-9)\n",
+ "\n",
+ "# NB: it is also possible to create 2-port lumped elements like:\n",
+ "# line = rf.media.DefinedGammaZ0(frequency=LC_designer.frequency, z0=50)\n",
+ "# cap = line.capacitor(70e-12, name='cap')\n",
+ "# ind = line.inductor(24e-9, name='ind')\n",
"\n",
"connections = [\n",
" [(port1, 0), (cap, 0)],\n",
"metadata": {},
"outputs": [],
"source": [
- "# scikit-rf: \n",
+ "# scikit-rf: the filter by cascading all lumped-elements \n",
"freq = passband_designer.frequency\n",
"passband_manual = line.shunt_capacitor(25.406e-12) ** line.shunt_inductor(4.154e-9) ** \\\n",
" line.capacitor(2.419e-12) ** line.inductor(43.636e-9) ** \\\n",
],
"metadata": {
"kernelspec": {
- "display_name": "Python 3",
+ "display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.7.8"
+ "version": "3.8.11"
}
},
"nbformat": 4,
