O P A R - Open Architecture Particle in Cell Simulation - Version 3.0
Plasma simulations with dust particles
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
•
All
Classes
Files
Functions
Variables
Friends
Macros
Groups
Pages
wall.h
Go to the documentation of this file.
1
6
#ifndef WALL_H
7
#define WALL_H
8
#include "
task.h
"
9
#include "
species.h
"
10
#include <vector>
11
#include <valarray>
12
#include <string>
13
#include <sstream>
14
#define ID_WALL "Wall"
15
//---------------------------------------------------------------------------------------------------------------------
16
class
Geometry
;
17
30
class
Wall
:
public
Task
{
31
private
:
33
std::string strGeometry;
34
protected
:
36
Geometry
*
pGeom
;
38
std::vector<WSpecies>
species
;
40
int
tstep
;
42
int
tstepn
;
44
Position
X
;
46
Velocity
V
;
47
#ifdef ONE_DIMENSIONAL
48
49
double
Rd;
50
#endif
51
52
int
Nx
;
54
int
Ny
;
56
int
Nz
;
58
double
dx
;
59
#ifndef ONE_DIMENSIONAL
60
61
double
dy
;
62
#ifdef THREE_DIMENSIONAL
63
64
double
dz
;
65
#endif
66
67
int
number_d
;
68
#endif
69
70
double
dk
;
72
double
dt
;
74
double
m
;
76
double
N
;
78
double
Vmp
;
80
double
Vm
;
82
double
np
;
84
double
T
;
86
double
cs
;
88
double
je
;
90
double
ji
;
92
double
nop_e
;
94
double
nop_i
;
96
int
jmax
;
98
int
r
;
100
int
rz
;
102
int
ds
;
104
int
Rg
;
106
int
Rv
;
108
double
Vol
;
110
double
Volz
;
111
double
Vol1,Vol2,Vol3,d,b1,b2;
112
public
:
113
double
* px;
115
int
C1
[4000];
117
int
C2
[4000];
119
int
C3
[4000];
121
int
C4
[4000];
123
double
cdust
[20];
125
double
cdust_e
[20];
127
double
cdust_i
[20];
128
double
deb;
130
Wall
() :
pGeom
(NULL), deb(0.0){}
132
virtual
~Wall
() {}
134
virtual
std::string
GetClassName
()
const
{
return
ID_WALL; }
136
void
AddSpecies
(
Species
* pS) {
species
.push_back(
WSpecies
(pS));}
137
virtual
void
Init
();
138
virtual
bool
Execute
();
139
virtual
double
GetChargeDust
(
int
k);
140
virtual
double
VelocityGeneration
(
double
v);
141
virtual
void
InputVeloDistribution
(
Velocity
V
,
double
cs
,
double
Vn,
int
id
);
142
virtual
void
OutputVeloDistribution
(
int
id
);
143
virtual
std::string ParseFileName (std::string strFile,
int
t,
int
tmax);
144
// Serialization
145
protected
:
146
virtual
PARAMETERMAP*
MakeParamMap
(PARAMETERMAP* pm = NULL);
147
};
148
#endif
149
150
151
Generated by
1.8.1.1