Major changes:
- Added individul operators for species and better selecting process. - Switched to C arrays for main loop operations and calculating array indizes using knowledge of binning instead of doing sorted search - Added Recombination - Reworked elastic scattering kinematics - Added inelastic scattering kinematics
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
//
|
||||
// hardsphere_elastic.h
|
||||
// mc_electron
|
||||
//
|
||||
// Created by Christian Reiling on 08.05.19.
|
||||
// Copyright © 2019 Christian Reiling. All rights reserved.
|
||||
//
|
||||
|
||||
#ifndef hardsphere_elastic_h
|
||||
#define hardsphere_elastic_h
|
||||
|
||||
#include "random_operations.h"
|
||||
#include "constants.h"
|
||||
|
||||
|
||||
class Hardsphere_elasticScattering {
|
||||
double r_m;
|
||||
|
||||
public:
|
||||
Hardsphere_elasticScattering(double r_m) {this->r_m = r_m;}
|
||||
|
||||
double get_TCS() {return(4*pi*r_m*r_m);}
|
||||
double get_SDCS() {return(r_m*r_m);}
|
||||
|
||||
double roll_theta(UniRNG *rngUni) {return (pi*rngUni->random());}
|
||||
};
|
||||
|
||||
|
||||
#endif /* hardsphere_elastic_h */
|
||||
Reference in New Issue
Block a user