diff --git a/docs/source/changelog.rst b/docs/source/changelog.rst index 39c89e1b0..ef62bd379 100644 --- a/docs/source/changelog.rst +++ b/docs/source/changelog.rst @@ -86,6 +86,9 @@ oscillation frequencies could jump discontinuously. Pulsation models with double points may therefore differ from those written by earlier versions. +Corrected terms in the Bremsstrahlung routines of the ``neu`` module including the Fermi temperature and its derivative. +See `gh-1103 `_. + Fixed a regex parsing issue in `shmesa change` that prevented controls like `x_ctrl(1)` from being parsed correctly. diff --git a/neu/private/mod_neu.f90 b/neu/private/mod_neu.f90 index 1a992e35e..0ab7a30c9 100644 --- a/neu/private/mod_neu.f90 +++ b/neu/private/mod_neu.f90 @@ -941,11 +941,11 @@ subroutine brem_neu_weak_degen(sbrem,sbremdt,sbremdd,sbremda,sbremdz,t8, input) c02 = 4.59d-5 * p dd02 = -0.11d0*4.59d-5*(p/t8% T8)*1.0d-8 - z = pow(input% den,0.656d0) + z = pow(input% rm,0.656d0) dum = c00*input% rmi + c01 + c02*z dumdt = dd00*input% rmi + dd01 + dd02*z - z = -c00*input% rmi*input% rmi - dumdd = z*input% rmdd + 0.656d0*c02*pow(input% den,-0.344d0) + z = -c00*input% rmi*input% rmi + 0.656d0*c02*pow(input% rm,-0.344d0) + dumdd = z*input% rmdd dumda = z*input% rmda dumdz = z*input% rmdz @@ -1207,7 +1207,7 @@ subroutine brem_neu(sbrem,sbremdt,sbremdd,sbremda,sbremdz, input) D = 1.0d0 U = pow(input% den6*input% ye,two_thirds) - tfermi = A * (sqrt(U) - D) + tfermi = A * (sqrt(B + C * U) - D) if (input% temp >= tfhi * tfermi) then @@ -1239,7 +1239,7 @@ subroutine brem_neu(sbrem,sbremdt,sbremdd,sbremda,sbremdz, input) beta = 1d0 - alfa - dtfermidu = (1d0/2d0) * A * pow(U,-1d0/2d0) + dtfermidu = (1d0/2d0) * A * C * pow(B + C* U,-1d0/2d0) dtfracdtfermi = -input% temp/(tfermi * tfermi * dtf ) ! v = den6* ye = den *10**-6 * ye diff --git a/neu/test/test_output b/neu/test/test_output index f8d41cf2d..758ce41c3 100644 --- a/neu/test/test_output +++ b/neu/test/test_output @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:02016e952fac1890d8b4ef7644a53b6912a0db7beec7971dd4dd357ed56948f7 +oid sha256:7cfd2fe299795fc0c76bcdb2e39aff57b1acf8f8a098f0657aaf475288085ee2 size 8850000