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

Gyotoy crashing when using a new metric #20

Open
tahami111 opened this issue Jul 18, 2024 · 4 comments
Open

Gyotoy crashing when using a new metric #20

tahami111 opened this issue Jul 18, 2024 · 4 comments

Comments

@tahami111
Copy link

hello,I have a modified form of Kerr metric(the changes are only in the gtt and grr) which I need to test in the gyotoy interface.As a trial I have tried replacing the metric gmunu and christoffel symbols expression in the original KerrBL.C file with the modified one.However,upon running Gyotoy it shows norm drifting errors and the trajectories are also weird.Can you please tell me what other changes I need to make in order to make gyotoy work properly for this metric.
Thank you

@paumard
Copy link
Member

paumard commented Jul 18, 2024

Hi, two things come to my mind:

  • norm drifting messages either appear near discontinuities in the metric (physical singularities or discontinuities linked to the coordinate system) or due to inconsistencies (typos) in the gmunu or christoffel expressions. Running "make check" in the python subdirectory runs a number of consistency checks for all standard metrics, which should include your modified KerrBL class if you modified it in place. Look for class TestStdMetric in python/tests/std.py to see what exactly is being tested. You should not have to modify this as long as you metric is in the standard plugin. If it is not in the standard plug-in, you can get inspiration from this file to write your own test.
  • KerrBL.C is quite complex for both historical reasons and because we have tried to optimize it. For instance it contains two versions of the gmunu method, two versions of the gmunu_up version, it reimplements the SalarProd and nullifyCoord methods and contains its own optimized-but-very-specific integrator. Therefore modifying KerrBL to suite your needs in not as trivial as it may seem (ideally you should reimplement or remove each one of those methods). You may be better of starting from ChernSimons, which is based on KerrBL but simplifies it, or on RezzollaZhidenko. Then just create or copy an XML file (each metric provided with Gyoto has an example XML file in doc/examples) and use it to load your metric in gyotoy.

@tahami111
Copy link
Author

tahami111 commented Jul 19, 2024 via email

@paumard
Copy link
Member

paumard commented Jul 23, 2024

Thanks for your message, you uncovered a bug which is now fixed in the master branch. You will need to pull Gyoto again and recompile it unfortunately.

You do not need to modify the XML, any Gyoto XML file containing a Metric definition should work (either at top level or not).

Best regards.

@tahami111
Copy link
Author

tahami111 commented Jul 24, 2024 via email

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

No branches or pull requests

2 participants