Skip to content

Commit 1e38e5e

Browse files
committed
add grid.plot_solids() to the example
1 parent 8369258 commit 1e38e5e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

examples/001_CPU_wakefield_simulation.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
'shell': [30, 1.0, 30]
2222
}
2323

24-
# BONUS: Visualize geomEtry - Uncomment for plotting!
24+
# BONUS: Visualize geometry - Uncomment for plotting!
2525
# pl = pv.Plotter()
2626
# pl.add_mesh(pv.read(solid_1),color='tab:orange', specular=0.5, smooth_shading=True)
2727
# pl.add_mesh(pv.read(solid_2),color='tab:blue', opacity=0.5, specular=0.5, smooth_shading=True)
@@ -48,9 +48,10 @@
4848
verbose=1)
4949

5050
# BONUS: Visualize grid - Uncomment for plotting!
51-
# grid.inspect(add_stl=[solid_1, solid_2],
52-
# stl_colors=['tab:orange', 'tab:blue'],
53-
# stl_opacity=1.0)
51+
# grid.inspect(add_stl=[solid_1, solid_2], stl_opacity=1.0)
52+
53+
# BONUS: Visualize imported solids - Uncomment for plotting!
54+
grid.plot_solids()
5455

5556
# ------------ Beam source & Wake ----------------
5657
# Beam parameters

0 commit comments

Comments
 (0)