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

Why is solid_interface used for reducing immersed fields? #2293

Closed
glwagner opened this issue Mar 1, 2022 · 2 comments
Closed

Why is solid_interface used for reducing immersed fields? #2293

glwagner opened this issue Mar 1, 2022 · 2 comments
Labels
question 💭 No such thing as a stupid question

Comments

@glwagner
Copy link
Member

glwagner commented Mar 1, 2022

I got a little confused reading

return get_condition(condition.func, i, j, k, ibg, args...) & !(solid_interface(LX(), LY(), LZ(), i, j, k, ibg))

because I thought that solid_interface was defined for fluxes while solid_node was for masking. Can we clarify what the purpose of these two functions are? Do their names need to be changed?

@simone-silvestri

@glwagner glwagner added the question 💭 No such thing as a stupid question label Mar 1, 2022
@simone-silvestri
Copy link
Collaborator

This issue is connected to #2249.

Since we use solid_interface to mask a field, we use the same function to reduce the field.
solid_interface is used for masking because we want to mask up to the interface to ensure impenetrability.
For a scalar in the context of a GridFittedBoundary solid_interface and solid_node are equivalent

Maybe, in view of the new PartialCellBoundary coming up, we can rethink these functions

@glwagner
Copy link
Member Author

I'm closing this issue because I'm judging that it's not of current, timely relevance to Oceananigans development. If you would like to make it a higher priority or if you think the issue was closed in error please feel free to re-open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question 💭 No such thing as a stupid question
Projects
None yet
Development

No branches or pull requests

2 participants