Skip to content

Adding and updating features for TOV 1D#237

Merged
Yurlungur merged 15 commits intomainfrom
jwm/TovOnPolaris
Jun 17, 2025
Merged

Adding and updating features for TOV 1D#237
Yurlungur merged 15 commits intomainfrom
jwm/TovOnPolaris

Conversation

@curiousmiah
Copy link
Copy Markdown
Collaborator

PR Summary

In this pull request, I am adding features to run and debug the TOV 1D problem. In particular, I have added a general phoebuspy.py module for plotting purposes. I have also changed the tov.pin input file to simulate a more compact TOV star. This more compact TOV star is more relativistic than the older TOV star input file. The input file also include floors that work for the problem.

Separately, I tried to make the Monopole solver more accurate by using an rk4 integrator. However, this did not lead to improved accuracy. You will notice that I have commented the rk4 integration scheme, and I have left the original integration scheme. I am not done figuring out how to make the monopole solver more accurate, so I recommend that we leave the commented rk4 version.

PR Checklist

  • Adds a test for any bugs fixed. Adds tests for new features.
  • Format your changes by calling scripts/bash/format.sh.
  • Explain what you did.
  • Make any necessary changes to the documentation.

Copy link
Copy Markdown
Collaborator

@Yurlungur Yurlungur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly looks good. Some minor nitpicks below.


<parthenon/time>
nlim = -1 # cycle limit
tlim = 5000 # time limit
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see you changed tlim here. Did you make sure everything is reasonable at later times too? I remember at one point things getting messed up after 1000, and probably it is a good idea to make sure the results are still reasonable beyond 1000.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, we should run it longer. I recommend that we leave it at the shorter time in the default tov.pin. In that way, the default is a short run that is appropriate for quick debugging. If someone wants to test it for longer (which we do), then they can change tlim to something longer.

@curiousmiah curiousmiah requested a review from Yurlungur June 16, 2025 15:27
@Yurlungur Yurlungur merged commit f398080 into main Jun 17, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants