[Mesa-users] Adding a new particle species
amber lauer
amberlauer at gmail.com
Mon Aug 19 14:12:04 EDT 2019
Hi Jeremy, it's actually pretty easy.
Look in your inlist star_job section and note the name of the network.
The default version of this file is located in
$MESA_DIR/data/net_data/nets/ .
Copy this file to your model folder. Then open it with a text editor.
Unless you are using one of the hard coded nets (approx21*) you will see
the format is pretty easy to understand, there will be either:
add_isos_and_reactions()
or
add_isos()
add_reactions()
(and possibly remove_reactions())
I think the format is pretty self explanatory. If you use
add_isos_and_reactions, you need only list the isos and the code will add
all reactions connecting them. The alternative is to do it by hand using
add_isos and add_reactions separately. But if you get stuck come back to
the list and we can help.
Just a note, whatever your network name, MESA will look in your local model
folder for the file first. I recommend changing the name to something
verbose (and changing the value in the inlist).
Good luck!
=================================
Dr. Amber Lauer
Postdoctoral Researcher
Triangle Universities Nuclear Lab
Duke University
amber.lauer at tunl.duke.edu <amber.lauer at duke.edu>
On Mon, Aug 19, 2019 at 10:48 AM Jeremy Sakstein <sakstein at sas.upenn.edu>
wrote:
> Hi Everyone,
>
> I would like to add a new particle species (with associated reactions) so
> that it contributes to the EOS and the density.
>
> How do I go about doing this? Is there a hook?
>
> Cheers,
>
> Jeremy
> _______________________________________________
> 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/20190819/7891e6f9/attachment.html>
More information about the Mesa-users
mailing list