-
Notifications
You must be signed in to change notification settings - Fork 7
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
Update example for diagnostic use and to give explicit example #14
base: main
Are you sure you want to change the base?
Conversation
I've only had a very brief look but would it be possible to use the |
@mirenradia I will update params but I quite liked having the CustomExtraction class as a very simple example of what can be done with all the code in one place. Do you object to it being here rather than in the GRChombo repo or do you just not like it? |
If a user actually wants to do some kind of extraction of data on a surface, then it makes sense to use the much more comprehensive and accurate
I'm confused by this question. I have no objection to this example being here! |
CustomExtraction doesn't do extraction on a surface, or clever integration or anything like that, it just takes values at a series of points, or it could do a single point if you just wanted to extract at the centre, say. For me the advantage was that it was quite transparent to read, whereas the SphericalExtraction classes are quite heavy and introduce additional complexity to the example. Having this here makes the example mostly self contained, without needing to refer to the main code. |
Also, I plan to write another example which does a surface extraction to find a flux and reconciles this to a volume integral, so I thought it was nicer to keep this one different. |
My worry is that a user will see this and adapt it to their needs (as most do) rather than using the
I see your point but then I think it should do something that you would not be able to use
Hmm, "I plan" to do a lot of things. That doesn't necessarily mean they're going to happen anytime soon 😜 I'll believe you when there is a PR open! |
I think it is already something you would not use the surface classes for. How would you use the spherical extraction class to extract points along a line? I guess you could use the cylindrical extraction with only one point along the theta direction, but this would really be overkill. |
Ok, I guess I should have read the code in more detail before making an argument 😂 I guess it's OK in principle then. I will make a more detailed review later. |
I suppose if I had named it LineExtraction it would have been more informative :-) I will update the params in the meantime. |
I updated to fix for diagnostic vars.
I also amended the example to make it more aligned with how it is used in practice - ie for reprocessing plot files rather than actual full checkpoint files. The use of extrapolating BCs allows you to use these even without the ghost cells having been written in sommerfeld directions. The example now also uses the boundary conditions so one can load symmetric cases.
I also added clang format.