Units (m or degrees) in DiffusionUniformKh #2069
-
QuestionQuestionHello all, Tests:
Kh_meridional_deg = 2
Kh_zonal_deg = 2
fieldset.add_constant_field("Kh_zonal", Kh_zonal_deg, mesh="spherical")
fieldset.add_constant_field("Kh_meridional", Kh_meridional_deg, mesh="spherical") Results(1) and (2) were I used deg²/s there were not any noticeble difference compared to the results obtained when not applying diffusion. However since I did not find any conversion on the code from the kernel I was not able to determine if the conversion is being done somewhere else. I guess my question is quite straightfoward to developers and users. I appreciate a lot for a response. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Thanks for your question, @sbravo10. When you provide fields with names So approach 3 and 4 are correct |
Beta Was this translation helpful? Give feedback.
Thanks for your question, @sbravo10. When you provide fields with names
Kh_zonal
andKh_meridional
and spherical mesh, then Parcels automatically attaches aUnitConverter
object to them, and all the conversion from meters to degrees happens under the hood (taking into account also the sphericity of the earth).See https://docs.oceanparcels.org/en/latest/examples/tutorial_unitconverters.html for more information
So approach 3 and 4 are correct