Added Excitation for Electrons:
Rotational J=0->2 Vibrational v=0->1 Electrical various (7 in total, see Paper from Janev 2008 for details)
This commit is contained in:
@@ -17,20 +17,19 @@ class Drift_Base : public Mover_Base {
|
||||
public:
|
||||
Drift_Base(species this_species, Particle_Logger_Base *Logger, Population_Base *Population) : Mover_Base(this_species, Logger, Population) {};
|
||||
|
||||
void move(Particle *movePart, const double &distance_m);
|
||||
void move(Particle *movePart, const double ¯oSigma_m2);
|
||||
|
||||
protected:
|
||||
double get_zNew_m(Particle *movePart, const double &distance_m);
|
||||
double get_zNew_m(Particle *movePart, const double ¯oSigma_m2);
|
||||
virtual void doWallInteraction(Particle *movePart, vec3 *oldLoc_m, double *znew_m) = 0;
|
||||
|
||||
};
|
||||
|
||||
|
||||
inline void Drift_Base::move(Particle *movePart, const double &distance_m) {
|
||||
inline void Drift_Base::move(Particle *movePart, const double ¯oSigma_m2) {
|
||||
vec3 oldLoc_m = movePart->get_Location_m();
|
||||
vec3 newLoc_m = oldLoc_m;
|
||||
|
||||
double znew_m = get_zNew_m(movePart, distance_m);
|
||||
double znew_m = get_zNew_m(movePart, macroSigma_m2);
|
||||
doWallInteraction(movePart, &oldLoc_m, &znew_m);
|
||||
newLoc_m[2] = znew_m;
|
||||
|
||||
@@ -39,15 +38,20 @@ inline void Drift_Base::move(Particle *movePart, const double &distance_m) {
|
||||
Population->increase_density(*movePart, oldLoc_m);
|
||||
}
|
||||
|
||||
inline double Drift_Base::get_zNew_m(Particle *movePart, const double &distance_m) {
|
||||
inline double Drift_Base::get_zNew_m(Particle *movePart, const double ¯oSigma_m2) {
|
||||
double zold_m = movePart->get_Location_m()[2];
|
||||
|
||||
vec3 v_ms = movePart->get_Speed_ms();
|
||||
double vTotAbs_ms = vec3Abs(v_ms);
|
||||
double vForwardAbs_ms = vec3Abs(vec3(0,0,v_ms[2]));
|
||||
double zDir = v_ms[2] < 0 ? -1 : 1;
|
||||
|
||||
double znew_m = zold_m + zDir*vForwardAbs_ms/vTotAbs_ms * distance_m;
|
||||
double zDir = v_ms[2] <= 0 ? -1 : 1;
|
||||
double znew_m;
|
||||
if (macroSigma_m2 == 0) {
|
||||
znew_m = (zDir == -1) ? Katrin_Geo::get_z_RW_m() : Katrin_Geo::get_z_WGTSend_m();
|
||||
} else {
|
||||
double distance_m = 1/macroSigma_m2;
|
||||
znew_m = zold_m + zDir*vForwardAbs_ms/vTotAbs_ms * distance_m;
|
||||
}
|
||||
return (znew_m);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user