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

Functions to handle the "reaction" part of convection-diffusion-reaction equation. More...

#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include "cdr.h"
#include "grid.h"
#include "parameters.h"
#include "photo.h"
#include "proto.h"
#include "react_table.h"
#include "species.h"
#include "reaction.h"
Include dependency graph for reaction.c:

Go to the source code of this file.

Macros

#define EPS_EABS   1e-6
 

Functions

static void fill_react_gaps ()
 Fill in the gaps that we left in the definitions.
 
int find_species_by_name (const char *spec_name)
 Returns the position in the species-array of a given species.
 
void react_add (reaction_t *react)
 Adds a given reaction to the reaction list.
 
void react_apply (reaction_t *react, cdr_grid_t *grid, int overwrite)
 Applies a reaction to the given grid.
 
void react_apply_r (reaction_t *react, cdr_grid_t *grid, int overwrite)
 Recursive version of react_apply.
 
void zero_fill (cdr_grid_t *grid)
 Sets the d_dens field of a grid to zero.
 
void react_apply_all (cdr_grid_t *grid)
 Applies all reactions to the given grid and his descendants.
 
void react_init ()
 Initializes the list of reactions.
 

Variables

reaction_treactions_list = NULL
 
double z_cutoff
 
double species_written [20]
 

Detailed Description

Functions to handle the "reaction" part of convection-diffusion-reaction equation.

Header file to define reactions.

Definition in file reaction.c.

Macro Definition Documentation

#define EPS_EABS   1e-6

Below this electric field, we do not waste time calculating anything. Besides, this avoid NaNs for eabs == 0.

Definition at line 231 of file reaction.c.

Function Documentation

static void fill_react_gaps ( )
static

Fill in the gaps that we left in the definitions.

Definition at line 215 of file reaction.c.

int find_species_by_name ( const char *  spec_name)

Returns the position in the species-array of a given species.

Returns -1 if not found.

Definition at line 28 of file reaction.c.

Here is the caller graph for this function:

void react_add ( reaction_t react)

Adds a given reaction to the reaction list.

Definition at line 48 of file reaction.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void react_apply ( reaction_t react,
cdr_grid_t grid,
int  overwrite 
)

Applies a reaction to the given grid.

Definition at line 69 of file reaction.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void react_apply_r ( reaction_t react,
cdr_grid_t grid,
int  overwrite 
)

Recursive version of react_apply.

Definition at line 167 of file reaction.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void zero_fill ( cdr_grid_t grid)

Sets the d_dens field of a grid to zero.

Definition at line 180 of file reaction.c.

Here is the caller graph for this function:

void react_apply_all ( cdr_grid_t grid)

Applies all reactions to the given grid and his descendants.

Definition at line 192 of file reaction.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void react_init ( )

Initializes the list of reactions.

Definition at line 221 of file reaction.c.

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

reaction_t* reactions_list = NULL

Definition at line 20 of file reaction.c.

double z_cutoff

Definition at line 36 of file cdr.c.

double species_written[20]

Definition at line 22 of file reaction.c.