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

Routines for the "sprites module.". More...

#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <string.h>
#include "cdr.h"
#include "parameters.h"
#include "photo.h"
#include "proto.h"
#include "rz_array.h"
#include "species.h"
Include dependency graph for sprites.c:

Go to the source code of this file.

Functions

static int var_max_axis (cdr_grid_t *grid, rz_array_t *var, int sign)
 var_max_axis QQQQ
 
double spr_density_at (double altitude)
 The density at a given height, assuming dens = 1.0 at height = 0.0.
 
void spr_init ()
 Initialize the sprite module.
 
void spr_hook (cdr_grid_t *grid)
 Hook to update the variables that depend on the head altitude.
 
void spr_update (double altitude)
 Updates the magnitudes that we are tracking according to a given altitude.
 
double spr_head_altitude (cdr_grid_t *grid, int sign)
 Finds the position of the streamer head by locating the maximum (or -maximum) of the charge along the streamer axis.
 

Variables

double spr_nu_a
 
double spr_nu_d
 
double spr_nu_rt
 
photo_term_tspr_photo_terms
 
photo_term_tphoto_terms
 

Detailed Description

Routines for the "sprites module.".

The idea here is to cope with strongly varying densities along the streamer propagation.

For photoionization we use a "local maximum approximation", i.e. the quenching and absorption lengths for all the volume are taken as those corresponding to the streamer head.

Definition in file sprites.c.

Function Documentation

static int var_max_axis ( cdr_grid_t grid,
rz_array_t var,
int  sign 
)
static

var_max_axis QQQQ

Definition at line 111 of file sprites.c.

Here is the caller graph for this function:

double spr_density_at ( double  altitude)

The density at a given height, assuming dens = 1.0 at height = 0.0.

We are assuming an exponential profile here but in principle any other profile would also do.

Definition at line 36 of file sprites.c.

Here is the caller graph for this function:

void spr_init ( )

Initialize the sprite module.

We have to remember the values of the global variables that we will adapt to altitude.

Definition at line 48 of file sprites.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void spr_hook ( cdr_grid_t grid)

Hook to update the variables that depend on the head altitude.

Has to be called AFTER the charge is calculated.

Definition at line 65 of file sprites.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void spr_update ( double  altitude)

Updates the magnitudes that we are tracking according to a given altitude.

Definition at line 78 of file sprites.c.

Here is the call graph for this function:

Here is the caller graph for this function:

double spr_head_altitude ( cdr_grid_t grid,
int  sign 
)

Finds the position of the streamer head by locating the maximum (or -maximum) of the charge along the streamer axis.

sign has to be +1 for positive streamers and -1 for negative streamers.

Definition at line 101 of file sprites.c.

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

double spr_nu_a

Definition at line 26 of file sprites.c.

double spr_nu_d

Definition at line 26 of file sprites.c.

double spr_nu_rt

Definition at line 26 of file sprites.c.

photo_term_t* spr_photo_terms

Definition at line 27 of file sprites.c.

photo_term_t* photo_terms

Definition at line 35 of file photo.c.