-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove coriolis forces from the cache
- Loading branch information
1 parent
002b4f3
commit 39ab56b
Showing
5 changed files
with
77 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
import ClimaCore.Geometry | ||
|
||
function f³( | ||
coord::Geometry.LatLongZPoint, | ||
global_geom::Geometry.DeepSphericalGlobalGeometry, | ||
params, | ||
) | ||
Ω = CAP.Omega(params) | ||
CT3( | ||
CT123( | ||
Geometry.LocalVector( | ||
Geometry.Cartesian123Vector(zero(Ω), zero(Ω), 2 * Ω), | ||
global_geom, | ||
coord, | ||
), | ||
), | ||
) | ||
end | ||
|
||
function f¹²( | ||
coord::Geometry.LatLongZPoint, | ||
global_geom::Geometry.DeepSphericalGlobalGeometry, | ||
params, | ||
) | ||
Ω = CAP.Omega(params) | ||
CT12( | ||
CT123( | ||
Geometry.LocalVector( | ||
Geometry.Cartesian123Vector(zero(Ω), zero(Ω), 2 * Ω), | ||
global_geom, | ||
coord, | ||
), | ||
), | ||
) | ||
end | ||
|
||
# Shallow sphere | ||
function f³(coord::Geometry.LatLongZPoint, global_geom, params) | ||
Ω = CAP.Omega(params) | ||
CT3(Geometry.WVector(2 * Ω * sind(coord.lat))) | ||
end | ||
|
||
# Shallow cartesian | ||
function f³(coord, global_geom, params) | ||
f = CAP.f_plane_coriolis_frequency(params) | ||
CT3(Geometry.WVector(f)) | ||
end | ||
|
||
f¹²(coord::Geometry.LatLongZPoint, global_geom, params) = | ||
error("Not supported for $coord, $global_geom.") | ||
f¹²(coord, global_geom, p::CartesianCoriolisParams) = | ||
error("Not supported for $coord, $global_geom.") | ||
|
||
Φ(g, ᶠz) = g * z |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters