[Users] running TOVSolver standalone
Roland Haas
rhaas at illinois.edu
Fri Jul 7 10:39:18 CDT 2023
Hello CJ Osakwe,
> In particular, I am trying to model a perturbed TOV neutron star. To
> this end, I used the TOVSolver thorn for my initial data (based off
> of the single, stable neutron star example).
>
> Where does the TOVSolver thorn output its data? I have so far been
> unable to determine this myself. I want to run this thorn by itself
> and am not sure how. Any help would be greatly appreciated.
The TOVSolver thorn in the Einstein Toolkit does not directly output
its (1D) result anywhere but instead directly interpolates to the 3D
Cactus grid.
You could edit the source code (in tov.c there should be a function
called solve or so and a function that interpolates, you can look
around for the `for(k = 0 ; k < cctk_lsh[3]; k++)` or so loops which
are where the interpolation to the 3D grid happens. Just before will be
the 1D solve.
Having said that the NRPy+ code also has a TOVSolver (in Python and
with some C code generation as well I think) that you may find useful.
Your best chance is probably to contact the NRPy+ developers (who are
usually subscribed to this mailing list). The TOVSolver is here:
https://github.com/zachetienne/nrpytutorial/tree/master/TOV
and the person to contact is most likely Zach Etienne (see
https://www.nrpyplus.net/download-en_US.html).
Yours,
Roland
--
My email is as private as my paper mail. I therefore support encrypting
and signing email messages. Get my PGP key from http://pgp.mit.edu .
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.einsteintoolkit.org/pipermail/users/attachments/20230707/b1ea6a23/attachment-0001.sig>
More information about the Users
mailing list