PICOptions Class |
The PICOptions type exposes the following members.
| Name | Description | |
|---|---|---|
| AverageIterations | Average iterations for the PIC. | |
| BackgroundBField | Background B-Field x,y,z applied to particles. | |
| BackgroundEField | Background E-Field x,y,z applied to particles. | |
| BiasVelocity | BiasVelocity x,y,z applied to particles. | |
| DiffuseSpecularFraction | Fraction of particles that scatter diffusely. Remaining particles scatter specularly. 1 being fully diffuse. 0 being specular. | |
| MaxIterations | Max number of the PIC iterations. | |
| PICEMModel | PIC EM Model: Space Charge, Conductivity, or Null dropdown. | |
| PICScattering | When enabled, PIC Scattering Type: Specular, Mixed, Diffuse. | |
| StatisticalMeasure | The number of total macroparticles the PIC solver will track. |
| Name | Description | |
|---|---|---|
| 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.Domain import PICSourceType _cd = ChargeDomain.GetInstance(Window.ActiveWindow.Document) _cd.SwitchChargingOptions.SimulationType = ChargingEnvironment.Custom pic = _cd.PICOptions pic.StatisticalMeasure = 1000000 pic.MaxIterations = 25 pic.AverageIterations = 1 pic.PICEMModel = PICSourceType.SpaceCharge pic.BackgroundEField = [0.0, 0.0, 0.0] pic.BackgroundBField = [0.0, 0.0, 0.0] pic.BiasVelocity = [0.0, 0.0, 0.0]