+
Skip to content
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: 1 addition & 0 deletions doc/source/api/simulation_setup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ Enums
hfss_simulation_settings.BasisFunctionOrder
hfss_simulation_settings.SolverType
simulation_settings.ViaStyle
simulation_settings.ModelType
siwave_simulation_settings.SParamInterpolation
siwave_simulation_settings.SParamExtrapolation
siwave_simulation_settings.SParamDCBehavior
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ classifiers = [

# FIXME: add ansys-api-edb version
dependencies = [
"ansys-api-edb==1.0.6",
"ansys-api-edb==1.0.7",
"protobuf>=3.19.3,<5",
"grpcio>=1.44.0"
]
Expand Down
20 changes: 20 additions & 0 deletions src/ansys/edb/core/simulation_setup/simulation_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ class ViaStyle(Enum):
NUM_VIA_STYLE = pb.NUM_VIA_STYLE


class ModelType(Enum):
"""Enum representing defeature model types."""

GENERAL_MODEL = pb.GENERAL_MODEL
IC_MODEL = pb.IC_MODEL


class SimulationSettingsBase:
"""Internal base class for simulation settings."""

Expand Down Expand Up @@ -219,6 +226,19 @@ def via_material(self):
def via_material(self, via_material):
self.__stub.SetViaMaterial(messages.string_property_message(self, via_material))

@property
def model_type(self):
""":class:`.ModelType`: model type."""
return ModelType(self.__stub.GetModelType(self.msg).defeature_model_type)

@model_type.setter
def model_type(self, model_type):
self.__stub.SetModelType(
pb.DefeatureModelTypePropertyMessage(
target=self.msg, defeature_model_type=model_type.value
)
)


class AdvancedMeshingSettings(SimulationSettingsBase):
"""Class representing base advanced meshing simulation settings."""
Expand Down
Loading
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载