jax homme
Parent post for the jax homme project.
Notes:
- Prognostic equations use strong derivatives, but Laplacian is calculated weakly in diffusion, even in
sweqx
. - Element access must be order-agnostic outside of boundary exchange routines!
- Internal grid is constructed
Todo:
- Create topology and gridgen :((
- Create structs
- Implement metric terms + quadrature
- Implement boundary exchange/DSS
- Verify boundary exchange/DSS on sphere
- implement derivatives
- Implement compute_and_apply_rhs for sweqx.
Gridgen notes:
- Ordering within a reference element is
E1
[v1 v2]
E2 [ ] E3
[v3 v4]
E4
- An unstructured grid is a set of pairs
where
are specified as lat-lon points on the sphere.
- Set of transformations is
- Converting this into metric terms for the sphere requires mapping the GLL points in the reference grid to the sphere and taking the product of the consequent Jacobians.
- Requires DSS of metric terms, as mappings from reference element to cube often results in coincident points having different Jacobian values.
- Standard quasi-homogeneous cube has topology (assuming dice labeling) of