Streamer fluid modeling - An overview of ARCoS
1.0
|
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"
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_t * | reactions_list = NULL |
double | z_cutoff |
double | species_written [20] |
Functions to handle the "reaction" part of convection-diffusion-reaction equation.
Header file to define reactions.
Definition in file reaction.c.
#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.
|
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.
void react_add | ( | reaction_t * | react | ) |
Adds a given reaction to the reaction list.
Definition at line 48 of file reaction.c.
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.
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.
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.
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.
void react_init | ( | ) |
Initializes the list of reactions.
Definition at line 221 of file reaction.c.
reaction_t* reactions_list = NULL |
Definition at line 20 of file reaction.c.
double species_written[20] |
Definition at line 22 of file reaction.c.