Skip to content

Commit

Permalink
Merge pull request #115 from nikosavola/palace-scattering-docs-improv…
Browse files Browse the repository at this point in the history
…ements

Improve RF simulation docs formatting slightly
  • Loading branch information
joamatab authored Sep 13, 2023
2 parents 3c07fee + 244fedb commit 77e749b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
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

0 comments on commit 77e749b

Please sign in to comment.