Skip to content

Commit

Permalink
Merge branch 'fix.electron.energy.analyze' into 'master.dev'
Browse files Browse the repository at this point in the history
Fixed analyze for electron energy: Consider the energy of a real single...

See merge request piclas/piclas!580
  • Loading branch information
scopplestone committed Dec 29, 2021
2 parents b5f11c6 + 0eb7917 commit 652aaa5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/particles/analyze/particle_analyze_tools.f90
Original file line number Diff line number Diff line change
Expand Up @@ -679,8 +679,8 @@ SUBROUTINE CalculateElectronEnergyCell()
! Determine kinetic energy
Ekin = CalcEkinPart(iPart)
ElectronAverageEnergyCell(ElemID) = ElectronAverageEnergyCell(ElemID) + Ekin
ElectronMinEnergyCell(ElemID) = MIN(ElectronMinEnergyCell(ElemID),Ekin)
ElectronMaxEnergyCell(ElemID) = MAX(ElectronMaxEnergyCell(ElemID),Ekin)
ElectronMinEnergyCell(ElemID) = MIN(ElectronMinEnergyCell(ElemID),Ekin/WeightingFactor) ! Consider energy of single e-
ElectronMaxEnergyCell(ElemID) = MAX(ElectronMaxEnergyCell(ElemID),Ekin/WeightingFactor) ! Consider energy of single e-
END IF ! ParticleInside
END DO ! iPart

Expand Down

0 comments on commit 652aaa5

Please sign in to comment.