Generalise PartialCellBottom? #5433
Replies: 1 comment
-
|
I agree this is needed. It will not be like I suspect we should generalize const PartialCellBottom = ZPartialCell{<:Any, Nothing}(assuming the first type parameter is However, I am also not sure if such a type alias will be useful. Perhaps only at first, during testing? Because it will mean that we can implement For sure a key missing piece to be resolved before pursuing this is how to do the dynamics; without that we won't really be able to test the implementation. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm interested in generalise the
PartialCellBottomto include for partial cells of Immersed Boundary on the top of the model. This will be particularly useful in the future to implement ice-shelves.Currently as far as I know, in Oceananigans, we can have a Grid fitted (left) with a mask or a PartialCellBottom (right) boundaries, exemplified below:
I'm interested to implement to have partial cells both at the bottom and at the top, i.e.,
My initial thought was to add a new function
PartialCellTop, however this will only allow to have partial cells at the top or at the bottom. Additionally, it seems to me that a lot of the code will be duplicated.Thus, I wanted to know if this is of interest, and if it will be better to modify
PartialCellBottomtoPartialCellto deal with both cases (i.e. Immersed boundary at the top and bottom), likely going through themaskin GridFittedBoundary, but with values smaller than1generating a partial cell (I think this is similar to what MITgcm does).I'm still missing to check how to deal with the pressure once the partial cells on the top are implemented, so happy to discuss that too.
Beta Was this translation helpful? Give feedback.
All reactions