Files
katrin-plasma/src/mc_electron/tcs_container.hpp
T
Christian 79bf420f8d 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
2019-05-27 13:51:32 +02:00

39 lines
837 B
C++

//
// tcs_container.hpp
// mc_electron
//
// Created by Christian Reiling on 20.05.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef tcs_container_hpp
#define tcs_container_hpp
#include "logScale.h"
#include "edge_container.h"
#include <string>
class TCS_Container {
double *data;
Log_Scale E_scale;
public:
~TCS_Container() {
delete[] data;
};
TCS_Container(double E_min_eV, double E_max_eV, int number_bins, std::string load_path) {
E_scale = Log_Scale(E_min_eV, E_max_eV, number_bins);
calc_data(load_path); //calc, whereas, load_path contains point with exact values for cross section.
}
double get_value(double E_eV);
private:
void calc_data(const std::string &load_path);
double calc_bin_value(const int &bin, Edge_Container<dim1Map> *E1D);
};
#endif /* tcs_container_hpp */