Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

argon.c File Reference

Argon thermodynamic functions. More...

#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include "../../util/source/compiler.h"
#include "../../util/source/useful.h"
#include "argon.h"

Defines

#define R0   8.3140
#define MW_Ar   40.0
#define MW_N2   28.0
#define R_Ar   (R0 / MW_Ar * 1000.0)
#define R_N2   (R0 / MW_N2 * 1000.0)
#define WARNINGS   0
#define DEBUG_ARGON   0
#define RIZKALLA   1
#define T_MAX   80000.0
#define NS   4
#define Ar   0
#define Arp   1
#define em   2
#define N2   3
#define p0   101325.0
#define TOL   0.001

Functions

int argon_er (double e, double rho, double f_Ar, double f_N2, int use_T_guess, double *p, double *a, double *T)
int argon_e_from_T (double rho_mix, double T, double f_Ar, double f_N2, double *e_mix, double *h_mix, double sigma[])
int argon_init (void)

Variables

double arg_G_RT [NS]
double arg_H_RT [NS]
double arg_S_R [NS]
double arg_a [NS][8][5]
int argon_initialized


Detailed Description

Argon thermodynamic functions.

To provide reasonably fast equation-of-state routines for argon gas at temperatures high enough to cause ionisation. A diluent D is also included as part of the gas mixture. It has been assumed that the diluent is *inert* nitrogen.

Author:
Peter Jacobs
Version:
1.0 : 11-Mar-97 : basic code

1.1 : 16-Mar-97 : code adapted from n2eq.c

1.2 : 20-Mar-97 : adjust Rizkalla's coefficients to have Tref = 0 K

1.3 : 21-Mar-97 : add a 4th range to Rizkalla polynomials replace range 3 for argon atoms and N2

1.4 : 22-Mar-97 : improved the initial guess for T

2.0 : 13-Apr-97 : optional initial guess for T

3.0 : 16-May-97 : rename all global varaibles to avoid conflict with the variables from other modules (n2eq.c)

Reference...

R. K. Prabhu & W. D. Erickson (1988) A rapid method for the computation of equilibrium chemical composition of air to 15000 K. NASA Technical Paper 2792


Generated on Tue Oct 25 10:24:13 2005 for CFCFD by  doxygen 1.4.4