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

Issue with PartialCellBottom #3958

Open
simone-silvestri opened this issue Nov 25, 2024 · 1 comment
Open

Issue with PartialCellBottom #3958

simone-silvestri opened this issue Nov 25, 2024 · 1 comment

Comments

@simone-silvestri
Copy link
Collaborator

simone-silvestri commented Nov 25, 2024

I think I found a bug in the PartialCellBottom code.
The definition of volumes for ImmersedBoundaryGrids

@inline $volume(i, j, k, ibg::IBG) = $volume(i, j, k, ibg.underlying_grid)

bypasses the calculation of the volumes done in
@inline $volume(i, j, k, grid) = $z_area(i, j, k, grid) * $z_spacing(i, j, k, grid)

Therefore, not accounting for reduced spacing in volumes. The same happens for vertical areas.
I will open a PR to fix it.

@simone-silvestri
Copy link
Collaborator Author

simone-silvestri commented Dec 12, 2024

#3955 should have solved the issue with the partial cells.

The internal tide example looks like this on version 0.94.3:
https://clima.github.io/OceananigansDocumentation/v0.94.3/literated/internal_tide.mp4

In main, the results look much cleaner with less noise in the u velocity near the seamount:
https://clima.github.io/OceananigansDocumentation/dev/literated/internal_tide.mp4

However, I ll keep this issue open since we still need to add tests for the PartialCellBottom

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

Successfully merging a pull request may close this issue.

1 participant