Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/source/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://github.com/MESAHub/mesa/pull/1103>`_.

Fixed a regex parsing issue in `shmesa change` that prevented controls like
`x_ctrl(1)` from being parsed correctly.

Expand Down
10 changes: 5 additions & 5 deletions neu/private/mod_neu.f90
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion neu/test/test_output
Git LFS file not shown
Loading