WarpTwin
Documentation for WarpTwin models and classes.
Loading...
Searching...
No Matches
sphericalharmonicsutils.h File Reference
#include <string>
#include "core/CartesianVector.hpp"
#include "core/mathmacros.h"

Go to the source code of this file.

Namespaces

namespace  warptwin
 Class to propagate CR3BP dynamics in characteristic units.

Functions

int warptwin::readGravityCoefficientsFile (const std::string &filename, double cbar[NMAX_SPHERICAL_HARMONICS+1][NMAX_SPHERICAL_HARMONICS+1], double sbar[NMAX_SPHERICAL_HARMONICS+1][NMAX_SPHERICAL_HARMONICS+1], long int &n, long int &m)
 Reads gravitational coefficients from a file and stores them in provided matrices.
void warptwin::neumannNormalization (double cbar[NMAX_SPHERICAL_HARMONICS+1][NMAX_SPHERICAL_HARMONICS+1], double sbar[NMAX_SPHERICAL_HARMONICS+1][NMAX_SPHERICAL_HARMONICS+1], double c[NMAX_SPHERICAL_HARMONICS+1][NMAX_SPHERICAL_HARMONICS+1], double s[NMAX_SPHERICAL_HARMONICS+1][NMAX_SPHERICAL_HARMONICS+1])
 Applies Neumann normalization to spherical harmonic coefficients.
int warptwin::sphericalHarmonics (long N, long M, double r, double phi, double theta, double Re, double K, double C[NMAX_SPHERICAL_HARMONICS+1][NMAX_SPHERICAL_HARMONICS+1], double S[NMAX_SPHERICAL_HARMONICS+1][NMAX_SPHERICAL_HARMONICS+1], clockwerk::CartesianVector< 3 > &grad_v)
 Computes the gradient of the gravitational potential using spherical harmonics.
int warptwin::legendre (long N, long M, double x, double P[NMAX_SPHERICAL_HARMONICS+1][NMAX_SPHERICAL_HARMONICS+1], double sd_p[NMAX_SPHERICAL_HARMONICS+1][NMAX_SPHERICAL_HARMONICS+1])
 Calculates the associated Legendre functions and their derivatives.
double warptwin::fact (long n)
 Computes the factorial of a non-negative integer.
double warptwin::oddfact (long n)
 Computes the double factorial of an odd integer.

Variables

const int warptwin::NMAX_SPHERICAL_HARMONICS = 18