Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time dependence and AMR for ADM #610

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

Time dependence and AMR for ADM #610

wants to merge 11 commits into from

Conversation

jfields7
Copy link
Collaborator

@jfields7 jfields7 commented Oct 8, 2024

This merge request adds a new function pointer, SetADMVariables, to the ADM class. By default it uses ADM::SetADMVariablesToKerrSchild, which uses the existing Kerr-Schild infrastructure. By setting coord/minkowski = true in the parameter file, this reverts to flat Minkowski space as it would for anything else using the Kerr-Schild functions. This has the added benefit that many of the shared pgens using Minkowski or Kerr-Schild coordinates are cleaned up and replaced with a single call to padm->SetADMVariables() instead.

This API is intended to fix #600. When AMR is enabled, SetADMVariables is called at the end of MeshRefinement::RedistAndRefineMeshBlocks, which means that the ADM metric will be completely defined everywhere on the new grid, allowing AMR evolution with DynGRMHD without needing to enable Z4c as well. Other metrics can be defined by pointing SetADMVariables to a different function; it should be a void function that takes the MeshBlockPack as a single argument.

An additional task has been added to the DynGRMHD task list to allow for dynamical ADM evolution, and examples are contained in an extension to the blast pgen with an FLRW metric and the new dynbbh pgen, which superposes two Kerr-Schild black holes and moves them along a circular orbit. Dynamical evolution in the task list can be enabled with adm/is_dynamic = true.

Draft to-do list:

  • Update TOV pgen to use SetADMVariables. This probably needs to be postponed and done as part of the TOV refactor.
  • Check that all pgens compile and work as intended.
  • Check that GRMHD+Z4c still works as intended.

dradice and others added 7 commits September 29, 2024 19:56
* This commits adds a new mechanism to set an analytic metric using the
  ADM class, which can be leveraged to support any prescribed metric by
  the user in the pgen
* This should be a first step towards fixing AMR for Cowling
  calculations + Valencia
* This commits removes a lot of duplicated code in the pgens
…ic with superposed Kerr-Schild BHs. Blastwave pgen has the option to use expanding grid
@jfields7 jfields7 marked this pull request as ready for review October 17, 2024 16:43
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.

AMR does not work with DynGRMHD in fixed spacetimes
3 participants