cherab.nagdis.tools.emission.gaussΒΆ

cherab.nagdis.tools.emission.gauss(x: float, y: float, z: float, peak: float = 1.0, center: float = 0.0, deviation: float = 0.005, limit: float = 0.01) floatSourceΒΆ

Generate a Gaussian emission profile.

The profile \(f(r)\) is defined as:

\[f(r) = A \left[ \exp\left( -\frac{(r - r_\mathrm{center})^2}{\sigma^2} \right) - \exp\left( -\frac{(r_\mathrm{limit} - r_\mathrm{center})^2}{\sigma^2} \right) \right],\]

where \(r = \sqrt{x^2 + y^2}\) is the radial distance from the origin, \(A\) is the peak value, \(r_\mathrm{center}\) is the center position, \(\sigma\) is the standard deviation, and \(r_\mathrm{limit}\) is the limit position.

Parameters:
x: floatΒΆ

X coordinate.

y: floatΒΆ

Y coordinate.

z: floatΒΆ

Z coordinate.

peak: float = 1.0ΒΆ

Peak value of the Gaussian profile, \(A\).

center: float = 0.0ΒΆ

Center position of the Gaussian profile, \(r_\mathrm{center}\).

deviation: float = 0.005ΒΆ

Standard deviation of the Gaussian profile, \(\sigma\).

limit: float = 0.01ΒΆ

Limit position for the Gaussian profile, \(r_\mathrm{limit}\).

Returns:

float – Value of the Gaussian profile at the given coordinates.