EMBoundary |
The EMBoundaryCondition type exposes the following members.
| Name | Description | |
|---|---|---|
| BoundaryGeometry | The geometry the boundary is defined on. | |
| CoupledBoundaryType | Type of coupling to use in coupled boundaries. | |
| DisplayName | The EM Boundary's name in the sim tree in the UI. | |
| ElectricPotential | The scalar potential for the selected boundary. | |
| EMBoundaryType | Boundary type for an electromagnetic boundary. | |
| MagneticPotential | The magnetic vector potential for the selected boundary. | |
| NormalRoughnessFactor | The normal roughness factor in Field Enhancement boundaries. | |
| TangentialRoughnessFactor | The tangential roughness factor in Field Enhancement boundaries. | |
| VectorAxis | The coordinate axis along which the vector potential is defined. |
| Name | Description | |
|---|---|---|
| Create | Creates a new EMBoundaryCondition object in the current document when provided a list of faces from the geometry. | |
| Delete | Deletes the electromagnetic boundary object. | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
from ema3d.Api.V26.Charging.Domain import ChargeDomain as ChargeDomain from ema3d.Api.V26.Charging.Domain import ChargingEnvironment as ChargingEnvironment from ema3d.Api.V26.Charging.Boundaries import EMBoundaryCondition as EMBoundaryCondition from ema3d.Api.V26.Charging.Boundaries import EMBoundaryType as EMBoundaryType from ema3d.Api.V26.Charging.Boundaries import CoupledBoundaryType as CoupledBoundaryType from ema3d.Api.V26.Charging.Boundaries import VectorAxis as VectorAxis document = Window.ActiveWindow.Document _cd = ChargeDomain.GetInstance(document) _cd.SwitchChargingOptions.SimulationType = ChargingEnvironment.Internal # Create a geometry result = BlockBody.Create(Point.Create(MM(-10), MM(-10), MM(0)), Point.Create(MM(10), MM(10), MM(20)), ExtrudeType.ForceAdd) faces = GetRootPart().Bodies[0].Faces faces_list = [f for f in faces] # Create a coupled EM Boundary # Pass faces as list of IDesignFaces to the constructor _emb_c = EMBoundaryCondition.Create(faces_list[0:3], document) _emb_c.EMBoundaryType = EMBoundaryType.Coupled _emb_c.CoupledBoundaryType = CoupledBoundaryType.Independent _emb_c.DisplayName = "My Coupled Boundary" # Create a magnetic vector potential boundary _emb_v = EMBoundaryCondition.Create(List[IDesignFace]([faces_list[5]]), document) _emb_v.EMBoundaryType = EMBoundaryType.Vector _emb_v.MagneticPotential = 100 _emb_v.VectorAxis = VectorAxis.All # Change the selected boundaries _emb_v.BoundaryGeometry = faces_list[4:]