star-line

Structure for accelerating line importance sampling
git clone git://git.meso-star.fr/star-line.git
Log | Files | Refs | README | LICENSE

commit 8f0110bb96b46de17409c62e43bb4bd00c172048
parent 7285d0c9f12e3be839e372cb94f01f4e2fc9bbad
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Tue,  3 May 2022 16:21:07 +0200

Minor fix of the doppler line half width computation

Update the value of the avogadro number

Diffstat:
Msrc/sln.h | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/sln.h b/src/sln.h @@ -220,10 +220,10 @@ sln_compute_line_half_width_doppler const double temperature) /* In K */ { /* kb = 1.3806e-23 - * Na = 6.02214179e23 TODO wrong avogadro constant + * Na = 6.02214076e23 * c = 299792458 * sqrt(2*log(2)*kb*Na)/c */ - const double sqrt_two_ln2_kb_Na_over_c = 1.1324432520993544423e-08; + const double sqrt_two_ln2_kb_Na_over_c = 1.1324431552553545042e-08; const double gamma_d = nu * sqrt_two_ln2_kb_Na_over_c * sqrt(temperature/molar_mass); ASSERT(nu > 0 && temperature >= 0 && molar_mass > 0); return gamma_d;