Streamer fluid modeling - An overview of ARCoS
1.0
|
Structures and functions for the Poisson solver. More...
Go to the source code of this file.
Classes | |
struct | pois_grid_t |
struct | pois_problem_t |
struct | pois_boundaries_t |
Macros | |
#define | UNCHECK_ER_RZ(grid_, ir_, iz_) |
#define | UNCHECK_EZ_RZ(grid_, ir_, iz_) |
#define | ER_RZ(grid_, ir_, iz_) |
#define | EZ_RZ(grid_, ir_, iz_) |
#define | _POISSON_H_ |
Typedefs | |
typedef struct pois_grid_t | pois_grid_t |
typedef struct pois_problem_t | pois_problem_t |
typedef struct pois_boundaries_t | pois_boundaries_t |
Structures and functions for the Poisson solver.
Definition in file poisson.h.
#define UNCHECK_ER_RZ | ( | grid_, | |
ir_, | |||
iz_ | |||
) |
#define UNCHECK_EZ_RZ | ( | grid_, | |
ir_, | |||
iz_ | |||
) |
The easiest way (and not too performance costly) is to check the boundaries where the field can be calculated.
Note that, if everything is OK, the 0 there that we set should never be used again (and hence any number would be ok (use NaN for debugging)
#define ER_RZ | ( | grid_, | |
ir_, | |||
iz_ | |||
) |
#define EZ_RZ | ( | grid_, | |
ir_, | |||
iz_ | |||
) |
typedef struct pois_grid_t pois_grid_t |
typedef struct pois_problem_t pois_problem_t |
typedef struct pois_boundaries_t pois_boundaries_t |
Note that the electric fields are computed here as the derivatives of , and not minus the derivatives.
This is because our is not actually the electrostatic potential in its standard definition but its opposite. This simplifies the computations since we can use the charge as the source of the Poisson equation.