Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve RF simulation docs formatting slightly #115

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions docs/notebooks/elmer_01_electrostatic.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
# ## Geometry, layer config and materials

# %% tags=["hide-input"]

import os
from math import inf
from pathlib import Path
Expand Down Expand Up @@ -112,7 +111,6 @@
# ```

# %% tags=["hide-output"]

results = run_capacitive_simulation_elmer(
c,
layer_stack=layer_stack,
Expand Down
3 changes: 1 addition & 2 deletions docs/notebooks/palace_01_electrostatic.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
# ## Geometry, layer config and materials

# %% tags=["hide-input"]

import os
from math import inf
from pathlib import Path
Expand Down Expand Up @@ -109,7 +108,7 @@
# The meshing parameters and element order shown here are very lax. As such, the computed capacitances are not very accurate.
# ```

# %%
# %% tags=["hide-output"]
results = run_capacitive_simulation_palace(
c,
layer_stack=layer_stack,
Expand Down
8 changes: 3 additions & 5 deletions docs/notebooks/palace_02_fullwave.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
# This effectively solves the scattering parameters for the terminals.
#
# In this notebook, we the same interdigital capacitor as in {doc}`palace_01_electrostatic.py` but add lumped ports to the geometry.
# Afterwards, the capacitance matrix can be computed from the scattering parameters as described in {eq}`s_to_y_to_c`.
# Afterwards, the capacitance matrix can be computed from the scattering parameters as described in Eq. {eq}`s_to_y_to_c`.
#
# ## Installation
# See [Palace – Installation](https://awslabs.github.io/palace/stable/install/) for installation or compilation instructions. Gplugins assumes `palace` is available in your PATH environment variable.
Expand All @@ -43,8 +43,7 @@
#
# ## Geometry, layer config and materials

# %%

# %% tags=["hide-input"]
import os
from math import inf
from pathlib import Path
Expand Down Expand Up @@ -113,7 +112,6 @@
c.show()

# %%

# Add lumped port rectangles manually, see examples for https://awslabs.github.io/palace/stable/examples/cpw/
lumped_port_1_1 = gf.components.bbox(((-40, 11), (-46, 5)), layer=LAYER.PORT)
lumped_port_1_2 = gf.components.bbox(((-40, -11), (-46, -5)), layer=LAYER.PORT)
Expand Down Expand Up @@ -143,7 +141,7 @@
# %%
help(run_scattering_simulation_palace)

# %%
# %% tags=["hide-output"]
results = run_scattering_simulation_palace(
c,
layer_stack=layer_stack,
Expand Down