assign_em_losses#
- Icepak.assign_em_losses(assignment: str | Object3d | list[str] | list[Object3d], design: str, setup: str, sweep: str, map_frequency: str | float | list[float] | list[str] | None = None, source_project_name: str | None = None, name: str | None = None, surface_objects: list[str | int] | None = None, parameters: list[str] | dict[str, str] | None = None, force_source_solve: bool = True, preserve_source_solution: bool = True, loss_multiplier: float | PieceWiseLinearDictionary = 1.0, harmonic_loss_sweep_coupling: bool = False, q3d_loss_type: Literal['DCVolOrACSurfLoss', 'ContactResistanceLoss', 'HarmonicLoss'] = 'DCVolOrACSurfLoss')#
Map EM losses to an Icepak design.
- Parameters:
- assignment
str, ::class::aedt.core.modeler.cad.object_3d.Object3d, list of str, or list of ::class::aedt.core.modeler.cad.object_3d.Object3d
List of objects to apply EM Losses to.
- design
str Name of the source design from which to map losses.
- setup
str Name of the source setup from which to map losses.
- sweep
str Name of the source setup sweep from which to map losses.
- map_frequency
str,float,listoffloat,orlistofstr,optional Frequency or frequencies to map. The default is
None.- source_project_name
str,optional Name of the source project from which to map losses. The default is
None, in which case the source from the same project is used.- name
str,optional Name to assign to the boundary condition. The default is
Nonein which case it will be automatically generated. The value must beNonefor Eigenmode analysis.- surface_objects
list,optional List of objects in the source that are metals. The default is
None.- parameters
listordict,optional List of parameters to map between the source and Icepak design. - If
None(default), variables are set to their values (no mapping). - If a list is provided, the specified variables in the Icepak design are mappedto variables in the source design having the same name.
If a dictionary is provided, it maps variables to the source design using the structure
{"source_design_variable": "icepak_variable"}.
- force_source_solvebool,
optional Whether to force the source design to solve if results are missing. The default is
True.- preserve_source_solutionbool,
optional Whether to preserve the source solution. The default is
True.- loss_multiplier
floatorPieceWiseLinearDictionary,optional Multiplier for the EM losses. The default is
1.0.- harmonic_loss_sweep_couplingbool,
optional Whether to enable harmonic loss sweep coupling. The default is
False.- q3d_loss_type
str,optional Type of Q3D loss mapping. Options are
"DCVolOrACSurfLoss","ContactResistanceLoss", or"HarmonicLoss". The default is"DCVolOrACSurfLoss". Relevant only if the coupling is with Q3D.
- assignment
- Returns:
BoundaryObjectThe created boundary object.
References
>>> oModule.AssignEMLoss