Click or drag to resize

TransportOptions Class

An object implementing the Transport Options in Charge Domain.
Inheritance Hierarchy
SystemObject
  ema3d.Api.V26.Charging.DomainTransportOptions

Namespace: ema3d.Api.V26.Charging.Domain
Assembly: ema3d.Api.V26 (in ema3d.Api.V26.dll) Version: 0.0.0.0
Syntax
public sealed class TransportOptions

The TransportOptions type exposes the following members.

Properties
 NameDescription
Public propertyFluxBins User specified values describing flux bins to use during particle transport.
Public propertyFluxSourceOn Enable the use of a flux source for coupled simulations.
Public propertyFluxThreshold Threshold for flux source for coupled simulations in MeV.
Public propertyGeant4PhysicsPackage The Geant4 physics package to be used during particle transport.
Public propertyMaxTreeDepth Depth of Octree for mapping G4 particles in Charge Plus.
Public propertyParallelTransportProcesses Number of parallel processes to be used during particle transport.
Public propertyTransportFieldCouplingOn Enable the coupling of fields between Geant4 and Charge Plus.
Public propertyTransportQuantities Enables transport quantities per body.
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Remarks
This does not directly wrap the various solver and flux classes, but instead implements some of the wrapped properties of these classes to be used in Charge Domain. Corresponds to the Transport Options displayed in the UI.
Example
Python
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 ChargeSolverPackage as ChargeSolverPackage

_cd = ChargeDomain.GetInstance(Window.ActiveWindow.Document)
_cd.SwitchChargingOptions.SimulationType = ChargingEnvironment.Internal

flux_tracking_bins = [0.5, 0.8, 1.0, 1.1] # MeV
_cd.TransportOptions.FluxBins = List[float](flux_tracking_bins)

_cd.TransportOptions.Geant4PhysicsPackage = ChargeSolverPackage.empenelope
_cd.TransportOptions.MaxTreeDepth = 4
_cd.TransportOptions.ParallelTransportProcesses = 4
_cd.TransportOptions.FluxSourceOn = True
_cd.TransportOptions.FluxThreshold = 5.5 # MeV
_cd.TransportOptions.TransportFieldCouplingOn = True
See Also