PLUTO
|
#include "pluto.h"
Go to the source code of this file.
Macros | |
#define | THETA_V 6140.0 |
#define | THETA_R 85.5 |
#define | ORTHO_PARA_MODE 1 |
Functions | |
static void | MakeZetaTables (double *, double *, int) |
void | GetFuncDum (double T, double *funcdum_val) |
#define ORTHO_PARA_MODE 1 |
Definition at line 13 of file zeta_tables.c.
#define THETA_R 85.5 |
Definition at line 7 of file zeta_tables.c.
#define THETA_V 6140.0 |
Definition at line 6 of file zeta_tables.c.
void GetFuncDum | ( | double | T, |
double * | funcdum_val | ||
) |
Interpolate the value of a function of zetaR
from the table that is used to estimate the value of EH2.
[in] | T | Value of temperature in kelvin. |
[out] | *funcdum_val | Pointer to the value of function of zetaR |
Reference: D'Angelo, G. et al, ApJ 778 2013.
Definition at line 16 of file zeta_tables.c.
|
static |
Compute tables from iterative summation involed to estimate partition function of parahydrogen ( ) and orthohydrogen (
) and their derivatives with respect to temperature. Then further estimate
and finally the function of
that goes into the estimation of EH2. The partition function and its derivative can be written as
where i=0,2,4,...
is even for parahydrogen while i=1,3,5,...
is odd for orthoyhdrogen. One can see that in the limit of zero temperatures, while
. Then
is ill-defined in the low temperature limit since it becomes
0/0
. To avoid this, we rewrite zetaO
by extracting the first term from the summation:
where . Taking the ratio:
The expression on the right (that appears in the computation of ) is now well-behaved and it reproduces the low temperature limit correctly. You can convince yourself by playing with the following MAPLE script
[in] | lnT | Array of Logrithmic values of Gas temperatures from 0.01 K to 10^12 K. |
[in] | nsteps | Number of equal spacings in T. |
[out] | funcdum | The function of zetaR that goes into EH2. |
Reference:
Definition at line 73 of file zeta_tables.c.