[Mesa-users] using another atmospheres

Jared Goldberg jgoldberg at flatironinstitute.org
Thu May 15 19:10:24 UTC 2025


Hi Natasha,

Yes, this should still be possible in run_star_extras with the current
version of MESA with an "other_surface_PT" routine
(making sure to also set use_other_surface_PT = .true. in the inlist). See
the example routine in $MESA_DIR/star/other/other_surface_pt.f90

Cheers,
~Jared

On Thu, May 15, 2025 at 2:58 PM Natasha Ivanova via Mesa-users <
mesa-users at lists.mesastar.org> wrote:

> Hi all,
>
> We have a project in which one would benefit from adding up our own
> atmospheric calculations, to be done by the means of adding a subroutine
> that would provide photospheric conditions back to MESA (using MESA's EOS
> and opacities).
>
> Is that possible in the current version of MESA?
>
> What MESA would need from such a subroutine as input?
>
> I looked at the options, and in principle 'fixed_Psurf_and_Tsurf' may do
> a rough fix, but that would provide values only once per timestep, if I
> understand correctly how interactions is done with own run_single codes,
> and would not guarantee that the starting tau would be the same as MESA
> thinks, and so the inferred by MESA from a simple equation T_eff may be
> wrong.
>
>
> Thanks,
> Natasha
> _______________________________________________
> mesa-users at lists.mesastar.org
> https://lists.mesastar.org/mailman/listinfo/mesa-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20250515/ebc4271d/attachment.htm>


More information about the Mesa-users mailing list