|
Vulcan
Aerospace Engineering Utilities Built on Janus
|
Classes | |
| struct | GravityCoefficients |
| Gravity model coefficients container. More... | |
Functions | |
| const GravityCoefficients & | default_coefficients () |
| Default Earth model with zonal harmonics only. | |
| template<typename Scalar> | |
| Scalar | legendre_Pnm (int n, int m, const Scalar &x) |
| Compute associated Legendre polynomial P_nm(x). | |
| template<typename Scalar> | |
| Vec3< Scalar > | acceleration (const Vec3< Scalar > &r_ecef, const GravityCoefficients &coeffs=default_coefficients()) |
| Spherical harmonic gravitational acceleration. | |
| template<typename Scalar> | |
| Scalar | potential (const Vec3< Scalar > &r_ecef, const GravityCoefficients &coeffs=default_coefficients()) |
| Spherical harmonic gravitational potential. | |
| Vec3< Scalar > vulcan::gravity::spherical_harmonics::acceleration | ( | const Vec3< Scalar > & | r_ecef, |
| const GravityCoefficients & | coeffs = default_coefficients() ) |
Spherical harmonic gravitational acceleration.
General expansion using partial derivatives in spherical coordinates, then transformed to ECEF.
| Scalar | double or casadi::MX |
| r_ecef | Position in ECEF [m] |
| coeffs | Gravity coefficients (C, S, n_max) |
|
inline |
Default Earth model with zonal harmonics only.
| Scalar vulcan::gravity::spherical_harmonics::legendre_Pnm | ( | int | n, |
| int | m, | ||
| const Scalar & | x ) |
Compute associated Legendre polynomial P_nm(x).
Uses recurrence relations, fully symbolic-compatible. Loop bounds are structural (integers), so this works in symbolic mode.
| Scalar | double or casadi::MX |
| n | Degree |
| m | Order |
| x | Argument (typically sin(latitude)) |
| Scalar vulcan::gravity::spherical_harmonics::potential | ( | const Vec3< Scalar > & | r_ecef, |
| const GravityCoefficients & | coeffs = default_coefficients() ) |
Spherical harmonic gravitational potential.
U = μ/r Σ Σ (R_eq/r)^n [C_nm cos(mλ) + S_nm sin(mλ)] P_nm(sin φ)
| Scalar | double or casadi::MX |
| r_ecef | Position in ECEF [m] |
| coeffs | Gravity coefficients (C, S, n_max) |