File amjuel_data.cxx

File amjuel_data.cxx#

namespace hermes#

Functions

static BoutReal eval_amjuel_nT_fit(BoutReal T, BoutReal n, const std::vector<std::vector<BoutReal>> &coeff_table)#

Helper functions for evaluating Amjuel fits.

Evaluate an Amjuel double polynomial fit in n and T, given a table of coefficients (see page 20 of amjuel.pdf).

Parameters:
  • T – temperature in eV

  • n – number density in m^-3

  • coeff_table – polynomial fit coefficients in a vector-of-vectors (outer index T, inner index n)

Returns:

BoutReal the fit in SI, units m^3/s, or eV m^3/s for energy loss

static BoutReal eval_amjuel_T_fit(BoutReal T, const std::vector<BoutReal> &coeff_table)#

Evaluate an Amjuel single polynomial fit in T, given a table of coefficients (see page 20 of amjuel.pdf).

Parameters:
  • T – temperature in eV

  • coeff_table – a table of polynomial fit coefficients (index T)

Returns:

BoutReal the fit in SI, units m^3/s, or eV m^3/s for energy loss