Skip to content
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

Closed
wants to merge 61 commits into from

Conversation

SMoraisAnsys
Copy link
Collaborator

No description provided.

@ansys-reviewer-bot
Copy link
Contributor

Thanks for opening a Pull Request. If you want to perform a review write a comment saying:

@ansys-reviewer-bot review

* 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
Copy link
Member

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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

Comment on lines 32 to 33
# Download .xlsx file
# ~~~~~~~~~~~~~~~~~~~
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Download .xlsx file
# ~~~~~~~~~~~~~~~~~~~
# Download XLSX file
# ~~~~~~~~~~~~~~~~~~

#################################################################################
# Download .xlsx file
# ~~~~~~~~~~~~~~~~~~~
# Set local temporary folder to export the .xlsx file to.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# 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.
Copy link
Member

@PipKat PipKat Jan 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# 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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# 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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# 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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# 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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Add these operations to the Named Expression list in Field Calculator.
# Add these operations to the named expression list in the field calculator.

Comment on lines 169 to 173
# 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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# 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?

Comment on lines 180 to 183
# Update Field Line Traces Plot
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Update field line traces plot.
# Update seeding points number, line style and line width.
Copy link
Member

@PipKat PipKat Jan 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# 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.

@Devin-Crawford Devin-Crawford deleted the doc/use_jupytext branch January 29, 2024 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants