-
Notifications
You must be signed in to change notification settings - Fork 186
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
Heat flux sign incorrect in mixing and convection example #2959
Comments
Positive flux means cooling (positive means that heat is fluxed upwards, out of the ocean). We may change the sign convention in the future. |
Maybe we should put another note in the example similar to what's in the docs. |
In this example isn't it meant to be heating not cooling to keep it stratified? |
It's intended to cool to cause convection (the name of the example is "wind mixing and convection") but that's just a choice we made. Heating would be fine too and the pedagogical value of the example would be similar. The heat flux would have to be changed in that case to make it realistic. For an idealized experiment we can remove heat at the top, but typically in realistic conditions a significant component of heating is realized by solar insolation which penetrates into the interior. Heating with winds is more challenging numerically (to simulate this problem well you'd need high resolution) which I think was the original motivation to use convection. |
Ah I see, perhaps we should change the comment "surface heating of 200 W m⁻²" to "surface cooling ..." or something similar to clarify then? |
Ha yes! I don't know how that comment got in there... it's definitely surface cooling |
I've been running a model that I based on the ocean wind mixing and convection example and noticed that when I run it for much longer than the example it cools. I think the sign on the heat flux should be negative here:
Oceananigans.jl/examples/ocean_wind_mixing_and_convection.jl
Lines 79 to 88 in cb6d433
As it should be an inward flux right? I might be missing something but running my code again now with the sign flipped to check.
The text was updated successfully, but these errors were encountered: