Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: EDB version to support HFSS PI #627

Merged
merged 2 commits into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/pyedb/dotnet/edb_core/utilities/simulation_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ def _set_edb_setup_info(self, edb_setup_info):

if float(self._pedb.edbversion) >= 2024.2:
setup_type_mapping["kRaptorX"] = utility.RaptorXSimulationSetup
if float(self._pedb.edbversion) >= 2025.1:
setup_type_mapping["kHFSSPI"] = utility.HFSSPISimulationSetup
sim_setup_type = self.sim_setup_info.sim_setup_type
setup_utility = setup_type_mapping[sim_setup_type.ToString()]
Expand Down
47 changes: 46 additions & 1 deletion tests/legacy/system/test_edb_future_features_242.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import pytest

pytestmark = [pytest.mark.system, pytest.mark.legacy]
VERSION = 2024.2


@pytest.mark.skipif(True, reason="AEDT 2024.2 is not installed")
Expand All @@ -35,7 +36,7 @@ def init(self):
pass

def test_add_raptorx_setup(self, edb_examples):
edbapp = edb_examples.get_si_verse(version=2024.2)
edbapp = edb_examples.get_si_verse(VERSION=VERSION)
setup = edbapp.create_raptorx_setup("test")
assert "test" in edbapp.setups
setup.add_frequency_sweep(frequency_sweep=["linear scale", "0.1GHz", "10GHz", "0.1GHz"])
Expand Down Expand Up @@ -117,3 +118,47 @@ def test_add_raptorx_setup(self, edb_examples):
advanced_settings.use_relaxed_z_axis = True
assert advanced_settings.use_relaxed_z_axis
edbapp.close()

def test_create_hfss_pi_setup(self, edb_examples):
edbapp = edb_examples.get_si_verse(version=VERSION)
setup = edbapp.create_hfsspi_setup("test")
setup.add_frequency_sweep(frequency_sweep=["linear scale", "0.1GHz", "10GHz", "0.1GHz"])
assert not setup.settings.auto_select_nets_for_simulation
setup.settings.auto_select_nets_for_simulation = True
assert setup.settings.auto_select_nets_for_simulation
assert setup.settings.ignore_dummy_nets_for_selected_nets
setup.settings.ignore_dummy_nets_for_selected_nets = False
assert not setup.settings.ignore_dummy_nets_for_selected_nets
assert setup.settings.ignore_small_holes == 0
setup.settings.ignore_small_holes_min_diameter = 1e-3
assert setup.settings.ignore_small_holes_min_diameter == "0.001"
setup.settings.improved_loss_model = "Level2"
assert setup.settings.improved_loss_model == "Level2"
setup.settings.include_enhanced_bond_wire_modeling = True
assert setup.settings.include_enhanced_bond_wire_modeling
setup.settings.include_nets = "GND"
assert setup.settings.include_nets[0] == "GND"
setup.settings.min_plane_area_to_mesh = "0.30mm2"
assert setup.settings.min_plane_area_to_mesh == "0.30mm2"
setup.settings.min_void_area_to_mesh = "0.30mm2"
assert setup.settings.min_void_area_to_mesh == "0.30mm2"
setup.settings.model_type = 0
assert setup.settings.model_type == 0
setup.settings.perform_erc = True
assert setup.settings.perform_erc
setup.settings.pi_slider_pos = 1
assert setup.settings.pi_slider_pos == 1
setup.settings.rms_surface_roughness = "2um"
assert setup.settings.rms_surface_roughness == "2um"
setup.settings.signal_nets_conductor_modeling = "ImpedanceBoundary"
assert setup.settings.signal_nets_conductor_modeling == "ImpedanceBoundary"
setup.settings.signal_nets_error_tolerance = "0.02"
assert setup.settings.signal_nets_error_tolerance == "0.02"
setup.settings.signal_nets_include_improved_dielectric_fill_refinement = True
assert setup.settings.signal_nets_include_improved_dielectric_fill_refinement
setup.settings.signal_nets_include_improved_loss_handling = True
assert setup.settings.signal_nets_include_improved_loss_handling
setup.settings.snap_length_threshold = "5um"
assert setup.settings.snap_length_threshold == "5um"
setup.settings.surface_roughness_model = "Hammerstad"
assert setup.settings.surface_roughness_model == "Hammerstad"
79 changes: 0 additions & 79 deletions tests/legacy/system/test_edb_future_features_251.py

This file was deleted.

Loading