[Mesa-users] How to use custom (or make modifications) mass loss recipe?

Matheus Bernini matheus.b.peron at gmail.com
Sat Jun 30 11:23:15 EDT 2018


Hello!

I'm an undergraduate student. I'm using MESA (r-9575) to study the
evolution of massive stars.

I'd like to know how to write on MESA a custom mass loss recipe (actually,
change an already existent). I tried change one of the recipes on the
$MESADIR/star/private/winds.f90:

         subroutine eval_van_Loon_wind(w)
            ! van Loon et al. 2005, A&A, 438, 273
            real(dp), intent(out) :: w
            real(dp) :: log10w
            include 'formats'
            !log10w = -5.65d0 + 1.05*log10_cr(L1/(1d4*Lsun)) -
6.3d0*log10_cr(T1/35d2) !original
            log10w = -50 + 70*log10_cr(L1/(Lsun))
w = exp10_cr(log10w) !changed (just for testing)
         end subroutine eval_van_Loon_wind

but when I run a model after making this change on the winds.f90 nothing
different happens. It's like I have done nothing. What could I do to make
my model 'notice' the change?

Thank you!

Matheus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20180630/4818c6b0/attachment.html>


More information about the Mesa-users mailing list