[Mesa-users] save as WDEC file format

Warrick Ball W.H.Ball at bham.ac.uk
Wed Nov 9 11:09:23 UTC 2022


Hi Anwesha,

To follow up further on Earl's reply, this is a feature that could probably be added.  If you'd like to take it on, I'm happy to offer guidance on how I'd do it through a pull request on GitHub.  If there's wider demand for this feature, I might take it on myself, or at least open an issue with some relevant information.

In terms of resources that already exist, I can't find a document that defines the format.  If you know of one, that would help!  WDEC is open source (GPL-3.0) and available at

     https://github.com/kim554/wdec

from which we can infer the contents that are written to the file (which appears to have a default name `evolved`).

It also helps that GYRE can read WDEC models, so we have a tool with which to verify a MESA implementation.  If we write the same model in WDEC and another supported format, the mode frequencies should be the same.  (This is one way I verify the format conversions in tomso.)

Cheers,
Warrick

____________

Warrick Ball
Postdoc, School of Physics and Astronomy
University of Birmingham, Edgbaston, Birmingham B15 2TT
W.H.Ball at bham.ac.uk
+44 (0)121 414 4552


On Thu, 3 Nov 2022, mesa-users at lists.mesastar.org wrote:

> Hi Anwesha, 
> To follow up on Rich's answer, there are probably two good paths forward from here. They both however involve some development work on your part. 
> 
> The first would be to modify MESA's source to write out what you need. You can look for example at 
>     $MESA_DIR/star/private/pulse.f90
> for how the different file formats are exported. 
> If you take this route, you could create a pull request so that others can use your code. Some instructions for contributing are here: 
>     https://docs.mesastar.org/en/release-r22.05.1/developing/contributing.html 
> It looks like there's also a stem of code pointing to use_other_export_pulse_data (therefore allowing you to do this kind of thing in run_star_extras.f), but I don't see that it's fully hooked up yet. 
> 
> The other option is to use some post-processing code in e.g. Python to convert from e.g. GYRE format to WDEC format. Warrick Ball's TOMSO package is useful here: 
>     https://tomso.readthedocs.io 
> But again does not natively support WDEC format, so you would need to implement how to do the conversion. 
> 
> Hope this is helpful. 
> 
> Best wishes, 
> Earl 
> 
> Earl Patrick Bellinger 
> Postdoctoral Research Fellow
> Max Planck Institute for Astrophysics
> Stellar Astrophysics Centre 
> https://earlbellinger.com 
> 
> 
> On Thu, Nov 3, 2022 at 3:12 PM RICHARD H D TOWNSEND via Mesa-users <mesa-users at lists.mesastar.org> wrote:
>       Hi Anwesha —
>
>       MESA doesn’t currently support the WDEC format.
>
>       Best wishes,
>
>       Rich
>
>       > On Nov 2, 2022, at 3:17 PM, Anwesha Biswas via Mesa-users <mesa-users at lists.mesastar.org> wrote:
>       >
>       > Hello,
>       >
>       > I am pretty new using MESA. I was trying to evolve a 0.6Msun WD and cool it down to the desired temperature.
>       > I want to save the pulsations data as a WDEC file. I can save it as a GYRE file but not a WDEC. How to save it as a WDEC file format?
>       >
>       > Thanks,
>       > Anwesha
>       > _______________________________________________
>       > mesa-users at lists.mesastar.org
>       > https://lists.mesastar.org/mailman/listinfo/mesa-users
>       >
>
>       _______________________________________________
>       mesa-users at lists.mesastar.org
>       https://lists.mesastar.org/mailman/listinfo/mesa-users
> 
> 
>


More information about the Mesa-users mailing list