@@ -34,6 +34,7 @@ void Ions::calc_exb_drift(Grid grid) {
34
34
35
35
for (int64_t iComp = 0 ; iComp < 3 ; iComp++)
36
36
exb_vcgc[iComp] = exb_vcgc[iComp] / bmag2;
37
+
37
38
report.exit (function);
38
39
}
39
40
@@ -44,9 +45,9 @@ void Ions::calc_exb_drift(Grid grid) {
44
45
std::vector<arma_cube> Ions::calc_ion_electron_pressure_gradient (int64_t iIon,
45
46
Grid grid) {
46
47
47
- std::string function = " Ions::elec_ion_pressure_gradient" ;
48
- static int iFunction = -1 ;
49
- report.enter (function, iFunction);
48
+ std::string function = " Ions::elec_ion_pressure_gradient" ;
49
+ static int iFunction = -1 ;
50
+ report.enter (function, iFunction);
50
51
std::vector<arma_cube> pressure_gradient_vcgc;
51
52
arma_cube total_pressure_scgc;
52
53
@@ -201,6 +202,9 @@ void Ions::calc_ion_drift(Neutrals neutrals,
201
202
species[iIon].par_velocity_vcgc [iComp] =
202
203
(species[iIon].par_velocity_vcgc [iComp] + a_par[iComp] * dt) /
203
204
(1 + nuin_sum * dt);
205
+
206
+ // These need to change, since they are dependent on the
207
+ // grid. Closed, dipole fieldlines should NOT do this!!!
204
208
species[iIon].par_velocity_vcgc [iComp].slice (nZ - 1 ).zeros ();
205
209
species[iIon].par_velocity_vcgc [iComp].slice (nZ - 2 ).zeros ();
206
210
species[iIon].par_velocity_vcgc [iComp].slice (nZ - 3 ) =
@@ -238,6 +242,7 @@ void Ions::calc_ion_drift(Neutrals neutrals,
238
242
239
243
} // for iIon
240
244
245
+ // This is the mass weighted total bulk velocity:
241
246
for (int64_t iComp = 0 ; iComp < 3 ; iComp++)
242
247
velocity_vcgc[iComp] = velocity_vcgc[iComp] / sum_rho;
243
248
0 commit comments