assign_impedance#
- Maxwell3d.assign_impedance(assignment, material_name=None, permeability=0.0, conductivity=None, non_linear_permeability=False, impedance=None)#
Create an impedance boundary condition for Transient or Eddy Current solvers.
This boundary condition is used to simulate the effect of induced currents in a conductor without explicitly computing them.
- Parameters:
- assignment
str
Faces or objects to apply the impedance boundary to.
- material_name
str
,optional
Material name. The default is
None
. If other thanNone
, material properties values are extracted from the named material in the list of materials available. The default value isNone
.- permeability
float
,optional
Permeability of the material.The default value is
0.0
.- conductivity
float
,optional
Conductivity of the material. The default value is
None
.- non_linear_permeabilitybool,
optional
If the option
material_name
is activated, the permeability can either be linear or not. The default value isFalse
.- impedance
str
,optional
Name of the impedance. The default is
None
, in which case a unique name is assigned.
- assignment
- Returns:
ansys.aedt.core.modules.boundary.BoundaryObject
Boundary object if successful,
False
otherwise.
References
>>> oModule.AssignImpedance
Examples
Create a box and assign impedance boundary to the faces.
>>> from ansys.aedt.core import Maxwell3d >>> m3d = Maxwell3d() >>> shield = m3d.modeler.create_box([-50, -50, -50],[294, 294, 19],name="shield") >>> shield_faces = m3d.modeler.select_allfaces_fromobjects(["shield"]) >>> impedance_assignment = m3d.assign_impedance(assignment=shield_faces,impedance="ShieldImpedance") >>> m3d.release_desktop(True, True)