-
Notifications
You must be signed in to change notification settings - Fork 134
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
WIP: use jupytext into examples and documentation #3940
Conversation
Thanks for opening a Pull Request. If you want to perform a review write a comment saying: @ansys-reviewer-bot review |
Changes: - leverage mystnb files - rework configurations - remove some extensions (might be reverted for the whole documentation to work)
2eec9f4
to
c64e0c5
Compare
Set nbsphinx_pandoc in conf.py
Simplify syntax
Changes suffix to .sp.py Add epilog and prolog to notebooks
Changes suffix to .sp.py Add epilog and prolog to notebooks
* Boundaries and excitations | ||
|
||
When a boundary is attached to a face, the tool tries to match it with a | ||
``FaceByPosition`` on the same object name on the target design. If, for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is ``FaceByPosition" as we should follow the code entity with a noun--such as attribute, property, object, or whatever.
Maxwell 2D Electrostatic analysis | ||
--------------------------------- | ||
This example shows how you can use PyAEDT to create a Maxwell 2D electrostatic analysis. | ||
It shows how to create the geometry, load material properties from an Excel file and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It shows how to create the geometry, load material properties from an Excel file and | |
It shows how to create the geometry, load material properties from an Excel file, and |
--------------------------------- | ||
This example shows how you can use PyAEDT to create a Maxwell 2D electrostatic analysis. | ||
It shows how to create the geometry, load material properties from an Excel file and | ||
set up the mesh settings. Moreover, it focuses on post-processing operations, in particular how to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
set up the mesh settings. Moreover, it focuses on post-processing operations, in particular how to | |
set up the mesh settings. Moreover, it focuses on postprocessing operations, in particular how to |
# Download .xlsx file | ||
# ~~~~~~~~~~~~~~~~~~~ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Download .xlsx file | |
# ~~~~~~~~~~~~~~~~~~~ | |
# Download XLSX file | |
# ~~~~~~~~~~~~~~~~~~ |
################################################################################# | ||
# Download .xlsx file | ||
# ~~~~~~~~~~~~~~~~~~~ | ||
# Set local temporary folder to export the .xlsx file to. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Set local temporary folder to export the .xlsx file to. | |
# Set local temporary folder to export the XLSX file to. |
################################################################################## | ||
# Create object to access 2D modeler | ||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
# Create the object ``mod2D`` to access the 2D modeler easily. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Create the object ``mod2D`` to access the 2D modeler easily. | |
# Create the ``mod2D`` object to access the 2D modeler easily. |
################################################################################## | ||
# Read materials from .xslx file | ||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
# Read materials from .xslx file into and set into design. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Read materials from .xslx file into and set into design. | |
# Read materials from the XSLX file into and set into design. |
Into the what? Or should it be: "# Read materials from the XSLX file and set into design."
################################################################################## | ||
# Create design geometries | ||
# ~~~~~~~~~~~~~~~~~~~~~~~~ | ||
# Create rectangle and a circle and assign the material read from the .xlsx file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Create rectangle and a circle and assign the material read from the .xlsx file. | |
# Create a rectangle and a circle and assign the material read from the XLSX file. |
################################################################################## | ||
# Define excitations | ||
# ~~~~~~~~~~~~~~~~~~ | ||
# Assign voltage excitations to rectangle and circle. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Assign voltage excitations to rectangle and circle. | |
# Assign voltage excitations to the rectangle and circle. |
# Evaluate the E Field tangential component | ||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
# Evaluate the E Field tangential component along the given polylines. | ||
# Add these operations to the Named Expression list in Field Calculator. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Add these operations to the Named Expression list in Field Calculator. | |
# Add these operations to the named expression list in the field calculator. |
# Create Field Line Traces Plot | ||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
# Create Field Line Traces Plot specifying as seeding faces | ||
# the ground, the electrode and the region | ||
# and as ``In surface objects`` only the region. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Create Field Line Traces Plot | |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
# Create Field Line Traces Plot specifying as seeding faces | |
# the ground, the electrode and the region | |
# and as ``In surface objects`` only the region. | |
# Create a plot of field line traces | |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
# Create a plot of field line traces specifying as seeding faces | |
# the ground, the electrode and the region | |
# and as ``In surface objects`` only the region. |
This isn't clear to me. Are all three things listed seeding faces? Can this perhaps be rewritten more clearly?
# Update Field Line Traces Plot | ||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
# Update field line traces plot. | ||
# Update seeding points number, line style and line width. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Update Field Line Traces Plot | |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
# Update field line traces plot. | |
# Update seeding points number, line style and line width. | |
# Update plot of field line traces | |
# ~~~~~~~~~~~~~~~~~~~ | |
# Update the plot of field line traces with new values for | |
# the seeding points number, line style, and line width. |
No description provided.