From cb22fe7c5d0ff38c7af3a41f2b271a548d7de549 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Tue, 8 Dec 2020 06:43:31 -0600 Subject: [PATCH] Fix documentation for Maxwell distribution pdf --- include/openmc/distribution.h | 2 +- openmc/stats/univariate.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/openmc/distribution.h b/include/openmc/distribution.h index 92c10aed3..026b3d723 100644 --- a/include/openmc/distribution.h +++ b/include/openmc/distribution.h @@ -71,7 +71,7 @@ private: }; //============================================================================== -//! Maxwellian distribution of form c*E*exp(-E/theta) +//! Maxwellian distribution of form c*sqrt(E)*exp(-E/theta) //============================================================================== class Maxwell : public Distribution { diff --git a/openmc/stats/univariate.py b/openmc/stats/univariate.py index 6db203361..4bbc50927 100644 --- a/openmc/stats/univariate.py +++ b/openmc/stats/univariate.py @@ -244,11 +244,11 @@ class Uniform(Univariate): class Maxwell(Univariate): - """Maxwellian distribution in energy. + r"""Maxwellian distribution in energy. The Maxwellian distribution in energy is characterized by a single parameter - :math:`\theta` and has a density function :math:`p(E) dE = c E e^{-E/\theta} - dE`. + :math:`\theta` and has a density function :math:`p(E) dE = c \sqrt{E} + e^{-E/\theta} dE`. Parameters ----------