Orientations
ClimateMachine.Orientations
— ModuleOrientations
Orientation functions:
vertical_unit_vector
altitude
latitude
longitude
gravitational_potential
projection_normal
projection_tangential
for orientations:
Types
ClimateMachine.Orientations.NoOrientation
— TypeNoOrientation
No gravitational force or potential.
ClimateMachine.Orientations.FlatOrientation
— TypeFlatOrientation <: Orientation
Gravity acts in the third coordinate, and the gravitational potential is relative to coord[3] == 0
.
ClimateMachine.Orientations.SphericalOrientation
— TypeSphericalOrientation <: Orientation
Gravity acts towards the origin (0,0,0)
, and the gravitational potential is relative to the surface of the planet.
ClimateMachine.Orientations.sphr_to_cart_vec
— Functionsphr_to_cart_vec(orientation::SphericalOrientation, state::Vars, aux::Vars)
Projects a vector defined based on unit vectors in spherical coordinates to cartesian unit vectors.
ClimateMachine.Orientations.cart_to_sphr_vec
— Functioncart_to_sphr_vec(orientation::SphericalOrientation, state::Vars, aux::Vars)
Projects a vector defined based on unit vectors in cartesian coordinates to a spherical unit vectors.