Skip to content

Commit

Permalink
MISC: fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
SMoraisAnsys committed Feb 7, 2024
1 parent 730f311 commit df929ae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/00-EDB/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ electronics desktop user interface.
06_Advanced_EDB.py
09_Configuration.py
10_GDS_workflow.py
11_post_layout_parametrization.py
11_post_layout_parameterization.py
12_edb_sma_connector_on_board.py
13_edb_create_component.py
14_edb_create_parametrized_design.py
Expand Down
12 changes: 6 additions & 6 deletions examples/03-Maxwell/Maxwell2D_DCConduction.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@
#
# Create R. vs. material report.

# +
variations = {"MaterialIndex": ["All"], "MaterialThickness": ["Nominal"]}
report = m2d.post.create_report(
expressions="1/Matrix1.G(1V,1V)/MaterialThickness",
Expand All @@ -135,6 +136,7 @@
for i in range(len(d.primary_sweep_values)):
material_index_vs_resistance.append([str(d.primary_sweep_values[i]), str(resistence[i])])
colors.append([None, None])
# -

# ## Field overlay
#
Expand Down Expand Up @@ -179,16 +181,14 @@
animated.azimuth_angle = 0
animated.animate()

################################################################################
# Export model picture
# ~~~~~~~~~~~~~~~~~~~~
# ## Export model picture
#
# Export model picture.

model_picture = m2d.post.export_model_picture()

################################################################################
# Generate PDF report
# ~~~~~~~~~~~~~~~~~~~
# ## Generate PDF report
#
# Generate a PDF report with output of simulation.

pdf_report = AnsysReport(project_name=m2d.project_name, design_name=m2d.design_name, version="2023.2")
Expand Down

0 comments on commit df929ae

Please sign in to comment.