pyInclude.gainMap

Gain calculation helpers for simulation state snapshots.

pyInclude.gainMap.calcGainFromState(state, crossSections=None, nTot=None, *, spectralProperties=None, laserProperties=None, wavelength=None, sigmaAbsorption=None, sigmaEmission=None)

Calculate point-shaped local small-signal gain from a TimeStepState.

The returned array has shape (numberOfPoints, numberOfLevels) and can be written directly as a vtkWedge point field.