Streamer fluid modeling - An overview of ARCoS
1.0
Main Page
Related Pages
Data Types List
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
include
poisson.h
Go to the documentation of this file.
1
5
#ifndef _POISSON_H_
6
7
#include "
cstream.h
"
8
#include "
rz_array.h
"
9
10
#ifndef _GRID_H_
11
#include "
grid.h
"
12
#endif
13
14
typedef
struct
pois_grid_t
pois_grid_t
;
15
16
struct
pois_grid_t
{
17
RECT_COORDS
;
18
LEAF_FIELDS
(
pois_grid_t
);
19
int
ext_bound
;
20
21
rz_array_t
*
phi
;
22
rz_array_t
*
charge
;
23
rz_array_t
*
error
;
24
};
25
30
typedef
struct
pois_problem_t
pois_problem_t
;
31
32
struct
pois_problem_t
{
33
int
max_level
;
34
int
extra_levels
;
35
double
max_error
;
36
37
int
bnd_right
;
38
int
bnd_top
;
39
int
bnd_bottom
;
40
};
41
42
typedef
struct
pois_boundaries_t
{
43
REAL
*
left
, *
right
, *
top
, *
bottom
;
44
int
r
,
z
;
45
}
pois_boundaries_t
;
46
54
#define UNCHECK_ER_RZ(grid_, ir_, iz_) \
55
(((RZ(grid_->phi, (ir_) + 1, iz_) - RZ(grid_->phi, ir_, iz_)) \
56
/ dr[grid_->level]))
57
58
#define UNCHECK_EZ_RZ(grid_, ir_, iz_) \
59
(((RZ(grid_->phi, ir_, (iz_) + 1) - RZ(grid_->phi, ir_, iz_)) \
60
/ dz[grid_->level]))
61
67
#define ER_RZ(grid_, ir_, iz_) \
68
(((ir_) < ((grid_)->r1 + 1) && ((ir_) > ((grid_)->r0 - 2)))? \
69
UNCHECK_ER_RZ(grid_, ir_, iz_): 0)
70
71
#define EZ_RZ(grid_, ir_, iz_) \
72
(((iz_) < ((grid_)->z1 + 1) && ((iz_) > ((grid_)->z0 - 2)))? \
73
UNCHECK_EZ_RZ(grid_, ir_, iz_): 0)
74
75
#define _POISSON_H_
76
#endif
Generated on Fri Jul 4 2014 15:40:20 for Streamer fluid modeling - An overview of ARCoS by
1.8.2