WarpTwin
Documentation for WarpTwin models and classes.
Loading...
Searching...
No Matches
magneticFieldUtils.hpp File Reference
#include <string>
#include <cmath>
#include <fstream>
#include <sstream>
#include <mutex>
#include "utils/fileutils.h"
#include "core/clockwerkerrors.h"

Go to the source code of this file.

Namespaces

namespace  warptwin
 Class to propagate CR3BP dynamics in characteristic units.

Functions

int warptwin::readWMMCoefficientsFile (const std::string &filename, double g[NUMBER_OF_READ_COEFFICIENTS], double h[NUMBER_OF_READ_COEFFICIENTS], double gdot[NUMBER_OF_READ_COEFFICIENTS], double hdot[NUMBER_OF_READ_COEFFICIENTS], double &epoch)
 Reads magnetic field coefficients for WMM from a file and stores them in provided matrices.
double warptwin::muWMM (double input)
 Unary functional input to the associated Legendre function specific to the WMM model. This is typically denoted as mu or t in literature such as Winch et al. 2005 or Heiskanen and Moritz 1967, respectively.
double warptwin::dmuWMM (double input)
 Unary functional input to the associated Legendre function specific to the WMM modelm, derivative w.r.t. the functional's input. This is typically denoted as mu or t in literature such as Winch et al. 2005 or Heiskanen and Moritz 1967, respectively.
int warptwin::schmidtSemiNormLegendreWMM (int N, double x, double *Pcup, double *dPcup)
 Computes the Schmidt Semi-Normalized Legendre function outputs provided the maximum degree (N) as a positive integer. The formula's require that N > 0, and abs(input) <= 1.0.
int warptwin::schmidtSemiNormLegendreSingularityWMM (int N, double x, double *PcupS)
 Computes the Schmidt Semi-Normalized Legendre function outputs provided the maximum degree (N) as a positive integer when the position is at a singularity. The formula's require that N > 0, and abs(input) <= 1.0.

Variables

const int warptwin::MAX_HARMONIC_COEFFICIENTS = 12
const int warptwin::NUMBER_OF_READ_COEFFICIENTS = (MAX_HARMONIC_COEFFICIENTS*(MAX_HARMONIC_COEFFICIENTS+1))/2 + MAX_HARMONIC_COEFFICIENTS