You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# # Example create setup for Magnetic AC 2025R2## Keywords: **Maxwell 3D**, **Magnetic AC Solver**, **EddyCurrent Solver**, **expression cache**.importsys# ## Perform imports and define constants## Perform required imports.frompathlibimportPathimporttimeimportansys.aedt.coreimportshutil# ## Launch AEDT and Maxwell 3D## Launch AEDT and Maxwell 3D after first setting up the project and design names,# the solver, and the version. The following code also creates an instance of the# ``Maxwell3d`` class named ``m3d``.project_path=Path.cwd() /"output"project_name="setup_test.aedt"active_project=project_path/project_name# -----------------------------------------------# project cleanup# -----------------------------------------------aedt_results_dir=Path(active_project).stem+".aedtresults"aedt_file_dir=Path(active_project).stem+".pyaedt"# remove results and model of previous simulationifPath(project_path/aedt_results_dir).exists():
shutil.rmtree(project_path/aedt_results_dir)
ifPath(project_path/aedt_file_dir).exists():
shutil.rmtree(project_path/aedt_file_dir)
ifPath(active_project).exists():
Path(active_project).unlink()
ifPath(project_path/'*.lock*').exists():
Path(project_path/'*.lock*').unlink()
# output directory will be created if not availableifnotPath(project_path).exists():
Path(project_path).mkdir()
# -----------------------------------------------# -----------------------------------------------# Create Maxwell3d instance with EddyCurrent Solver# -----------------------------------------------m3d=ansys.aedt.core.Maxwell3d(
version="2025.2",
new_desktop=False,
close_on_exit=True,
solution_type="EddyCurrent",
project=str(active_project),
design="CreateSetup_ACMagnetic_2025R2",
non_graphical=False,
)
# create setupsetup=m3d.create_setup(name="Setup1")
# ## Release AEDTm3d.save_project()
m3d.release_desktop(False,False)
# Wait 3 seconds to allow AEDT to shut down before cleaning the temporary directory.time.sleep(3)
Before submitting the issue
Description of the bug
AC Magnetic is not in the list of solution types and fails when creating a setup. There's already a branch dedicated to this issue: https://github.com/ansys/pyaedt/tree/setup_acmag_2025r2
Steps To Reproduce
Run the following script:
Which Operating System are you using?
Windows
Which Python version are you using?
3.10
Installed packages
aiohappyeyeballs==2.4.4
aiohttp==3.11.11
aiosignal==1.3.2
annotated-types==0.7.0
ansys-aedt-toolkits-common==0.7.0
ansys-pythonnet==3.1.0rc4
ansys-tools-visualization-interface==0.6.2
anyio==4.8.0
argon2-cffi==23.1.0
argon2-cffi-bindings==21.2.0
arrow==1.3.0
asttokens==3.0.0
async-lru==2.0.4
async-timeout==5.0.1
attrs==24.2.0
babel==2.16.0
backports.tarfile==1.2.0
beautifulsoup4==4.12.3
bleach==6.2.0
blinker==1.9.0
blosc2==2.7.1
build==1.2.2.post1
cadquery==2.5.2
cadquery-ocp==7.7.2
casadi==3.6.7
certifi==2024.12.14
cffi==1.17.1
charset-normalizer==3.4.1
click==8.1.8
click-plugins==1.1.1
cligj==0.7.2
clr_loader==0.2.7.post0
colorama==0.4.6
comm==0.2.2
contourpy==1.3.1
cycler==0.12.1
debugpy==1.8.11
decorator==5.1.1
defusedxml==0.7.1
docutils==0.21.2
et_xmlfile==2.0.0
exceptiongroup==1.2.2
executing==2.1.0
ezdxf==1.3.5
fast_simplification==0.1.7
fastjsonschema==2.21.1
fiona==1.10.1
Flask==3.1.0
fonttools==4.55.3
fpdf2==2.8.2
fqdn==1.5.1
frozenlist==1.5.0
geopandas==0.14.4
h11==0.14.0
httpcore==1.0.7
httpx==0.28.1
idna==3.10
imageio==2.36.1
importlib_metadata==8.5.0
iniconfig==2.0.0
ipycanvas==0.13.3
ipyevents==2.0.2
ipykernel==6.29.5
ipython==8.30.0
ipython-genutils==0.2.0
ipyvtklink==0.2.3
ipywidgets==7.8.5
isoduration==20.11.0
itsdangerous==2.2.0
jaraco.classes==3.4.0
jaraco.context==6.0.1
jaraco.functools==4.1.0
jedi==0.19.2
Jinja2==3.1.5
joblib==1.4.2
json5==0.10.0
jsonpointer==3.0.0
jsonschema==4.23.0
jsonschema-specifications==2024.10.1
jupyter-events==0.11.0
jupyter-lsp==2.2.5
jupyter_client==8.6.3
jupyter_core==5.7.2
jupyter_server==2.15.0
jupyter_server_terminals==0.5.3
jupyterlab==4.3.4
jupyterlab_pygments==0.3.0
jupyterlab_server==2.27.3
jupyterlab_widgets==1.1.11
keyring==25.6.0
kiwisolver==1.4.8
markdown-it-py==3.0.0
MarkupSafe==3.0.2
matplotlib==3.9.4
matplotlib-inline==0.1.7
mdurl==0.1.2
meshio==5.3.5
mistune==3.1.0
more-itertools==10.5.0
msgpack==1.1.0
multidict==6.1.0
multimethod==1.12
nbclient==0.10.2
nbconvert==7.16.5
nbformat==5.10.4
ndindex==1.9.2
nest-asyncio==1.6.0
networkx==3.3
nh3==0.2.20
nlopt==2.9.1
notebook==7.3.2
notebook_shim==0.2.4
numexpr==2.10.2
numpy==2.2.2
OpenMagneticsVirtualBuilder==0.6.6
openpyxl==3.1.5
osmnx==1.9.4
overrides==7.7.0
packaging==24.2
pandas==2.2.3
pandocfilters==1.5.1
parso==0.8.4
path==17.1.0
pillow==11.1.0
pkginfo==1.10.0
platformdirs==4.3.6
pluggy==1.5.0
plumbum==1.9.0
pooch==1.8.2
prometheus_client==0.21.1
prompt_toolkit==3.0.48
propcache==0.2.1
psutil==6.1.1
pure_eval==0.2.3
py-cpuinfo==9.0.0
pyaedt==0.14.dev0
pycparser==2.22
pydantic==2.9.2
pydantic_core==2.23.4
pyedb==0.34.3
Pygments==2.19.1
PyMKF==0.9.21
pyogrio==0.10.0
pyparsing==3.2.1
pyproj==3.7.0
pyproject_hooks==1.2.0
pyqtgraph==0.13.7
PySide6==6.7.3
PySide6_Addons==6.7.3
PySide6_Essentials==6.7.3
pytest==8.3.4
python-dateutil==2.9.0.post0
python-json-logger==3.2.1
pytomlpp==1.0.13
pytz==2024.2
pyvista==0.44.2
pyvistaqt==0.11.1
pywin32==308
pywin32-ctypes==0.2.3
pywinpty==2.0.14
PyYAML==6.0.2
pyzmq==26.2.0
QDarkStyle==3.2.3
QtPy==2.4.2
readme_renderer==44.0
referencing==0.35.1
requests==2.32.3
requests-toolbelt==1.0.0
rfc3339-validator==0.1.4
rfc3986==2.0.0
rfc3986-validator==0.1.1
rich==13.9.4
rpds-py==0.22.3
rpyc==6.0.1
Rtree==1.3.0
scikit-learn==1.5.2
scikit-rf==1.4.1
scipy==1.15.0
scooby==0.10.0
Send2Trash==1.8.3
shapely==2.0.6
shiboken6==6.7.3
six==1.17.0
sniffio==1.3.1
soupsieve==2.6
SRTM.py==0.3.7
stack-data==0.6.3
tables==3.10.1
terminado==0.18.1
threadpoolctl==3.5.0
tinycss2==1.4.0
toml==0.10.2
tomli==2.2.1
tomli_w==1.1.0
tornado==6.4.2
traitlets==5.14.3
trame==3.7.6
trame-client==3.5.1
trame-server==3.2.7
trame-vtk==2.8.12
trame-vuetify==2.8.0
twine==5.1.1
types-python-dateutil==2.9.0.20241206
typing_extensions==4.12.2
typish==1.9.3
tzdata==2024.2
uri-template==1.3.0
urllib3==2.3.0
utm==0.7.0
vtk==9.3.1
wcwidth==0.2.13
webcolors==24.11.1
webencodings==0.5.1
websocket-client==1.8.0
websockets==14.1
Werkzeug==3.1.3
widgetsnbextension==3.6.10
wslink==2.2.2
yarl==1.18.3
zipp==3.21.0
The text was updated successfully, but these errors were encountered: