Skip to content

FEAT: Field distribution extension #5818

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

Merged
merged 50 commits into from
Apr 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
d9e8597
first extension implementation
gmalinve Feb 20, 2025
c489575
first extension implementation
gmalinve Feb 20, 2025
72f82d6
first extension implementation
gmalinve Feb 20, 2025
2aba683
improve listbox chioces
gmalinve Feb 22, 2025
e669aa9
first extension implementation
gmalinve Feb 23, 2025
a891815
Merge branch 'refs/heads/main' into feat/transformer_loss_distribution
gmalinve Feb 23, 2025
ccac8e0
improve extension UI
gmalinve Feb 24, 2025
2db06f0
add workflow
gmalinve Feb 24, 2025
5e6c21c
improve workflow
gmalinve Feb 24, 2025
08150fd
improve workflow
gmalinve Feb 25, 2025
060bc91
Merge branch 'refs/heads/main' into feat/transformer_loss_distribution
gmalinve Feb 25, 2025
29dc576
Merge branch 'refs/heads/main' into feat/transformer_loss_distribution
gmalinve Feb 25, 2025
59eddbd
improve workflow
gmalinve Feb 26, 2025
f088cde
Merge branch 'refs/heads/main' into feat/transformer_loss_distribution
gmalinve Feb 27, 2025
32b6be1
improve workflow
gmalinve Feb 27, 2025
8c90a6c
export options
gmalinve Feb 27, 2025
2450d84
new UI
gmalinve Feb 28, 2025
ec3f26c
Merge branch 'refs/heads/main' into feat/transformer_loss_distribution
gmalinve Feb 28, 2025
416438b
update .toml
gmalinve Feb 28, 2025
326ecdc
fix style
gmalinve Mar 4, 2025
948698c
Merge branch 'refs/heads/main' into feat/transformer_loss_distribution
gmalinve Mar 4, 2025
12f19aa
Merge branch 'refs/heads/main' into feat/transformer_loss_distribution
gmalinve Mar 6, 2025
ec08e87
improve UI and workflow + fix template
gmalinve Mar 6, 2025
b0e29de
fixes
gmalinve Mar 7, 2025
8c1575a
Merge branch 'refs/heads/main' into feat/transformer_loss_distribution
gmalinve Mar 18, 2025
8c1c1f8
minor add
gmalinve Mar 18, 2025
b102377
chore: adding changelog file 5818.added.md [dependabot-skip]
pyansys-ci-bot Mar 18, 2025
cb597e3
plot preview
gmalinve Mar 18, 2025
2b50c6f
plot preview pyvista
gmalinve Mar 18, 2025
5b6a7f2
Merge branch 'refs/heads/main' into feat/transformer_loss_distribution
gmalinve Mar 20, 2025
baf4d67
update extension + merge master
gmalinve Mar 20, 2025
f476c2c
Merge branch 'refs/heads/main' into feat/transformer_loss_distribution
gmalinve Mar 28, 2025
7dc9dbe
chore: adding changelog file 5818.added.md [dependabot-skip]
pyansys-ci-bot Mar 30, 2025
2005fee
Merge remote-tracking branch 'origin/feat/transformer_loss_distributi…
gmalinve Mar 30, 2025
1220a0d
Merge branch 'refs/heads/main' into feat/transformer_loss_distribution
gmalinve Mar 31, 2025
f96b3ec
Merge branch 'refs/heads/main' into feat/transformer_loss_distribution
gmalinve Mar 31, 2025
9d1a19e
fix tests and improve code cov
gmalinve Apr 1, 2025
cff1995
fix extension
gmalinve Apr 2, 2025
b589a1e
Merge branch 'refs/heads/main' into feat/transformer_loss_distribution
gmalinve Apr 2, 2025
b500ea3
add extension tests
gmalinve Apr 3, 2025
5361b28
Merge branch 'refs/heads/main' into feat/transformer_loss_distribution
gmalinve Apr 3, 2025
b41ced6
revert back test
gmalinve Apr 3, 2025
c55b484
add doc extension
gmalinve Apr 3, 2025
1744e25
fix points cloud
gmalinve Apr 3, 2025
d560d74
Merge branch 'refs/heads/main' into feat/transformer_loss_distribution
gmalinve Apr 3, 2025
02be4aa
no cover frontend
gmalinve Apr 4, 2025
1291030
Merge branch 'main' into feat/transformer_loss_distribution
Samuelopez-ansys Apr 4, 2025
a2aaf43
increase code cov
gmalinve Apr 4, 2025
b8e0242
Merge branch 'main' into feat/transformer_loss_distribution
gmalinve Apr 4, 2025
a0489d3
fix doc points cloud
gmalinve Apr 7, 2025
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/5818.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Field distribution extension
21 changes: 21 additions & 0 deletions doc/source/User_guide/extensions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ They are small automated workflows with a simple GUI.

Manage pyaedt and pyedb versions.

.. grid-item-card:: Points cloud generator
:link: pyaedt_extensions_doc/project/points_cloud_generator
:link-type: doc
:margin: 2 2 0 0

Generate and import points list from a geometry.


HFSS 3D Layout extensions
~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -208,6 +215,20 @@ They are small automated workflows with a simple GUI.

Convert Twin Builder design to Circuit.

Maxwell extensions
~~~~~~~~~~~~~~~~~~

Pre-installed extensions are available at Twin Builder level.
They are small automated workflows with a simple GUI.

.. grid:: 2

.. grid-item-card:: Transformer Loss Distribution
:link: pyaedt_extensions_doc/maxwell/transformer_loss_distribution
:link-type: doc
:margin: 2 2 0 0

Export transformer loss distribution to a generic format.

Templates
~~~~~~~~~
Expand Down
11 changes: 11 additions & 0 deletions doc/source/User_guide/pyaedt_extensions_doc/maxwell/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Maxwell extensions
==================

.. grid:: 2

.. grid-item-card:: Transformer loss distribution
:link: transformer_loss_distribution
:link-type: doc
:margin: 2 2 0 0

Predict and export loss distribution in transformers.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Transformer loss distribution
=============================

With this extension you can export transformer loss distribution to generic formats such as .csv, .tab or .npy.

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/transformer_loss_distribution.png
:width: 800
:alt: Transformer Loss Distribution UI

You can export ohmic loss distribution or surface force density on a specific object surface or
on surfaces of multiple objects.

If a sample points file (.pts) is not provided, the field values are automatically computed on mesh nodes.

With the button "Preview" you can visualize the field distribution on the selected object surface with pyvista.

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.
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,10 @@ icon = "images/large/magnet_segmentation.png"
template = "run_pyaedt_toolkit_script"
pip = "ansys-magnet-segmentation-toolkit"
package = "ansys-magnet-segmentation-toolkit"

[LossDistribution]
name = "Export of loss distribution"
script = "transfomer_loss_distribution.py"
icon = ""
template = "run_pyaedt_toolkit_script"
pip = ""
Loading