Vulcan
Aerospace Engineering Utilities Built on Janus
Loading...
Searching...
No Matches
J2.hpp File Reference
#include <janus/janus.hpp>
#include <vulcan/core/Constants.hpp>
#include <vulcan/core/VulcanTypes.hpp>
Include dependency graph for J2.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  vulcan
namespace  vulcan::gravity
namespace  vulcan::gravity::j2

Functions

template<typename Scalar>
Vec3< Scalar > vulcan::gravity::j2::acceleration (const Vec3< Scalar > &r_ecef, double mu=constants::earth::mu, double J2_coeff=constants::earth::J2, double R_eq=constants::earth::R_eq)
 J2 gravitational acceleration (oblate Earth).
template<typename Scalar>
Scalar vulcan::gravity::j2::potential (const Vec3< Scalar > &r_ecef, double mu=constants::earth::mu, double J2_coeff=constants::earth::J2, double R_eq=constants::earth::R_eq)
 J2 gravitational potential.