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

FEAT: Choke designer extension #5493

Merged
merged 31 commits into from
Nov 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
9ad84e6
Choke designer
Samuelopez-ansys Nov 18, 2024
8713a93
Choke designer in tkinter
Samuelopez-ansys Nov 18, 2024
76a4edf
Fix radio buttons
Samuelopez-ansys Nov 20, 2024
7f8c9db
Change theme
Samuelopez-ansys Nov 20, 2024
0c789a3
Merge branch 'main' into feat/issue_5439
Samuelopez-ansys Nov 20, 2024
e421733
New extension style
Samuelopez-ansys Nov 27, 2024
90fd4a6
Change font
Samuelopez-ansys Nov 27, 2024
ae37b93
Improve font
Samuelopez-ansys Nov 27, 2024
6d89a9a
Merge branch 'main' into feat/issue_5439
Samuelopez-ansys Nov 27, 2024
5a65d9b
Merge branch 'main' into feat/issue_5439
Samuelopez-ansys Nov 28, 2024
a02e93d
Add choke UT
Samuelopez-ansys Nov 28, 2024
de6bbe2
Add misc unit test
Samuelopez-ansys Nov 28, 2024
588b049
Add toolkit
Samuelopez-ansys Nov 28, 2024
7e01631
Replace RunProgram. Stability issues in 2025R1
Samuelopez-ansys Nov 28, 2024
e28cdf4
Replace RunProgram. Stability issues in 2025R1
Samuelopez-ansys Nov 28, 2024
dd9188e
Merge run_pyaedt_toolkit_script template because it is equivalent to …
Samuelopez-ansys Nov 28, 2024
31beeb7
Import ansys.aedt.core
Samuelopez-ansys Nov 28, 2024
5dbed88
Update doc
Samuelopez-ansys Nov 28, 2024
e3aad57
Merge branch 'main' into feat/issue_5439
Samuelopez-ansys Nov 28, 2024
dd3f42a
Fix vale
Samuelopez-ansys Nov 28, 2024
413f423
Import ansys.aedt.core
Samuelopez-ansys Nov 28, 2024
475d470
Fix vale
Samuelopez-ansys Nov 28, 2024
0c41ec9
Exclude pre-commit files
Samuelopez-ansys Nov 28, 2024
a1b45f3
Fix codacy
Samuelopez-ansys Nov 28, 2024
a4e5de8
Modify Extension Theme
Samuelopez-ansys Nov 29, 2024
3177319
Update doc/source/User_guide/pyaedt_extensions_doc/hfss/choke_designe…
Samuelopez-ansys Nov 29, 2024
54973e5
Update src/ansys/aedt/core/workflows/hfss/choke_designer.py
Samuelopez-ansys Nov 29, 2024
1e53ca6
Update src/ansys/aedt/core/workflows/hfss/choke_designer.py
Samuelopez-ansys Nov 29, 2024
8b32da9
Merge branch 'main' into feat/issue_5439
Samuelopez-ansys Nov 29, 2024
49b2aae
Remove _ =
Samuelopez-ansys Nov 29, 2024
1bc62f8
Modify typo
Samuelopez-ansys Nov 29, 2024
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 .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ exclude: |
(?x)(
^src/ansys/aedt/core/rpc/|
^src/ansys/aedt/core/sbrplus/matlab/|
^src/ansys/aedt/core/workflows/installer|
tests/system/general/example_models/|
tests/system/solvers/example_models/
)
Expand Down
47 changes: 43 additions & 4 deletions doc/source/User_guide/extensions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ They are small automated workflow with a simple UI.
:link-type: doc
:margin: 2 2 0 0

Lear how to use the Advanced Fields Calculator.
Lear how to use the Advanced Fields Calculator extension.


.. grid-item-card:: Kernel converter
Expand All @@ -59,20 +59,57 @@ They are small automated workflow with a simple UI.
HFSS 3D Layout extensions
~~~~~~~~~~~~~~~~~~~~~~~~~

Pre-installed extensions are available at HFSS 3D Layout level.
They are small automated workflow with a simple UI.

.. grid:: 2

.. grid-item-card:: Parametrize Layout
:link: pyaedt_extensions_doc/hfss3dlayout/parametrize_edb
:link-type: doc
:margin: 2 2 0 0

Learn how to parametrize a full aedb.
Parametrize a full layout design.


.. grid-item-card:: Generate arbitrary wave ports
:link: pyaedt_extensions_doc/hfss3dlayout/arbitrary_wave_port
:link-type: doc
:margin: 2 2 0 0

Generate arbitrary wave ports in HFSS
Generate arbitrary wave ports in HFSS.


HFSS extensions
~~~~~~~~~~~~~~~

Pre-installed extensions are available at HFSS level.
They are small automated workflow with a simple UI.

.. grid:: 2

.. grid-item-card:: Choke designer
:link: pyaedt_extensions_doc/hfss/choke_designer
:link-type: doc
:margin: 2 2 0 0

Design a choke and import it in HFSS.


Icepak extensions
~~~~~~~~~~~~~~~~~

Pre-installed extensions are available at Icepak level.
They are small automated workflow with a simple UI.

.. grid:: 2

.. grid-item-card:: Create power map
:link: pyaedt_extensions_doc/icepak/create_power_map
:link-type: doc
:margin: 2 2 0 0

Import a CSV file containing sources layout and power dissipation information.


.. toctree::
Expand All @@ -81,13 +118,15 @@ HFSS 3D Layout extensions

pyaedt_extensions_doc/project/index
pyaedt_extensions_doc/hfss3dlayout/index
pyaedt_extensions_doc/hfss/index
pyaedt_extensions_doc/icepak/index


Open source toolkits
--------------------

Open source toolkits are available at application level.
They are complex workflows where backend and frontend are split.
They are advanced workflows where backend and frontend are split.
They are also fully documented and tested.

Here are some links to existing toolkits:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Choke designer
==============

You can design a choke in HFSS.

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/choke_designer_ui.png
:width: 800
:alt: Choke Designer UI


The available argument is: ``choke_config``.

The ``choke_config`` parameter is a dictionary with choke configuration file content. See more information: :ref:`choke-file`.

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


.. toctree::
:maxdepth: 2

../commandline
11 changes: 11 additions & 0 deletions doc/source/User_guide/pyaedt_extensions_doc/hfss/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
HFSS extensions
===============

.. grid:: 2

.. grid-item-card:: Choke designer
:link: choke_designer
:link-type: doc
:margin: 2 2 0 0

Design a choke and import it in HFSS.
11 changes: 11 additions & 0 deletions doc/source/User_guide/pyaedt_extensions_doc/icepak/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Icepak extensions
=================

.. grid:: 2

.. grid-item-card:: Create power map
:link: create_power_map
:link-type: doc
:margin: 2 2 0 0

Import a CSV file containing sources layout and power dissipation information.
2 changes: 2 additions & 0 deletions doc/source/User_guide/pyaedt_file_data/choke.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _choke-file:

Choke file
==========

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/ansys/aedt/core/modeler/cad/primitives_3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -2489,6 +2489,11 @@ def create_choke(self, input_file):

with open_file(input_file, "r") as read_file:
values = json.load(read_file)

# Change units
if "Settings" in values and "Units" in values["Settings"]:
self.model_units = values["Settings"]["Units"]

self.logger.info("CHOKE INFO: " + str(values))

sr = 1.1 # security factor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
name = "Schematic Importer"
script = "import_schematic.py"
icon = "images/large/schematic.png"
template = "run_pyedb_toolkit_script"
Samuelopez-ansys marked this conversation as resolved.
Show resolved Hide resolved
template = "run_pyaedt_toolkit_script"
pip = ""
Loading
Loading