-
Notifications
You must be signed in to change notification settings - Fork 194
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
How to deal with cell-centered and face-centered fields in NetCDF output? #92
Comments
If we are committed to not using ghost cells, then I think the solution will depend on how boundary conditions are implemented. Periodic boundaries are just one of many possible cases we will encounter. |
Yeah the output writing might get complicated as it could depend on the grid and boundary conditions and #86. Will also be more complicated when data is spread across multiple cores or GPUs. |
This may be another reason why ghost cells are preferred. A “boundary condition” can then be thought of as a function that fills in missing values on the edges of a field. Currently a “boundary condition” is something that modifies the right hand side of an equation... ? |
Should we open a new issue to discuss whether or not to use ghost cells? Might be a hot topic and is only a backend issue so it isn't related to #86 either I think. |
I would suggest (if it works with out guys) a short meeting (< 30mn)
to refine what we mean by and what we want regarding Bondary-Conditions
(including ghost-cell). My view: it could help identify and formulate the
right/relevant issues. Today 2.pm ? 3pm ? 4pm?
…On Thu, Feb 28, 2019 at 02:54:59PM +0000, Ali Ramadhan wrote:
Should we open a new issue to discuss whether or not to use ghost cells? Might be a hot topic and is only a backend issue so it isn't related to #86 either I think.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/ali-ramadhan/Oceananigans.jl/issues/92#issuecomment-468302424
|
3p works for me too. |
Let it be recorded: we discussed ghost cells and decided not to use them. The main reason for not using ghost cells is that it is not clear whether an algorithm based on ghost cells can be used for irregular boundaries, where a cell point within land may be shared between 2 or more adjacent fluid cells. We will need to figure out how to include the correct values of |
This is temporary until we solve #92. At least this way you can read output and get back an array of the expected size (Nx*Ny*Nz).
Good point. A default where halo data is omitted makes the most sense to me, but we can just have a |
Just wait until you start trying to calculate fluxes and gradients in post-processing... 😏 |
Ah, fair enough. I still think it would be confusing for most users to have the boundary values in the output by default but a |
This has been recently resolved in PR #644. |
All the arrays right now are of size
Nx*Ny*Nz
but technically there areNx
volumes in the x-direction andNx+1
faces so the output should match this and make sense. The easiest thing to do with the doubly periodic configuration we have right now is to have rowNx+1
be a repeat of row1
but writing out the fields at the very bottom (k=Nz+1
) might require some extra computation?The text was updated successfully, but these errors were encountered: