Included possibility for electron as
target for recombination; Added energy dependent deletions in recombination
This commit is contained in:
@@ -31,10 +31,15 @@ Interaction::Interaction(std::function<double(double)> cross_section,
|
||||
std::shared_ptr<species::Specie> target)
|
||||
: cross_section_(cross_section), target_(target) {}
|
||||
|
||||
// assumes that v_particle >> v_target
|
||||
double Interaction::macroscopicCrossSection(particle::Particle& particle) {
|
||||
const auto x_particle = particle.position();
|
||||
const blitz::TinyVector<double, 3> v_particle =
|
||||
particle.velocity().cartesianEntries();
|
||||
if(!target_->driftVelocity()) {
|
||||
ERROR(target_->name() + ": does not have a drift velocity!");
|
||||
}
|
||||
|
||||
const blitz::TinyVector<double, 3> v_partner =
|
||||
target_->driftVelocity()->driftVelocity(x_particle).cartesianEntries();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user