Vulcan
Aerospace Engineering Utilities Built on Janus
Loading...
Searching...
No Matches
vulcan::EarthModel Struct Reference

#include <EarthModel.hpp>

Public Member Functions

constexpr EarthModel (double a_, double f_, double omega_, double mu_)
 Construct an EarthModel with derived quantities computed.

Static Public Member Functions

static constexpr EarthModel WGS84 ()
 WGS84 reference ellipsoid (most common for GPS/navigation).
static constexpr EarthModel Spherical ()
 Spherical Earth (for simplified calculations).

Public Attributes

double a
 Semi-major axis (equatorial radius) [m].
double f
 Flattening (a-b)/a.
double omega
 Angular velocity [rad/s].
double mu
 Gravitational parameter (GM) [m³/s²].
double b
 Semi-minor axis (polar radius) [m].
double e2
 First eccentricity squared: e² = 2f - f²
double e_prime2
 Second eccentricity squared: e'² = e²/(1-e²).

Detailed Description

Ellipsoid parameters for Earth models

Stores the defining parameters of a reference ellipsoid along with derived quantities computed at construction time. This struct is not templated as ellipsoid constants are always numeric (double).

Example:

auto model = EarthModel::WGS84();
double equatorial_radius = model.a; // 6378137.0 m
static constexpr EarthModel WGS84()
WGS84 reference ellipsoid (most common for GPS/navigation).
Definition EarthModel.hpp:45

Constructor & Destructor Documentation

◆ EarthModel()

vulcan::EarthModel::EarthModel ( double a_,
double f_,
double omega_,
double mu_ )
inlineconstexpr

Construct an EarthModel with derived quantities computed.

Member Function Documentation

◆ Spherical()

constexpr EarthModel vulcan::EarthModel::Spherical ( )
inlinestaticconstexpr

Spherical Earth (for simplified calculations).

◆ WGS84()

constexpr EarthModel vulcan::EarthModel::WGS84 ( )
inlinestaticconstexpr

WGS84 reference ellipsoid (most common for GPS/navigation).

Member Data Documentation

◆ a

double vulcan::EarthModel::a

Semi-major axis (equatorial radius) [m].

◆ b

double vulcan::EarthModel::b

Semi-minor axis (polar radius) [m].

◆ e2

double vulcan::EarthModel::e2

First eccentricity squared: e² = 2f - f²

◆ e_prime2

double vulcan::EarthModel::e_prime2

Second eccentricity squared: e'² = e²/(1-e²).

◆ f

double vulcan::EarthModel::f

Flattening (a-b)/a.

◆ mu

double vulcan::EarthModel::mu

Gravitational parameter (GM) [m³/s²].

◆ omega

double vulcan::EarthModel::omega

Angular velocity [rad/s].


The documentation for this struct was generated from the following file: