Expand description
Dose to named layers, depth-dose through a stack, and interface transmission, for the electron tally.
Everything here is bookkeeping on the deposits and interface crossings the
transport already reports; nothing changes the transport. The accumulators
are opt-in through DoseConfig on
ElectronTallyConfig, so a run without it is
unchanged.
§Conventions
- Per-history errors. A history’s contribution to a bin is the sum over
the primary and all its secondaries. The reported mean is the sum over
histories divided by the number of histories, and the standard error is
sqrt((Σx² − (Σx)²/N) / (N (N − 1))). It isNaNfor fewer than two histories. - Dose per fluence. The target is laterally infinite, so lateral escape
cancels and the energy deposited in a layer per primary, divided by the
layer’s areal mass density
ρ t, is the absorbed dose per unit incident fluence, in Gy m² (J kg⁻¹ m²). Multiply by a fluence in m⁻² for a dose. A semi-infinite last layer has no finite areal mass, so it is reported as energy only (itsLayerDose::dose_gy_m2isNone). - Depth-dose grid. Each finite layer gets
bins_per_layeruniform bins over its middle and, withInterfaceRefine,binsfiner uniform bins in the band of widthwidth_mnext to each of its faces (at most half the layer each side). A semi-infinite last layer is binned overDepthDoseConfig::substrate_depth_m; energy deeper than that is kept inDepthDose::outside_ev. A deposit is binned by the layer it was made in (the transport’slayer), clamped to that layer’s extent, so the bins of a layer sum to its layer total to summation error. - Deposition point. The same as the rest of the electron tally: an inelastic loss at the collision point, the sub-threshold remainder at the stopping point.
- Transmission. One count per crossing from the transport’s
interfacehook: an electron that crosses an interface several times is counted each time. Primaries and secondaries are separate entries. The energy is the kinetic energy on the new side of the face (after refraction with a step barrier). Forward is towards larger depth. - Deposits are measured from the band bottom, like
DepositionReport; with a secondary model in a layer with a Fermi energy they include the Fermi-sea energy of liberated conduction electrons.
Structs§
- Depth
Dose - The depth-dose profile through the stack.
- Depth
Dose Config - The 1D depth-dose grid.
- Dose
Config - Settings of the dose, depth-dose and transmission tallies.
- Dose
Error - An invalid
DoseConfig. - Dose
Report - Result of the dose tallies.
- Estimate
- A mean with its standard error.
- Interface
Refine - Refined depth bins next to each interface.
- Interface
Transmission - Electrons crossing one interface in one direction.
- Layer
Dose - Energy and dose in one layer, per primary.