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 do we need cubic_profile in the forcing functions? #1

Open
navidcy opened this issue Mar 1, 2023 · 5 comments
Open

Why do we need cubic_profile in the forcing functions? #1

navidcy opened this issue Mar 1, 2023 · 5 comments

Comments

@navidcy
Copy link
Collaborator

navidcy commented Mar 1, 2023

E.g., here:

@inline function wind_stress_coefficients(south_north_limit)
below_45_coeffs = cubic_profile(-south_north_limit, -45.0, 0.0, 0.2, 0.0, 0.0) ./ 1000
below_15_coeffs = cubic_profile(-45.0, -15.0, 0.2, -0.1, 0.0, 0.0) ./ 1000
below_00_coeffs = cubic_profile(-15.0, 0.0, -0.1, -0.02, 0.0, 0.0) ./ 1000
above_00_coeffs = cubic_profile(0.0, 15.0, -0.02, -0.1, 0.0, 0.0) ./ 1000
above_15_coeffs = cubic_profile(15.0, 45.0, -0.1, 0.1, 0.0, 0.0) ./ 1000
above_45_coeffs = cubic_profile(45.0, south_north_limit, 0.1, 0.0, 0.0, 0.0) ./ 1000
return (below_45_coeffs, below_15_coeffs, below_00_coeffs, above_00_coeffs, above_15_coeffs, above_45_coeffs)
end

cc @glwagner

@simone-silvestri
Copy link
Owner

simone-silvestri commented Mar 2, 2023

I decided to use a piecewise cubic function for the wind stress (and salinity flux). I guess we could use a parabolic one also

@navidcy
Copy link
Collaborator Author

navidcy commented Mar 2, 2023

Is it constant values in between?

@glwagner
Copy link
Collaborator

glwagner commented Mar 2, 2023

How about

τ₀ * (cos(3π * φ/Δφ) - exp(-φ^2 / 2Δφₑ^2))

?

@navidcy
Copy link
Collaborator Author

navidcy commented Mar 2, 2023

I think that should work. Perhaps we should ensure that wind stress goes to zero at the North-South latitudinal boundaries otherwise you get Kelvin waves and circulation at the boundaries.

@glwagner
Copy link
Collaborator

glwagner commented Mar 2, 2023

Ah nice. Then Δφ is the total latitudinal extent of the domain. Δφₑ is the width of the equatorial bump, typically about 10 degrees latitude. We can also add a parameter to express the relative magnitude of the equatorial bump.

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

No branches or pull requests

3 participants