Skip to content

FEAT: Create coil extension #6276

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

Open
wants to merge 21 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/changelog.d/6276.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Create coil extension
8 changes: 8 additions & 0 deletions doc/source/User_guide/extensions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,13 @@ They are small automated workflows with a simple GUI.

Export fields loss distribution to a generic format (CSV, TAB or NPY).

.. grid-item-card:: Vertical and flat coil geometries
:link: pyaedt_extensions_doc/maxwell/vertical_flat_coil
:link-type: doc
:margin: 2 2 0 0

Automation of vertical and flat coil geometries.

Templates
~~~~~~~~~
Templates to show how to build an extension consisting of a small automated workflow with a simple UI.
Expand All @@ -259,6 +266,7 @@ Templates to show how to build an extension consisting of a small automated work
pyaedt_extensions_doc/icepak/index
pyaedt_extensions_doc/circuit/index
pyaedt_extensions_doc/twinbuilder/index
pyaedt_extensions_doc/maxwell/index
pyaedt_extensions_doc/templates/index


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,11 @@ Maxwell extensions
:link-type: doc
:margin: 2 2 0 0

Predict and export fields distribution on a defined grid of points or on mesh nodes.
Predict and export fields distribution on a defined grid of points or on mesh nodes.

.. grid-item-card:: Vertical and flat coil geometries
:link: vertical_flat_coil
:link-type: doc
:margin: 2 2 0 0

Automation of vertical and flat coil geometries given specific parameters.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Vertical and flat coil geometries
=================================

This extension aims to create vertical or flat coil geometries in Maxwell 3D using specific parameters.
It supports more complex shapes than simple cylinders because it allows the segmentation of the coil profile as well as
the segmentation of corners.
The segmentation features are designed to optimize AEDT meshing operations.

You can access the extension from the icon created on the **Automation** tab using the Extension Manager.

The following image shows the extension user interface:

.. image:: ../../../_static/extensions/vertical_flat_coil.png
:width: 600
:alt: Vertical and Flat Coil UI

The user can select the coil type by checking the **Vertical Coil** checkbox, define the coil parameters that are common
to both types, and then define the parameters that are specific to each type. Depending on the coil type (checkbox),
some entries are enabled or disabled.

Finally, with one simple button click, the user can create the coil geometry in AEDT.

You can also launch the extension user interface from the terminal. An example can be found here:


.. toctree::
:maxdepth: 2

../commandline
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,9 @@ name = "Fields distribution"
script = "fields_distribution.py"
icon = "images/large/fields_distribution.png"
template = "run_pyaedt_toolkit_script"

[VerticalFlatCoil]
name = "Vertical flat coil design geometry"
script = "vertical_flat_coil.py"
icon = "images/large/coil.png"
template = "run_pyaedt_toolkit_script"
479 changes: 479 additions & 0 deletions src/ansys/aedt/core/extensions/maxwell3d/vertical_flat_coil.py

Large diffs are not rendered by default.

Loading