Skip to content

Commit

Permalink
Suppress output for Elmer simulation running example
Browse files Browse the repository at this point in the history
  • Loading branch information
nikosavola committed Aug 29, 2023
1 parent c2f7c70 commit 1b38cff
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/notebooks/elmer_01_electrostatic.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@
# 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_elmer(
c,
layer_stack=layer_stack,
Expand Down Expand Up @@ -156,10 +157,10 @@
pv.start_xvfb()
pv.set_jupyter_backend("panel")
field = pv.read(results.field_file_location)
slice = field.slice_orthogonal(z=layer_stack.layers["bw"].zmin * 1e-6)
field_slice = field.slice_orthogonal(z=layer_stack.layers["bw"].zmin * 1e-6)

p = pv.Plotter()
p.add_mesh(slice, scalars="electric field", cmap="turbo")
p.add_mesh(field_slice, scalars="electric field", cmap="turbo")
p.show_grid()
p.camera_position = "xy"
p.enable_parallel_projection()
Expand Down

0 comments on commit 1b38cff

Please sign in to comment.