Streamer fluid modeling - An overview of ARCoS  1.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions
react_table.c File Reference

Handles the communication between the main code and the reaction tables. More...

#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include "react_table.h"
Include dependency graph for react_table.c:

Go to the source code of this file.

Functions

void react_table_read (char *filename, react_table *r)
 Reads a reaction rate table from file filename and stores the table in the form of a 'react_table' at location r.
 
void react_table_lookup (react_table *r, double e, double *ra)
 Computes an approximation for the reaction rate.
 

Detailed Description

Handles the communication between the main code and the reaction tables.

Rather than hardcoding a different function for each possible dependence of the reaction-rate on the electric field, these rate/field dependencies are written in a table. This allows reactions to be added/changed/removed without recompiling the source.

Definition in file react_table.c.

Function Documentation

void react_table_read ( char *  filename,
react_table r 
)

Reads a reaction rate table from file filename and stores the table in the form of a 'react_table' at location r.

Definition at line 73 of file react_table.c.

Here is the caller graph for this function:

void react_table_lookup ( react_table r,
double  e,
double *  ra 
)

Computes an approximation for the reaction rate.

Computes an approximation for the reaction rate at field-strength e by interpolating reaction rates from lookup table r. Stores the result in ra.

Definition at line 120 of file react_table.c.