-
Notifications
You must be signed in to change notification settings - Fork 195
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
Change Cell to 'Center' and Face to 'Interface' to specify Field locations? #414
Comments
I think |
Came across this by accident but I gotta say the |
I wonder if something like The reason is that the formulation really staggers 4 finite volume grids --- one for tracers, pressure, and mass, and 3 others for the 3 momentum variables. So cell-averages of all the quantities are located at "cell centers" of their respective grids. Sadly that'd be a deeper change, since I think we would need to use something like Changing |
This is an interesting issue and I don't pretend to have an answer but will add in my two cents. We refer to the grid positions based on the fields, |
That's a fair point. I guess we just have to remember that |
Just as a reference, the sed command to do this (I believe) is
which produces the following results (as an example): $ line="(Cell, Cellphone), Cell; :Cell, Cell.something"
$ echo "$line" | sed "s/\<Cell\>/Center/g"
(Center, Cellphone), Center; :Center, Center.something So a one-liner to do this is (I think; I haven't tested):
assuming we just wanna replace in "*.jl" files. I agree with |
Probably better to do this sooner rather than later if we really are going to do it. I think we're just dragging our feet because it will have widespread effects across a huge number of scripts that we've written. @ali-ramadhan what do you think? Time to bite the bullet? |
Greg, is this really neccessary? Other priorities? John
…On Fri, Jan 22, 2021, 6:52 AM Gregory L. Wagner ***@***.***> wrote:
Probably better to do this sooner rather than later if we really are going
to do it. I think we're just dragging our feet because it will have
widespread effects across a huge number of scripts that we've written.
@ali-ramadhan <https://github.com/ali-ramadhan> what do you think? Time
to bite the bullet?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#414 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKXUEQXN3PYIBNMGSS4LMT3S3FRHJANCNFSM4IXUGMDA>
.
|
@johncmarshall54 Fortunately it doesn't take any effort at all, since it's just one command. I did it on a local branch and tested it here, so it's pretty much done.
Yeah, that's a bit annoying, but I'll share the command I used to do it here so that people can also use it on their scripts:
|
I'd be on board with the I'm not bothered by having to modify my scripts. If we agree on the change we should do it sooner rather than later.
If tests pass then you should open a PR! 🎉 |
@ali-ramadhan All the tests passed!, Created a (I think) successful PR :) |
Apparently all the tests in my PR are passing now. Here's a question: I left |
Yes. |
No description provided.
The text was updated successfully, but these errors were encountered: