From 8c9219beccffe842d5e92bbe0b1f12494761f635 Mon Sep 17 00:00:00 2001 From: Samuelopez-ansys Date: Fri, 7 Mar 2025 10:30:35 +0100 Subject: [PATCH 01/21] 2025R1 change --- examples/00_edb/legacy_standalone/GDS_workflow.py | 4 ++-- examples/00_edb/legacy_standalone/Plot_nets.py | 4 ++-- examples/00_edb/legacy_standalone/differential_vias.py | 4 ++-- examples/00_edb/legacy_standalone/edb_to_ipc2581.py | 4 ++-- examples/00_edb/legacy_standalone/siwave_dcir.py | 6 +++--- examples/00_edb/use_configuration/dcir.py | 2 +- examples/00_edb/use_configuration/import_components.py | 2 +- examples/00_edb/use_configuration/import_material.py | 2 +- .../00_edb/use_configuration/import_padstack_definitions.py | 2 +- examples/00_edb/use_configuration/import_ports.py | 2 +- examples/00_edb/use_configuration/import_setup_ac.py | 2 +- examples/00_edb/use_configuration/import_sources.py | 2 +- examples/00_edb/use_configuration/import_stackup.py | 2 +- examples/00_edb/use_configuration/pcb_dc_ir.py | 2 +- examples/00_edb/use_configuration/pdn_analysis.py | 2 +- .../00_edb/use_configuration/post_layout_parametrize.py | 4 ++-- examples/00_edb/use_configuration/serdes.py | 2 +- examples/aedt_general/components/component_conversion.py | 2 +- examples/aedt_general/components/reuse_component.py | 2 +- examples/aedt_general/configuration_files.py | 2 +- examples/aedt_general/modeler/circuit_schematic.py | 2 +- examples/aedt_general/modeler/coordinate_system.py | 2 +- examples/aedt_general/modeler/netlist_to_schematic.py | 2 +- examples/aedt_general/modeler/polyline.py | 2 +- examples/aedt_general/optimetrics.py | 2 +- examples/aedt_general/report/automatic_report.py | 2 +- examples/aedt_general/report/virtual_compliance.py | 2 +- examples/electrothermal/coaxial_hfss_icepak.py | 2 +- examples/electrothermal/component_3d.py | 2 +- examples/electrothermal/components_csv.py | 2 +- examples/electrothermal/ecad_import.py | 2 +- examples/electrothermal/electrothermal.py | 2 +- examples/electrothermal/graphic_card.py | 2 +- examples/electrothermal/icepak_circuit_hfss_coupling.py | 2 +- examples/electrothermal/sherlock.py | 2 +- examples/high_frequency/antenna/5G_antenna_parametrics.py | 6 +++--- examples/high_frequency/antenna/array.py | 2 +- examples/high_frequency/antenna/dipole.py | 2 +- examples/high_frequency/antenna/fss_unitcell.py | 2 +- examples/high_frequency/antenna/interferences/antenna.py | 2 +- examples/high_frequency/antenna/interferences/hfss_emit.py | 2 +- .../high_frequency/antenna/interferences/interference.py | 2 +- .../antenna/interferences/interference_type.py | 2 +- examples/high_frequency/antenna/interferences/protection.py | 2 +- examples/high_frequency/antenna/large_scenarios/city.py | 4 ++-- examples/high_frequency/antenna/large_scenarios/doppler.py | 2 +- .../high_frequency/antenna/large_scenarios/reflector.py | 2 +- .../high_frequency/antenna/large_scenarios/time_domain.py | 2 +- examples/high_frequency/antenna/patch.py | 2 +- examples/high_frequency/emc/armoured_cable.py | 2 +- examples/high_frequency/emc/busbar.py | 2 +- examples/high_frequency/emc/choke.py | 2 +- examples/high_frequency/emc/double_pulse_test.py | 2 +- examples/high_frequency/emc/eigenmode.py | 2 +- examples/high_frequency/emc/flex_cable.py | 2 +- examples/high_frequency/emc/subcircuit.py | 2 +- examples/high_frequency/layout/gui_manipulation.py | 2 +- examples/high_frequency/layout/power_integrity/ac_q3d.py | 2 +- examples/high_frequency/layout/power_integrity/dcir.py | 2 +- examples/high_frequency/layout/power_integrity/dcir_q3d.py | 2 +- .../layout/power_integrity/power_integrity.py | 2 +- examples/high_frequency/layout/signal_integrity/ami.py | 2 +- .../layout/signal_integrity/circuit_transient.py | 2 +- .../high_frequency/layout/signal_integrity/multizone.py | 2 +- .../high_frequency/layout/signal_integrity/pre_layout.py | 2 +- .../layout/signal_integrity/pre_layout_parametrized.py | 2 +- .../layout/signal_integrity/serdes_differential.py | 4 ++-- examples/high_frequency/multiphysics/hfss_mechanical.py | 2 +- examples/high_frequency/multiphysics/microwave_oven.py | 2 +- examples/high_frequency/multiphysics/mri.py | 2 +- .../radiofrequency_mmwave/coplanar_waveguide.py | 4 ++-- .../high_frequency/radiofrequency_mmwave/iris_filter.py | 2 +- examples/high_frequency/radiofrequency_mmwave/spiral.py | 2 +- examples/high_frequency/radiofrequency_mmwave/stripline.py | 4 ++-- examples/low_frequency/general/control_program.py | 2 +- examples/low_frequency/general/dc_analysis.py | 2 +- examples/low_frequency/general/eddy_current.py | 2 +- examples/low_frequency/general/electrostatic.py | 2 +- examples/low_frequency/general/external_circuit.py | 2 +- examples/low_frequency/general/field_export.py | 2 +- examples/low_frequency/general/resistance.py | 2 +- examples/low_frequency/general/twin_builder/dynamic_rom.py | 2 +- examples/low_frequency/general/twin_builder/lti_rom_sml.py | 2 +- examples/low_frequency/general/twin_builder/rc_circuit.py | 2 +- examples/low_frequency/general/twin_builder/rectifier.py | 2 +- examples/low_frequency/general/twin_builder/static_rom.py | 2 +- examples/low_frequency/magnetic/choke.py | 2 +- examples/low_frequency/magnetic/lorentz_actuator.py | 2 +- examples/low_frequency/magnetic/magneto_motive_line.py | 2 +- examples/low_frequency/magnetic/transient_winding.py | 2 +- examples/low_frequency/motor/aedt_motor/ipm_optimization.py | 2 +- .../low_frequency/motor/aedt_motor/magnet_segmentation.py | 2 +- examples/low_frequency/motor/aedt_motor/pm_synchronous.py | 2 +- examples/low_frequency/motor/aedt_motor/rmxpert.py | 2 +- examples/low_frequency/motor/aedt_motor/transformer.py | 2 +- .../motor/aedt_motor/transformer_inductance.py | 2 +- examples/low_frequency/multiphysics/maxwell_icepak.py | 2 +- examples/low_frequency/team_problem/asymmetric_conductor.py | 2 +- examples/low_frequency/team_problem/bath_plate.py | 2 +- examples/template.py | 2 +- 100 files changed, 113 insertions(+), 113 deletions(-) diff --git a/examples/00_edb/legacy_standalone/GDS_workflow.py b/examples/00_edb/legacy_standalone/GDS_workflow.py index 5ba2c5f90..f9ec498cb 100644 --- a/examples/00_edb/legacy_standalone/GDS_workflow.py +++ b/examples/00_edb/legacy_standalone/GDS_workflow.py @@ -94,8 +94,8 @@ # Import the gds and open the edb. # + -# Select EDB version (change it manually if needed, e.g. "2024.2") -edb_version = "2024.2" +# Select EDB version (change it manually if needed, e.g. "2025.1") +edb_version = "2025.1" print(f"EDB version: {edb_version}") edb = pyedb.Edb(gds_out, edbversion=edb_version, technology_file=os.path.join(temp_dir.name, "output.xml")) diff --git a/examples/00_edb/legacy_standalone/Plot_nets.py b/examples/00_edb/legacy_standalone/Plot_nets.py index 24f12b0de..6cfbc18e8 100644 --- a/examples/00_edb/legacy_standalone/Plot_nets.py +++ b/examples/00_edb/legacy_standalone/Plot_nets.py @@ -27,8 +27,8 @@ # > Note that units are SI. # + -# Select EDB version (change it manually if needed, e.g. "2024.2") -edb_version = "2024.2" +# Select EDB version (change it manually if needed, e.g. "2025.1") +edb_version = "2025.1" print(f"EDB version: {edb_version}") edb = pyedb.Edb(edbpath=targetfolder, edbversion=edb_version) diff --git a/examples/00_edb/legacy_standalone/differential_vias.py b/examples/00_edb/legacy_standalone/differential_vias.py index 0d1c63d11..200fcab1e 100644 --- a/examples/00_edb/legacy_standalone/differential_vias.py +++ b/examples/00_edb/legacy_standalone/differential_vias.py @@ -18,8 +18,8 @@ aedb_path = os.path.join(temp_dir.name, "create_via.aedb") print(f"AEDB file path: {aedb_path}") -# Select EDB version (change it manually if needed, e.g. "2024.2") -edb_version = "2024.2" +# Select EDB version (change it manually if needed, e.g. "2025.1") +edb_version = "2025.1" print(f"EDB version: {edb_version}") edb = pyedb.Edb(edbpath=aedb_path, edbversion=edb_version) diff --git a/examples/00_edb/legacy_standalone/edb_to_ipc2581.py b/examples/00_edb/legacy_standalone/edb_to_ipc2581.py index a28a91045..17e92873f 100644 --- a/examples/00_edb/legacy_standalone/edb_to_ipc2581.py +++ b/examples/00_edb/legacy_standalone/edb_to_ipc2581.py @@ -27,8 +27,8 @@ # > Note that length dimensions passed to EDB are in SI units. # + -# Select EDB version (change it manually if needed, e.g. "2024.2") -edb_version = "2024.2" +# Select EDB version (change it manually if needed, e.g. "2025.1") +edb_version = "2025.1" print(f"EDB version: {edb_version}") edb = pyedb.Edb(edbpath=targetfile, edbversion=edb_version) diff --git a/examples/00_edb/legacy_standalone/siwave_dcir.py b/examples/00_edb/legacy_standalone/siwave_dcir.py index 82a5d74d7..68771c8a8 100644 --- a/examples/00_edb/legacy_standalone/siwave_dcir.py +++ b/examples/00_edb/legacy_standalone/siwave_dcir.py @@ -28,8 +28,8 @@ if os.path.exists(aedt_file): os.remove(aedt_file) -# Select EDB version (change it manually if needed, e.g. "2024.2") -edb_version = "2024.2" +# Select EDB version (change it manually if needed, e.g. "2025.1") +edb_version = "2025.1" print(f"EDB version: {edb_version}") edb = pyedb.Edb(edbpath=targetfile, edbversion=edb_version) @@ -195,7 +195,7 @@ # using the SIwave user interface. This command works on Window OS only. # + -# siwave = pyedb.Siwave("2024.2") +# siwave = pyedb.Siwave("2025.1") # siwave.open_project(siwave_file) # report_file = os.path.join(temp_folder,'Ansys.htm') diff --git a/examples/00_edb/use_configuration/dcir.py b/examples/00_edb/use_configuration/dcir.py index 627837561..c14388b52 100644 --- a/examples/00_edb/use_configuration/dcir.py +++ b/examples/00_edb/use_configuration/dcir.py @@ -12,7 +12,7 @@ from pyedb import Edb -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NG_MODE = False # - diff --git a/examples/00_edb/use_configuration/import_components.py b/examples/00_edb/use_configuration/import_components.py index b0dee6e9a..575266a8a 100644 --- a/examples/00_edb/use_configuration/import_components.py +++ b/examples/00_edb/use_configuration/import_components.py @@ -18,7 +18,7 @@ from pyedb import Edb -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" # - diff --git a/examples/00_edb/use_configuration/import_material.py b/examples/00_edb/use_configuration/import_material.py index efbd65d08..88481776d 100644 --- a/examples/00_edb/use_configuration/import_material.py +++ b/examples/00_edb/use_configuration/import_material.py @@ -14,7 +14,7 @@ from pyedb import Edb -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NG_MODE = False # - diff --git a/examples/00_edb/use_configuration/import_padstack_definitions.py b/examples/00_edb/use_configuration/import_padstack_definitions.py index 3ea55a4e4..15ccd587c 100644 --- a/examples/00_edb/use_configuration/import_padstack_definitions.py +++ b/examples/00_edb/use_configuration/import_padstack_definitions.py @@ -18,7 +18,7 @@ from pyedb import Edb -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" # - diff --git a/examples/00_edb/use_configuration/import_ports.py b/examples/00_edb/use_configuration/import_ports.py index 748faf3a2..aff95c5e3 100644 --- a/examples/00_edb/use_configuration/import_ports.py +++ b/examples/00_edb/use_configuration/import_ports.py @@ -23,7 +23,7 @@ from pyedb import Edb -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NG_MODE = False # - diff --git a/examples/00_edb/use_configuration/import_setup_ac.py b/examples/00_edb/use_configuration/import_setup_ac.py index f494ec0cc..1f314c271 100644 --- a/examples/00_edb/use_configuration/import_setup_ac.py +++ b/examples/00_edb/use_configuration/import_setup_ac.py @@ -17,7 +17,7 @@ from pyedb import Edb -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NG_MODE = False # - diff --git a/examples/00_edb/use_configuration/import_sources.py b/examples/00_edb/use_configuration/import_sources.py index 9e1d5f3c3..69705cb10 100644 --- a/examples/00_edb/use_configuration/import_sources.py +++ b/examples/00_edb/use_configuration/import_sources.py @@ -22,7 +22,7 @@ from pyedb import Edb -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NG_MODE = False # - diff --git a/examples/00_edb/use_configuration/import_stackup.py b/examples/00_edb/use_configuration/import_stackup.py index 446d5f4e8..6f6bd2625 100644 --- a/examples/00_edb/use_configuration/import_stackup.py +++ b/examples/00_edb/use_configuration/import_stackup.py @@ -14,7 +14,7 @@ from pyedb import Edb -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NG_MODE = False # - diff --git a/examples/00_edb/use_configuration/pcb_dc_ir.py b/examples/00_edb/use_configuration/pcb_dc_ir.py index 2cffbd509..6b942c007 100644 --- a/examples/00_edb/use_configuration/pcb_dc_ir.py +++ b/examples/00_edb/use_configuration/pcb_dc_ir.py @@ -14,7 +14,7 @@ from pyedb import Edb -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NG_MODE = False # - diff --git a/examples/00_edb/use_configuration/pdn_analysis.py b/examples/00_edb/use_configuration/pdn_analysis.py index ef6a44014..8deedbf92 100644 --- a/examples/00_edb/use_configuration/pdn_analysis.py +++ b/examples/00_edb/use_configuration/pdn_analysis.py @@ -15,7 +15,7 @@ from pyedb import Edb -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NG_MODE = False # - diff --git a/examples/00_edb/use_configuration/post_layout_parametrize.py b/examples/00_edb/use_configuration/post_layout_parametrize.py index 3c1f081e6..5dcc11e30 100644 --- a/examples/00_edb/use_configuration/post_layout_parametrize.py +++ b/examples/00_edb/use_configuration/post_layout_parametrize.py @@ -25,8 +25,8 @@ target_aedb = download_file("edb/ANSYS-HSD_V1.aedb", destination=temp_dir.name) print("Project is located in ", target_aedb) -# Select EDB version (change it manually if needed, e.g. "2024.2") -edb_version = "2024.2" +# Select EDB version (change it manually if needed, e.g. "2025.1") +edb_version = "2025.1" print(f"EDB version: {edb_version}") edb = pyedb.Edb(edbpath=target_aedb, edbversion=edb_version) diff --git a/examples/00_edb/use_configuration/serdes.py b/examples/00_edb/use_configuration/serdes.py index 537eba2e5..8548641b3 100644 --- a/examples/00_edb/use_configuration/serdes.py +++ b/examples/00_edb/use_configuration/serdes.py @@ -13,7 +13,7 @@ from pyedb import Edb -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NG_MODE = False # - diff --git a/examples/aedt_general/components/component_conversion.py b/examples/aedt_general/components/component_conversion.py index 80ed9af3c..9a1a52b53 100644 --- a/examples/aedt_general/components/component_conversion.py +++ b/examples/aedt_general/components/component_conversion.py @@ -32,7 +32,7 @@ # ### Define constants # Constants help ensure consistency and avoid repetition throughout the example. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" OLD_AEDT_VERSION = "2024.1" NG_MODE = False # Open AEDT UI when AEDT is launched. diff --git a/examples/aedt_general/components/reuse_component.py b/examples/aedt_general/components/reuse_component.py index a0e63f900..f7d342eae 100644 --- a/examples/aedt_general/components/reuse_component.py +++ b/examples/aedt_general/components/reuse_component.py @@ -25,7 +25,7 @@ # ### Define constants # Constants help ensure consistency and avoid repetition throughout the example. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NG_MODE = False # Open AEDT UI when it is launched. # ### Create temporary directory diff --git a/examples/aedt_general/configuration_files.py b/examples/aedt_general/configuration_files.py index f4cdb64a4..fb8485fdf 100644 --- a/examples/aedt_general/configuration_files.py +++ b/examples/aedt_general/configuration_files.py @@ -39,7 +39,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NG_MODE = False # Open AEDT UI when it is launched. # ## Create temporary directory diff --git a/examples/aedt_general/modeler/circuit_schematic.py b/examples/aedt_general/modeler/circuit_schematic.py index ff26945ab..51496ba5b 100644 --- a/examples/aedt_general/modeler/circuit_schematic.py +++ b/examples/aedt_general/modeler/circuit_schematic.py @@ -22,7 +22,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NG_MODE = False # Open AEDT UI when it is launched. # ## Create temporary directory diff --git a/examples/aedt_general/modeler/coordinate_system.py b/examples/aedt_general/modeler/coordinate_system.py index ad54a83c3..01f9dd2ba 100644 --- a/examples/aedt_general/modeler/coordinate_system.py +++ b/examples/aedt_general/modeler/coordinate_system.py @@ -15,7 +15,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NG_MODE = False # Open the AEDT UI when it is launched. # ## Create temporary directory diff --git a/examples/aedt_general/modeler/netlist_to_schematic.py b/examples/aedt_general/modeler/netlist_to_schematic.py index 67a30617e..71a947ef2 100644 --- a/examples/aedt_general/modeler/netlist_to_schematic.py +++ b/examples/aedt_general/modeler/netlist_to_schematic.py @@ -22,7 +22,7 @@ # ## Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NG_MODE = False # Open AEDT UI when it is launched. # ## Create temporary directory diff --git a/examples/aedt_general/modeler/polyline.py b/examples/aedt_general/modeler/polyline.py index afe0e3c70..2727d9712 100644 --- a/examples/aedt_general/modeler/polyline.py +++ b/examples/aedt_general/modeler/polyline.py @@ -15,7 +15,7 @@ # Define constants -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NG_MODE = False # Open AEDT UI when it is launched. diff --git a/examples/aedt_general/optimetrics.py b/examples/aedt_general/optimetrics.py index 72c8c92bf..5157c5589 100644 --- a/examples/aedt_general/optimetrics.py +++ b/examples/aedt_general/optimetrics.py @@ -16,7 +16,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NG_MODE = False # Open AEDT UI when it is launched. # ## Create temporary directory diff --git a/examples/aedt_general/report/automatic_report.py b/examples/aedt_general/report/automatic_report.py index a5274824d..f79bbed35 100644 --- a/examples/aedt_general/report/automatic_report.py +++ b/examples/aedt_general/report/automatic_report.py @@ -22,7 +22,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NG_MODE = False # Open AEDT UI when it is launched. # ## Create temporary directory diff --git a/examples/aedt_general/report/virtual_compliance.py b/examples/aedt_general/report/virtual_compliance.py index 36ddb958b..f6a315dd7 100644 --- a/examples/aedt_general/report/virtual_compliance.py +++ b/examples/aedt_general/report/virtual_compliance.py @@ -18,7 +18,7 @@ # ## Define constants -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False # Open AEDT UI when it is launched. diff --git a/examples/electrothermal/coaxial_hfss_icepak.py b/examples/electrothermal/coaxial_hfss_icepak.py index 27e9a0a77..d83b0c34f 100644 --- a/examples/electrothermal/coaxial_hfss_icepak.py +++ b/examples/electrothermal/coaxial_hfss_icepak.py @@ -18,7 +18,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False # Open AEDT UI when it is launched. diff --git a/examples/electrothermal/component_3d.py b/examples/electrothermal/component_3d.py index 58ef5b26f..8b6eaaed5 100644 --- a/examples/electrothermal/component_3d.py +++ b/examples/electrothermal/component_3d.py @@ -17,7 +17,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NG_MODE = False # Open AEDT UI when it is launched. # ## Create temporary directory and download files diff --git a/examples/electrothermal/components_csv.py b/examples/electrothermal/components_csv.py index fb4c69848..0728e31b1 100644 --- a/examples/electrothermal/components_csv.py +++ b/examples/electrothermal/components_csv.py @@ -26,7 +26,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NG_MODE = False # Open AEDT UI when it is launched. # ## Download and open project diff --git a/examples/electrothermal/ecad_import.py b/examples/electrothermal/ecad_import.py index 9abb22dd2..e04e2892e 100644 --- a/examples/electrothermal/ecad_import.py +++ b/examples/electrothermal/ecad_import.py @@ -18,7 +18,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NG_MODE = False # Open AEDT UI when it is launched. # ## Open project diff --git a/examples/electrothermal/electrothermal.py b/examples/electrothermal/electrothermal.py index 5cc8baf42..0fa1e528e 100644 --- a/examples/electrothermal/electrothermal.py +++ b/examples/electrothermal/electrothermal.py @@ -29,7 +29,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = True # Open AEDT UI when it is launched. diff --git a/examples/electrothermal/graphic_card.py b/examples/electrothermal/graphic_card.py index fa0463e85..113945f78 100644 --- a/examples/electrothermal/graphic_card.py +++ b/examples/electrothermal/graphic_card.py @@ -21,7 +21,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False # Do not show the graphical user interface. diff --git a/examples/electrothermal/icepak_circuit_hfss_coupling.py b/examples/electrothermal/icepak_circuit_hfss_coupling.py index a8b073c94..f82dc5138 100644 --- a/examples/electrothermal/icepak_circuit_hfss_coupling.py +++ b/examples/electrothermal/icepak_circuit_hfss_coupling.py @@ -49,7 +49,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False # Open AEDT UI when it is launched. diff --git a/examples/electrothermal/sherlock.py b/examples/electrothermal/sherlock.py index 97653aa5f..f3b518155 100644 --- a/examples/electrothermal/sherlock.py +++ b/examples/electrothermal/sherlock.py @@ -20,7 +20,7 @@ # Define constants -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False # Open AEDT UI when it is launched. diff --git a/examples/high_frequency/antenna/5G_antenna_parametrics.py b/examples/high_frequency/antenna/5G_antenna_parametrics.py index 15466d452..714d2ddf4 100644 --- a/examples/high_frequency/antenna/5G_antenna_parametrics.py +++ b/examples/high_frequency/antenna/5G_antenna_parametrics.py @@ -87,8 +87,8 @@ def points(self): temp_dir = tempfile.TemporaryDirectory(suffix=".ansys") aedb_path = os.path.join(temp_dir.name, "linear_array.aedb") -# Select EDB version (change it manually if needed, e.g. "2024.2") -edb_version = "2024.2" +# Select EDB version (change it manually if needed, e.g. "2025.1") +edb_version = "2025.1" print(f"EDB version: {edb_version}") # Create an instance of the Edb class. @@ -246,7 +246,7 @@ def points(self): h3d = ansys.aedt.core.Hfss( projectname="Demo_3DComp", designname="Linear_Array", - specified_version="2024.2", + specified_version="2025.1", new_desktop_session=True, non_graphical=non_graphical, close_on_exit=True, diff --git a/examples/high_frequency/antenna/array.py b/examples/high_frequency/antenna/array.py index f900da8a0..e8b0aad3c 100644 --- a/examples/high_frequency/antenna/array.py +++ b/examples/high_frequency/antenna/array.py @@ -20,7 +20,7 @@ # Define constants -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False # Open AEDT UI when it is launched. diff --git a/examples/high_frequency/antenna/dipole.py b/examples/high_frequency/antenna/dipole.py index bf9b7f717..2c08e98ba 100644 --- a/examples/high_frequency/antenna/dipole.py +++ b/examples/high_frequency/antenna/dipole.py @@ -17,7 +17,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False # Open AEDT UI when it is launched. diff --git a/examples/high_frequency/antenna/fss_unitcell.py b/examples/high_frequency/antenna/fss_unitcell.py index e28f4953b..5099dd36f 100644 --- a/examples/high_frequency/antenna/fss_unitcell.py +++ b/examples/high_frequency/antenna/fss_unitcell.py @@ -17,7 +17,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NG_MODE = False # Open AEDT UI when it is launched. # ## Create temporary directory diff --git a/examples/high_frequency/antenna/interferences/antenna.py b/examples/high_frequency/antenna/interferences/antenna.py index cfd57efc4..ae335ca7d 100644 --- a/examples/high_frequency/antenna/interferences/antenna.py +++ b/examples/high_frequency/antenna/interferences/antenna.py @@ -21,7 +21,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NG_MODE = False # Open AEDT UI when it is launched. # ## Create temporary directory diff --git a/examples/high_frequency/antenna/interferences/hfss_emit.py b/examples/high_frequency/antenna/interferences/hfss_emit.py index c8b380005..ab7e066b0 100644 --- a/examples/high_frequency/antenna/interferences/hfss_emit.py +++ b/examples/high_frequency/antenna/interferences/hfss_emit.py @@ -25,7 +25,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NG_MODE = False # Open AEDT UI when it is launched. # ## Create temporary directory diff --git a/examples/high_frequency/antenna/interferences/interference.py b/examples/high_frequency/antenna/interferences/interference.py index 2d6dac9e5..84c9b300e 100644 --- a/examples/high_frequency/antenna/interferences/interference.py +++ b/examples/high_frequency/antenna/interferences/interference.py @@ -21,7 +21,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NG_MODE = False # Open AEDT UI when it is launched. # ## Create temporary directory diff --git a/examples/high_frequency/antenna/interferences/interference_type.py b/examples/high_frequency/antenna/interferences/interference_type.py index 0d5453e61..305546cf5 100644 --- a/examples/high_frequency/antenna/interferences/interference_type.py +++ b/examples/high_frequency/antenna/interferences/interference_type.py @@ -24,7 +24,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NG_MODE = False # Open AEDT UI when it is launched. # Uncomment the following code if there are Qt plugin errors diff --git a/examples/high_frequency/antenna/interferences/protection.py b/examples/high_frequency/antenna/interferences/protection.py index 847fe7cc6..b181bcda1 100644 --- a/examples/high_frequency/antenna/interferences/protection.py +++ b/examples/high_frequency/antenna/interferences/protection.py @@ -23,7 +23,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NG_MODE = False # Open AEDT UI when it is launched. # ## Create temporary directory diff --git a/examples/high_frequency/antenna/large_scenarios/city.py b/examples/high_frequency/antenna/large_scenarios/city.py index 15a5b0ba5..c28844da4 100644 --- a/examples/high_frequency/antenna/large_scenarios/city.py +++ b/examples/high_frequency/antenna/large_scenarios/city.py @@ -18,7 +18,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NG_MODE = False # Open AEDT UI when it is launched. # ## Create temporary directory @@ -58,7 +58,7 @@ ansys_home, terrain_radius=250, road_step=3, - plot_before_importing=False, + plot_before_importing=True, import_in_aedt=True, ) diff --git a/examples/high_frequency/antenna/large_scenarios/doppler.py b/examples/high_frequency/antenna/large_scenarios/doppler.py index 07f6daea7..941bbefd5 100644 --- a/examples/high_frequency/antenna/large_scenarios/doppler.py +++ b/examples/high_frequency/antenna/large_scenarios/doppler.py @@ -17,7 +17,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False # Open AEDT UI when it is launched. diff --git a/examples/high_frequency/antenna/large_scenarios/reflector.py b/examples/high_frequency/antenna/large_scenarios/reflector.py index 4fb79ca0d..5eb356c05 100644 --- a/examples/high_frequency/antenna/large_scenarios/reflector.py +++ b/examples/high_frequency/antenna/large_scenarios/reflector.py @@ -17,7 +17,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False # Open AEDT UI when it is launched. diff --git a/examples/high_frequency/antenna/large_scenarios/time_domain.py b/examples/high_frequency/antenna/large_scenarios/time_domain.py index 58e5c6af8..f968d2266 100644 --- a/examples/high_frequency/antenna/large_scenarios/time_domain.py +++ b/examples/high_frequency/antenna/large_scenarios/time_domain.py @@ -17,7 +17,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False # Open AEDT UI when it is launched. diff --git a/examples/high_frequency/antenna/patch.py b/examples/high_frequency/antenna/patch.py index f2fa572a7..bebae2fc5 100644 --- a/examples/high_frequency/antenna/patch.py +++ b/examples/high_frequency/antenna/patch.py @@ -21,7 +21,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False # Open AEDT UI when it is launched. diff --git a/examples/high_frequency/emc/armoured_cable.py b/examples/high_frequency/emc/armoured_cable.py index d1f8b1ca7..e96f03212 100644 --- a/examples/high_frequency/emc/armoured_cable.py +++ b/examples/high_frequency/emc/armoured_cable.py @@ -24,7 +24,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NG_MODE = False # Open AEDT UI when it is launched. # ## Create temporary directory diff --git a/examples/high_frequency/emc/busbar.py b/examples/high_frequency/emc/busbar.py index daf66c065..3fc7a1a07 100644 --- a/examples/high_frequency/emc/busbar.py +++ b/examples/high_frequency/emc/busbar.py @@ -17,7 +17,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False diff --git a/examples/high_frequency/emc/choke.py b/examples/high_frequency/emc/choke.py index 8a543fce5..6b0fa5c17 100644 --- a/examples/high_frequency/emc/choke.py +++ b/examples/high_frequency/emc/choke.py @@ -17,7 +17,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NG_MODE = False # Open AEDT UI when it is launched. # ## Create temporary directory diff --git a/examples/high_frequency/emc/double_pulse_test.py b/examples/high_frequency/emc/double_pulse_test.py index c36109af3..71f4d5aca 100644 --- a/examples/high_frequency/emc/double_pulse_test.py +++ b/examples/high_frequency/emc/double_pulse_test.py @@ -22,7 +22,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False # Open AEDT UI when it is launched. diff --git a/examples/high_frequency/emc/eigenmode.py b/examples/high_frequency/emc/eigenmode.py index 17d32ee17..5af7ddacf 100644 --- a/examples/high_frequency/emc/eigenmode.py +++ b/examples/high_frequency/emc/eigenmode.py @@ -39,7 +39,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False # Open AEDT UI when it is launched. diff --git a/examples/high_frequency/emc/flex_cable.py b/examples/high_frequency/emc/flex_cable.py index 1cb673a89..638814a2f 100644 --- a/examples/high_frequency/emc/flex_cable.py +++ b/examples/high_frequency/emc/flex_cable.py @@ -18,7 +18,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" # ## Set non-graphical mode # diff --git a/examples/high_frequency/emc/subcircuit.py b/examples/high_frequency/emc/subcircuit.py index dbb8b7392..98511b65e 100644 --- a/examples/high_frequency/emc/subcircuit.py +++ b/examples/high_frequency/emc/subcircuit.py @@ -18,7 +18,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NG_MODE = False # Open AEDT UI when it is launched. # ## Create temporary directory diff --git a/examples/high_frequency/layout/gui_manipulation.py b/examples/high_frequency/layout/gui_manipulation.py index 9b1c3934d..facde4004 100644 --- a/examples/high_frequency/layout/gui_manipulation.py +++ b/examples/high_frequency/layout/gui_manipulation.py @@ -21,7 +21,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = True # Open AEDT UI when it is launched. diff --git a/examples/high_frequency/layout/power_integrity/ac_q3d.py b/examples/high_frequency/layout/power_integrity/ac_q3d.py index 17951052d..8c1c1d44b 100644 --- a/examples/high_frequency/layout/power_integrity/ac_q3d.py +++ b/examples/high_frequency/layout/power_integrity/ac_q3d.py @@ -18,7 +18,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False # Open AEDT UI when it is launched. diff --git a/examples/high_frequency/layout/power_integrity/dcir.py b/examples/high_frequency/layout/power_integrity/dcir.py index 26bb49f45..09c9fbfb6 100644 --- a/examples/high_frequency/layout/power_integrity/dcir.py +++ b/examples/high_frequency/layout/power_integrity/dcir.py @@ -32,7 +32,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False # Open AEDT UI when it is launched. diff --git a/examples/high_frequency/layout/power_integrity/dcir_q3d.py b/examples/high_frequency/layout/power_integrity/dcir_q3d.py index afbb57cd8..12917cac7 100644 --- a/examples/high_frequency/layout/power_integrity/dcir_q3d.py +++ b/examples/high_frequency/layout/power_integrity/dcir_q3d.py @@ -18,7 +18,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False diff --git a/examples/high_frequency/layout/power_integrity/power_integrity.py b/examples/high_frequency/layout/power_integrity/power_integrity.py index bc997fe29..0f4069b00 100644 --- a/examples/high_frequency/layout/power_integrity/power_integrity.py +++ b/examples/high_frequency/layout/power_integrity/power_integrity.py @@ -30,7 +30,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False # Open AEDT UI when it is launched. diff --git a/examples/high_frequency/layout/signal_integrity/ami.py b/examples/high_frequency/layout/signal_integrity/ami.py index 63198f48b..f35b5c04e 100644 --- a/examples/high_frequency/layout/signal_integrity/ami.py +++ b/examples/high_frequency/layout/signal_integrity/ami.py @@ -24,7 +24,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NG_MODE = False # Open AEDT UI when it is launched. # ## Create temporary directory and download example files diff --git a/examples/high_frequency/layout/signal_integrity/circuit_transient.py b/examples/high_frequency/layout/signal_integrity/circuit_transient.py index 63a00f72b..0eb3a434c 100644 --- a/examples/high_frequency/layout/signal_integrity/circuit_transient.py +++ b/examples/high_frequency/layout/signal_integrity/circuit_transient.py @@ -22,7 +22,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NG_MODE = False # Open AEDT UI when it is launched. # ## Create temporary directory diff --git a/examples/high_frequency/layout/signal_integrity/multizone.py b/examples/high_frequency/layout/signal_integrity/multizone.py index ca61ba38b..6af4f0815 100644 --- a/examples/high_frequency/layout/signal_integrity/multizone.py +++ b/examples/high_frequency/layout/signal_integrity/multizone.py @@ -20,7 +20,7 @@ # Define constants. -EDB_VERSION = "2024.2" +EDB_VERSION = "2025.1" # ## Create temporary directory # diff --git a/examples/high_frequency/layout/signal_integrity/pre_layout.py b/examples/high_frequency/layout/signal_integrity/pre_layout.py index 6fdcdfda9..c0388a686 100644 --- a/examples/high_frequency/layout/signal_integrity/pre_layout.py +++ b/examples/high_frequency/layout/signal_integrity/pre_layout.py @@ -41,7 +41,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False # Open AEDT UI when it is launched. diff --git a/examples/high_frequency/layout/signal_integrity/pre_layout_parametrized.py b/examples/high_frequency/layout/signal_integrity/pre_layout_parametrized.py index 9a0bfd77a..8714dda88 100644 --- a/examples/high_frequency/layout/signal_integrity/pre_layout_parametrized.py +++ b/examples/high_frequency/layout/signal_integrity/pre_layout_parametrized.py @@ -25,7 +25,7 @@ # ## Define constants -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False # Open AEDT UI when it is launched. diff --git a/examples/high_frequency/layout/signal_integrity/serdes_differential.py b/examples/high_frequency/layout/signal_integrity/serdes_differential.py index 90458a4d0..077678bc7 100644 --- a/examples/high_frequency/layout/signal_integrity/serdes_differential.py +++ b/examples/high_frequency/layout/signal_integrity/serdes_differential.py @@ -32,8 +32,8 @@ # Launch the ``pyedb.Edb`` class using EDB 2023 R2. Length units are SI. # + -# Select EDB version (change it manually if needed, e.g. "2024.2") -edb_version = "2024.2" +# Select EDB version (change it manually if needed, e.g. "2025.1") +edb_version = "2025.1" print(f"EDB version: {edb_version}") edbapp = pyedb.Edb(target_aedb, edbversion=edb_version) diff --git a/examples/high_frequency/multiphysics/hfss_mechanical.py b/examples/high_frequency/multiphysics/hfss_mechanical.py index 5789f698e..e541be718 100644 --- a/examples/high_frequency/multiphysics/hfss_mechanical.py +++ b/examples/high_frequency/multiphysics/hfss_mechanical.py @@ -19,7 +19,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False # Open AEDT UI when it is launched. diff --git a/examples/high_frequency/multiphysics/microwave_oven.py b/examples/high_frequency/multiphysics/microwave_oven.py index 3e0e363e3..811215cef 100644 --- a/examples/high_frequency/multiphysics/microwave_oven.py +++ b/examples/high_frequency/multiphysics/microwave_oven.py @@ -24,7 +24,7 @@ # # Constants help ensure consistency and avoid repetition throughout the example. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False # Open AEDT UI when it is launched. diff --git a/examples/high_frequency/multiphysics/mri.py b/examples/high_frequency/multiphysics/mri.py index beb4130c7..97ec9a291 100644 --- a/examples/high_frequency/multiphysics/mri.py +++ b/examples/high_frequency/multiphysics/mri.py @@ -32,7 +32,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False # Open AEDT UI when it is launched. diff --git a/examples/high_frequency/radiofrequency_mmwave/coplanar_waveguide.py b/examples/high_frequency/radiofrequency_mmwave/coplanar_waveguide.py index 0e88d3f08..fc9804928 100644 --- a/examples/high_frequency/radiofrequency_mmwave/coplanar_waveguide.py +++ b/examples/high_frequency/radiofrequency_mmwave/coplanar_waveguide.py @@ -17,7 +17,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False # Run the example without opening the UI. @@ -33,7 +33,7 @@ # ## Launch AEDT and 2D Extractor # -# Launch AEDT 2024.2 in graphical mode and launch 2D Extractor. This example +# Launch AEDT 2025.1 in graphical mode and launch 2D Extractor. This example # uses SI units. q2d = ansys.aedt.core.Q2d( diff --git a/examples/high_frequency/radiofrequency_mmwave/iris_filter.py b/examples/high_frequency/radiofrequency_mmwave/iris_filter.py index a0df6a421..4ccbba5a7 100644 --- a/examples/high_frequency/radiofrequency_mmwave/iris_filter.py +++ b/examples/high_frequency/radiofrequency_mmwave/iris_filter.py @@ -20,7 +20,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False # Open AEDT UI when it is launched. diff --git a/examples/high_frequency/radiofrequency_mmwave/spiral.py b/examples/high_frequency/radiofrequency_mmwave/spiral.py index c46adc140..8cb9c650c 100644 --- a/examples/high_frequency/radiofrequency_mmwave/spiral.py +++ b/examples/high_frequency/radiofrequency_mmwave/spiral.py @@ -16,7 +16,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False # Open AEDT UI when it is launched. diff --git a/examples/high_frequency/radiofrequency_mmwave/stripline.py b/examples/high_frequency/radiofrequency_mmwave/stripline.py index 3412f13b0..a3dd14799 100644 --- a/examples/high_frequency/radiofrequency_mmwave/stripline.py +++ b/examples/high_frequency/radiofrequency_mmwave/stripline.py @@ -20,7 +20,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 @@ -35,7 +35,7 @@ # ## Launch AEDT and 2D Extractor # -# Launch AEDT 2024.2 in graphical mode and launch 2D Extractor. This example +# Launch AEDT 2025.1 in graphical mode and launch 2D Extractor. This example # uses SI units. q2d = ansys.aedt.core.Q2d( diff --git a/examples/low_frequency/general/control_program.py b/examples/low_frequency/general/control_program.py index 6340792dd..b3c4f353c 100644 --- a/examples/low_frequency/general/control_program.py +++ b/examples/low_frequency/general/control_program.py @@ -18,7 +18,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False # Open AEDT UI when it is launched. diff --git a/examples/low_frequency/general/dc_analysis.py b/examples/low_frequency/general/dc_analysis.py index c9d65bbbf..e655f197a 100644 --- a/examples/low_frequency/general/dc_analysis.py +++ b/examples/low_frequency/general/dc_analysis.py @@ -17,7 +17,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False # Open AEDT UI when it is launched. diff --git a/examples/low_frequency/general/eddy_current.py b/examples/low_frequency/general/eddy_current.py index 94184957c..741fee201 100644 --- a/examples/low_frequency/general/eddy_current.py +++ b/examples/low_frequency/general/eddy_current.py @@ -16,7 +16,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False # Open AEDT UI when it is launched. diff --git a/examples/low_frequency/general/electrostatic.py b/examples/low_frequency/general/electrostatic.py index 598008ffb..a77c04ead 100644 --- a/examples/low_frequency/general/electrostatic.py +++ b/examples/low_frequency/general/electrostatic.py @@ -19,7 +19,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False diff --git a/examples/low_frequency/general/external_circuit.py b/examples/low_frequency/general/external_circuit.py index 53c731ddf..6e79d2024 100644 --- a/examples/low_frequency/general/external_circuit.py +++ b/examples/low_frequency/general/external_circuit.py @@ -14,7 +14,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False # Open AEDT UI when it is launched. diff --git a/examples/low_frequency/general/field_export.py b/examples/low_frequency/general/field_export.py index ffecb04f8..e2b8b6cbe 100644 --- a/examples/low_frequency/general/field_export.py +++ b/examples/low_frequency/general/field_export.py @@ -18,7 +18,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False # Open AEDT UI when it is launched. diff --git a/examples/low_frequency/general/resistance.py b/examples/low_frequency/general/resistance.py index 6023cef0c..7968e5392 100644 --- a/examples/low_frequency/general/resistance.py +++ b/examples/low_frequency/general/resistance.py @@ -18,7 +18,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NG_MODE = False NUM_CORES = 4 diff --git a/examples/low_frequency/general/twin_builder/dynamic_rom.py b/examples/low_frequency/general/twin_builder/dynamic_rom.py index 2f8ffc901..afa5baa09 100644 --- a/examples/low_frequency/general/twin_builder/dynamic_rom.py +++ b/examples/low_frequency/general/twin_builder/dynamic_rom.py @@ -22,7 +22,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False # Open AEDT UI when it is launched. diff --git a/examples/low_frequency/general/twin_builder/lti_rom_sml.py b/examples/low_frequency/general/twin_builder/lti_rom_sml.py index 9d1c12a7c..9d7ccd0d7 100644 --- a/examples/low_frequency/general/twin_builder/lti_rom_sml.py +++ b/examples/low_frequency/general/twin_builder/lti_rom_sml.py @@ -21,7 +21,7 @@ # Define constants -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False # Open AEDT UI when it is launched. diff --git a/examples/low_frequency/general/twin_builder/rc_circuit.py b/examples/low_frequency/general/twin_builder/rc_circuit.py index a369e0a1e..e64ad3024 100644 --- a/examples/low_frequency/general/twin_builder/rc_circuit.py +++ b/examples/low_frequency/general/twin_builder/rc_circuit.py @@ -17,7 +17,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False # Open AEDT UI when it is launched. diff --git a/examples/low_frequency/general/twin_builder/rectifier.py b/examples/low_frequency/general/twin_builder/rectifier.py index 508a1792e..cba971c88 100644 --- a/examples/low_frequency/general/twin_builder/rectifier.py +++ b/examples/low_frequency/general/twin_builder/rectifier.py @@ -20,7 +20,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False # Open AEDT UI when it is launched. diff --git a/examples/low_frequency/general/twin_builder/static_rom.py b/examples/low_frequency/general/twin_builder/static_rom.py index 4dec1fcec..314d803b0 100644 --- a/examples/low_frequency/general/twin_builder/static_rom.py +++ b/examples/low_frequency/general/twin_builder/static_rom.py @@ -20,7 +20,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False # Open AEDT UI when it is launched. diff --git a/examples/low_frequency/magnetic/choke.py b/examples/low_frequency/magnetic/choke.py index 7640f72ec..562750972 100644 --- a/examples/low_frequency/magnetic/choke.py +++ b/examples/low_frequency/magnetic/choke.py @@ -17,7 +17,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NG_MODE = False # Open AEDT UI when it is launched. diff --git a/examples/low_frequency/magnetic/lorentz_actuator.py b/examples/low_frequency/magnetic/lorentz_actuator.py index 28d7a1a5a..04cff546c 100644 --- a/examples/low_frequency/magnetic/lorentz_actuator.py +++ b/examples/low_frequency/magnetic/lorentz_actuator.py @@ -17,7 +17,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False # Open AEDT UI when it is launched. diff --git a/examples/low_frequency/magnetic/magneto_motive_line.py b/examples/low_frequency/magnetic/magneto_motive_line.py index 2c9a5cde8..a8de31536 100644 --- a/examples/low_frequency/magnetic/magneto_motive_line.py +++ b/examples/low_frequency/magnetic/magneto_motive_line.py @@ -24,7 +24,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False # Open AEDT UI when it is launched. diff --git a/examples/low_frequency/magnetic/transient_winding.py b/examples/low_frequency/magnetic/transient_winding.py index 430c45628..73576a184 100644 --- a/examples/low_frequency/magnetic/transient_winding.py +++ b/examples/low_frequency/magnetic/transient_winding.py @@ -30,7 +30,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False # Open AEDT UI when it is launched. diff --git a/examples/low_frequency/motor/aedt_motor/ipm_optimization.py b/examples/low_frequency/motor/aedt_motor/ipm_optimization.py index c2572c43e..a3b312c71 100644 --- a/examples/low_frequency/motor/aedt_motor/ipm_optimization.py +++ b/examples/low_frequency/motor/aedt_motor/ipm_optimization.py @@ -21,7 +21,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False # Open AEDT UI when it is launched. diff --git a/examples/low_frequency/motor/aedt_motor/magnet_segmentation.py b/examples/low_frequency/motor/aedt_motor/magnet_segmentation.py index c3d2411da..6f99537f7 100644 --- a/examples/low_frequency/motor/aedt_motor/magnet_segmentation.py +++ b/examples/low_frequency/motor/aedt_motor/magnet_segmentation.py @@ -16,7 +16,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NG_MODE = False # Open AEDT UI when it is launched. # ## Create temporary directory diff --git a/examples/low_frequency/motor/aedt_motor/pm_synchronous.py b/examples/low_frequency/motor/aedt_motor/pm_synchronous.py index d109ddadc..9abd4252b 100644 --- a/examples/low_frequency/motor/aedt_motor/pm_synchronous.py +++ b/examples/low_frequency/motor/aedt_motor/pm_synchronous.py @@ -19,7 +19,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False # Open AEDT UI when it is launched. diff --git a/examples/low_frequency/motor/aedt_motor/rmxpert.py b/examples/low_frequency/motor/aedt_motor/rmxpert.py index f2d125583..a69c33c1a 100644 --- a/examples/low_frequency/motor/aedt_motor/rmxpert.py +++ b/examples/low_frequency/motor/aedt_motor/rmxpert.py @@ -20,7 +20,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False # Open AEDT UI when it is launched. diff --git a/examples/low_frequency/motor/aedt_motor/transformer.py b/examples/low_frequency/motor/aedt_motor/transformer.py index bdfc40794..7f8c9c3af 100644 --- a/examples/low_frequency/motor/aedt_motor/transformer.py +++ b/examples/low_frequency/motor/aedt_motor/transformer.py @@ -18,7 +18,7 @@ # Define constants. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NG_MODE = False # ## Create temporary directory diff --git a/examples/low_frequency/motor/aedt_motor/transformer_inductance.py b/examples/low_frequency/motor/aedt_motor/transformer_inductance.py index 4ee1db21a..abb3e7ea5 100644 --- a/examples/low_frequency/motor/aedt_motor/transformer_inductance.py +++ b/examples/low_frequency/motor/aedt_motor/transformer_inductance.py @@ -18,7 +18,7 @@ # Define constants, -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False # Open AEDT UI when it is launched. diff --git a/examples/low_frequency/multiphysics/maxwell_icepak.py b/examples/low_frequency/multiphysics/maxwell_icepak.py index a629fb615..a7607face 100644 --- a/examples/low_frequency/multiphysics/maxwell_icepak.py +++ b/examples/low_frequency/multiphysics/maxwell_icepak.py @@ -22,7 +22,7 @@ # # Constants help ensure consistency and avoid repetition throughout the example. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NG_MODE = False # Open AEDT UI when it is launched. # ### Create temporary directory diff --git a/examples/low_frequency/team_problem/asymmetric_conductor.py b/examples/low_frequency/team_problem/asymmetric_conductor.py index b14437e91..01ca8d47d 100644 --- a/examples/low_frequency/team_problem/asymmetric_conductor.py +++ b/examples/low_frequency/team_problem/asymmetric_conductor.py @@ -24,7 +24,7 @@ # ### Define constants # Constants help ensure consistency and avoid repetition throughout the example. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False # Open AEDT UI when it is launched. diff --git a/examples/low_frequency/team_problem/bath_plate.py b/examples/low_frequency/team_problem/bath_plate.py index 1549b492d..25202e1e1 100644 --- a/examples/low_frequency/team_problem/bath_plate.py +++ b/examples/low_frequency/team_problem/bath_plate.py @@ -23,7 +23,7 @@ # ### Define constants # Constants help ensure consistency and avoid repetition throughout the example. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False # Open AEDT UI when it is launched. diff --git a/examples/template.py b/examples/template.py index 3f25c0827..d5ab737e1 100644 --- a/examples/template.py +++ b/examples/template.py @@ -25,7 +25,7 @@ # ### Define constants # Constants help ensure consistency and avoid repetition throughout the example. -AEDT_VERSION = "2024.2" +AEDT_VERSION = "2025.1" NUM_CORES = 4 NG_MODE = False # Open AEDT UI when it is launched. From f61dea3ef11269bad3524873771b0420a58c3eee Mon Sep 17 00:00:00 2001 From: Samuelopez-ansys Date: Sun, 9 Mar 2025 09:30:27 +0100 Subject: [PATCH 02/21] Replace general_method with file_utils --- examples/aedt_general/report/automatic_report.py | 2 +- examples/high_frequency/antenna/array.py | 2 +- examples/high_frequency/emc/flex_cable.py | 2 +- examples/low_frequency/motor/aedt_motor/transformer.py | 2 +- examples/low_frequency/team_problem/asymmetric_conductor.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/aedt_general/report/automatic_report.py b/examples/aedt_general/report/automatic_report.py index f79bbed35..c4f0bd854 100644 --- a/examples/aedt_general/report/automatic_report.py +++ b/examples/aedt_general/report/automatic_report.py @@ -97,7 +97,7 @@ # The following code modifies the trace rendering prior to creating the report. # + -props = ansys.aedt.core.general_methods.read_json( +props = ansys.aedt.core.generic.file_utils.read_json( os.path.join(project_path, "Transient_CISPR_Custom.json") ) diff --git a/examples/high_frequency/antenna/array.py b/examples/high_frequency/antenna/array.py index e8b0aad3c..b26784e20 100644 --- a/examples/high_frequency/antenna/array.py +++ b/examples/high_frequency/antenna/array.py @@ -61,7 +61,7 @@ # # Read array definition from the JSON file. -dict_in = ansys.aedt.core.general_methods.read_json( +dict_in = ansys.aedt.core.generic.file_utils.read_json( os.path.join(example_path, "array_simple.json") ) diff --git a/examples/high_frequency/emc/flex_cable.py b/examples/high_frequency/emc/flex_cable.py index 638814a2f..9d092092a 100644 --- a/examples/high_frequency/emc/flex_cable.py +++ b/examples/high_frequency/emc/flex_cable.py @@ -14,7 +14,7 @@ from math import cos, radians, sin, sqrt import ansys.aedt.core -from ansys.aedt.core.generic.general_methods import generate_unique_name +from ansys.aedt.core.generic.file_utils import generate_unique_name # Define constants. diff --git a/examples/low_frequency/motor/aedt_motor/transformer.py b/examples/low_frequency/motor/aedt_motor/transformer.py index 7f8c9c3af..dcca7a367 100644 --- a/examples/low_frequency/motor/aedt_motor/transformer.py +++ b/examples/low_frequency/motor/aedt_motor/transformer.py @@ -14,7 +14,7 @@ from ansys.aedt.core import Maxwell3d, downloads from ansys.aedt.core.generic.constants import unit_converter -from ansys.aedt.core.generic.general_methods import read_csv_pandas +from ansys.aedt.core.generic.file_utils import read_csv_pandas # Define constants. diff --git a/examples/low_frequency/team_problem/asymmetric_conductor.py b/examples/low_frequency/team_problem/asymmetric_conductor.py index 01ca8d47d..f804e112d 100644 --- a/examples/low_frequency/team_problem/asymmetric_conductor.py +++ b/examples/low_frequency/team_problem/asymmetric_conductor.py @@ -18,7 +18,7 @@ import numpy as np from ansys.aedt.core import Maxwell3d -from ansys.aedt.core.generic.general_methods import write_csv +from ansys.aedt.core.generic.file_utils import write_csv # - # ### Define constants From 8ab41e043cde952880addc08202d209565cc4a80 Mon Sep 17 00:00:00 2001 From: Samuelopez-ansys Date: Sun, 9 Mar 2025 21:50:44 +0100 Subject: [PATCH 03/21] Bug in 2025R1 for Named Expressions in Q3D --- .../layout/power_integrity/dcir_q3d.py | 100 +++++++++--------- 1 file changed, 52 insertions(+), 48 deletions(-) diff --git a/examples/high_frequency/layout/power_integrity/dcir_q3d.py b/examples/high_frequency/layout/power_integrity/dcir_q3d.py index 12917cac7..616ad59b7 100644 --- a/examples/high_frequency/layout/power_integrity/dcir_q3d.py +++ b/examples/high_frequency/layout/power_integrity/dcir_q3d.py @@ -236,12 +236,10 @@ setup.ac_rl_enabled = False setup.props["SaveFields"] = True setup.props["DC"]["Cond"]["MaxPass"] = 3 -setup.analyze() # ## Solve setup q3d.save_project() -q3d.analyze_setup(setup.name, cores=NUM_CORES) # ## Create a named expression # @@ -249,28 +247,34 @@ voltage_drop = q3d.post.fields_calculator.add_expression("voltage_drop", None) +# ## Following post-processing workflow is not supported in 2025R1 + # ## Create Phi plot # -# Compute ACL solutions and plot them. +# Compute ACL solutions and plot them. This report does not work in 2025R1. -# + -plot1 = q3d.post.create_fieldplot_surface( - q3d.modeler.get_objects_by_material("copper"), - quantity=voltage_drop, - intrinsics={"Freq": "1GHz"}, -) +# ## Analyze project -q3d.post.plot_field_from_fieldplot( - plot1.name, - project_path=temp_folder.name, - mesh_plot=False, - image_format="jpg", - view="isometric", - show=False, - plot_cad_objs=False, - log_scale=False, -) -# - +# setup.analyze(cores=NUM_CORES) + +# + +# plot1 = q3d.post.create_fieldplot_surface( +# q3d.modeler.get_objects_by_material("copper"), +# quantity=voltage_drop, +# intrinsics={"Freq": "1GHz"}, +# ) +# +# q3d.post.plot_field_from_fieldplot( +# plot1.name, +# project_path=temp_folder.name, +# mesh_plot=False, +# image_format="jpg", +# view="isometric", +# show=False, +# plot_cad_objs=False, +# log_scale=False, +# ) +# # - # ## Compute voltage on source circles @@ -279,34 +283,34 @@ # using the ``get_solution_data()`` method. # + -v_surface = { - "name": "", - "description": "Maximum value of voltage on a surface", - "design_type": ["Q3D Extractor"], - "fields_type": ["DC R/L Fields"], - "primary_sweep": "Freq", - "assignment": "", - "assignment_type": ["Face", "Sheet"], - "operations": [ - f"NameOfExpression({voltage_drop})", - "EnterSurface('assignment')", - "Operation('SurfaceValue')", - "Operation('Maximum')", - ], - "report": ["Field_3D"], -} -for source_circle, source_bound in zip(sources_objs, sources_bounds): - v_surface["name"] = "V{}".format(source_bound.name) - q3d.post.fields_calculator.add_expression(v_surface, source_circle.name) - - data = q3d.post.get_solution_data( - "V{}".format(source_bound.name), - q3d.nominal_adaptive, - variations={"Freq": "1GHz"}, - report_category="DC R/L Fields", - ) - if data: - print(data.data_real("V{}".format(source_bound.name))) +# v_surface = { +# "name": "", +# "description": "Maximum value of voltage on a surface", +# "design_type": ["Q3D Extractor"], +# "fields_type": ["DC R/L Fields"], +# "primary_sweep": "Freq", +# "assignment": "", +# "assignment_type": ["Face", "Sheet"], +# "operations": [ +# f"NameOfExpression({voltage_drop})", +# "EnterSurface('assignment')", +# "Operation('SurfaceValue')", +# "Operation('Maximum')", +# ], +# "report": ["Field_3D"], +# } +# for source_circle, source_bound in zip(sources_objs, sources_bounds): +# v_surface["name"] = "V{}".format(source_bound.name) +# q3d.post.fields_calculator.add_expression(v_surface, source_circle.name) +# +# data = q3d.post.get_solution_data( +# "V{}".format(source_bound.name), +# q3d.nominal_adaptive, +# variations={"Freq": "1GHz"}, +# report_category="DC R/L Fields", +# ) +# if data: +# print(data.data_real("V{}".format(source_bound.name))) # - # ## Release AEDT From 0c33d45f32c9d178e98d92ea98c0a17acf13ab8a Mon Sep 17 00:00:00 2001 From: Samuelopez-ansys Date: Mon, 10 Mar 2025 07:58:34 +0100 Subject: [PATCH 04/21] Skip analysis in multizone example to save time --- .../high_frequency/layout/signal_integrity/multizone.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/high_frequency/layout/signal_integrity/multizone.py b/examples/high_frequency/layout/signal_integrity/multizone.py index 6af4f0815..15c002735 100644 --- a/examples/high_frequency/layout/signal_integrity/multizone.py +++ b/examples/high_frequency/layout/signal_integrity/multizone.py @@ -34,7 +34,7 @@ # ## Download EDB folder edb_file = ansys.aedt.core.downloads.download_file( - directory="edb/siwave_multi_zones.aedb", destination=temp_folder.name + source="edb/siwave_multi_zones.aedb", destination=temp_folder.name ) work_folder = os.path.join(temp_folder.name, "work") aedt_file = os.path.splitext(edb_file)[0] + ".aedt" @@ -105,9 +105,9 @@ # ## Start simulation # -# Analyze all SIwave projects and solve the circuit. +# Analyze all SIwave projects and solve the circuit. Uncomment the following line to run the analysis. -circuit.analyze() +# circuit.analyze() # Define differential pairs From ead73081498b0ac9d021dba3bcc915dc99ece73f Mon Sep 17 00:00:00 2001 From: Samuelopez-ansys Date: Mon, 10 Mar 2025 08:25:56 +0100 Subject: [PATCH 05/21] Fix example style --- .../multiphysics/microwave_oven.py | 98 +++++++++++-------- 1 file changed, 59 insertions(+), 39 deletions(-) diff --git a/examples/high_frequency/multiphysics/microwave_oven.py b/examples/high_frequency/multiphysics/microwave_oven.py index 811215cef..948c614ef 100644 --- a/examples/high_frequency/multiphysics/microwave_oven.py +++ b/examples/high_frequency/multiphysics/microwave_oven.py @@ -40,28 +40,28 @@ parasolid_path = ansys.aedt.core.downloads.download_file( - source="oven", name="gingerbread.x_t", destination=working_dir.name + source="oven", name="gingerbread.x_t", destination=working_dir.name ) oven_path = ansys.aedt.core.downloads.download_file( - source="oven", name="microwave_oven.aedt", destination=working_dir.name + source="oven", name="microwave_oven.aedt", destination=working_dir.name ) - # ### Launch HFSS # Open AEDT and initialize the microwave oven project. # # After the project is opened, we save it in our working directory. -hfss = ansys.aedt.core.Hfss(version=AEDT_VERSION, - project=oven_path, - non_graphical=NG_MODE, +hfss = ansys.aedt.core.Hfss(version=AEDT_VERSION, + project=oven_path, + non_graphical=NG_MODE, new_desktop=True) -hfss.save_project(file_name=os.path.join(working_dir.name,'lets_cook.aedt')) +hfss.save_project(file_name=os.path.join(working_dir.name, 'lets_cook.aedt')) # ## Model Preparation # # ### Assign material -# This phase is fundamental because we need to assign correct material properties that are valid for both electrical and thermal analysis. +# This phase is fundamental because we need to assign correct material properties that are valid for both electrical +# and thermal analysis. # # PyAEDT simplifies the creation and modification of a material # definitions using _getter_ and _setter_ methods. In this example we modify 5 material parameters. @@ -74,26 +74,30 @@ ginger_material.specific_heat = 3520 # ### Import the gingerbread man and assign material +# # Once the object is imported all of its properties can be edited. -# We are gonna move the gingerbread at the center of the plate and assign material to it. +# We are going to move the gingerbread at the center of the plate and assign material to it. # -# Finally, we are gonna change the transparency of the glass bowl. +# Finally, we are going to change the transparency of the glass bowl. hfss.modeler.import_3d_cad(input_file=parasolid_path) ginger_bread = hfss.modeler["plateauPainEpices_Unnamed_5"] -hfss.modeler.move(assignment=ginger_bread, vector=["-0.5in", "-0.2in","-38.1mm"]) -ginger_bread.material_name=ginger_material.name +hfss.modeler.move(assignment=ginger_bread, vector=["-0.5in", "-0.2in", "-38.1mm"]) +ginger_bread.material_name = ginger_material.name hfss.modeler["glassBowl"].transparency = 0.75 # ### Export an image +# # At the end of this example we will generate a PDF report that summarizes the workflow and simulation results. # # We now save an image of the model as a PNG file to insert into the report later. -hfss.post.export_model_picture(full_name=os.path.join(working_dir.name,'ginger_bread_cookie.png')) +hfss.post.export_model_picture(full_name=os.path.join(working_dir.name, 'ginger_bread_cookie.png')) # ### Launch Icepak -# In order to run a multiphysics analysis we need to create an Icepak project that will be retrieve the loss data from HFSS to use as a heat source. +# +# In order to run a multiphysics analysis we need to create an Icepak project that will be retrieve the loss data +# from HFSS to use as a heat source. ipk = ansys.aedt.core.Icepak(solution_type="Transient Thermal") @@ -110,6 +114,7 @@ ) # ### Thermal boundaries +# # Main thermal boundaries will be free opening of the microwave oven. # # In this example we set 2 different types of openings on the two faces of the oven. @@ -121,35 +126,39 @@ ipk.assign_free_opening(assignment=ipk.modeler["ovenCavity"].bottom_face_y.id, flow_type="Pressure") - # #### Icepak multiple reference frame (MRF) -# The MRF assumes mesh rotation as a solid block. In this example is useful to rotate the oven plate and cookie to reduce cooking time. - -rot_cyl= ipk.modeler.create_cylinder(orientation="Z", - origin=[158.75 ,228.6 ,0], - radius=110, height=150, - material="air", - name="rotating_cylinder") -rot_cyl.display_wireframe=True +# +# The MRF assumes mesh rotation as a solid block. +# In this example is useful to rotate the oven plate and cookie to reduce cooking time. + +rot_cyl = ipk.modeler.create_cylinder(orientation="Z", + origin=[158.75, 228.6, 0], + radius=110, height=150, + material="air", + name="rotating_cylinder") +rot_cyl.display_wireframe = True rot_cyl.transparency = 1 -block = ipk.assign_solid_block(rot_cyl.name,0) -block.props["Use MRF"]=True -block.props["MRF"]="6rpm" -block.props["Is Cylinder MRF"]=True +block = ipk.assign_solid_block(rot_cyl.name, 0) +block.props["Use MRF"] = True +block.props["MRF"] = "6rpm" +block.props["Is Cylinder MRF"] = True # ### Icepak mesh settings +# # Icepak mesh settings are used to optimize the simulation time and accuracy. ipk.mesh.global_mesh_region.manual_settings = True ipk.mesh.global_mesh_region.settings["MaxElementSizeX"] = "15mm" ipk.mesh.global_mesh_region.settings["MaxElementSizeY"] = "15mm" ipk.mesh.global_mesh_region.settings["MaxElementSizeZ"] = "15mm" -ipk.mesh.global_mesh_region.settings["BufferLayers"]='2' -ipk.mesh.global_mesh_region.settings["MaxLevels"]='2' +ipk.mesh.global_mesh_region.settings["BufferLayers"] = '2' +ipk.mesh.global_mesh_region.settings["MaxLevels"] = '2' ipk.mesh.global_mesh_region.update() # ### Icepak solution setup -# In this example we are limiting the number of steps to a maximum of 5 steps to make the example quick to run. Ideally this number has to be increased to improve the simulation accuracy and obtain more precise results. +# +# In this example we are limiting the number of steps to a maximum of 5 steps to make the example quick to run. +# Ideally this number has to be increased to improve the simulation accuracy and obtain more precise results. setup = ipk.create_setup() setup.props["SaveFieldsType"] = "Every N Steps" @@ -178,8 +187,8 @@ # + report = AnsysReport( - version=ipk.aedt_version_id, design_name=ipk.design_name, project_name=ipk.project_name - ) + version=ipk.aedt_version_id, design_name=ipk.design_name, project_name=ipk.project_name +) report.create() report.add_section() report.add_chapter(f"Ansys GingerBread Recipe") @@ -189,7 +198,8 @@ report.add_text("Leave to cool for about 10 mins.") report.add_text("Step 2: Tip the flour, baking soda and spices into a large bowl.") -report.add_text("Add the warm syrup mixture and the egg, stir everything together, then gently knead in the bowl until smooth and streak-free.") +report.add_text( + "Add the warm syrup mixture and the egg, stir everything together, then gently knead in the bowl until smooth and streak-free.") report.add_text("The dough will firm up once cooled. Wrap in cling film and chill for at least 30 mins.") report.add_text("Step 3: Remove the dough from the fridge, leave at room temperature until softened. ") @@ -200,7 +210,7 @@ report.add_text("1- Ansys HFSS") report.add_text("2- PyAEDT") -report.add_image(path=os.path.join(working_dir.name,'ginger_bread_cookie.png'), +report.add_image(path=os.path.join(working_dir.name, 'ginger_bread_cookie.png'), caption="HFSS Design of Ansys Microwave Oven") report.add_page_break() @@ -232,7 +242,9 @@ def get_average_temperature(): df = fs.get_field_summary_data(pandas_output=True) return float(df["Mean"]) + # ### Method to generate streamline plot on gingerbread cookie +# # This method encapsulate a set of action to plot and arrange the view of # the gingerbread inside the microwave oven with velocity streamline plot. # The view is set to front $(y-z)$. @@ -299,6 +311,7 @@ def generate_case(quantity_in, field_time, assignment=["ovenCavity", "rotating_c # ### Method to generate temperature plot on gingerbread +# # This method encapsulates a set of actions to plot and arrange the view of # the gingerbread inside the microwave oven. The view is set to front $(y-z)$. @@ -320,20 +333,25 @@ def generate_temps(stop): pl.camera_position = 'yz' pl.elevation_angle = 20 pl.plot(export_image_path=os.path.join(working_dir.name, f'{generate_unique_name("Temperature")}.jpg'), - show=False) + show=False) return pl # ## Cook the gingerbread +# # ### Loop to determine transient time -# This is the core of our optimization process. We increase the Icepak stop time by steps of 5 seconds until the mean temperature of the gingerbread reaches the 50 degrees. We could also have used an optimizer (Optislang) or run a longer time and plot the average temperature over time. +# +# This is the core of our optimization process. +# We increase the Icepak stop time by steps of 5 seconds until the mean temperature of the gingerbread reaches the +# 50 degrees. +# We could also have used an optimizer (Optislang) or run a longer time and plot the average temperature over time. while not solved: stop_time = stop_time + 5 setup.props["Stop Time"] = f"{stop_time}s" setup.analyze(cores=4, tasks=4) mean_temperature = get_average_temperature() - if mean_temperature>50: + if mean_temperature > 50: solved = True report.add_page_break() report.add_sub_chapter(f"The Gingerbread is ready!!!!") @@ -341,11 +359,13 @@ def generate_temps(stop): plot4 = generate_temps(stop_time) report.add_image(plot4.image_file, f"GingerBread at the end of cooking.") else: - ipk.logger.info(f'Mean Temperature in the Gingerbread is {mean_temperature} after {stop_time}s in the microwave') + ipk.logger.info( + f'Mean Temperature in the Gingerbread is {mean_temperature} after {stop_time}s in the microwave') if mean_temperature > 30: report.add_text(f"Gingerbread is almost ready. Don't worry we will notify you when ready.") output_file = generate_streamline(stop_time) - report.add_image(os.path.join(working_dir.name, "streamlines.png"), f"GingerBread while cooking after {stop_time}s") + report.add_image(os.path.join(working_dir.name, "streamlines.png"), + f"GingerBread while cooking after {stop_time}s") else: report.add_text(f"Take a cup of tea and relax. It will take longer.") ipk.save_project() From 74d3b081db3bfc05e8f9a05e50732b499b9c0e06 Mon Sep 17 00:00:00 2001 From: Samuelopez-ansys Date: Mon, 10 Mar 2025 09:00:31 +0100 Subject: [PATCH 06/21] Fix MRI example --- examples/high_frequency/multiphysics/mri.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/high_frequency/multiphysics/mri.py b/examples/high_frequency/multiphysics/mri.py index 97ec9a291..295c5b507 100644 --- a/examples/high_frequency/multiphysics/mri.py +++ b/examples/high_frequency/multiphysics/mri.py @@ -108,7 +108,7 @@ # The sources in this file were determined by tuning the coil at 63.8 MHz. # Notice that ``input_scale`` is a multiplier that lets you quickly adjust the coil excitation power. -hfss.edit_sources_from_file(os.path.join(project_path, "sources.csv")) +hfss.edit_source_from_file(os.path.join(project_path, "sources.csv")) # ## Run simulation # @@ -209,6 +209,7 @@ map_frequency=hfss.setups[0].props["Frequency"], surface_objects=mech.get_all_conductors_names(), ) + mech.assign_uniform_convection( assignment=mech.modeler["Region"].faces, convection_value=1 ) From 0f3e297fa1cd18bcfb44c9c61e6072150cbace20 Mon Sep 17 00:00:00 2001 From: Samuelopez-ansys Date: Mon, 10 Mar 2025 09:11:41 +0100 Subject: [PATCH 07/21] Fix coplanar waveguide example --- .../radiofrequency_mmwave/coplanar_waveguide.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/high_frequency/radiofrequency_mmwave/coplanar_waveguide.py b/examples/high_frequency/radiofrequency_mmwave/coplanar_waveguide.py index fc9804928..730d4f476 100644 --- a/examples/high_frequency/radiofrequency_mmwave/coplanar_waveguide.py +++ b/examples/high_frequency/radiofrequency_mmwave/coplanar_waveguide.py @@ -104,7 +104,7 @@ top_line_obj = q2d.modeler.create_polyline( points=[[0, layer_2_uh, 0], [co_gnd_top_w, layer_2_uh, 0]] ) -q2d.modeler.move(objid=[top_line_obj], vector=[delta_w_half, 0, 0]) +q2d.modeler.move(assignment=[top_line_obj], vector=[delta_w_half, 0, 0]) q2d.modeler.connect([base_line_obj, top_line_obj]) base_line_obj = q2d.modeler.create_polyline( @@ -113,7 +113,7 @@ top_line_obj = q2d.modeler.create_polyline( points=[[0, layer_2_uh, 0], [co_gnd_top_w, layer_2_uh, 0]] ) -q2d.modeler.move(objid=[top_line_obj], vector=[delta_w_half, 0, 0]) +q2d.modeler.move(assignment=[top_line_obj], vector=[delta_w_half, 0, 0]) q2d.modeler.connect([base_line_obj, top_line_obj]) q2d.modeler.move( assignment=[base_line_obj], @@ -152,7 +152,7 @@ e_obj_list.append(e_obj) e_obj_1 = e_obj_list[0] q2d.modeler.unite(e_obj_list) - new_obj = q2d.modeler.sweep_along_vector( + _ = q2d.modeler.sweep_along_vector( assignment=e_obj_1.id, sweep_vector=[0, sm_h, 0] ) sm_obj_list.append(e_obj_1) @@ -162,11 +162,11 @@ ) sm_obj_list.append(new_obj) -new_obj = q2d.modeler.create_rectangle( +new_obj2 = q2d.modeler.create_rectangle( origin=[co_gnd_w, layer_2_lh, 0], sizes=[clearance, sm_h] ) -q2d.modeler.move(assignment=[new_obj], vector=[sig_bot_w + "+" + clearance, 0, 0]) -sm_obj_list.append(new_obj) +q2d.modeler.move(assignment=[new_obj2], vector=[sig_bot_w + "+" + clearance, 0, 0]) +sm_obj_list.append(new_obj2) sm_obj = sm_obj_list[0] q2d.modeler.unite(sm_obj_list) From f18fe6563b75d48e178561641f72238b129364c8 Mon Sep 17 00:00:00 2001 From: Samuelopez-ansys Date: Mon, 10 Mar 2025 09:12:42 +0100 Subject: [PATCH 08/21] Fix coplanar waveguide example --- .../radiofrequency_mmwave/coplanar_waveguide.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/high_frequency/radiofrequency_mmwave/coplanar_waveguide.py b/examples/high_frequency/radiofrequency_mmwave/coplanar_waveguide.py index 730d4f476..30d081e2d 100644 --- a/examples/high_frequency/radiofrequency_mmwave/coplanar_waveguide.py +++ b/examples/high_frequency/radiofrequency_mmwave/coplanar_waveguide.py @@ -130,10 +130,10 @@ # Define the substrate. q2d.modeler.create_rectangle( - position=[0, layer_1_uh, 0], - dimension_list=[model_w, d_h], + origin=[0, layer_1_uh, 0], + sizes=[model_w, d_h], name="Dielectric", - matname="FR4_epoxy", + material="FR4_epoxy", ) # Assign a conformal coating. From 35fb71f435d18b0127545518bff8edac9972a28f Mon Sep 17 00:00:00 2001 From: Samuelopez-ansys Date: Mon, 10 Mar 2025 09:46:00 +0100 Subject: [PATCH 09/21] Fix control program --- examples/low_frequency/general/control_program.py | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/low_frequency/general/control_program.py b/examples/low_frequency/general/control_program.py index b3c4f353c..f10cbd789 100644 --- a/examples/low_frequency/general/control_program.py +++ b/examples/low_frequency/general/control_program.py @@ -86,6 +86,7 @@ expressions="FluxLinkage(Winding1)", variations={"Time": ["All"]}, primary_sweep_variable="Time", + domain="Sweep" ) sols.plot() From 6ccc83cf602c7cef1984f41e34772b31e3ae3a68 Mon Sep 17 00:00:00 2001 From: Samuelopez-ansys Date: Mon, 10 Mar 2025 09:58:33 +0100 Subject: [PATCH 10/21] Add new argument --- examples/low_frequency/general/resistance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/low_frequency/general/resistance.py b/examples/low_frequency/general/resistance.py index 7968e5392..cc3004c2a 100644 --- a/examples/low_frequency/general/resistance.py +++ b/examples/low_frequency/general/resistance.py @@ -228,7 +228,7 @@ animated_plot = m2d.post.plot_animated_field( quantity="Mag_J", assignment=conductor_surface, - export_path=temp_folder.name, + output_file=temp_folder.name, variation_variable="MaterialIndex", variations=[0, 1, 2, 3], show=False, From 8b3dcba611d34bb828be8f9436077374e25aea6b Mon Sep 17 00:00:00 2001 From: Samuelopez-ansys Date: Mon, 10 Mar 2025 10:01:22 +0100 Subject: [PATCH 11/21] Add new argument --- examples/low_frequency/magnetic/choke.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/examples/low_frequency/magnetic/choke.py b/examples/low_frequency/magnetic/choke.py index 562750972..5b5228452 100644 --- a/examples/low_frequency/magnetic/choke.py +++ b/examples/low_frequency/magnetic/choke.py @@ -244,7 +244,12 @@ setup.props["MaximumPasses"] = 10 setup.props["HasSweepSetup"] = True setup.add_eddy_current_sweep( - range_type="LinearCount", start=100, end=1000, count=12, units="kHz", clear=True + sweep_type="LinearCount", + start_frequency=100, + stop_frequency=1000, + step_size=12, + units="kHz", + clear=True ) # ## Save project From 7400b66b186d4eb4eaadce9460c0bc5ba9e09855 Mon Sep 17 00:00:00 2001 From: Samuelopez-ansys Date: Mon, 10 Mar 2025 12:12:42 +0100 Subject: [PATCH 12/21] Expression already has polyline included --- examples/low_frequency/magnetic/magneto_motive_line.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/examples/low_frequency/magnetic/magneto_motive_line.py b/examples/low_frequency/magnetic/magneto_motive_line.py index a8de31536..026ba08b1 100644 --- a/examples/low_frequency/magnetic/magneto_motive_line.py +++ b/examples/low_frequency/magnetic/magneto_motive_line.py @@ -105,11 +105,8 @@ m2d.post.fields_calculator.add_expression(my_expression, p) report = m2d.post.create_report( expressions=quantity, - context=p, - polyline_points=1, report_category="Fields", - plot_type="Data Table", - plot_name=quantity, + plot_type="Data Table" ) # # Second option From 2c3c319d70390348e9f911e5883c5caeddf63842 Mon Sep 17 00:00:00 2001 From: Samuelopez-ansys Date: Mon, 10 Mar 2025 12:30:28 +0100 Subject: [PATCH 13/21] Expression already has polyline included --- examples/low_frequency/magnetic/magneto_motive_line.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/low_frequency/magnetic/magneto_motive_line.py b/examples/low_frequency/magnetic/magneto_motive_line.py index 026ba08b1..d1218ab0f 100644 --- a/examples/low_frequency/magnetic/magneto_motive_line.py +++ b/examples/low_frequency/magnetic/magneto_motive_line.py @@ -21,6 +21,7 @@ import time import ansys.aedt.core +from examples.low_frequency.general.field_export import quantity # Define constants. @@ -106,7 +107,8 @@ report = m2d.post.create_report( expressions=quantity, report_category="Fields", - plot_type="Data Table" + plot_type="Data Table", + plot_name=quantity ) # # Second option From 765949d809c4d244c0f404b242c9245508cdeb9c Mon Sep 17 00:00:00 2001 From: Samuelopez-ansys Date: Mon, 10 Mar 2025 12:37:33 +0100 Subject: [PATCH 14/21] Remove deprecated properties --- examples/high_frequency/antenna/dipole.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/high_frequency/antenna/dipole.py b/examples/high_frequency/antenna/dipole.py index 2c08e98ba..d97f07442 100644 --- a/examples/high_frequency/antenna/dipole.py +++ b/examples/high_frequency/antenna/dipole.py @@ -58,7 +58,7 @@ # case of an encrypted 3D component, create a dictionary of the parameters. compfile = hfss.components3d["Dipole_Antenna_DM"] -geometryparams = hfss.get_components3d_vars("Dipole_Antenna_DM") +geometryparams = hfss.get_component_variables("Dipole_Antenna_DM") geometryparams["dipole_length"] = "l_dipole" hfss.modeler.insert_3d_component(compfile, geometryparams) @@ -84,7 +84,7 @@ # Plot s-parameters and far field. hfss.create_scattering("MyScattering") -variations = hfss.available_variations.nominal_w_values_dict +variations = hfss.available_variations.nominal_values variations["Freq"] = ["1GHz"] variations["Theta"] = ["All"] variations["Phi"] = ["All"] @@ -169,7 +169,7 @@ ffdata = hfss.get_antenna_data( sphere="Sphere_Custom", setup=hfss.nominal_adaptive, - frequencies=1 + frequencies="1GHz" ) # ## Generate 2D cutout plot From 609a06653465fee83a16b6555ffc796817f1cae3 Mon Sep 17 00:00:00 2001 From: Samuelopez-ansys Date: Mon, 10 Mar 2025 12:43:30 +0100 Subject: [PATCH 15/21] Fix magneto_motive_line.py --- examples/low_frequency/magnetic/magneto_motive_line.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/examples/low_frequency/magnetic/magneto_motive_line.py b/examples/low_frequency/magnetic/magneto_motive_line.py index d1218ab0f..19c060fd9 100644 --- a/examples/low_frequency/magnetic/magneto_motive_line.py +++ b/examples/low_frequency/magnetic/magneto_motive_line.py @@ -19,9 +19,7 @@ import tempfile import time - import ansys.aedt.core -from examples.low_frequency.general.field_export import quantity # Define constants. From 44be9d8dd1d46dfec18f3371c706713ac11f2102 Mon Sep 17 00:00:00 2001 From: Samuelopez-ansys Date: Mon, 10 Mar 2025 12:47:37 +0100 Subject: [PATCH 16/21] Fix transient_winding.py --- examples/low_frequency/magnetic/transient_winding.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/low_frequency/magnetic/transient_winding.py b/examples/low_frequency/magnetic/transient_winding.py index 73576a184..cf5e0781d 100644 --- a/examples/low_frequency/magnetic/transient_winding.py +++ b/examples/low_frequency/magnetic/transient_winding.py @@ -137,7 +137,7 @@ # Generate the same plot outside AEDT. solutions = m2d.post.get_solution_data( - expressions="InputCurrent(PHA)", primary_sweep_variable="Time" + expressions="InputCurrent(PHA)", primary_sweep_variable="Time", domain="Sweep" ) solutions.plot() From 3af2c8a902327e9e719c5076b28bd5cb4f8aca9b Mon Sep 17 00:00:00 2001 From: Samuelopez-ansys Date: Mon, 10 Mar 2025 12:58:07 +0100 Subject: [PATCH 17/21] Reduce simulation time --- .../low_frequency/motor/aedt_motor/ipm_optimization.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/examples/low_frequency/motor/aedt_motor/ipm_optimization.py b/examples/low_frequency/motor/aedt_motor/ipm_optimization.py index a3b312c71..fef7e4089 100644 --- a/examples/low_frequency/motor/aedt_motor/ipm_optimization.py +++ b/examples/low_frequency/motor/aedt_motor/ipm_optimization.py @@ -64,9 +64,7 @@ param_sweep = m2d.parametrics.add( variable="bridge", start_point="0.5mm", - end_point="1mm", - step="0.5mm", - variation_type="LinearStep", + variation_type="SingleValue", ) param_sweep.add_variation( sweep_variable="din", @@ -78,11 +76,9 @@ ) param_sweep.add_variation( sweep_variable="phase_advance", - start_point=0, - end_point=45, - step=45, + start_point=45, units="deg", - variation_type="LinearStep", + variation_type="SingleValue", ) param_sweep.add_variation( sweep_variable="Ipeak", start_point=200, units="A", variation_type="SingleValue" From 628525ea06930e9e79248dd9dddc1e5e4822d1a3 Mon Sep 17 00:00:00 2001 From: Samuelopez-ansys Date: Mon, 10 Mar 2025 13:05:19 +0100 Subject: [PATCH 18/21] Reduce simulation time --- .../motor/aedt_motor/ipm_optimization.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/low_frequency/motor/aedt_motor/ipm_optimization.py b/examples/low_frequency/motor/aedt_motor/ipm_optimization.py index fef7e4089..0f6975722 100644 --- a/examples/low_frequency/motor/aedt_motor/ipm_optimization.py +++ b/examples/low_frequency/motor/aedt_motor/ipm_optimization.py @@ -95,7 +95,7 @@ report_torque = m2d.post.create_report( expressions="Moving1.Torque", domain="Sweep", - variations={"bridge": "All", "din": "All", "Ipeak": "All"}, + variations={"bridge": "All", "din": "All", "Ipeak": "All", "phase_advance": "All"}, primary_sweep_variable="Time", plot_type="Rectangular Plot", plot_name="TorqueAllVariations", @@ -104,7 +104,7 @@ report_solid_loss = m2d.post.create_report( expressions="SolidLoss", domain="Sweep", - variations={"bridge": "All", "din": "All", "Ipeak": "All"}, + variations={"bridge": "All", "din": "All", "Ipeak": "All", "phase_advance": "All"}, primary_sweep_variable="Time", plot_type="Rectangular Plot", plot_name="SolidLossAllVariations", @@ -113,7 +113,7 @@ report_core_loss = m2d.post.create_report( expressions="CoreLoss", domain="Sweep", - variations={"bridge": "All", "din": "All", "Ipeak": "All"}, + variations={"bridge": "All", "din": "All", "Ipeak": "All", "phase_advance": "All"}, primary_sweep_variable="Time", plot_type="Rectangular Plot", plot_name="CoreLossAllVariations", @@ -125,7 +125,7 @@ expressions=["Moving1.Torque"], setup_sweep_name=m2d.nominal_sweep, domain="Sweep", - variations={"bridge": "All", "din": "All", "Ipeak": "All"}, + variations={"bridge": "All", "din": "All", "Ipeak": "All", "phase_advance": "All"}, primary_sweep_variable="Time", report_category="Standard", ) @@ -134,7 +134,7 @@ expressions=["CoreLoss"], setup_sweep_name=m2d.nominal_sweep, domain="Sweep", - variations={"bridge": "All", "din": "All", "Ipeak": "All"}, + variations={"bridge": "All", "din": "All", "Ipeak": "All", "phase_advance": "All"}, primary_sweep_variable="Time", report_category="Standard", ) @@ -143,7 +143,7 @@ expressions=["SolidLoss"], setup_sweep_name=m2d.nominal_sweep, domain="Sweep", - variations={"bridge": "All", "din": "All", "Ipeak": "All"}, + variations={"bridge": "All", "din": "All", "Ipeak": "All", "phase_advance": "All"}, primary_sweep_variable="Time", report_category="Standard", ) From 1f56444181fda558d497b2e22caf66a0baf3a2ad Mon Sep 17 00:00:00 2001 From: Samuelopez-ansys Date: Mon, 10 Mar 2025 13:09:36 +0100 Subject: [PATCH 19/21] Fix pm --- examples/low_frequency/motor/aedt_motor/pm_synchronous.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/low_frequency/motor/aedt_motor/pm_synchronous.py b/examples/low_frequency/motor/aedt_motor/pm_synchronous.py index 9abd4252b..1af9827c5 100644 --- a/examples/low_frequency/motor/aedt_motor/pm_synchronous.py +++ b/examples/low_frequency/motor/aedt_motor/pm_synchronous.py @@ -886,7 +886,7 @@ def create_cs_magnets(pm_id, cs_name, point_direction): # Plot the desired expression by using the Matplotlib ``plot()`` function. solutions = m2d.post.get_solution_data( - expressions="Moving1.Torque", primary_sweep_variable="Time" + expressions="Moving1.Torque", primary_sweep_variable="Time", domain="Sweep" ) # solutions.plot() From 9e43c273aa29e00d1646a709a26df49c17ceaba7 Mon Sep 17 00:00:00 2001 From: Samuelopez-ansys Date: Mon, 10 Mar 2025 13:18:06 +0100 Subject: [PATCH 20/21] New arguments --- .../team_problem/asymmetric_conductor.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/low_frequency/team_problem/asymmetric_conductor.py b/examples/low_frequency/team_problem/asymmetric_conductor.py index f804e112d..0b005412d 100644 --- a/examples/low_frequency/team_problem/asymmetric_conductor.py +++ b/examples/low_frequency/team_problem/asymmetric_conductor.py @@ -71,10 +71,10 @@ setup.props["Frequency"] = "200Hz" setup.props["HasSweepSetup"] = True setup.add_eddy_current_sweep( - range_type="LinearStep", - start=dc_freq, - end=stop_freq, - count=stop_freq - dc_freq, + sweep_type="LinearStep", + start_frequency=dc_freq, + stop_frequency=stop_freq, + step_size=stop_freq - dc_freq, clear=True, ) setup.props["UseHighOrderShapeFunc"] = True @@ -120,7 +120,7 @@ test = m3d.modeler.create_polyline( points=[P1, P2, P3, P4], segment_type=["Line", "Arc"], name="Coil" ) -test.set_crosssection_properties(type="Rectangle", width=coil_thk, height=coil_height) +test.set_crosssection_properties(section="Rectangle", width=coil_thk, height=coil_height) # Duplicate and unite the polyline to create the full coil. @@ -236,12 +236,12 @@ line_points_1 = [["0mm", "72mm", "34mm"], ["288mm", "72mm", "34mm"]] polyline = m3d.modeler.create_polyline(points=line_points_1, name=lines[0]) l1_mesh = m3d.modeler.create_polyline(points=line_points_1, name=lines[0] + "mesh") -l1_mesh.set_crosssection_properties(type="Circle", width=mesh_diameter) +l1_mesh.set_crosssection_properties(section="Circle", width=mesh_diameter) line_points_2 = [["0mm", "144mm", "34mm"], ["288mm", "144mm", "34mm"]] polyline2 = m3d.modeler.create_polyline(points=line_points_2, name=lines[1]) l2_mesh = m3d.modeler.create_polyline(points=line_points_2, name=lines[1] + "mesh") -l2_mesh.set_crosssection_properties(type="Circle", width=mesh_diameter) +l2_mesh.set_crosssection_properties(section="Circle", width=mesh_diameter) # - # Published measurement results are included with this script via the following list. From 6c39917f4ee5233322d31745ba85ece25dad4400 Mon Sep 17 00:00:00 2001 From: Samuelopez-ansys Date: Mon, 10 Mar 2025 13:20:49 +0100 Subject: [PATCH 21/21] New arguments --- examples/low_frequency/team_problem/bath_plate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/low_frequency/team_problem/bath_plate.py b/examples/low_frequency/team_problem/bath_plate.py index 25202e1e1..6e820763f 100644 --- a/examples/low_frequency/team_problem/bath_plate.py +++ b/examples/low_frequency/team_problem/bath_plate.py @@ -145,7 +145,7 @@ line_points = [["0mm", "-55mm", "0.5mm"], ["0mm", "55mm", "0.5mm"]] m3d.modeler.create_polyline(points=line_points, name="Line_AB") poly = m3d.modeler.create_polyline(points=line_points, name="Line_AB_MeshRefinement") -poly.set_crosssection_properties(type="Circle", width="0.5mm") +poly.set_crosssection_properties(section="Circle", width="0.5mm") # ### Add Maxwell 3D setup # @@ -156,7 +156,7 @@ setup.props["HasSweepSetup"] = True setup.props["MaximumPasses"] = 1 setup.add_eddy_current_sweep( - range_type="LinearStep", start=50, end=200, count=150, clear=True + sweep_type="LinearStep", start_frequency=50, stop_frequency=200, step_size=150, clear=True ) # ### Adjust eddy effects