clean up KARL from rep, all in new rep katrin/karl

This commit is contained in:
Jonas Kellerer
2020-10-31 15:47:01 +01:00
parent 44b8401131
commit e9aca48e36
604 changed files with 32 additions and 4660396 deletions
@@ -0,0 +1,30 @@
\contentsline {section}{\numberline {1}Introduction}{3}
\contentsline {section}{\numberline {2}Preliminary Work}{3}
\contentsline {subsection}{\numberline {2.1}Neutral gas flow}{3}
\contentsline {subsection}{\numberline {2.2}Atomic and molecular processes}{4}
\contentsline {subsection}{\numberline {2.3}Previous fluid simulations}{5}
\contentsline {section}{\numberline {3}Description of the Project}{5}
\contentsline {subsection}{\numberline {3.1}Project Details}{5}
\contentsline {subsubsection}{\numberline {3.1.1}Plasma potential as a function of the rear wall voltage}{7}
\contentsline {subsubsection}{\numberline {3.1.2}Dielectric properties of the rear wall}{8}
\contentsline {subsubsection}{\numberline {3.1.3}Time dependent rear wall voltage}{9}
\contentsline {subsection}{\numberline {3.2}Review Processes}{9}
\contentsline {section}{\numberline {4}Numerical Methods and Algorithms}{9}
\contentsline {subsection}{\numberline {4.1}ACRONYM PiC Code}{9}
\contentsline {subsubsection}{\numberline {4.1.1}Main Algorithms}{10}
\contentsline {subsubsection}{\numberline {4.1.2}Parallelization}{11}
\contentsline {subsubsection}{\numberline {4.1.3}Extension to the boundary model of ACRONYM}{11}
\contentsline {subsection}{\numberline {4.2}The KARL code}{11}
\contentsline {section}{\numberline {5}Computer Resources}{12}
\contentsline {subsection}{\numberline {5.1}Code performance and workflow}{12}
\contentsline {subsubsection}{\numberline {5.1.1}Packages, Libraries and Compiler}{13}
\contentsline {subsubsection}{\numberline {5.1.2}Scaling}{13}
\contentsline {subsection}{\numberline {5.2}Justification of resources requested}{14}
\contentsline {section}{\numberline {6}Resource Management and Work Schedule}{14}
\contentsline {subsection}{\numberline {6.1}Resource management}{14}
\contentsline {subsection}{\numberline {6.2}Work schedule}{15}
\contentsline {subsubsection}{\numberline {6.2.1}Rear wall voltage}{15}
\contentsline {subsubsection}{\numberline {6.2.2}Dielectric properties}{15}
\contentsline {subsubsection}{\numberline {6.2.3}Temporal evolution}{16}
\contentsline {section}{\numberline {7}Key Personnel and Experiences}{16}
\contentsline {section}{\textbf {Bibliography}}{17}
View File
View File
@@ -0,0 +1 @@
\babel@toc {english}{}
@@ -0,0 +1 @@
\babel@toc {english}{}
Binary file not shown.
-1
View File
@@ -1 +0,0 @@
include $(HOMEBASE)/src/makeinclude/first.mak
-29
View File
@@ -1,29 +0,0 @@
include $(HOMEBASE)/src/makeinclude/include.mak
OFLAGS = $(X_OFLAGS)
CXXFLAGS = $(OFLAGS) $(X_INC)
# Auf Solaris muss blitz mit dem Sun Studio Compiler gebaut werden
# der ist zwar scheisse, funktioniert mit blitz aber. :)
ZIP = unzip
NAME = blitz-master
all:
$(ZIP) ../$(NAME).zip
cd $(NAME) && autoreconf -fiv && autoconf && automake --add-missing
$(NAME)/configure --prefix=$(HOMEBASE)/src/blitz/$(X_OSTYPE)/blitz/ --includedir=$(HOMEBASE)/include/ --libdir=$(HOMEBASE)/lib/$(X_OSTYPE)/
$(MAKE) -C $(NAME) lib
install:
make install
rm -rf $(HOMEBASE)/lib/$(X_OSTYPE)/pkgconfig
clean:
-rm -rf $(HOMEBASE)/include/blitz
-rm -rf $(HOMEBASE)/include/random
-rm -rf $(HOMEBASE)/lib/$(X_OSTYPE)/libblitz.a
-rm -rf $(HOMEBASE)/lib/$(X_OSTYPE)/libblitz.la
$(X_CLEAN)
@@ -1,94 +0,0 @@
//
// BED_SDCS_calculator.cpp
// cross_section_calculator
//
// Created by Christian Reiling on 07.05.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#include "BED_SDCS_calculator.hpp"
double BED_SDCS_calculator::minE_eV = 15;
double BED_SDCS_calculator::maxE_eV = 2e4;
double BED_SDCS_calculator::pointsPer_initE_Order = 50;
double BED_SDCS_calculator::pointsPer_secE_Order = 10;
std::string BED_SDCS_calculator::defaultExportPath = "/Users/ChristianReiling/Documents/Masterarbeit/katrin-plasma/src/mc_electron/data/";
void BED_SDCS_calculator::set_Parameters (double new_minE_eV, double new_maxE_eV, double new_pointsPer_initE_Order, double new_pointsPer_secE_Order) {
set_minE_eV(new_minE_eV);
set_maxE_eV (new_maxE_eV);
set_pointsPer_initE_Order (new_pointsPer_initE_Order);
set_pointsPer_secE_Order (new_pointsPer_secE_Order);
}
void BED_SDCS_calculator::set_defaultExportPath(std::string new_defaultExportPath) {
if (new_defaultExportPath.back() != '/') {
new_defaultExportPath = new_defaultExportPath + '/';
}
defaultExportPath = new_defaultExportPath;
}
Edge2D_FuncContainer calc_SDCS_Edge() {
Edge2D_FuncContainer BED_edge_SDCS;
BED_edge_SDCS.get_Ionization_fromFunction(BED_eT2_Ionization::calc_SDCS, 15, 20000, 50, 10);
BED_edge_SDCS.add_ankerpoint(EionT2_eV, 0,0);
double xmin =EionT2_eV+1e-4;
double ymin = (xmin-EionT2_eV)/2;
BED_edge_SDCS.add_ankerpoint(xmin, ymin,BED_eT2_Ionization::calc_SDCS(xmin,ymin));
return BED_edge_SDCS;
}
Average2D_FuncContainer calc_SDCS_Average() {
Edge2D_FuncContainer BED_edge_SDCS = calc_SDCS_Edge();
Average2D_FuncContainer BED_average_SDCS = Average2D_FuncContainer(BED_edge_SDCS);
return BED_average_SDCS;
}
Stacked2D_FuncContainer calc_SDCS_Stacked() {
Average2D_FuncContainer BED_average_SDCS = calc_SDCS_Average();
Stacked2D_FuncContainer BED_stacked_SDCS = Stacked2D_FuncContainer(BED_average_SDCS);
return BED_stacked_SDCS;
}
void BED_SDCS_calculator::export_SDCS_Edge (std::string export_path) {
Edge2D_FuncContainer BED_edge_SDCS = calc_SDCS_Edge();
BED_edge_SDCS.exportToFile(export_path);
}
void BED_SDCS_calculator::export_SDCS_Average (std::string export_path) {
Average2D_FuncContainer BED_average_SDCS = calc_SDCS_Average();
BED_average_SDCS.exportToFile(export_path);
}
void BED_SDCS_calculator::export_SDCS_Stacked (std::string export_path) {
Stacked2D_FuncContainer BED_stacked_SDCS = calc_SDCS_Stacked();
BED_stacked_SDCS.exportToFile(export_path);
}
void BED_SDCS_calculator::export_SDCS_Edge () {
stringstream ss;
ss<<defaultExportPath<<"BED_edge_SDCS.dat";
export_SDCS_Edge(ss.str());
}
void BED_SDCS_calculator::export_SDCS_Average () {
stringstream ss;
ss<<defaultExportPath<<"BED_average_SDCS.dat";
export_SDCS_Average(ss.str());
}
void BED_SDCS_calculator::export_SDCS_Stacked () {
stringstream ss;
ss<<defaultExportPath<<"BED_stacked_SDCS.dat";
export_SDCS_Stacked(ss.str());
}
@@ -1,53 +0,0 @@
//
// BED_SDCS_calculator.hpp
// cross_section_calculator
//
// Created by Christian Reiling on 07.05.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef BED_SDCS_calculator_hpp
#define BED_SDCS_calculator_hpp
#include <string>
#include <iostream>
#include "BED_eT2_ionization.hpp"
#include "function_container.hpp"
class BED_SDCS_calculator {
static double minE_eV;
static double maxE_eV;
static double pointsPer_initE_Order;
static double pointsPer_secE_Order;
static std::string defaultExportPath;
public:
BED_SDCS_calculator();
static void set_Parameters (double new_minE_eV, double new_maxE_eV, double new_pointsPer_initE_Order, double new_pointsPer_secE_Order);
static void set_minE_eV (double new_minE_eV) {minE_eV = new_minE_eV;}
static void set_maxE_eV (double new_maxE_eV) {maxE_eV = new_maxE_eV;}
static void set_pointsPer_initE_Order (double new_pointsPer_initE_Order) {pointsPer_initE_Order = new_pointsPer_initE_Order;}
static void set_pointsPer_secE_Order (double new_pointsPer_secE_Order) {pointsPer_secE_Order = new_pointsPer_secE_Order;}
static void set_defaultExportPath(std::string new_defaultExportPath);
static void export_SDCS_Edge (std::string export_path);
static void export_SDCS_Average (std::string export_path);
static void export_SDCS_Stacked (std::string export_path);
static void export_SDCS_Edge ();
static void export_SDCS_Average ();
static void export_SDCS_Stacked ();
private:
static Edge2D_FuncContainer calc_SDCS_Edge();
static Average2D_FuncContainer calc_SDCS_Average();
static Stacked2D_FuncContainer calc_SDCS_Stacked();
};
#endif /* BED_SDCS_calculator_hpp */
@@ -1,69 +0,0 @@
//
// BED_TCS_calculator.cpp
// cross_section_calculator
//
// Created by Christian Reiling on 07.05.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#include "BED_TCS_calculator.hpp"
#include <sstream>
double BED_TCS_calculator::minE_eV = 15;
double BED_TCS_calculator::maxE_eV = 2e4;
double BED_TCS_calculator::pointsPerOrder = 100;
std::string BED_TCS_calculator::defaultExportPath = "/Users/ChristianReiling/Documents/Masterarbeit/katrin-plasma/src/mc_electron/data/";
void BED_TCS_calculator::set_Parameters (double new_minE_eV, double new_maxE_eV, double new_pointsPerOrder) {
set_minE_eV(new_minE_eV);
set_maxE_eV (new_maxE_eV);
set_pointsPerOrder (new_pointsPerOrder);
}
void BED_TCS_calculator::set_defaultExportPath(std::string new_defaultExportPath) {
if (new_defaultExportPath.back() != '/') {
new_defaultExportPath = new_defaultExportPath + '/';
}
defaultExportPath = new_defaultExportPath;
}
Edge1D_FuncContainer BED_TCS_calculator::calc_TCS_Edge() {
Edge1D_FuncContainer BED_edge_TCS;
BED_edge_TCS.fillFromFunction(BED_eT2_Ionization::calc_TCS, minE_eV, maxE_eV, pointsPerOrder);
// Manually add points near threshold
BED_edge_TCS.add_ankerpoint(EionT2_eV, BED_eT2_Ionization::calc_TCS(EionT2_eV));
double offset = 1e-4;
BED_edge_TCS.add_ankerpoint(EionT2_eV+offset, BED_eT2_Ionization::calc_TCS(EionT2_eV+offset));
return BED_edge_TCS;
}
Average1D_FuncContainer BED_TCS_calculator::calc_TCS_Average() {
Edge1D_FuncContainer BED_edge_TCS = calc_TCS_Edge();
Average1D_FuncContainer BED_average_TCS = Average1D_FuncContainer(BED_edge_TCS);
return BED_average_TCS;
}
void BED_TCS_calculator::export_TCS_Edge (std::string export_path) {
Edge1D_FuncContainer BED_edge_TCS = calc_TCS_Edge();
BED_edge_TCS.exportToFile(export_path);
}
void BED_TCS_calculator::export_TCS_Average (std::string export_path) {
Average1D_FuncContainer BED_average_TCS = calc_TCS_Average();
BED_average_TCS.exportToFile(export_path);
}
void BED_TCS_calculator::export_TCS_Edge () {
stringstream ss;
ss<<defaultExportPath<<"BED_edge_TCS.dat";
export_TCS_Edge(ss.str());
}
void BED_TCS_calculator::export_TCS_Average () {
stringstream ss;
ss<<defaultExportPath<<"BED_average_TCS.dat";
export_TCS_Average(ss.str());
}
@@ -1,43 +0,0 @@
//
// BED_TCS_calculator.hpp
// cross_section_calculator
//
// Created by Christian Reiling on 07.05.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef BED_TCS_calculator_hpp
#define BED_TCS_calculator_hpp
#include <string>
#include <iostream>
#include "BED_eT2_ionization.hpp"
#include "function_container.hpp"
class BED_TCS_calculator {
static double minE_eV;
static double maxE_eV;
static double pointsPerOrder;
static std::string defaultExportPath;
public:
BED_TCS_calculator();
static void set_Parameters (double new_minE_eV, double new_maxE_eV, double new_pointsPerOrder);
static void set_minE_eV (double new_minE_eV) {minE_eV = new_minE_eV;}
static void set_maxE_eV (double new_maxE_eV) {maxE_eV = new_maxE_eV;}
static void set_pointsPerOrder (double new_pointsPerOrder) {minE_eV = new_pointsPerOrder;}
static void set_defaultExportPath(std::string new_defaultExportPath);
static void export_TCS_Edge (std::string export_path);
static void export_TCS_Average (std::string export_path);
static void export_TCS_Edge ();
static void export_TCS_Average ();
private:
static Edge1D_FuncContainer calc_TCS_Edge();
static Average1D_FuncContainer calc_TCS_Average();
};
#endif /* BED_TCS_calculator_hpp */
-19
View File
@@ -1,19 +0,0 @@
//
// main.cpp
// cross_section_calculator
//
// Created by Christian Reiling on 07.05.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
int main(int argc, const char * argv[]) {
//createBED_TCS_Func_container();
//createBED_SDCS_Func2D_container();
//Katrin Kat;
//Skalar_WGTS_Container Ion_Container(0, 10, 0.045, vec3(10,10,10));
//Ion_Container.set_Bins_from_Function(tritiumDens);
}
-1
View File
@@ -1 +0,0 @@
*%
-96
View File
@@ -1,96 +0,0 @@
# Makeinclude-Datei für Linux-amd64 (generisch für alle PC-Artigen rechner)
# ACHTUNG: Rechner-spezifische einstellungen haben bei Linux-amd64 nochmal
# jeweils eigene makeinclude-dateien, die vor dieser hier included
# werden.
###########################################################################
# 1. Compiler
# Compiler (non-MPI)
CXX = g++ -std=c++11
CC = gcc
FC = gfortran
# Compiler (MPI)
MPICXX = mpic++ # OpenMPI-Version
MPIF90 = mpif90
#MPICXX = mpicxx.mpich-shmem -CC=icc # Arbeitsplatzrechner
#MPICXX = mpicxx -CC=icc # MPICH-Version
#MPICXX = /opt/mpich-mx/bin/mpicxx -CC=icc # MPICH-Version
# portland Compiler. no it doesn't work
#CC = pgcc
#CXX = pgCC
#FC = pgf90
#MPICXX = mpicc -cc=pgcc
#MPICXX = mpiCC -CC=pgCC -L ~/pgi/linux86-64/8.0/mpi/mpich/lib/
###########################################################################
# 2. Includes und Linker-Flags für verschiedene Bibliotheken
# Intel's lustige Numerik-Bibliotheken
X_LAPACK_LIBS = -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -lguide -lpthread
X_MKL_LIBS = -lmkl_em64t -lmkl_cdft -lmkl_cdft_core -lmkl_intel_lp64 -lmkl_blacs_ilp64 -lmkl_intel_thread -lmkl_core -lguide
# HDF4, HDF5 und HDF5-parallel
X_HDF_LIBS = -lmfhdf -ldf -lz -ljpeg
X_HDF5_LIBS = -L/usr/lib/x86_64-linux-gnu/hdf5/serial -lz -lhdf5_cpp -lhdf5_hl -lhdf5
X_HDF5_INC = -I/usr/include/hdf5/serial
X_HDF5P_LIBS = -L/usr/lib/x86_64-linux-gnu/hdf5/openmpi -lz -lhdf5_hl -lhdf5
X_HDF5P_INC = -I/usr/include/hdf5/openmpi
# FFTW2
X_FFTW2_LIBS = -lfftw
X_FFTW2_INC =
# FFTW3
X_FFTW3_LIBS = -lfftw3
X_FFTW3_INC =
# Diverser anderer krams.
X_COMPLEX_LIB =
X_MPI_LIBS =
X_OPENMP = -openmp #OpenMP für Intel-Compiler
#X_FFLAGS = -a -k
X_F77_LIB = /usr/lib/libf2c.a
X_THREADS = -lpthread
X_SYS =
X_OPENMP = -openmp
LIBNUMREC = -lnumrec_mt -lF77
###########################################################################
# 3. Nützliche Variablen für den Buildvorgang
# Die eigentlichen OFLAGS werden bei Linux-amd64 aus den noch spezifischeren
# Makeincludes gesetzt, und hier dann nur reingedrückt.
X_OFLAGS = -Ofast -march=native $(X_OPT) -fpermissive
## Teilchen-Fliesskommagenauigkeit
# Entweder long double...
X_OFLAGS += -DPART_REAL=double
# Oder einfaches double
# X_OFLAGS += -DPART_REAL=double
#X_LIB = $(X_LIB) -static
# Unnützes Makro, das eh standard ist.
INSTALL = install
###########################################################################
# 4. Weitere Variablen, die (evtl!) irgendwo zur Makefile-Steuerung verwendet
# werden (teilweise redundant, teilweise kaputt)
# CPU_TYPE := $(shell cat /proc/cpuinfo|grep Quad| wc -l ) + $(shell cat /proc/cpuinfo|grep i7| wc -l )
# Mehrere kaputte svn-makros
REVNUM = 0
#COMMIT =
#UP =
# Höchst unsicheres Makro, das irgendwo zum clean machen, und random-dateien-löschen
# verwendet wird.
X_CLEAN = rm -rf ../*~ ../*% *.o *.a core ../core
###########################################################################
# 5. Nutzlose Make-Targets, die niemand jemals aufruft.
test: X_OFLAGS = -Ofast $(X_OPT) -ip -static -prec-sqrt -DTESTMODE=" \" ''' TESTMODE ''' \" "
-96
View File
@@ -1,96 +0,0 @@
# Makeinclude-Datei für Linux-amd64 (generisch für alle PC-Artigen rechner)
# ACHTUNG: Rechner-spezifische einstellungen haben bei Linux-amd64 nochmal
# jeweils eigene makeinclude-dateien, die vor dieser hier included
# werden.
###########################################################################
# 1. Compiler
# Compiler (non-MPI)
CXX = g++
CC = gcc
FC = gfortran
# Compiler (MPI)
MPICXX = mpic++ # OpenMPI-Version
MPIF90 = mpif90
#MPICXX = mpicxx.mpich-shmem -CC=icc # Arbeitsplatzrechner
#MPICXX = mpicxx -CC=icc # MPICH-Version
#MPICXX = /opt/mpich-mx/bin/mpicxx -CC=icc # MPICH-Version
# portland Compiler. no it doesn't work
#CC = pgcc
#CXX = pgCC
#FC = pgf90
#MPICXX = mpicc -cc=pgcc
#MPICXX = mpiCC -CC=pgCC -L ~/pgi/linux86-64/8.0/mpi/mpich/lib/
###########################################################################
# 2. Includes und Linker-Flags für verschiedene Bibliotheken
# Intel's lustige Numerik-Bibliotheken
X_LAPACK_LIBS = -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -lguide -lpthread
X_MKL_LIBS = -lmkl_em64t -lmkl_cdft -lmkl_cdft_core -lmkl_intel_lp64 -lmkl_blacs_ilp64 -lmkl_intel_thread -lmkl_core -lguide
# HDF4, HDF5 und HDF5-parallel
X_HDF_LIBS = -lmfhdf -ldf -lz -ljpeg
X_HDF5_LIBS = -L/usr/lib/x86_64-linux-gnu/hdf5/serial -lz -lhdf5_cpp -lhdf5_hl -lhdf5
X_HDF5_INC = -I/usr/include/hdf5/serial
X_HDF5P_LIBS = -L/usr/lib/x86_64-linux-gnu/hdf5/openmpi -lz -lhdf5_hl -lhdf5
X_HDF5P_INC = -I/usr/include/hdf5/openmpi
# FFTW2
X_FFTW2_LIBS = -lfftw
X_FFTW2_INC =
# FFTW3
X_FFTW3_LIBS = -lfftw3
X_FFTW3_INC =
# Diverser anderer krams.
X_COMPLEX_LIB =
X_MPI_LIBS =
X_OPENMP = -openmp #OpenMP für Intel-Compiler
#X_FFLAGS = -a -k
X_F77_LIB = /usr/lib/libf2c.a
X_THREADS = -lpthread
X_SYS =
X_OPENMP = -openmp
LIBNUMREC = -lnumrec_mt -lF77
###########################################################################
# 3. Nützliche Variablen für den Buildvorgang
# Die eigentlichen OFLAGS werden bei Linux-amd64 aus den noch spezifischeren
# Makeincludes gesetzt, und hier dann nur reingedrückt.
X_OFLAGS = -Ofast -march=native $(X_OPT) -fpermissive
## Teilchen-Fliesskommagenauigkeit
# Entweder long double...
X_OFLAGS += -DPART_REAL=double
# Oder einfaches double
# X_OFLAGS += -DPART_REAL=double
#X_LIB = $(X_LIB) -static
# Unnützes Makro, das eh standard ist.
INSTALL = install
###########################################################################
# 4. Weitere Variablen, die (evtl!) irgendwo zur Makefile-Steuerung verwendet
# werden (teilweise redundant, teilweise kaputt)
CPU_TYPE := $(shell cat /proc/cpuinfo|grep Quad| wc -l ) + $(shell cat /proc/cpuinfo|grep i7| wc -l )
# Mehrere kaputte svn-makros
REVNUM = 0
#COMMIT =
#UP =
# Höchst unsicheres Makro, das irgendwo zum clean machen, und random-dateien-löschen
# verwendet wird.
X_CLEAN = rm -rf ../*~ ../*% *.o *.a core ../core
###########################################################################
# 5. Nutzlose Make-Targets, die niemand jemals aufruft.
test: X_OFLAGS = -Ofast $(X_OPT) -ip -static -prec-sqrt -DTESTMODE=" \" ''' TESTMODE ''' \" "
-2
View File
@@ -1,2 +0,0 @@
X_OPT =
include $(HOMEBASE)/src/makeinclude/Linux-amd64
-2
View File
@@ -1,2 +0,0 @@
X_OPT = -march=native
include $(HOMEBASE)/src/makeinclude/Linux-amd64
-2
View File
@@ -1,2 +0,0 @@
X_OPT = -march=native
include $(HOMEBASE)/src/makeinclude/Linux-amd64
-43
View File
@@ -1,43 +0,0 @@
#X_OFLAGS = -O3 -fno-exceptions
#X_OFLAGS = -O3 -fschedule-insns -fno-rtti-information -fno-exceptions
#X_OFLAGS = -O9 -ccarg -ffast-math -ccarg -O5 -m686
#X_HDF_LIBS = -lmfhdf -ldf -lz -ljpeg
X_HDF5_LIBS = -ljpeg -lz -lhdf5_cpp -lhdf5_hl -lhdf5
X_COMPLEX_LIB =
X_FFLAGS = -a
X_F77_LIB = /usr/lib/libf2c.a
X_THREADS = -lpthread
X_SYS =
REV= " \"$(shell svn info $(PWD)/../. | grep Revision) \" "
X_OFLAGS = -O3 -xO -ip -prec-sqrt -DSVN_REV=$(REV)
#X_LIB = $(X_LIB) -static
test: X_OFLAGS = -O3 -xO -ip -static -prec-sqrt -DTESTMODE=" \" ''' TESTMODE ''' \" "
REVNUM = "$(shell svn info $(HOMEBASE)/src/ | grep Revision | tr -d "Revision: ")"
COMMIT = $(shell svn diff $(HOMEBASE)/src/)
UP =$(shell svn diff $(HOMEBASE)/src/ -r `svn info $(HOMEBASE)/src/ | grep Revision | tr -d "Revision: "`)
svn:
test -n $(COMMIT)
test -n $(UP)
X_CLEAN = rm -rf ../*~ ../*% *.o *.a core ../core
INSTALL = install
CXX = icc
MPICXX = mpicxx -CC=icc
CC = cc
FC = fort77
LIBNUMREC = -lnumrec_mt -lF77
-9
View File
@@ -1,9 +0,0 @@
include $(HOMEBASE)/src/makeinclude/ostype.mak
.SUFFIXES:
%:
@test -d $(X_OSTYPE) || mkdir $(X_OSTYPE)
@cd $(X_OSTYPE); $(MAKE) -f../makefile2 $@
all:
-18
View File
@@ -1,18 +0,0 @@
include $(HOMEBASE)/src/makeinclude/ostype.mak
include $(HOMEBASE)/src/makeinclude/$(X_OSTYPE)
VPATH = ..
X_ROOT_DIR = $(HOMEBASE)
X_INC_DIR = $(X_ROOT_DIR)/include
X_LIB_DIR = $(X_ROOT_DIR)/lib/$(X_OSTYPE)
X_INC = -I$(X_ROOT_DIR)/include # -I$(X_ROOT_DIR)/src/blitz/$(X_OSTYPE)
X_LIB = -L$(X_ROOT_DIR)/lib/$(X_OSTYPE)
MOD_DATA = 644
MOD_EXEC = 755
%.a :
$(AR) $(ARFLAGS) $@ $^
LINK.o = $(CXX) $(LDFLAGS) $(TARGET_ARCH)
-45
View File
@@ -1,45 +0,0 @@
X_OSTYPE ?= $(shell uname)-$(shell uname -m | sed -e s/x86_64/amd64/ -e s/.86/386/ -e 's/\/800//')
ifeq ($(X_OSTYPE),Linux-amd64)
X_MODEL_NAME := $(shell cat /proc/cpuinfo | grep "model name")
ifneq (,$(findstring Intel,$(X_MODEL_NAME)))
# intel
ifneq (,$(findstring i5,$(X_MODEL_NAME)))
# core i5
X_OSTYPE := Linux-amd64-corei7
else
ifneq (,$(findstring i7,$(X_MODEL_NAME)))
# core i7
X_OSTYPE := Linux-amd64-corei7
else
ifneq (,$(findstring E55,$(X_MODEL_NAME)))
#Nehalems
X_OSTYPE := Linux-amd64-corei7
else
ifneq (,$(findstring E56,$(X_MODEL_NAME)))
#Nehalems
X_OSTYPE := Linux-amd64-corei7
else
ifneq (,$(findstring X55,$(X_MODEL_NAME)))
#Nehalems
X_OSTYPE := Linux-amd64-corei7
else
#core 2
X_OSTYPE := Linux-amd64-core2
endif
endif
endif
endif
endif
else
#amd
ifneq (,$(findstring X6,$(X_MODEL_NAME)))
X_OSTYPE := Linux-amd64-hexacore
else
X_OSTYPE := Linux-amd64-opteron
endif
endif
else
# other OS
endif
-108
View File
@@ -1,108 +0,0 @@
//
// BED_eT2_ionization.cpp
// mc_electron
//
// Created by Christian Reiling on 29.04.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#include "BED_eT2_ionization.hpp"
#include <sstream>
#include <cmath>
#include "constants.h"
#include "error_types.h"
using namespace std;
const double BED_eT2_Ionization::S_m2 = 5.4721e-20;
const double BED_eT2_Ionization::B_eV = EionT2_eV;
const double BED_eT2_Ionization::u = 1.664;
const double BED_eT2_Ionization::N = 2;
const double BED_eT2_Ionization::Ni = 1.173;
const double BED_eT2_Ionization::c[4] = {1.1262 , 6.3982 , -7.8055, 2.1449} ;
double BED_eT2_Ionization::calc_TCS(const double &T_eV) {
if (T_eV<=0) {
stringstream ss;
ss<<"calc_TCS(double T_eV): Input energy T_eV="<<T_eV<<" eV < 0.";
throw MyException(ss.str());
}
if (T_eV<=B_eV) {
return 0;
} else {
double t = calc_t(T_eV);
double fac = S_m2/(t+u+1);
double sum1 = calc_Dt(t)*log(t);
double sum2 = (2-Ni/N)*( (t-1)/t - log(t)/(t+1) );
return fac*(sum1 + sum2);
}
}
double BED_eT2_Ionization::calc_SDCS (const double &T_eV, const double &W_eV) {
if (T_eV<0) {
stringstream ss;
ss<<"getSDCS(double T_eV, double W_eV): Input energy T_eV="<<T_eV<<" eV < 0.";
throw MyException(ss.str());
} else if (W_eV<0) {
stringstream ss;
ss<<"getSDCS(double T_eV, double W_eV): Input energy W_eV="<<W_eV<<" eV < 0.";
throw MyException(ss.str());
}
if ( (T_eV<=B_eV) ||(W_eV >= (T_eV-B_eV) ) ) {
return 0;
} else {
double t = calc_t(T_eV);
double w = calc_w(W_eV);
double fac = S_m2/B_eV/(t+u+1);
double sum1 = (Ni/N - 2)/(t+1) * (1/(w+1) + 1/(t-w));
double sum2 = (2-Ni/N) * (pow(w+1,-2) + pow(t-w,-2));
double sum3 = log(t)/(N*(w+1)) * calc_dfdw(w);
return fac*(sum1 + sum2 + sum3);
}
}
double BED_eT2_Ionization::calc_t(const double &T_eV) {
return T_eV/B_eV;
}
double BED_eT2_Ionization::calc_w(const double &W_eV) {
return W_eV/B_eV;
}
double BED_eT2_Ionization::calc_dfdw(const double &w) {
double y = 1/(w+1);
double res = 0;
for (int i=0;i<4;i++) {
res += c[i]*pow(y,i+3);
}
return res;
}
double BED_eT2_Ionization::calc_Dt(const double &t) {
double yh = 2/(t+1);
double res = 0;
for (int i=0;i<4;i++) {
res += c[i]/(i+3)*(1-pow(yh,i+3));
}
res = res/N;
return res;
}
double BED_eT2_Ionization::roll_W_eV(const double &T_eV, UniRNG *rngUni) {
double pmax, Wmin_eV, Wmax_eV, Wcan_eV, eta1, eta2;
Wmin_eV = 1e-5; // Properly fix this...
Wmax_eV = T_eV-EionT2_eV;
pmax =calc_SDCS(T_eV, Wmin_eV);
do {
eta1 = rngUni->random();
eta2 = rngUni->random();
Wcan_eV = Wmin_eV + eta1*(Wmax_eV - Wmin_eV);
} while(eta2*pmax > calc_SDCS(T_eV, Wcan_eV));
double W_eV = (Wcan_eV< (T_eV-EionT2_eV)/2 ) ? Wcan_eV : (T_eV-EionT2_eV) - Wcan_eV;
return W_eV;
}
-39
View File
@@ -1,39 +0,0 @@
//
// BED_eT2_ionization.hpp
// mc_electron
//
// Created by Christian Reiling on 29.04.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef BED_eT2_ionization_hpp
#define BED_eT2_ionization_hpp
#include "random_operations.h"
// BED Ionization model from Kim, Y.-K. and Rudd, M. E. 1994
class BED_eT2_Ionization {
static const double S_m2;
static const double B_eV;
static const double u;
static const double N;
static const double Ni;
static const double c[4];
public:
BED_eT2_Ionization(){};
static double calc_TCS(const double &T_eV);
static double calc_SDCS(const double &T_eV, const double &W_eV);
static double roll_W_eV(const double &T_eV, UniRNG *rngUni);
private:
static double calc_t(const double &T);
static double calc_w(const double &W);
static double calc_dfdw(const double &w);
static double calc_Dt(const double &t);
};
#endif /* BED_eT2_ionization_hpp */
-39
View File
@@ -1,39 +0,0 @@
//
// T2IT2_cluster.h
// mc_electron
//
// Created by Christian Reiling on 12.07.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef T2IT2_cluster_h
#define T2IT2_cluster_h
#include "TI_thermal_binary_base.h"
#include "janev_T2IT2_cluster.h"
class T2IT2_Cluster : public TI_thermal_binary_Precomputed_Interaction_Base {
public:
T2IT2_Cluster(Population_Base *T2Population, UniRNG *rngUni) : TI_thermal_binary_Precomputed_Interaction_Base(T2Population, rngUni, 2*mT_eV) {
calc_values(); // need to call here, because, constructor can't call pure virtual function
}
double get_microSigma_m2(const double &E_eV) {return Janev_T2IT2_Cluster::get_TCS(E_eV);}
InteractionOut do_Interaction (Particle *interPart);
};
inline InteractionOut T2IT2_Cluster::do_Interaction (Particle *interPart) {
InteractionOut InterOut;
vec3 loc_m = interPart->get_x_m();
vec3 v_ms = interPart->get_v_ms();
Particle T3New = Particle_Builder::create_T3I(loc_m, v_ms, -1, interPart->get_Id());
//InterOut.add_new_particle(TNew);
InterOut.add_new_particle(T3New);
InterOut.set_delete_current(true);
return InterOut;
}
#endif /* T2IT2_cluster_h */
-38
View File
@@ -1,38 +0,0 @@
//
// T2IT2_cx.h
// mc_electron
//
// Created by Christian Reiling on 12.07.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef T2IT2_cx_h
#define T2IT2_cx_h
#include "TI_thermal_binary_base.h"
#include "kinematics_base.h"
#include "janev_T2IT2_cx.h"
class T2IT2_CX : public TI_thermal_binary_Precomputed_Interaction_Base {
Elastic_Kinematic_Base kinematics;
public:
T2IT2_CX(Population_Base *T2Population, UniRNG *rngUni) : TI_thermal_binary_Precomputed_Interaction_Base(T2Population, rngUni, 2*mT_eV), kinematics(2*mT_eV, 2*mT_eV) {
calc_values(); // need to call here, because, constructor can't call pure virtual function
}
double get_microSigma_m2(const double &E_eV) {return Janev_T2IT2_CX::get_TCS(E_eV);}
InteractionOut do_Interaction (Particle *interPart);
};
inline InteractionOut T2IT2_CX::do_Interaction (Particle *interPart) {
vec3 v1_ms = interPart->get_v_ms();
vec3 v2_ms = Population->roll_v_ms(interPart->get_x_m());
double theta_lab = rngUni->random() * pi;
double phi_lab = rngUni->random() * 2 * pi;
interPart->set_v_ms(kinematics.get_v1_new(v1_ms, v2_ms, theta_lab, phi_lab));
return InteractionOut();
}
#endif /* T2IT2_cx_h */
-41
View File
@@ -1,41 +0,0 @@
//
// T2Ie_disexc.h
// mc_electron
//
// Created by Christian Reiling on 30.07.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef T2Ie_disexc_h
#define T2Ie_disexc_h
#include "TI_kinetic_base.h"
#include "janev_eT2I_disexc.h"
class T2Ie_DissExc : public Interaction_Base {
public:
T2Ie_DissExc(Population_Base *ePopulation, UniRNG *rngUni) : Interaction_Base(ePopulation, rngUni) {}
double get_microSigma_m2(const double &E_eV) {return Janev_eT2I_DissExc::get_TCS(E_eV);}
InteractionOut do_Interaction (Particle *interPart);
};
inline InteractionOut T2Ie_DissExc::do_Interaction (Particle *interPart) {
InteractionOut res;
res.set_delete_current(true);
vec3 loc_m = interPart->get_x_m();
vec3 vTI_ms = interPart->get_v_ms();
Particle TI = Particle_Builder::create_TI(loc_m, vTI_ms, -1, interPart->get_Id());
res.add_new_particle(TI);
/*double E_eV = calc_E_eV_from_v_ms(Population->roll_v_ms(interPart->get_x_m()), me_eV); // should be computed properly using chances.
Population->decrease_denisty(loc_m, E_eV);*/
return res;
}
#endif /* T2Ie_disexc_h */
-39
View File
@@ -1,39 +0,0 @@
//
// T2Ie_recombination.h
// mc_electron
//
// Created by Christian Reiling on 30.07.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef T2Ie_recombination_h
#define T2Ie_recombination_h
#include "TI_kinetic_base.h"
#include "janev_eT2I_recombination.h"
class T2Ie_Recombination : public TI_e_Precomputed_Interaction_Base {
public:
T2Ie_Recombination(Population_Base *ePopulation, UniRNG *rngUni) : TI_e_Precomputed_Interaction_Base(ePopulation, rngUni, 2*mT_eV) {
calc_values(); // need to call here, because, constructor can't call pure virtual function
}
InteractionOut do_Interaction (Particle *interPart);
protected:
double get_microSigma_m2(const double &E_eV) {
return Janev_eT2I_Recombination::get_TCS(E_eV);
}
};
inline InteractionOut T2Ie_Recombination::do_Interaction (Particle *interPart) {
InteractionOut res;
res.set_delete_current(true);
double E_eV = calc_E_eV_from_v_ms(Population->roll_v_ms(interPart->get_x_m()), me_eV); // should be computed properly using chances.
Population->decrease_denisty(interPart->get_x_m(), E_eV);
return res;
}
#endif /* T2Ie_recombination_h */
-39
View File
@@ -1,39 +0,0 @@
//
// T3IT2_elastic.h
// mc_electron
//
// Created by Christian Reiling on 13.09.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef T3IT2_elastic_h
#define T3IT2_elastic_h
#include "TI_thermal_binary_base.h"
#include "tabata_T3IT2_elastic.h"
class T3IT2_Elastic : public TI_thermal_binary_Precomputed_Interaction_Base {
Tabata_T3IT2_Elastic tcs_gen;
Elastic_Kinematic_Base kinematics;
public:
T3IT2_Elastic(Population_Base *T2Population, UniRNG *rngUni) : TI_thermal_binary_Precomputed_Interaction_Base(T2Population, rngUni, 3*mT_eV), kinematics(3*mT_eV, 2*mT_eV) {
calc_values(); // need to call here, because, constructor can't call pure virtual function
};
double get_microSigma_m2(const double &E_eV) {return tcs_gen.get_TCS(E_eV);}
InteractionOut do_Interaction (Particle *interPart);
};
inline InteractionOut T3IT2_Elastic::do_Interaction (Particle *interPart) {
vec3 v1_ms = interPart->get_v_ms();
vec3 v2_ms = Population->roll_v_ms(interPart->get_x_m());
double theta_lab = rngUni->random() * pi;
double phi_lab = rngUni->random() * 2 * pi;
interPart->set_v_ms(kinematics.get_v1_new(v1_ms, v2_ms, theta_lab, phi_lab));
return InteractionOut();
}
#endif /* T3IT2_elastic_h */
-40
View File
@@ -1,40 +0,0 @@
//
// T3IT2_radasc.h
// mc_electron
//
// Created by Christian Reiling on 08.10.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef T3IT2_radasc_h
#define T3IT2_radasc_h
#include "TI_rate_base.h"
class T3IT2_RadAsc : public TI_thermal_Rate_Precomputed_Interaction_Base {
public:
T3IT2_RadAsc(Population_Base *T2Population, UniRNG *rngUni) : TI_thermal_Rate_Precomputed_Interaction_Base(T2Population, rngUni, 1) {
calc_values(); // need to call here, because, constructor can't call pure virtual function
};
double get_microSigma_m2(const double &E_eV) {
double v_ms = calc_v_ms_from_E_eV(E_eV, 3*mT_eV);
return 5e-23/v_ms; // CS from Gerlich:1990aa
}
InteractionOut do_Interaction (Particle *interPart);
};
inline InteractionOut T3IT2_RadAsc::do_Interaction (Particle *interPart) {
InteractionOut InterOut;
vec3 loc_m = interPart->get_x_m();
vec3 v_ms = interPart->get_v_ms();
Particle T5INew = Particle_Builder::create_T5I(loc_m, v_ms, -1, interPart->get_Id());
InterOut.add_new_particle(T5INew);
InterOut.set_delete_current(true);
return InterOut;
}
#endif /* T3IT2_radasc_h */
-40
View File
@@ -1,40 +0,0 @@
//
// T3IT2_terasc.h
// mc_electron
//
// Created by Christian Reiling on 08.10.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef T3IT2_terasc_h
#define T3IT2_terasc_h
#include "TI_rate_base.h"
class T3IT2_TerAsc : public TI_thermal_Rate_Precomputed_Interaction_Base {
public:
T3IT2_TerAsc(Population_Base *T2Population, UniRNG *rngUni) : TI_thermal_Rate_Precomputed_Interaction_Base(T2Population, rngUni, 2) {
calc_values(); // need to call here, because, constructor can't call pure virtual function
};
double get_microSigma_m2(const double &E_eV) {
double v_ms = calc_v_ms_from_E_eV(E_eV, 3*mT_eV);
return 7e-41*v_ms; // CS from Gerlich:1990aa
}
InteractionOut do_Interaction (Particle *interPart);
};
inline InteractionOut T3IT2_TerAsc::do_Interaction (Particle *interPart) {
InteractionOut InterOut;
vec3 loc_m = interPart->get_x_m();
vec3 v_ms = interPart->get_v_ms();
Particle T5INew = Particle_Builder::create_T5I(loc_m, v_ms, -1, interPart->get_Id());
InterOut.add_new_particle(T5INew);
InterOut.set_delete_current(true);
return InterOut;
}
#endif /* T3IT2_terasc_h */
-40
View File
@@ -1,40 +0,0 @@
//
// T3Ie_disexc.h
// mc_electron
//
// Created by Christian Reiling on 30.07.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef T3Ie_disexc_h
#define T3Ie_disexc_h
#include "TI_kinetic_base.h"
#include "janev_eT3I_disexc.h"
class T3Ie_DissExc : public Interaction_Base {
public:
T3Ie_DissExc(Population_Base *ePopulation, UniRNG *rngUni) : Interaction_Base(ePopulation, rngUni) {}
double get_microSigma_m2(const double &E_eV) {return Janev_eT3I_DissExc::get_TCS(E_eV);}
InteractionOut do_Interaction (Particle *interPart);
};
inline InteractionOut T3Ie_DissExc::do_Interaction (Particle *interPart) {
InteractionOut res;
res.set_delete_current(true);
vec3 loc_m = interPart->get_x_m();
vec3 vTI_ms = interPart->get_v_ms();
Particle TI = Particle_Builder::create_TI(loc_m, vTI_ms, -1, interPart->get_Id());
res.add_new_particle(TI);
double E_eV = calc_E_eV_from_v_ms(Population->roll_v_ms(interPart->get_x_m()), me_eV); // should be computed properly using chances.
Population->decrease_denisty(loc_m, E_eV);
return res;
}
#endif /* T3Ie_disexc_h */
-39
View File
@@ -1,39 +0,0 @@
//
// T3Ie_recombination.h
// mc_electron
//
// Created by Christian Reiling on 29.07.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef T3Ie_recombination_h
#define T3Ie_recombination_h
#include "TI_kinetic_base.h"
#include "janev_eT3I_recombination.h"
class T3Ie_Recombination : public TI_e_Precomputed_Interaction_Base {
public:
T3Ie_Recombination(Population_Base *ePopulation, UniRNG *rngUni) : TI_e_Precomputed_Interaction_Base(ePopulation, rngUni, 3*mT_eV) {
calc_values(); // need to call here, because, constructor can't call pure virtual function
}
InteractionOut do_Interaction (Particle *interPart);
protected:
double get_microSigma_m2(const double &E_eV) {
return Janev_eT3I_Recombination::get_TCS(E_eV);
}
};
inline InteractionOut T3Ie_Recombination::do_Interaction (Particle *interPart) {
InteractionOut res;
res.set_delete_current(true);
double E_eV = calc_E_eV_from_v_ms(Population->roll_v_ms(interPart->get_x_m()), me_eV); // should be computed properly using chances.
Population->decrease_denisty(interPart->get_x_m(), E_eV);
return res;
}
#endif /* T3Ie_recombination_h */
-36
View File
@@ -1,36 +0,0 @@
//
// T5IT2_elastic.h
// mc_electron
//
// Created by Christian Reiling on 16.09.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef T5IT2_elastic_h
#define T5IT2_elastic_h
#include "TI_thermal_binary_base.h"
class T5IT2_Elastic : public TI_thermal_binary_Precomputed_Interaction_Base {
Tabata_T3IT2_Elastic tcs_gen; // Obviously wrong, but should be good enough.
Elastic_Kinematic_Base kinematics;
public:
T5IT2_Elastic(Population_Base *T2Population, UniRNG *rngUni) : TI_thermal_binary_Precomputed_Interaction_Base(T2Population, rngUni, 5*mT_eV), kinematics(5*mT_eV, 2*mT_eV) {
calc_values(); // need to call here, because, constructor can't call pure virtual function
};
double get_microSigma_m2(const double &E_eV) {return tcs_gen.get_TCS(E_eV);}
InteractionOut do_Interaction (Particle *interPart);
};
inline InteractionOut T5IT2_Elastic::do_Interaction (Particle *interPart) {
vec3 v1_ms = interPart->get_v_ms();
vec3 v2_ms = Population->roll_v_ms(interPart->get_x_m());
double theta_lab = rngUni->random() * pi;
double phi_lab = rngUni->random() * 2 * pi;
interPart->set_v_ms(kinematics.get_v1_new(v1_ms, v2_ms, theta_lab, phi_lab));
return InteractionOut();
}
#endif /* T5IT2_elastic_h */
-41
View File
@@ -1,41 +0,0 @@
//
// T5Ie_recombination.h
// mc_electron
//
// Created by Christian Reiling on 16.09.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef T5Ie_recombination_h
#define T5Ie_recombination_h
#include "TI_kinetic_base.h"
#include "petterson_eT5I_recombination.h"
class T5Ie_Recombination : public TI_e_Precomputed_Interaction_Base {
public:
T5Ie_Recombination(Population_Base *ePopulation, UniRNG *rngUni) : TI_e_Precomputed_Interaction_Base(ePopulation, rngUni, 5*mT_eV) {
calc_values(); // need to call here, because, constructor can't call pure virtual function
}
InteractionOut do_Interaction (Particle *interPart);
protected:
double get_microSigma_m2(const double &E_eV) {
return Pettersson_eT5I_Recombination::get_TCS(E_eV);
}
};
inline InteractionOut T5Ie_Recombination::do_Interaction (Particle *interPart) {
InteractionOut res;
res.set_delete_current(true);
double E_eV = calc_E_eV_from_v_ms(Population->roll_v_ms(interPart->get_x_m()), me_eV); // should be computed properly using chances.
Population->decrease_denisty(interPart->get_x_m(), E_eV);
return res;
}
#endif /* T5Ie_recombination_h */
-39
View File
@@ -1,39 +0,0 @@
//
// TIT2_elastic.h
// mc_electron
//
// Created by Christian Reiling on 13.09.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef TIT2_elastic_h
#define TIT2_elastic_h
#include "TI_thermal_binary_base.h"
#include "tabata_TIT2_elastic.h"
class TIT2_Elastic : public TI_thermal_binary_Precomputed_Interaction_Base {
Tabata_TIT2_Elastic tcs_gen;
Elastic_Kinematic_Base kinematics;
public:
TIT2_Elastic(Population_Base *T2Population, UniRNG *rngUni) : TI_thermal_binary_Precomputed_Interaction_Base(T2Population, rngUni, mT_eV), kinematics(mT_eV, 2*mT_eV) {
calc_values(); // need to call here, because, constructor can't call pure virtual function
};
double get_microSigma_m2(const double &E_eV) {return tcs_gen.get_TCS(E_eV);}
InteractionOut do_Interaction (Particle *interPart);
};
inline InteractionOut TIT2_Elastic::do_Interaction (Particle *interPart) {
vec3 v1_ms = interPart->get_v_ms();
vec3 v2_ms = Population->roll_v_ms(interPart->get_x_m());
double theta_lab = rngUni->random() * pi;
double phi_lab = rngUni->random() * 2 * pi;
interPart->set_v_ms(kinematics.get_v1_new(v1_ms, v2_ms, theta_lab, phi_lab));
return InteractionOut();
}
#endif /* TIT2_elastic_h */
-40
View File
@@ -1,40 +0,0 @@
//
// TIT2_radasc.h
// mc_electron
//
// Created by Christian Reiling on 08.10.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef TIT2_radasc_h
#define TIT2_radasc_h
#include "TI_rate_base.h"
class TIT2_RadAsc : public TI_thermal_Rate_Precomputed_Interaction_Base {
public:
TIT2_RadAsc(Population_Base *T2Population, UniRNG *rngUni) : TI_thermal_Rate_Precomputed_Interaction_Base(T2Population, rngUni, 1) {
calc_values(); // need to call here, because, constructor can't call pure virtual function
};
double get_microSigma_m2(const double &E_eV) {
double v_ms = calc_v_ms_from_E_eV(E_eV, mT_eV);
return 5e-23/v_ms; // CS from Plasil:2012
}
InteractionOut do_Interaction (Particle *interPart);
};
inline InteractionOut TIT2_RadAsc::do_Interaction (Particle *interPart) {
InteractionOut InterOut;
vec3 loc_m = interPart->get_x_m();
vec3 v_ms = interPart->get_v_ms();
Particle T3INew = Particle_Builder::create_T3I(loc_m, v_ms, -1, interPart->get_Id());
InterOut.add_new_particle(T3INew);
InterOut.set_delete_current(true);
return InterOut;
}
#endif /* TIT2_radasc_h */
-40
View File
@@ -1,40 +0,0 @@
//
// TIT2_terasc.h
// mc_electron
//
// Created by Christian Reiling on 08.10.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef TIT2_terasc_h
#define TIT2_terasc_h
#include "TI_rate_base.h"
class TIT2_TerAsc : public TI_thermal_Rate_Precomputed_Interaction_Base {
public:
TIT2_TerAsc(Population_Base *T2Population, UniRNG *rngUni) : TI_thermal_Rate_Precomputed_Interaction_Base(T2Population, rngUni, 2) {
calc_values(); // need to call here, because, constructor can't call pure virtual function
};
double get_microSigma_m2(const double &E_eV) {
double v_ms = calc_v_ms_from_E_eV(E_eV, mT_eV);
return 2.6e-41/v_ms; // CS from Plasil:2012
}
InteractionOut do_Interaction (Particle *interPart);
};
inline InteractionOut TIT2_TerAsc::do_Interaction (Particle *interPart) {
InteractionOut InterOut;
vec3 loc_m = interPart->get_x_m();
vec3 v_ms = interPart->get_v_ms();
Particle T3INew = Particle_Builder::create_T3I(loc_m, v_ms, -1, interPart->get_Id());
InterOut.add_new_particle(T3INew);
InterOut.set_delete_current(true);
return InterOut;
}
#endif /* TIT2_terasc_h */
-129
View File
@@ -1,129 +0,0 @@
//
// TI_kinetic_base.h
// mc_electron
//
// Created by Christian Reiling on 18.11.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef TI_kinetic_base_h
#define TI_kinetic_base_h
#include "interaction_base.h"
class TI_e_Interaction_Base : public Interaction_Base { // Interactions of ions with kinetic e Populations
protected:
double m1_eV; // energy of kinetic particle for CS measurement : e-
double m2_eV; // energy of massic initial particle : TI
int num_Ee_bins; // number of Ee_bins in Populations
double *Ee_mids; // values for energy mids of Ee_bins in Populations
double *ve_mids; // corresponding v_values
public:
TI_e_Interaction_Base(Population_Base *Population, UniRNG *rngUni, double m_eV) : Interaction_Base(Population, rngUni) {
m1_eV = Population->get_m_eV();
m2_eV = m_eV;
num_Ee_bins = Population->get_number_E_bins();
if (num_Ee_bins <= 1) {
throw MyException("Population is not kinetic, when expected kinetic.");
}
ve_mids = new double[num_Ee_bins];
Ee_mids = new double[num_Ee_bins];
for (int Ee_bin = 0; Ee_bin<num_Ee_bins; Ee_bin++) {
Ee_mids[Ee_bin] = Population->get_E_bin_mid_eV(Ee_bin);
ve_mids[Ee_bin] = calc_v_ms_from_E_eV(Ee_mids[Ee_bin], m1_eV);
}
}
double get_macro_sigma_m(const Particle &interPart);
protected:
double calc_macro_sigma_m(const double &E_eV, const vec3 &loc_m);
double calc_microSigma_m2(const double &E1_eV, const int &Ee_bin);
private:
virtual double get_microSigma_m2(const double &E_eV) = 0;
};
inline double TI_e_Interaction_Base::get_macro_sigma_m(const Particle &interPart) {
return calc_macro_sigma_m(interPart.get_E_eV(), interPart.get_x_m());
}
inline double TI_e_Interaction_Base::calc_macro_sigma_m(const double &E_eV, const vec3 &loc_m) {
Bins loc_bins = Population->get_loc_bin(loc_m);
double macro_sigma_m = 0;
for (int Ee_bin = 0; Ee_bin<num_Ee_bins; Ee_bin++) {
macro_sigma_m += calc_microSigma_m2(E_eV, Ee_bin) * Population->get_density_m3(Ee_bin, loc_bins);
}
return macro_sigma_m;
}
inline double TI_e_Interaction_Base::calc_microSigma_m2(const double &E2_eV, const int &Ee_bin) {
//return get_microSigma_m2(Ee_mids[Ee_bin]); // No Integration... Only e- energy
double v1_ms = ve_mids[Ee_bin];
double v2_ms = calc_v_ms_from_E_eV(E2_eV, m2_eV);
if (v1_ms > v2_ms*2000 ) { // 2000 represents 1% variation in energy
return get_microSigma_m2(Ee_mids[Ee_bin]);
} else {
auto integrand = [&](double theta) {
double E_eV = m1_eV/2 * (pow(v1_ms,2) + pow(v2_ms,2) - 2*v1_ms*v2_ms*cos(theta)) * pow(c_ms, -2);
return get_microSigma_m2(E_eV);
};
return integrate(integrand, 0., pi, INT_N, simpson())/pi;
}
}
class TI_e_Precomputed_Interaction_Base : public TI_e_Interaction_Base { // Precompute Interactions of ions with kinetic e Populations
Log_Scale E_scale; // E_scale for Interpolation calculation
double **precomputed_values;
public:
TI_e_Precomputed_Interaction_Base(Population_Base *Population, UniRNG *rngUni, double m_eV) : TI_e_Interaction_Base(Population, rngUni, m_eV), E_scale(INT_PRE_START, INT_PRE_END, INT_PRE_N) {
precomputed_values = new double *[E_scale.get_number_bins()];
for (int EI_bin=0; EI_bin<E_scale.get_number_bins(); EI_bin++) {
precomputed_values[EI_bin] = new double[num_Ee_bins];
}
}
void calc_values();
double get_macro_sigma_m(const Particle &interPart);
private:
double lookup_macro_sigma_m(const double &E_eV, const vec3 &loc_m);
};
inline void TI_e_Precomputed_Interaction_Base::calc_values() {
for (int EI_bin=0; EI_bin<E_scale.get_number_bins(); EI_bin++) {
for (int Ee_bin = 0; Ee_bin<num_Ee_bins; Ee_bin++) {
precomputed_values[EI_bin][Ee_bin] = calc_microSigma_m2(E_scale.get_bin_mid(EI_bin), Ee_bin);
}
}
}
inline double TI_e_Precomputed_Interaction_Base::get_macro_sigma_m(const Particle &interPart) {
vec3 loc_m = interPart.get_x_m();
double E_eV = interPart.get_E_eV();
if (E_scale.in_scale(E_eV)) {
return lookup_macro_sigma_m(E_eV, loc_m);
} else {
return calc_macro_sigma_m(E_eV, loc_m);
}
}
inline double TI_e_Precomputed_Interaction_Base::lookup_macro_sigma_m(const double &E_eV, const vec3 &loc_m) {
int EI_bin = E_scale.calc_index(E_eV);
double *microSigmas = precomputed_values[EI_bin];
Bins loc_bins = Population->get_loc_bin(loc_m);
double macro_sigma_m = 0;
for (int Ee_bin = 0; Ee_bin<num_Ee_bins; Ee_bin++) {
macro_sigma_m += microSigmas[Ee_bin] * Population->get_density_m3(Ee_bin, loc_bins);
}
return macro_sigma_m;
}
#endif /* TI_kinetic_base_h */
-80
View File
@@ -1,80 +0,0 @@
//
// TI_rate_base.h
// mc_electron
//
// Created by Christian Reiling on 20.11.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef TI_rate_base_h
#define TI_rate_base_h
#include "interaction_base.h"
class TI_thermal_Rate_Interaction_Base : public Interaction_Base { // Binary interactions of tritium ions with thermal Populations
protected:
int n;
double m1_eV; // energy of kinetic particle for CS measurement : tritium ion
public:
TI_thermal_Rate_Interaction_Base(Population_Base *Population, UniRNG *rngUni, int n) : Interaction_Base(Population, rngUni) {
this-> n = n;
}
double get_macro_sigma_m(const Particle &interPart);
protected:
double calc_macro_sigma_m(const double &E_eV, const vec3 &loc_m);
double calc_microSigma_m2(const double &E_eV);
private:
virtual double get_microSigma_m2(const double &E_eV) = 0;
};
inline double TI_thermal_Rate_Interaction_Base::get_macro_sigma_m(const Particle &interPart) {
return calc_macro_sigma_m(interPart.get_E_eV(), interPart.get_x_m());
}
double TI_thermal_Rate_Interaction_Base::calc_macro_sigma_m(const double &E_eV, const vec3 &loc_m) {
return calc_microSigma_m2(E_eV) * pow (Population->get_density_m3(loc_m), n);
}
double TI_thermal_Rate_Interaction_Base::calc_microSigma_m2(const double &E_eV) {
return get_microSigma_m2(E_eV);
}
class TI_thermal_Rate_Precomputed_Interaction_Base : public TI_thermal_Rate_Interaction_Base { // + Using precomputed values
Log_Scale E_scale; // E_scale for Interpolation calculation
double *precomputed_values;
public:
TI_thermal_Rate_Precomputed_Interaction_Base(Population_Base *Population, UniRNG *rngUni, double m_eV) : TI_thermal_Rate_Interaction_Base(Population, rngUni, m_eV), E_scale(INT_PRE_START, INT_PRE_END, INT_PRE_N) {
precomputed_values = new double [E_scale.get_number_bins()];
}
void calc_values(); // must be called by derived class, can't call in this constructor, due to virtual pure
double get_macro_sigma_m(const Particle &interPart);
private:
double lookup_macro_sigma_m(const double &E_eV, const vec3 &loc_m);
};
inline void TI_thermal_Rate_Precomputed_Interaction_Base::calc_values() {
for (int i=0; i<E_scale.get_number_bins(); i++) {
precomputed_values[i] = calc_microSigma_m2(E_scale.get_bin_mid(i));
}
}
inline double TI_thermal_Rate_Precomputed_Interaction_Base::get_macro_sigma_m(const Particle &interPart) {
vec3 loc_m = interPart.get_x_m();
double E_eV = interPart.get_E_eV();
if (E_scale.in_scale(E_eV)) {
return lookup_macro_sigma_m(E_eV, loc_m);
} else {
return calc_macro_sigma_m(E_eV, loc_m);
}
}
inline double TI_thermal_Rate_Precomputed_Interaction_Base::lookup_macro_sigma_m(const double &E_eV, const vec3 &loc_m) {
int i = E_scale.calc_index(E_eV);
return precomputed_values[i] * pow(Population->get_density_m3(loc_m), n);
}
#endif /* TI_rate_base_h */
-104
View File
@@ -1,104 +0,0 @@
//
// TI_thermal_binary_base.h
// mc_electron
//
// Created by Christian Reiling on 18.11.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef TI_thermal_binary_base_h
#define TI_thermal_binary_base_h
#include "interaction_base.h"
class TI_thermal_binary_Interaction_Base : public Interaction_Base { // Binary interactions of tritium ions with thermal Populations
protected:
double m1_eV; // energy of kinetic particle for CS measurement : tritium ion
double v_therm; // typical speed for thermal population
public:
TI_thermal_binary_Interaction_Base(Population_Base *Population, UniRNG *rngUni, double m_eV) : Interaction_Base(Population, rngUni) {
if (Population->get_number_E_bins() > 1) {
throw MyException("Population is not thermal, when expected thermal.");
}
m1_eV = m_eV;
v_therm = Population->get_thermal_v_ms(); // Typical Speed of "Thermal Blur"
}
double get_macro_sigma_m(const Particle &interPart);
protected:
double calc_macro_sigma_m(const double &E_eV, const vec3 &loc_m);
double calc_microSigma_m2(const double &E_eV);
private:
virtual double get_microSigma_m2(const double &E_eV) = 0;
};
inline double TI_thermal_binary_Interaction_Base::get_macro_sigma_m(const Particle &interPart) {
vec3 loc_m = interPart.get_x_m();
double v_ms = calc_vec3_abs(interPart.get_v_ms() - Population->get_drift_v_ms(loc_m)); // Shift to "Labframe without thermal blur"
double E_eV = calc_E_eV_from_v_ms(v_ms, m1_eV); // Lab energy without thermal integration
return calc_macro_sigma_m(E_eV, loc_m);
}
inline double TI_thermal_binary_Interaction_Base::calc_macro_sigma_m(const double &E_eV, const vec3 &loc_m) {
return calc_microSigma_m2(E_eV)*Population->get_density_m3(loc_m);
}
inline double TI_thermal_binary_Interaction_Base::calc_microSigma_m2(const double &E_eV) {
double v1_ms = calc_v_ms_from_E_eV(E_eV, m1_eV);
// Integration over theta and v
auto integrand = [&](double v2_ms, double theta) {
double E_eV = m1_eV/2 * (pow(v1_ms,2) + pow(v2_ms,2) - 2*v1_ms*v2_ms*cos(theta)) * pow(c_ms, -2);
return Population->get_v_pdf(v2_ms)*get_microSigma_m2(E_eV)/pi;
};
return double_simpson_integrate(integrand, 0., 3*v_therm, 0., pi, INT_N, INT_N); // 3*v_therm equals 99% of the integral
/* // Integration over theta
auto integrand = [&](double theta) {
double E_eV = m1_eV/2 * (pow(v1_ms,2) + pow(v_therm,2) - 2*v1_ms*v_therm*cos(theta)) * pow(c_ms, -2);
return get_microSigma_m2(E_eV);
};
return integrate(integrand, 0., pi, INT_N, simpson())/pi;
*/
}
class TI_thermal_binary_Precomputed_Interaction_Base : public TI_thermal_binary_Interaction_Base { // Precomputed Interactions of electrons with thermal Populations
Log_Scale E_scale; // E_scale for Interpolation calculation
double *precomputed_values;
public:
TI_thermal_binary_Precomputed_Interaction_Base(Population_Base *Population, UniRNG *rngUni, double m_eV) : TI_thermal_binary_Interaction_Base(Population, rngUni, m_eV), E_scale(INT_PRE_START, INT_PRE_END, INT_PRE_N) {
precomputed_values = new double [E_scale.get_number_bins()];
}
void calc_values(); // must be called by derived class, can't call in this constructor, due to virtual pure
double get_macro_sigma_m(const Particle &interPart);
private:
double lookup_macro_sigma_m(const double &E_eV, const vec3 &loc_m);
};
inline void TI_thermal_binary_Precomputed_Interaction_Base::calc_values() {
for (int i=0; i<E_scale.get_number_bins(); i++) {
precomputed_values[i] = calc_microSigma_m2(E_scale.get_bin_mid(i));
}
}
inline double TI_thermal_binary_Precomputed_Interaction_Base::get_macro_sigma_m(const Particle &interPart) {
vec3 loc_m = interPart.get_x_m();
double v_ms = calc_vec3_abs(interPart.get_v_ms() - Population->get_drift_v_ms(loc_m)); // Shift to "Labframe without thermal blur"
double E_eV = calc_E_eV_from_v_ms(v_ms, m1_eV); // Lab energy without thermal integration
if (E_scale.in_scale(E_eV)) {
return lookup_macro_sigma_m(E_eV, loc_m);
} else {
return calc_macro_sigma_m(E_eV, loc_m);
}
}
inline double TI_thermal_binary_Precomputed_Interaction_Base::lookup_macro_sigma_m(const double &E_eV, const vec3 &loc_m) {
int i = E_scale.calc_index(E_eV);
return precomputed_values[i] * Population->get_density_m3(loc_m);
}
#endif /* TI_thermal_binary_base_h */
-93
View File
@@ -1,93 +0,0 @@
//
// TI_thermal_tenary_base.h
// mc_electron
//
// Created by Christian Reiling on 18.11.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef TI_thermal_tenary_base_h
#define TI_thermal_tenary_base_h
#include "interaction_base.h"
class TI_thermal_tenary_Interaction_Base : public Interaction_Base { // Tenary interactions of tritium ions with thermal Populations
protected:
double m1_eV; // energy of kinetic particle for CS measurement : tritum ion
double v_therm; // typical spped for thermal population
public:
TI_thermal_tenary_Interaction_Base(Population_Base *Population, UniRNG *rngUni, double m_eV) : Interaction_Base(Population, rngUni) {
if (Population->get_number_E_bins() > 1) {
throw MyException("Population is not thermal, when expected thermal.");
}
m1_eV = m_eV;
v_therm = Population->get_thermal_v_ms(); // Typical Speed of "Thermal Blur"
}
double get_macro_sigma_m(const Particle &interPart);
protected:
double calc_macro_sigma_m(const double &E_eV, const vec3 &loc_m);
double calc_microSigma_divbyn_m2(const double &E_eV);
private:
virtual double get_microSigma_m2(const double &E_eV) = 0;
};
inline double TI_thermal_tenary_Interaction_Base::get_macro_sigma_m(const Particle &interPart) {
vec3 loc_m = interPart.get_x_m();
double v_ms = calc_vec3_abs(interPart.get_v_ms() - Population->get_drift_v_ms(loc_m)); // Shift to "Labframe without thermal blur"
double E_eV = calc_E_eV_from_v_ms(v_ms, m1_eV); // Lab energy without thermal integration
return calc_macro_sigma_m(E_eV, loc_m);
}
inline double TI_thermal_tenary_Interaction_Base::calc_macro_sigma_m(const double &E_eV, const vec3 &loc_m) {
return calc_microSigma_divbyn_m2(E_eV)*pow(Population->get_density_m3(loc_m), 2);
}
inline double TI_thermal_tenary_Interaction_Base::calc_microSigma_divbyn_m2(const double &E_eV) {
double v1_ms = calc_v_ms_from_E_eV(E_eV, m1_eV);
auto integrand = [&](double theta) {
double E_eV = m1_eV/2 * (pow(v1_ms,2) + pow(v_therm,2) - 2*v1_ms*v_therm*cos(theta)) * pow(c_ms, -2);
return get_microSigma_m2(E_eV);
};
return integrate(integrand, 0., pi, INT_N, simpson())/pi;
}
class TI_thermal_tenary_Precomputed_Interaction_Base : public TI_thermal_tenary_Interaction_Base { // Precomputed Interactions of electrons with thermal Populations
Log_Scale E_scale; // E_scale for Interpolation calculation
double *precomputed_values;
public:
TI_thermal_tenary_Precomputed_Interaction_Base(Population_Base *Population, UniRNG *rngUni, double m_eV) : TI_thermal_tenary_Interaction_Base(Population, rngUni, m_eV), E_scale(INT_PRE_START, INT_PRE_END, INT_PRE_N) {
precomputed_values = new double [E_scale.get_number_bins()];
}
void calc_values(); // must be called by derived class, can't call in this constructor, due to virtual pure
double get_macro_sigma_m(const Particle &interPart);
private:
double lookup_macro_sigma_m(const double &E_eV, const vec3 &loc_m);
};
inline void TI_thermal_tenary_Precomputed_Interaction_Base::calc_values() {
for (int i=0; i<E_scale.get_number_bins(); i++) {
precomputed_values[i] = calc_microSigma_divbyn_m2(E_scale.get_bin_mid(i));
}
}
inline double TI_thermal_tenary_Precomputed_Interaction_Base::get_macro_sigma_m(const Particle &interPart) {
vec3 loc_m = interPart.get_x_m();
double v_ms = calc_vec3_abs(interPart.get_v_ms() - Population->get_drift_v_ms(loc_m)); // Shift to "Labframe without thermal blur"
double E_eV = calc_E_eV_from_v_ms(v_ms, m1_eV); // Lab energy without thermal integration
if (E_scale.in_scale(E_eV)) {
return lookup_macro_sigma_m(E_eV, loc_m);
} else {
return calc_macro_sigma_m(E_eV, loc_m);
}
}
inline double TI_thermal_tenary_Precomputed_Interaction_Base::lookup_macro_sigma_m(const double &E_eV, const vec3 &loc_m) {
int i = E_scale.calc_index(E_eV);
return precomputed_values[i] * pow(Population->get_density_m3(loc_m),2);
}
#endif /* TI_thermal_tenary_base_h */
-131
View File
@@ -1,131 +0,0 @@
//
// asci_logger.cpp
// mc_electron
//
// Created by Christian Reiling on 06.05.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#include "asci_logger.hpp"
#include <sstream>
#include "error_types.h"
using namespace std;
// Redundant Code with h5, but ASCI Logger is kept in code as relict.
const int ASCI_Logger::numberZBins = load_parameter("LOG_BARS");
ASCI_Logger::ASCI_Logger() {
if (numberZBins == 0) {
logging = false;
} else if (numberZBins == -1 || numberZBins > 0) {
logging = true;
set_zLogValues();
print_logInfo();
set_outdirName();
create_outdir();
set_outStream();
} else {
stringstream ss;
ss<<"H5_Logger::Parameter numberZBins invalid value.\nnumberZBins:\t"<<numberZBins<<"\n";
throw MyException (ss.str());
}
}
void ASCI_Logger::set_zLogValues() {
zLogValues.clear();
if (logging) {
double start_m = z_RW_m;
double length_m = z_WGTS_end_m - start_m;
double stepLength_m = length_m/(numberZBins-1);
double z_m;
for (int i = 0;i<numberZBins;i++) {
z_m = z_RW_m + stepLength_m*i;
zLogValues.push_back(z_m);
}
}
}
void ASCI_Logger::print_logInfo() {
stringstream ss;
ss<<"Logger\t ";
if (!logging) {
ss<<"Logging disabled.\n";
} else if (numberZBins == -1) {
ss<<"Logging after every Interaction to one file.\n";
} else if (numberZBins == 1) {
ss<<"Only Logging Rearwall Output.\n";
} else {
ss<<"Logging at "<<numberZBins<<" z values.\n";
}
cout<<ss.str();
}
void ASCI_Logger::log_Particle(Particle *logPart, blitz::TinyVector<double,3> oldLoc_m) {
if (!logging) {
return;
}
if (logPart->get_species() != electron) {
return;
}
// Assumption: no change of sign in v_z
if (numberZBins == -1) {
outStream[0]<<*logPart<<endl;
} else {
double zold = oldLoc_m[2];
double znew = logPart->get_x_m()[2];
double zmin = min(zold,znew);
double zmax = max(zold,znew);
for (int i=0;i<numberZBins;i++) {
if (zLogValues[i]>=zmin && zLogValues[i]<=zmax) {
outStream[i]<<*logPart<<endl; // Location wrong, because it s the new Location.
}
}
}
}
void ASCI_Logger::set_outdirName() {
string parname = get_parameter_filenamepath();
stringstream dirname;
int i = 1;
do {
dirname.str(std::string());
dirname << parname << "_" << get_time_string() << "_" << i++;
} while ( is_dir(dirname.str()) );
outdirName = dirname.str();
return;
}
void ASCI_Logger::create_outdir() {
if (mkdir(outdirName.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH) != 0) {
stringstream ss;
ss<<"ASCI_Logger::create_outdir: Could not create output directiory.\n outdirName = "<<outdirName<<endl;
throw MyException(ss.str());
}
return;
}
void ASCI_Logger::set_outStream() {
if (numberZBins == -1) {
outStream = new ofstream [1];
stringstream ss;
ss <<outdirName << "/all" << ".dat";
outStream[0].open(ss.str().c_str());
} else {
outStream = new ofstream [numberZBins];
for (int i = 0; i < numberZBins; i++)
{
stringstream ss;
ss << outdirName << "/z=" << zLogValues[i] << ".dat";
outStream[i].open(ss.str().c_str());
}
}
}
-41
View File
@@ -1,41 +0,0 @@
//
// asci_logger.hpp
// mc_electron
//
// Created by Christian Reiling on 06.05.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef asci_logger_hpp
#define asci_logger_hpp
#include <vector>
#include "particle.hpp"
#include "read_system.h"
class ASCI_Logger {
static const int numberZBins;
bool logging;
std::vector<double> zLogValues;
std::string outdirName;
std::ofstream *outStream;
public:
ASCI_Logger();
private:
void set_zLogValues();
void print_logInfo();
void set_outdirName();
void create_outdir();
void set_outStream();
public:
void log_Particle(Particle *inPart , vec3 oldLoc_m);
};
#endif /* asci_logger_hpp */
-86
View File
@@ -1,86 +0,0 @@
//
// average_container.h
// mc_electron
//
// Created by Christian Reiling on 10.05.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef average_container_h
#define average_container_h
#include "edge_container.h"
template <class T_Map>
class Average_Container : public Base_Container<T_Map> {
public:
Average_Container() : Base_Container<T_Map>() {}
Average_Container(std::string load_path) : Base_Container<T_Map>(load_path) {}
Average_Container(const Edge_Container<T_Map> &edgeContainer) {calcMap(edgeContainer);};
public:
void calcMap(const Edge_Container<T_Map> &edgeContainer);
private:
void rec_calcMap(const double &subMap, std::deque<double> Points);
template <typename T> void rec_calcMap(const T &subMapm, std::deque<double> Points);
public:
double get_value(std::deque<double> point);
};
template <class T_Map>
void Average_Container<T_Map>::calcMap(const Edge_Container<T_Map> &edgeContainer) {
T_Map edgeMap = edgeContainer.getMap();
if (edgeMap.empty()) {
std::stringstream ss;
ss<<"Average_Container::calcMap: Input Edge_Container empty.\n";
throw MyException(ss.str());
}
Base_Container<T_Map>::Map.clear();
std::deque<double> Points;
rec_calcMap(edgeMap, Points);
}
template <class T_Map>
void Average_Container<T_Map>::rec_calcMap(const double &subMap, std::deque<double> Points) {
Points.push_back(subMap);
Base_Container<T_Map>::addPoint(Points);
}
template <class T_Map>
template <typename T>
void Average_Container<T_Map>::rec_calcMap(const T &subMap, std::deque<double> Points) {
double curVal, nextVal, avgVal;
typename T::const_iterator curitr, nextitr;
for (nextitr = ++(subMap.cbegin()); nextitr!= subMap.cend(); nextitr++) {
curitr = nextitr;
--curitr;
curVal = curitr->first;
nextVal = nextitr->first;
avgVal = curVal + (nextVal-curVal)/2;
Points.push_back(avgVal);
rec_calcMap(curitr->second, Points);
Points.pop_back();
}
// insert last point as overflow value
curitr = (--subMap.cend());
Points.push_back(curitr->first);
rec_calcMap(curitr->second, Points);
}
template <class T_Map>
double Average_Container<T_Map>::get_value(std::deque <double> Point) {
Base_Container<T_Map>::checkEmpty();
if (Base_Container<T_Map>::Dim != Point.size()) {
std::stringstream ss;
ss<<"EdgeBase_Container::interpolate: deque point dimension missmatch.\n";
throw MyException(ss.str());
}
return Base_Container<T_Map>::get_value(Point, Lower_bound_Over);
}
#endif /* average_container_h */
-321
View File
@@ -1,321 +0,0 @@
//
// base_container.h
// mc_electron
//
// Created by Christian Reiling on 10.05.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef base_container_h
#define base_container_h
#include <string>
#include <map>
#include <fstream>
#include <sstream>
#include <deque>
#include "blitz/tinyvec2.h"
#include "blitz/array.h"
#include "error_types.h"
#include "read_system.h"
#include "constants.h"
typedef std::deque<double> ddeque;
typedef blitz::TinyVector<double,3> vec3;
typedef std::map<double,double> dim1Map;
typedef std::map<double,dim1Map> dim2Map;
typedef std::map<double,dim2Map> dim3Map;
typedef std::map<double,dim3Map> dim4Map;
enum searchStyle {Find, Lower_bound, Lower_bound_Over};
template <class T_Map>
class Base_Container {
protected:
T_Map Map;
int Dim;
public:
Base_Container() {
Dim = calc_Dim<T_Map>();
}
Base_Container(std::string load_path) {
Dim = calc_Dim<T_Map>();
importFromCSV(load_path);
}
protected:
template <typename T> double calc_Dim();
private:
void inc_Count(dim1Map *subMap, int *count) ;
template <typename T> void inc_Count(std::map<double,T> *subMap, int *count);
public:
void importFromCSV(std::string load_path);
private:
void addPointFromLine(const std::string &csv_line);
public:
void addPoint(std::deque<double> pointIn);
private:
void rec_addPoint(std::map<double,double> *subMap, std::deque<double> pointIn);
template <typename T> void rec_addPoint (std::map<double,T> *subMap, std::deque<double> pointIn);
public:
void exportToCSV(std::string export_path) ;
private:
std::string getExportFileHeader() ;
void rec_exportToCSV (const dim1Map &subMap, std::ofstream &exportStream, std::string preset = "") ;
template <typename T> void rec_exportToCSV(const T &subMap, std::ofstream &exportStream, std::string preset = "") ;
protected:
double get_value(std::deque<double> Points, searchStyle searchMode) ;
template <typename T_target> T_target* getSubMap(std::deque<double> Points, searchStyle searchMode) ;
private:
template <typename T_target> void rec_getSubMap(T_target *subMap, T_target **targetMapPtr, std::deque<double> Points, searchStyle searchMode) ;
template <typename T_target, typename T> void rec_getSubMap(T *subMap, T_target **targetMapPtr, std::deque<double> Points, searchStyle searchMode) ;
template <class T> typename T::iterator searchitrByStyle(T *subMap, double x, searchStyle searchMode) ;
protected:
void checkEmpty() ;
public:
T_Map getMap() const {return Map;}
};
template <class T_Map>
template <typename T>
double Base_Container<T_Map>::calc_Dim() {
T dummyMap;
int count = 0;
inc_Count(&dummyMap, &count);
return count;
}
template <class T_Map>
void Base_Container<T_Map>::inc_Count(dim1Map *subMap, int *count) {
++(*count);
subMap->insert(std::pair<double,double>(0,0));
}
template <class T_Map>
template <typename T>
void Base_Container<T_Map>::inc_Count(std::map<double,T> *subMap, int *count) {
++(*count);
T tempMap;
inc_Count(&tempMap, count);
subMap->insert(std::pair<double,T>(0,tempMap));
}
template <class T_Map>
void Base_Container<T_Map>::importFromCSV(std::string load_path) {
std::ifstream importStream(load_path);
if (!importStream.good()) {
std::stringstream ss;
ss<<"Base_Container::readFromCSV: Could not open file. \n loadFilePath= "<<load_path<<"\n";
throw MyException(ss.str());
}
std::string csv_line;
while (getline(importStream, csv_line)) {
remove_leading_whites(csv_line);
replace_delimiter(csv_line);
if ( check_ignore_line(csv_line) ) {
continue;
}
addPointFromLine(csv_line);
}
importStream.close();
}
template <class T_Map>
void Base_Container<T_Map>::addPointFromLine(const std::string &csv_line) {
std::stringstream ss;
ss.str(csv_line);
std::deque<double> dequeTemp;
double tempVal;
for (int i = 0;i<=Dim;i++) {
if (ss>>tempVal) {
dequeTemp.push_back(tempVal);
} else {
std::cout<<"Base_Container::addPointFromFile: Warning could not read line in inputFile. \nloadFilePath\t"<<csv_line<<"\n";
}
}
addPoint(dequeTemp);
}
template <class T_Map>
void Base_Container<T_Map>::addPoint(std::deque<double> pointIn) {
if (pointIn.size() != Dim+1) {
std::stringstream ss;
ss<<"Base_Container::addPoint: deque pointIn dimension missmatch.\n";
for (std::deque<double>::iterator itr = pointIn.begin(); itr!=pointIn.end(); itr++) {
std::cout<<*itr<<"\n";
}
throw MyException(ss.str());
}
rec_addPoint(&Map, pointIn);
}
template <class T_Map>
void Base_Container<T_Map>::rec_addPoint(dim1Map *subMap, std::deque<double> pointIn) { //Iteration End
if (pointIn.size()!=2) {
std::stringstream ss;
ss<<"Base_Container::addPoint: Dimension missmatch of pointIn.\nDelta =\t"<<pointIn.size()-2<<"\n";
throw MyException(ss.str());
}
double x = pointIn[0];
double f = pointIn[1];
if (subMap->find(x) != subMap->end()) {
std::stringstream ss;
ss<<"Base_Container::addPoint: Dublicate insertion of key.\n";
throw MyException(ss.str());
}
subMap->insert(std::pair<double,double>(x, f));
}
template <class T_Map>
template <typename T>
void Base_Container<T_Map>::rec_addPoint (std::map<double,T> *subMap, std::deque<double> pointIn) {
double x = *pointIn.begin();
pointIn.pop_front();
if (subMap->find(x) == subMap->end()) { // No such element -> generate new Map and insert
T tempMap;
rec_addPoint(&tempMap, pointIn);
subMap->insert(std::pair<double,T>(x,tempMap));
} else { // Found such element -> Insert to existing map using iteration
rec_addPoint(&subMap->find(x)->second, pointIn);
}
}
template <class T_Map>
void Base_Container<T_Map>::exportToCSV(std::string export_path) {
checkEmpty();
std::ofstream exportStream(export_path);
if (!exportStream.good()) {
std::stringstream ss;
ss<<"Base_Container::exportToCSV: Could not open file.\nexportFilePath\t "<<export_path<<"\n";
throw MyException(ss.str());
}
exportStream<<getExportFileHeader();
rec_exportToCSV(Map, exportStream, "");
exportStream.close();
}
template <class T_Map>
std::string Base_Container<T_Map>::getExportFileHeader() {
std::stringstream ss;
ss<<"# Automatically generated Data of Function2D_Container class by exportToFile().\n";
ss<<"# Generated on "<<get_time_string()<<".\n";
ss<<"#key1 (usually Energy)\tkey2 (angluar distribution or secondary energy)\tparameter (usually SDCS)\n";
return ss.str();
}
template <class T_Map>
void Base_Container<T_Map>::rec_exportToCSV(const dim1Map &subMap, std::ofstream &exportStream, std::string preset) {
for (dim1Map::const_iterator itr = subMap.cbegin();itr!=subMap.cend();itr++) {
exportStream<<preset<<itr->first<<"\t"<<itr->second<<"\n";
}
}
template <class T_Map>
template <typename T>
void Base_Container<T_Map>::rec_exportToCSV(const T &subMap, std::ofstream &exportStream, std::string preset) {
std::stringstream ss;
for (typename T::const_iterator itr = subMap.cbegin();itr!=subMap.cend();itr++) {
ss.clear();
ss.str("");
ss<<preset<<itr->first<<"\t";
rec_exportToCSV(itr->second, exportStream, ss.str());
}
}
template <class T_Map>
double Base_Container<T_Map>::get_value(std::deque<double> Points, searchStyle searchMode) {
double x = Points.back();
Points.pop_back();
dim1Map *subMap = getSubMap<dim1Map>(Points, searchMode);
dim1Map::const_iterator itr = searchitrByStyle(subMap, x, searchMode);
return itr->second;
}
template <class T_Map>
template <typename T_target>
T_target* Base_Container<T_Map>::getSubMap(std::deque<double> Points, searchStyle searchMode) {
checkEmpty();
double T_Dim = calc_Dim<T_target>();
if (Points.size() != Dim - T_Dim) {
std::stringstream ss;
ss<<"Base_Container::getSubMap: Dimension Missmatch of Points\n Missmatch =\t<< "<<Points.size() - (Dim - T_Dim)<<"\n";
throw MyException(ss.str());
}
T_target *targetMap;
rec_getSubMap(&Map, &targetMap, Points, searchMode);
return targetMap;
}
template <class T_Map>
template <typename T_target>
void Base_Container<T_Map>::rec_getSubMap(T_target *subMap, T_target **targetMapPtr, std::deque<double> Points, searchStyle searchMode) {
if (Points.size() != 0) {
std::stringstream ss;
ss<<"Base_Container::get_subitr: Dimension Missmatch of Points\n";
throw MyException(ss.str());
}
*targetMapPtr = subMap;
}
template <class T_Map>
template <typename T_target, typename T>
void Base_Container<T_Map>::rec_getSubMap(T *subMap, T_target **targetMapPtr, std::deque<double> Points, searchStyle searchMode) {
double x = Points.front();
Points.pop_front();
typename T::iterator itr = searchitrByStyle(subMap, x, searchMode);
rec_getSubMap(&(itr->second), targetMapPtr, Points, searchMode);
}
template <class T_Map>
template <class T>
typename T::iterator Base_Container<T_Map>::searchitrByStyle(T *subMap, double x, searchStyle searchMode) {
typename T::iterator itr;
if (searchMode == Find) {
itr = subMap->find(x);
} else if (searchMode == Lower_bound) {
itr = subMap->lower_bound(x);
} else if (searchMode == Lower_bound_Over) {
itr = subMap->lower_bound(x);
if (itr == subMap->end()) {
--itr;
}
}
if (itr == subMap->end()) {
std::stringstream ss;
ss<<"Base_Container::calcitr: Point is out of bound.\n";
throw MyException(ss.str());
}
return itr;
}
template <class T_Map>
void Base_Container<T_Map>::checkEmpty() {
if (Map.empty()) {
std::stringstream ss;
ss<<"Base_Conainer::checkEmpty: Map is empty.\n";
throw MyException(ss.str());
}
}
#endif /* base_container_h */
File diff suppressed because it is too large Load Diff
-62
View File
@@ -1,62 +0,0 @@
//
// constants.h
// mc_electron
//
// Created by Christian Reiling on 08.10.18.
// Copyright © 2018 Christian Reiling. All rights reserved.
//
#ifndef constants_h
#define constants_h
#include "read_system.h"
typedef const double constant;
constant scale_start = 1e-7;
constant scale_end = 2e4;
// Natural Constants
constant pi = 3.1415;
constant c_ms = 299792458;
constant kb_eVK = 8.6173303e-5;
constant e_C = 1.602176462e-19;
constant rBohr_m = 0.52917721067e-10;
constant ERyd_eV = 13.605693009;
// Particle Properties
constant me_eV = 0.511e6;
constant mT_eV = 2.8094320212e9;
constant re_m = 2.817940322719e-15;
constant ZT2 = 2.;
constant EionT2_eV = 15.43;
constant decayConstT2_s = 1.78405e-09;
// Beta Decay
constant BetaDecayConst = 1.2072343416696292e-47;
constant TritiumDecayEndpoint_eV = 18.574e3;
// WGTS
constant z_RW_m = -3;
constant z_WGTS_start_m = 0;
constant z_WGTS_end_m = 10;
constant z_DPS_end_m = 13;
constant r_WGTS_m = 0.045;
constant l_WGTS_m = z_WGTS_end_m - z_WGTS_start_m;
constant z_WGTS_mid_m = (z_WGTS_end_m+z_WGTS_start_m)/2;
// from Kuckert:2018aa
constant reduction_WGTS_front = 0.034;
constant reduction_WGTS_rear = 0.033;
constant reduction_tot_front = 5e-4;
constant reduction_tot_rear = 5e-4;
// For interaction integration
const int INT_N = load_parameter("INT_N"); // Number of points for theta integration
const double INT_PRE_START = load_parameter("INT_PRE_START"); // Start energy for precomputed cross sections
const double INT_PRE_END = load_parameter("INT_PRE_END"); // End energy for precomputed cross sections
const int INT_PRE_N = load_parameter("INT_PRE_N"); //Number of points for precomputed cross sections
#endif /* constants_h */
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -1,316 +0,0 @@
# Automatically generated Data of Function2D_Container class by exportToFile().
# Generated on 20190408.
#key1 (usually Energy) key2 (angluar distribution or secondary energy) parameter (usually SDCS)
15.0244 0
15.3146 0
15.43 0
15.4934 6.84064e-26
15.7398 8.62796e-23
16.1102 3.30713e-22
16.4893 5.73975e-22
16.8773 8.16127e-22
17.2744 1.05721e-21
17.6809 1.29723e-21
18.0969 1.53617e-21
18.5228 1.77401e-21
18.9586 2.01069e-21
19.4048 2.24613e-21
19.8614 2.48025e-21
20.3287 2.71295e-21
20.8071 2.94411e-21
21.2967 3.17358e-21
21.7978 3.40125e-21
22.3108 3.62695e-21
22.8357 3.85053e-21
23.3731 4.07183e-21
23.9231 4.29068e-21
24.486 4.50692e-21
25.0622 4.72036e-21
25.6519 4.93084e-21
26.2556 5.13818e-21
26.8734 5.34222e-21
27.5057 5.54278e-21
28.153 5.73971e-21
28.8154 5.93285e-21
29.4935 6.12203e-21
30.1875 6.30712e-21
30.8979 6.48797e-21
31.6249 6.66445e-21
32.3691 6.83643e-21
33.1308 7.00379e-21
33.9104 7.16643e-21
34.7083 7.32424e-21
35.525 7.47712e-21
36.361 7.62501e-21
37.2166 7.76781e-21
38.0923 7.90547e-21
38.9887 8.03794e-21
39.9061 8.16515e-21
40.8451 8.28709e-21
41.8063 8.40371e-21
42.79 8.515e-21
43.7969 8.62094e-21
44.8275 8.72154e-21
45.8823 8.81679e-21
46.962 8.90671e-21
48.0671 8.99132e-21
49.1981 9.07064e-21
50.3558 9.14471e-21
51.5407 9.21357e-21
52.7535 9.27726e-21
53.9949 9.33584e-21
55.2654 9.38936e-21
56.5659 9.43789e-21
57.8969 9.48149e-21
59.2593 9.52023e-21
60.6537 9.55419e-21
62.081 9.58346e-21
63.5418 9.6081e-21
65.037 9.62821e-21
66.5674 9.64388e-21
68.1338 9.6552e-21
69.7371 9.66226e-21
71.3781 9.66516e-21
73.0577 9.664e-21
74.7768 9.65887e-21
76.5364 9.64988e-21
78.3373 9.63713e-21
80.1807 9.62072e-21
82.0674 9.60075e-21
83.9986 9.57734e-21
85.9751 9.55058e-21
87.9982 9.52057e-21
90.0689 9.48743e-21
92.1883 9.45125e-21
94.3576 9.41214e-21
96.5779 9.3702e-21
98.8505 9.32554e-21
101.177 9.27826e-21
103.557 9.22845e-21
105.994 9.17623e-21
108.488 9.12168e-21
111.041 9.06491e-21
113.654 9.00602e-21
116.328 8.94509e-21
119.066 8.88223e-21
121.868 8.81752e-21
124.735 8.75106e-21
127.67 8.68294e-21
130.675 8.61325e-21
133.749 8.54207e-21
136.897 8.4695e-21
140.118 8.3956e-21
143.415 8.32047e-21
146.79 8.24419e-21
150.244 8.16682e-21
153.779 8.08846e-21
157.398 8.00918e-21
161.102 7.92904e-21
164.893 7.84812e-21
168.773 7.7665e-21
172.744 7.68422e-21
176.809 7.60137e-21
180.969 7.51801e-21
185.228 7.4342e-21
189.586 7.35e-21
194.048 7.26546e-21
198.614 7.18065e-21
203.287 7.09561e-21
208.071 7.01041e-21
212.967 6.9251e-21
217.978 6.83972e-21
223.108 6.75432e-21
228.357 6.66895e-21
233.731 6.58365e-21
239.231 6.49847e-21
244.86 6.41344e-21
250.622 6.32861e-21
256.519 6.24402e-21
262.556 6.1597e-21
268.734 6.07568e-21
275.057 5.992e-21
281.53 5.9087e-21
288.154 5.8258e-21
294.935 5.74333e-21
301.875 5.66132e-21
308.979 5.5798e-21
316.249 5.49878e-21
323.691 5.41831e-21
331.308 5.33839e-21
339.104 5.25905e-21
347.083 5.1803e-21
355.25 5.10218e-21
363.61 5.02469e-21
372.166 4.94785e-21
380.923 4.87169e-21
389.887 4.7962e-21
399.061 4.72141e-21
408.451 4.64733e-21
418.063 4.57397e-21
427.9 4.50134e-21
437.969 4.42944e-21
448.275 4.3583e-21
458.823 4.28792e-21
469.62 4.2183e-21
480.671 4.14945e-21
491.981 4.08138e-21
503.558 4.01409e-21
515.407 3.94759e-21
527.535 3.88188e-21
539.949 3.81695e-21
552.654 3.75283e-21
565.659 3.6895e-21
578.969 3.62697e-21
592.593 3.56524e-21
606.537 3.5043e-21
620.81 3.44417e-21
635.418 3.38483e-21
650.37 3.32628e-21
665.674 3.26854e-21
681.338 3.21158e-21
697.371 3.15541e-21
713.781 3.10003e-21
730.577 3.04544e-21
747.768 2.99162e-21
765.364 2.93857e-21
783.373 2.8863e-21
801.807 2.8348e-21
820.674 2.78405e-21
839.986 2.73407e-21
859.751 2.68483e-21
879.982 2.63634e-21
900.689 2.58859e-21
921.883 2.54158e-21
943.576 2.49529e-21
965.779 2.44972e-21
988.505 2.40487e-21
1011.77 2.36073e-21
1035.57 2.31728e-21
1059.94 2.27453e-21
1084.88 2.23247e-21
1110.41 2.19109e-21
1136.54 2.15039e-21
1163.28 2.11034e-21
1190.66 2.07096e-21
1218.68 2.03223e-21
1247.35 1.99414e-21
1276.7 1.95669e-21
1306.75 1.91986e-21
1337.49 1.88366e-21
1368.97 1.84807e-21
1401.18 1.81308e-21
1434.15 1.77869e-21
1467.9 1.74489e-21
1502.44 1.71168e-21
1537.79 1.67904e-21
1573.98 1.64696e-21
1611.02 1.61544e-21
1648.93 1.58448e-21
1687.73 1.55406e-21
1727.44 1.52417e-21
1768.09 1.49481e-21
1809.69 1.46598e-21
1852.28 1.43766e-21
1895.86 1.40984e-21
1940.48 1.38252e-21
1986.14 1.35569e-21
2032.87 1.32935e-21
2080.71 1.30348e-21
2129.67 1.27808e-21
2179.78 1.25314e-21
2231.08 1.22866e-21
2283.57 1.20462e-21
2337.31 1.18103e-21
2392.31 1.15787e-21
2448.6 1.13513e-21
2506.22 1.11282e-21
2565.19 1.09091e-21
2625.56 1.06942e-21
2687.34 1.04832e-21
2750.57 1.02762e-21
2815.3 1.0073e-21
2881.54 9.87368e-22
2949.35 9.67807e-22
3018.75 9.48613e-22
3089.79 9.29781e-22
3162.49 9.11304e-22
3236.91 8.93177e-22
3313.08 8.75393e-22
3391.04 8.57947e-22
3470.83 8.40833e-22
3552.5 8.24044e-22
3636.1 8.07576e-22
3721.66 7.91423e-22
3809.23 7.75579e-22
3898.87 7.6004e-22
3990.61 7.44798e-22
4084.51 7.2985e-22
4180.63 7.1519e-22
4279 7.00814e-22
4379.69 6.86715e-22
4482.75 6.72889e-22
4588.23 6.59331e-22
4696.2 6.46036e-22
4806.71 6.33e-22
4919.81 6.20217e-22
5035.58 6.07684e-22
5154.07 5.95395e-22
5275.35 5.83347e-22
5399.49 5.71534e-22
5526.54 5.59953e-22
5656.59 5.48599e-22
5789.69 5.37468e-22
5925.93 5.26555e-22
6065.37 5.15858e-22
6208.1 5.05371e-22
6354.18 4.95092e-22
6503.7 4.85015e-22
6656.74 4.75138e-22
6813.38 4.65456e-22
6973.71 4.55966e-22
7137.81 4.46664e-22
7305.77 4.37547e-22
7477.68 4.28611e-22
7653.64 4.19852e-22
7833.73 4.11268e-22
8018.07 4.02855e-22
8206.74 3.9461e-22
8399.86 3.8653e-22
8597.51 3.78611e-22
8799.82 3.7085e-22
9006.89 3.63245e-22
9218.83 3.55792e-22
9435.76 3.48488e-22
9657.79 3.41331e-22
9885.05 3.34318e-22
10117.7 3.27445e-22
10355.7 3.20711e-22
10599.4 3.14112e-22
10848.8 3.07646e-22
11104.1 3.01311e-22
11365.4 2.95103e-22
11632.8 2.89021e-22
11906.6 2.83061e-22
12186.8 2.77222e-22
12473.5 2.71501e-22
12767 2.65896e-22
13067.5 2.60405e-22
13374.9 2.55024e-22
13689.7 2.49753e-22
14011.8 2.44589e-22
14341.5 2.39529e-22
14679 2.34572e-22
15024.4 2.29717e-22
15377.9 2.24959e-22
15739.8 2.20299e-22
16110.2 2.15734e-22
16489.3 2.11261e-22
16877.3 2.0688e-22
17274.4 2.02588e-22
17680.9 1.98384e-22
18096.9 1.94265e-22
18522.8 1.90231e-22
18958.6 1.86279e-22
19404.8 1.82408e-22
19861.4 1.78617e-22
20092.3 1.74902e-22
File diff suppressed because it is too large Load Diff
@@ -1,316 +0,0 @@
# Automatically generated Data of Function2D_Container class by exportToFile().
# Generated on 20190408.
#key1 (usually Energy) key2 (angluar distribution or secondary energy) parameter (usually SDCS)
14.8497 0
15.1991 0
15.43 0
15.4301 6.84064e-26
15.5568 8.62796e-23
15.9228 3.30713e-22
16.2975 5.73975e-22
16.681 8.16127e-22
17.0735 1.05721e-21
17.4753 1.29723e-21
17.8865 1.53617e-21
18.3074 1.77401e-21
18.7382 2.01069e-21
19.1791 2.24613e-21
19.6304 2.48025e-21
20.0923 2.71295e-21
20.5651 2.94411e-21
21.049 3.17358e-21
21.5443 3.40125e-21
22.0513 3.62695e-21
22.5702 3.85053e-21
23.1013 4.07183e-21
23.6449 4.29068e-21
24.2013 4.50692e-21
24.7708 4.72036e-21
25.3536 4.93084e-21
25.9502 5.13818e-21
26.5609 5.34222e-21
27.1859 5.54278e-21
27.8256 5.73971e-21
28.4804 5.93285e-21
29.1505 6.12203e-21
29.8365 6.30712e-21
30.5386 6.48797e-21
31.2572 6.66445e-21
31.9927 6.83643e-21
32.7455 7.00379e-21
33.516 7.16643e-21
34.3047 7.32424e-21
35.1119 7.47712e-21
35.9381 7.62501e-21
36.7838 7.76781e-21
37.6494 7.90547e-21
38.5353 8.03794e-21
39.4421 8.16515e-21
40.3702 8.28709e-21
41.3201 8.40371e-21
42.2924 8.515e-21
43.2876 8.62094e-21
44.3062 8.72154e-21
45.3488 8.81679e-21
46.4159 8.90671e-21
47.5081 8.99132e-21
48.626 9.07064e-21
49.7702 9.14471e-21
50.9414 9.21357e-21
52.1401 9.27726e-21
53.367 9.33584e-21
54.6228 9.38936e-21
55.9081 9.43789e-21
57.2237 9.48149e-21
58.5702 9.52023e-21
59.9484 9.55419e-21
61.3591 9.58346e-21
62.8029 9.6081e-21
64.2807 9.62821e-21
65.7933 9.64388e-21
67.3415 9.6552e-21
68.9261 9.66226e-21
70.548 9.66516e-21
72.2081 9.664e-21
73.9072 9.65887e-21
75.6463 9.64988e-21
77.4264 9.63713e-21
79.2483 9.62072e-21
81.1131 9.60075e-21
83.0218 9.57734e-21
84.9753 9.55058e-21
86.9749 9.52057e-21
89.0215 9.48743e-21
91.1163 9.45125e-21
93.2603 9.41214e-21
95.4548 9.3702e-21
97.701 9.32554e-21
100 9.27826e-21
102.353 9.22845e-21
104.762 9.17623e-21
107.227 9.12168e-21
109.75 9.06491e-21
112.332 9.00602e-21
114.976 8.94509e-21
117.681 8.88223e-21
120.45 8.81752e-21
123.285 8.75106e-21
126.186 8.68294e-21
129.155 8.61325e-21
132.194 8.54207e-21
135.305 8.4695e-21
138.489 8.3956e-21
141.747 8.32047e-21
145.083 8.24419e-21
148.497 8.16682e-21
151.991 8.08846e-21
155.568 8.00918e-21
159.228 7.92904e-21
162.975 7.84812e-21
166.81 7.7665e-21
170.735 7.68422e-21
174.753 7.60137e-21
178.865 7.51801e-21
183.074 7.4342e-21
187.382 7.35e-21
191.791 7.26546e-21
196.304 7.18065e-21
200.923 7.09561e-21
205.651 7.01041e-21
210.49 6.9251e-21
215.443 6.83972e-21
220.513 6.75432e-21
225.702 6.66895e-21
231.013 6.58365e-21
236.449 6.49847e-21
242.013 6.41344e-21
247.708 6.32861e-21
253.536 6.24402e-21
259.502 6.1597e-21
265.609 6.07568e-21
271.859 5.992e-21
278.256 5.9087e-21
284.804 5.8258e-21
291.505 5.74333e-21
298.365 5.66132e-21
305.386 5.5798e-21
312.572 5.49878e-21
319.927 5.41831e-21
327.455 5.33839e-21
335.16 5.25905e-21
343.047 5.1803e-21
351.119 5.10218e-21
359.381 5.02469e-21
367.838 4.94785e-21
376.494 4.87169e-21
385.353 4.7962e-21
394.421 4.72141e-21
403.702 4.64733e-21
413.201 4.57397e-21
422.924 4.50134e-21
432.876 4.42944e-21
443.062 4.3583e-21
453.488 4.28792e-21
464.159 4.2183e-21
475.081 4.14945e-21
486.26 4.08138e-21
497.702 4.01409e-21
509.414 3.94759e-21
521.401 3.88188e-21
533.67 3.81695e-21
546.228 3.75283e-21
559.081 3.6895e-21
572.237 3.62697e-21
585.702 3.56524e-21
599.484 3.5043e-21
613.591 3.44417e-21
628.029 3.38483e-21
642.807 3.32628e-21
657.933 3.26854e-21
673.415 3.21158e-21
689.261 3.15541e-21
705.48 3.10003e-21
722.081 3.04544e-21
739.072 2.99162e-21
756.463 2.93857e-21
774.264 2.8863e-21
792.483 2.8348e-21
811.131 2.78405e-21
830.218 2.73407e-21
849.753 2.68483e-21
869.749 2.63634e-21
890.215 2.58859e-21
911.163 2.54158e-21
932.603 2.49529e-21
954.548 2.44972e-21
977.01 2.40487e-21
1000 2.36073e-21
1023.53 2.31728e-21
1047.62 2.27453e-21
1072.27 2.23247e-21
1097.5 2.19109e-21
1123.32 2.15039e-21
1149.76 2.11034e-21
1176.81 2.07096e-21
1204.5 2.03223e-21
1232.85 1.99414e-21
1261.86 1.95669e-21
1291.55 1.91986e-21
1321.94 1.88366e-21
1353.05 1.84807e-21
1384.89 1.81308e-21
1417.47 1.77869e-21
1450.83 1.74489e-21
1484.97 1.71168e-21
1519.91 1.67904e-21
1555.68 1.64696e-21
1592.28 1.61544e-21
1629.75 1.58448e-21
1668.1 1.55406e-21
1707.35 1.52417e-21
1747.53 1.49481e-21
1788.65 1.46598e-21
1830.74 1.43766e-21
1873.82 1.40984e-21
1917.91 1.38252e-21
1963.04 1.35569e-21
2009.23 1.32935e-21
2056.51 1.30348e-21
2104.9 1.27808e-21
2154.43 1.25314e-21
2205.13 1.22866e-21
2257.02 1.20462e-21
2310.13 1.18103e-21
2364.49 1.15787e-21
2420.13 1.13513e-21
2477.08 1.11282e-21
2535.36 1.09091e-21
2595.02 1.06942e-21
2656.09 1.04832e-21
2718.59 1.02762e-21
2782.56 1.0073e-21
2848.04 9.87368e-22
2915.05 9.67807e-22
2983.65 9.48613e-22
3053.86 9.29781e-22
3125.72 9.11304e-22
3199.27 8.93177e-22
3274.55 8.75393e-22
3351.6 8.57947e-22
3430.47 8.40833e-22
3511.19 8.24044e-22
3593.81 8.07576e-22
3678.38 7.91423e-22
3764.94 7.75579e-22
3853.53 7.6004e-22
3944.21 7.44798e-22
4037.02 7.2985e-22
4132.01 7.1519e-22
4229.24 7.00814e-22
4328.76 6.86715e-22
4430.62 6.72889e-22
4534.88 6.59331e-22
4641.59 6.46036e-22
4750.81 6.33e-22
4862.6 6.20217e-22
4977.02 6.07684e-22
5094.14 5.95395e-22
5214.01 5.83347e-22
5336.7 5.71534e-22
5462.28 5.59953e-22
5590.81 5.48599e-22
5722.37 5.37468e-22
5857.02 5.26555e-22
5994.84 5.15858e-22
6135.91 5.05371e-22
6280.29 4.95092e-22
6428.07 4.85015e-22
6579.33 4.75138e-22
6734.15 4.65456e-22
6892.61 4.55966e-22
7054.8 4.46664e-22
7220.81 4.37547e-22
7390.72 4.28611e-22
7564.63 4.19852e-22
7742.64 4.11268e-22
7924.83 4.02855e-22
8111.31 3.9461e-22
8302.18 3.8653e-22
8497.53 3.78611e-22
8697.49 3.7085e-22
8902.15 3.63245e-22
9111.63 3.55792e-22
9326.03 3.48488e-22
9545.48 3.41331e-22
9770.1 3.34318e-22
10000 3.27445e-22
10235.3 3.20711e-22
10476.2 3.14112e-22
10722.7 3.07646e-22
10975 3.01311e-22
11233.2 2.95103e-22
11497.6 2.89021e-22
11768.1 2.83061e-22
12045 2.77222e-22
12328.5 2.71501e-22
12618.6 2.65896e-22
12915.5 2.60405e-22
13219.4 2.55024e-22
13530.5 2.49753e-22
13848.9 2.44589e-22
14174.7 2.39529e-22
14508.3 2.34572e-22
14849.7 2.29717e-22
15199.1 2.24959e-22
15556.8 2.20299e-22
15922.8 2.15734e-22
16297.5 2.11261e-22
16681 2.0688e-22
17073.5 2.02588e-22
17475.3 1.98384e-22
17886.5 1.94265e-22
18307.4 1.90231e-22
18738.2 1.86279e-22
19179.1 1.82408e-22
19630.4 1.78617e-22
20092.3 1.74902e-22
File diff suppressed because it is too large Load Diff
@@ -1,316 +0,0 @@
# Total Ionization Cross Section from
# BED Theory
# Initial Energy (eV) Cross section (m^2)
14.8497 0
15.1991 0
15.43 0
15.4301 6.84064e-26
15.5568 8.62796e-23
15.9228 3.30713e-22
16.2975 5.73975e-22
16.681 8.16127e-22
17.0735 1.05721e-21
17.4753 1.29723e-21
17.8865 1.53617e-21
18.3074 1.77401e-21
18.7382 2.01069e-21
19.1791 2.24613e-21
19.6304 2.48025e-21
20.0923 2.71295e-21
20.5651 2.94411e-21
21.049 3.17358e-21
21.5443 3.40125e-21
22.0513 3.62695e-21
22.5702 3.85053e-21
23.1013 4.07183e-21
23.6449 4.29068e-21
24.2013 4.50692e-21
24.7708 4.72036e-21
25.3536 4.93084e-21
25.9502 5.13818e-21
26.5609 5.34222e-21
27.1859 5.54278e-21
27.8256 5.73971e-21
28.4804 5.93285e-21
29.1505 6.12203e-21
29.8365 6.30712e-21
30.5386 6.48797e-21
31.2572 6.66445e-21
31.9927 6.83643e-21
32.7455 7.00379e-21
33.516 7.16643e-21
34.3047 7.32424e-21
35.1119 7.47712e-21
35.9381 7.62501e-21
36.7838 7.76781e-21
37.6494 7.90547e-21
38.5353 8.03794e-21
39.4421 8.16515e-21
40.3702 8.28709e-21
41.3201 8.40371e-21
42.2924 8.515e-21
43.2876 8.62094e-21
44.3062 8.72154e-21
45.3488 8.81679e-21
46.4159 8.90671e-21
47.5081 8.99132e-21
48.626 9.07064e-21
49.7702 9.14471e-21
50.9414 9.21357e-21
52.1401 9.27726e-21
53.367 9.33584e-21
54.6228 9.38936e-21
55.9081 9.43789e-21
57.2237 9.48149e-21
58.5702 9.52023e-21
59.9484 9.55419e-21
61.3591 9.58346e-21
62.8029 9.6081e-21
64.2807 9.62821e-21
65.7933 9.64388e-21
67.3415 9.6552e-21
68.9261 9.66226e-21
70.548 9.66516e-21
72.2081 9.664e-21
73.9072 9.65887e-21
75.6463 9.64988e-21
77.4264 9.63713e-21
79.2483 9.62072e-21
81.1131 9.60075e-21
83.0218 9.57734e-21
84.9753 9.55058e-21
86.9749 9.52057e-21
89.0215 9.48743e-21
91.1163 9.45125e-21
93.2603 9.41214e-21
95.4548 9.3702e-21
97.701 9.32554e-21
100 9.27826e-21
102.353 9.22845e-21
104.762 9.17623e-21
107.227 9.12168e-21
109.75 9.06491e-21
112.332 9.00602e-21
114.976 8.94509e-21
117.681 8.88223e-21
120.45 8.81752e-21
123.285 8.75106e-21
126.186 8.68294e-21
129.155 8.61325e-21
132.194 8.54207e-21
135.305 8.4695e-21
138.489 8.3956e-21
141.747 8.32047e-21
145.083 8.24419e-21
148.497 8.16682e-21
151.991 8.08846e-21
155.568 8.00918e-21
159.228 7.92904e-21
162.975 7.84812e-21
166.81 7.7665e-21
170.735 7.68422e-21
174.753 7.60137e-21
178.865 7.51801e-21
183.074 7.4342e-21
187.382 7.35e-21
191.791 7.26546e-21
196.304 7.18065e-21
200.923 7.09561e-21
205.651 7.01041e-21
210.49 6.9251e-21
215.443 6.83972e-21
220.513 6.75432e-21
225.702 6.66895e-21
231.013 6.58365e-21
236.449 6.49847e-21
242.013 6.41344e-21
247.708 6.32861e-21
253.536 6.24402e-21
259.502 6.1597e-21
265.609 6.07568e-21
271.859 5.992e-21
278.256 5.9087e-21
284.804 5.8258e-21
291.505 5.74333e-21
298.365 5.66132e-21
305.386 5.5798e-21
312.572 5.49878e-21
319.927 5.41831e-21
327.455 5.33839e-21
335.16 5.25905e-21
343.047 5.1803e-21
351.119 5.10218e-21
359.381 5.02469e-21
367.838 4.94785e-21
376.494 4.87169e-21
385.353 4.7962e-21
394.421 4.72141e-21
403.702 4.64733e-21
413.201 4.57397e-21
422.924 4.50134e-21
432.876 4.42944e-21
443.062 4.3583e-21
453.488 4.28792e-21
464.159 4.2183e-21
475.081 4.14945e-21
486.26 4.08138e-21
497.702 4.01409e-21
509.414 3.94759e-21
521.401 3.88188e-21
533.67 3.81695e-21
546.228 3.75283e-21
559.081 3.6895e-21
572.237 3.62697e-21
585.702 3.56524e-21
599.484 3.5043e-21
613.591 3.44417e-21
628.029 3.38483e-21
642.807 3.32628e-21
657.933 3.26854e-21
673.415 3.21158e-21
689.261 3.15541e-21
705.48 3.10003e-21
722.081 3.04544e-21
739.072 2.99162e-21
756.463 2.93857e-21
774.264 2.8863e-21
792.483 2.8348e-21
811.131 2.78405e-21
830.218 2.73407e-21
849.753 2.68483e-21
869.749 2.63634e-21
890.215 2.58859e-21
911.163 2.54158e-21
932.603 2.49529e-21
954.548 2.44972e-21
977.01 2.40487e-21
1000 2.36073e-21
1023.53 2.31728e-21
1047.62 2.27453e-21
1072.27 2.23247e-21
1097.5 2.19109e-21
1123.32 2.15039e-21
1149.76 2.11034e-21
1176.81 2.07096e-21
1204.5 2.03223e-21
1232.85 1.99414e-21
1261.86 1.95669e-21
1291.55 1.91986e-21
1321.94 1.88366e-21
1353.05 1.84807e-21
1384.89 1.81308e-21
1417.47 1.77869e-21
1450.83 1.74489e-21
1484.97 1.71168e-21
1519.91 1.67904e-21
1555.68 1.64696e-21
1592.28 1.61544e-21
1629.75 1.58448e-21
1668.1 1.55406e-21
1707.35 1.52417e-21
1747.53 1.49481e-21
1788.65 1.46598e-21
1830.74 1.43766e-21
1873.82 1.40984e-21
1917.91 1.38252e-21
1963.04 1.35569e-21
2009.23 1.32935e-21
2056.51 1.30348e-21
2104.9 1.27808e-21
2154.43 1.25314e-21
2205.13 1.22866e-21
2257.02 1.20462e-21
2310.13 1.18103e-21
2364.49 1.15787e-21
2420.13 1.13513e-21
2477.08 1.11282e-21
2535.36 1.09091e-21
2595.02 1.06942e-21
2656.09 1.04832e-21
2718.59 1.02762e-21
2782.56 1.0073e-21
2848.04 9.87368e-22
2915.05 9.67807e-22
2983.65 9.48613e-22
3053.86 9.29781e-22
3125.72 9.11304e-22
3199.27 8.93177e-22
3274.55 8.75393e-22
3351.6 8.57947e-22
3430.47 8.40833e-22
3511.19 8.24044e-22
3593.81 8.07576e-22
3678.38 7.91423e-22
3764.94 7.75579e-22
3853.53 7.6004e-22
3944.21 7.44798e-22
4037.02 7.2985e-22
4132.01 7.1519e-22
4229.24 7.00814e-22
4328.76 6.86715e-22
4430.62 6.72889e-22
4534.88 6.59331e-22
4641.59 6.46036e-22
4750.81 6.33e-22
4862.6 6.20217e-22
4977.02 6.07684e-22
5094.14 5.95395e-22
5214.01 5.83347e-22
5336.7 5.71534e-22
5462.28 5.59953e-22
5590.81 5.48599e-22
5722.37 5.37468e-22
5857.02 5.26555e-22
5994.84 5.15858e-22
6135.91 5.05371e-22
6280.29 4.95092e-22
6428.07 4.85015e-22
6579.33 4.75138e-22
6734.15 4.65456e-22
6892.61 4.55966e-22
7054.8 4.46664e-22
7220.81 4.37547e-22
7390.72 4.28611e-22
7564.63 4.19852e-22
7742.64 4.11268e-22
7924.83 4.02855e-22
8111.31 3.9461e-22
8302.18 3.8653e-22
8497.53 3.78611e-22
8697.49 3.7085e-22
8902.15 3.63245e-22
9111.63 3.55792e-22
9326.03 3.48488e-22
9545.48 3.41331e-22
9770.1 3.34318e-22
10000 3.27445e-22
10235.3 3.20711e-22
10476.2 3.14112e-22
10722.7 3.07646e-22
10975 3.01311e-22
11233.2 2.95103e-22
11497.6 2.89021e-22
11768.1 2.83061e-22
12045 2.77222e-22
12328.5 2.71501e-22
12618.6 2.65896e-22
12915.5 2.60405e-22
13219.4 2.55024e-22
13530.5 2.49753e-22
13848.9 2.44589e-22
14174.7 2.39529e-22
14508.3 2.34572e-22
14849.7 2.29717e-22
15199.1 2.24959e-22
15556.8 2.20299e-22
15922.8 2.15734e-22
16297.5 2.11261e-22
16681 2.0688e-22
17073.5 2.02588e-22
17475.3 1.98384e-22
17886.5 1.94265e-22
18307.4 1.90231e-22
18738.2 1.86279e-22
19179.1 1.82408e-22
19630.4 1.78617e-22
20092.3 1.74902e-22
File diff suppressed because it is too large Load Diff
@@ -1,49 +0,0 @@
# Total Elastic Scattering Cross Section from
# Yoon et al, Cross Sections for Electron Collisions with Hydrogen Molecules, 2008
# Energy (eV) Cross section (m^2)
0.02 7.41e-20
0.03 7.71e-20
0.04 8.08e-20
0.05 8.32e-20
0.06 8.51e-20
0.07 8.69e-20
0.08 8.84e-20
0.09 8.99e-20
0.1 9.13e-20
0.12 9.33e-20
0.15 9.55e-20
0.2 9.83e-20
0.25 10.04e-20
0.3 10.24e-20
0.4 10.61e-20
0.5 10.95e-20
0.6 11.28e-20
0.7 11.59e-20
0.8 11.88e-20
0.9 12.16e-20
1.0 12.36e-20
1.25 13.00e-20
1.5 13.55e-20
2.0 14.11e-20
3.0 14.12e-20
4.0 13.40e-20
5.0 12.51e-20
6.0 11.45e-20
8.0 9.85e-20
10.0 8.58e-20
12.0 7.61e-20
14.0 6.92e-20
16.0 6.32e-20
18.0 5.78e-20
20.0 5.26e-20
25.0 4.23e-20
30.0 3.40e-20
35.0 2.81e-20
40.0 2.36e-20
50.0 1.73e-20
60.0 1.31e-20
70.0 1.06e-20
80.0 0.89e-20
90.0 0.81e-20
100.0 0.74e-20
@@ -1,61 +0,0 @@
# Total Ionization Cross Section from
# Yoon et al, Cross Sections for Electron Collisions with Hydrogen Molecules, 2008
# Energy (eV) Cross section (m^2)
16.0 0.0299e-20
16.5 0.0607e-20
17.0 0.0924e-20
17.5 0.123e-20
18.0 0.156e-20
18.5 0.187e-20
19.0 0.22e-20
19.5 0.249e-20
20.0 0.28e-20
20.5 0.31e-20
21.0 0.336e-20
21.5 0.362e-20
22.0 0.39e-20
22.5 0.414e-20
23.0 0.439e-20
23.5 0.461e-20
24.0 0.484e-20
24.5 0.505e-20
25.0 0.524e-20
30.0 0.651e-20
35.0 0.76e-20
40.0 0.84e-20
45.0 0.88e-20
50.0 0.908e-20
55.0 0.931e-20
60.0 0.944e-20
65.0 0.948e-20
70.0 0.949e-20
80.0 0.937e-20
85.0 0.928e-20
90.0 0.919e-20
95.0 0.911e-20
100.0 0.9e-20
110.0 0.872e-20
120.0 0.852e-20
140.0 0.806e-20
160.0 0.763e-20
180.0 0.714e-20
200.0 0.676e-20
225.0 0.636e-20
250.0 0.596e-20
275.0 0.556e-20
300.0 0.529e-20
350.0 0.477e-20
400.0 0.436e-20
450.0 0.398e-20
500.0 0.373e-20
550.0 0.339e-20
600.0 0.317e-20
650.0 0.302e-20
700.0 0.283e-20
750.0 0.272e-20
800.0 0.257e-20
850.0 0.248e-20
900.0 0.235e-20
950.0 0.222e-20
1000.0 0.211e-20
File diff suppressed because it is too large Load Diff
-131
View File
@@ -1,131 +0,0 @@
# E sig_tot
1.00000e-05 2.85516e-20
1.20000e-05 2.92114e-20
1.40000e-05 2.97811e-20
1.60000e-05 3.02836e-20
1.80000e-05 3.07339e-20
2.00000e-05 3.11423e-20
2.50000e-05 3.20254e-20
3.00000e-05 3.27655e-20
3.50000e-05 3.34045e-20
4.00000e-05 3.39681e-20
5.00000e-05 3.49313e-20
6.00000e-05 3.57386e-20
7.00000e-05 3.64356e-20
8.00000e-05 3.70504e-20
9.00000e-05 3.76012e-20
1.00000e-04 3.81009e-20
1.20000e-04 3.89814e-20
1.40000e-04 3.97417e-20
1.60000e-04 4.04123e-20
1.80000e-04 4.10131e-20
2.00000e-04 4.15582e-20
2.50000e-04 4.27366e-20
3.00000e-04 4.37242e-20
3.50000e-04 4.45770e-20
4.00000e-04 4.53291e-20
5.00000e-04 4.66144e-20
6.00000e-04 4.76916e-20
7.00000e-04 4.86218e-20
8.00000e-04 4.94422e-20
9.00000e-04 5.01773e-20
1.00000e-03 5.08442e-20
1.20000e-03 5.20191e-20
1.40000e-03 5.30337e-20
1.60000e-03 5.39285e-20
1.80000e-03 5.47303e-20
2.00000e-03 5.54577e-20
2.50000e-03 5.70302e-20
3.00000e-03 5.83481e-20
3.50000e-03 5.94861e-20
4.00000e-03 6.04899e-20
5.00000e-03 6.22051e-20
6.00000e-03 6.36426e-20
7.00000e-03 6.48838e-20
8.00000e-03 6.59786e-20
9.00000e-03 6.69596e-20
1.00000e-02 6.78495e-20
1.20000e-02 6.94174e-20
1.40000e-02 7.07713e-20
1.60000e-02 7.19654e-20
1.80000e-02 7.30354e-20
2.00000e-02 7.41000e-20
3.00000e-02 7.71000e-20
4.00000e-02 8.08000e-20
5.00000e-02 8.32000e-20
6.00000e-02 8.51000e-20
7.00000e-02 8.69000e-20
8.00000e-02 8.84000e-20
9.00000e-02 8.99000e-20
1.00000e-01 9.13000e-20
1.20000e-01 9.33000e-20
1.50000e-01 9.55000e-20
2.00000e-01 9.83000e-20
2.50000e-01 1.00400e-19
3.00000e-01 1.02400e-19
4.00000e-01 1.06100e-19
5.00000e-01 1.09500e-19
6.00000e-01 1.12800e-19
7.00000e-01 1.15900e-19
8.00000e-01 1.18800e-19
9.00000e-01 1.21600e-19
1.00000e+00 1.23600e-19
1.25000e+00 1.30000e-19
1.50000e+00 1.35500e-19
2.00000e+00 1.41100e-19
3.00000e+00 1.41200e-19
4.00000e+00 1.32000e-19
5.00000e+00 1.25100e-19
6.00000e+00 1.14500e-19
8.00000e+00 9.85000e-20
1.00000e+01 8.58000e-20
1.20000e+01 7.61000e-20
1.40000e+01 6.92000e-20
1.60000e+01 6.32000e-20
1.80000e+01 5.78000e-20
2.00000e+01 5.26000e-20
2.50000e+01 4.23000e-20
3.00000e+01 3.40000e-20
3.50000e+01 2.81000e-20
4.00000e+01 2.36000e-20
5.00000e+01 1.73000e-20
6.00000e+01 1.31000e-20
7.00000e+01 1.06000e-20
8.00000e+01 8.90000e-21
9.00000e+01 8.10000e-21
1.00000e+02 7.40000e-21
1.20000e+02 6.61975e-21
1.40000e+02 5.66489e-21
1.60000e+02 4.94945e-21
1.80000e+02 4.39369e-21
2.00000e+02 3.94985e-21
2.50000e+02 3.15371e-21
3.00000e+02 2.62546e-21
3.50000e+02 2.24920e-21
4.00000e+02 1.96732e-21
5.00000e+02 1.57294e-21
6.00000e+02 1.31034e-21
7.00000e+02 1.12305e-21
8.00000e+02 9.82697e-22
9.00000e+02 8.73558e-22
1.00000e+03 7.86271e-22
1.20000e+03 6.55425e-22
1.40000e+03 5.62016e-22
1.60000e+03 4.91973e-22
1.80000e+03 4.37513e-22
2.00000e+03 3.93956e-22
2.50000e+03 3.15568e-22
3.00000e+03 2.63326e-22
3.50000e+03 2.26015e-22
4.00000e+03 1.98036e-22
5.00000e+03 1.58872e-22
6.00000e+03 1.32766e-22
7.00000e+03 1.14121e-22
8.00000e+03 1.00139e-22
9.00000e+03 8.92653e-23
1.00000e+04 8.05667e-23
1.20000e+04 6.75199e-23
1.40000e+04 5.82019e-23
1.60000e+04 5.12142e-23
1.80000e+04 4.57799e-23
2.00000e+04 4.14329e-23
File diff suppressed because it is too large Load Diff
-316
View File
@@ -1,316 +0,0 @@
# Automatically generated Data of Function2D_Container class by exportToFile().
# Generated on 20190408.
#key1 (usually Energy) key2 (angluar distribution or secondary energy) parameter (usually SDCS)
14.8497 0
15.1991 0
15.43 0
15.4301 6.84064e-26
15.5568 8.62796e-23
15.9228 3.30713e-22
16.2975 5.73975e-22
16.681 8.16127e-22
17.0735 1.05721e-21
17.4753 1.29723e-21
17.8865 1.53617e-21
18.3074 1.77401e-21
18.7382 2.01069e-21
19.1791 2.24613e-21
19.6304 2.48025e-21
20.0923 2.71295e-21
20.5651 2.94411e-21
21.049 3.17358e-21
21.5443 3.40125e-21
22.0513 3.62695e-21
22.5702 3.85053e-21
23.1013 4.07183e-21
23.6449 4.29068e-21
24.2013 4.50692e-21
24.7708 4.72036e-21
25.3536 4.93084e-21
25.9502 5.13818e-21
26.5609 5.34222e-21
27.1859 5.54278e-21
27.8256 5.73971e-21
28.4804 5.93285e-21
29.1505 6.12203e-21
29.8365 6.30712e-21
30.5386 6.48797e-21
31.2572 6.66445e-21
31.9927 6.83643e-21
32.7455 7.00379e-21
33.516 7.16643e-21
34.3047 7.32424e-21
35.1119 7.47712e-21
35.9381 7.62501e-21
36.7838 7.76781e-21
37.6494 7.90547e-21
38.5353 8.03794e-21
39.4421 8.16515e-21
40.3702 8.28709e-21
41.3201 8.40371e-21
42.2924 8.515e-21
43.2876 8.62094e-21
44.3062 8.72154e-21
45.3488 8.81679e-21
46.4159 8.90671e-21
47.5081 8.99132e-21
48.626 9.07064e-21
49.7702 9.14471e-21
50.9414 9.21357e-21
52.1401 9.27726e-21
53.367 9.33584e-21
54.6228 9.38936e-21
55.9081 9.43789e-21
57.2237 9.48149e-21
58.5702 9.52023e-21
59.9484 9.55419e-21
61.3591 9.58346e-21
62.8029 9.6081e-21
64.2807 9.62821e-21
65.7933 9.64388e-21
67.3415 9.6552e-21
68.9261 9.66226e-21
70.548 9.66516e-21
72.2081 9.664e-21
73.9072 9.65887e-21
75.6463 9.64988e-21
77.4264 9.63713e-21
79.2483 9.62072e-21
81.1131 9.60075e-21
83.0218 9.57734e-21
84.9753 9.55058e-21
86.9749 9.52057e-21
89.0215 9.48743e-21
91.1163 9.45125e-21
93.2603 9.41214e-21
95.4548 9.3702e-21
97.701 9.32554e-21
100 9.27826e-21
102.353 9.22845e-21
104.762 9.17623e-21
107.227 9.12168e-21
109.75 9.06491e-21
112.332 9.00602e-21
114.976 8.94509e-21
117.681 8.88223e-21
120.45 8.81752e-21
123.285 8.75106e-21
126.186 8.68294e-21
129.155 8.61325e-21
132.194 8.54207e-21
135.305 8.4695e-21
138.489 8.3956e-21
141.747 8.32047e-21
145.083 8.24419e-21
148.497 8.16682e-21
151.991 8.08846e-21
155.568 8.00918e-21
159.228 7.92904e-21
162.975 7.84812e-21
166.81 7.7665e-21
170.735 7.68422e-21
174.753 7.60137e-21
178.865 7.51801e-21
183.074 7.4342e-21
187.382 7.35e-21
191.791 7.26546e-21
196.304 7.18065e-21
200.923 7.09561e-21
205.651 7.01041e-21
210.49 6.9251e-21
215.443 6.83972e-21
220.513 6.75432e-21
225.702 6.66895e-21
231.013 6.58365e-21
236.449 6.49847e-21
242.013 6.41344e-21
247.708 6.32861e-21
253.536 6.24402e-21
259.502 6.1597e-21
265.609 6.07568e-21
271.859 5.992e-21
278.256 5.9087e-21
284.804 5.8258e-21
291.505 5.74333e-21
298.365 5.66132e-21
305.386 5.5798e-21
312.572 5.49878e-21
319.927 5.41831e-21
327.455 5.33839e-21
335.16 5.25905e-21
343.047 5.1803e-21
351.119 5.10218e-21
359.381 5.02469e-21
367.838 4.94785e-21
376.494 4.87169e-21
385.353 4.7962e-21
394.421 4.72141e-21
403.702 4.64733e-21
413.201 4.57397e-21
422.924 4.50134e-21
432.876 4.42944e-21
443.062 4.3583e-21
453.488 4.28792e-21
464.159 4.2183e-21
475.081 4.14945e-21
486.26 4.08138e-21
497.702 4.01409e-21
509.414 3.94759e-21
521.401 3.88188e-21
533.67 3.81695e-21
546.228 3.75283e-21
559.081 3.6895e-21
572.237 3.62697e-21
585.702 3.56524e-21
599.484 3.5043e-21
613.591 3.44417e-21
628.029 3.38483e-21
642.807 3.32628e-21
657.933 3.26854e-21
673.415 3.21158e-21
689.261 3.15541e-21
705.48 3.10003e-21
722.081 3.04544e-21
739.072 2.99162e-21
756.463 2.93857e-21
774.264 2.8863e-21
792.483 2.8348e-21
811.131 2.78405e-21
830.218 2.73407e-21
849.753 2.68483e-21
869.749 2.63634e-21
890.215 2.58859e-21
911.163 2.54158e-21
932.603 2.49529e-21
954.548 2.44972e-21
977.01 2.40487e-21
1000 2.36073e-21
1023.53 2.31728e-21
1047.62 2.27453e-21
1072.27 2.23247e-21
1097.5 2.19109e-21
1123.32 2.15039e-21
1149.76 2.11034e-21
1176.81 2.07096e-21
1204.5 2.03223e-21
1232.85 1.99414e-21
1261.86 1.95669e-21
1291.55 1.91986e-21
1321.94 1.88366e-21
1353.05 1.84807e-21
1384.89 1.81308e-21
1417.47 1.77869e-21
1450.83 1.74489e-21
1484.97 1.71168e-21
1519.91 1.67904e-21
1555.68 1.64696e-21
1592.28 1.61544e-21
1629.75 1.58448e-21
1668.1 1.55406e-21
1707.35 1.52417e-21
1747.53 1.49481e-21
1788.65 1.46598e-21
1830.74 1.43766e-21
1873.82 1.40984e-21
1917.91 1.38252e-21
1963.04 1.35569e-21
2009.23 1.32935e-21
2056.51 1.30348e-21
2104.9 1.27808e-21
2154.43 1.25314e-21
2205.13 1.22866e-21
2257.02 1.20462e-21
2310.13 1.18103e-21
2364.49 1.15787e-21
2420.13 1.13513e-21
2477.08 1.11282e-21
2535.36 1.09091e-21
2595.02 1.06942e-21
2656.09 1.04832e-21
2718.59 1.02762e-21
2782.56 1.0073e-21
2848.04 9.87368e-22
2915.05 9.67807e-22
2983.65 9.48613e-22
3053.86 9.29781e-22
3125.72 9.11304e-22
3199.27 8.93177e-22
3274.55 8.75393e-22
3351.6 8.57947e-22
3430.47 8.40833e-22
3511.19 8.24044e-22
3593.81 8.07576e-22
3678.38 7.91423e-22
3764.94 7.75579e-22
3853.53 7.6004e-22
3944.21 7.44798e-22
4037.02 7.2985e-22
4132.01 7.1519e-22
4229.24 7.00814e-22
4328.76 6.86715e-22
4430.62 6.72889e-22
4534.88 6.59331e-22
4641.59 6.46036e-22
4750.81 6.33e-22
4862.6 6.20217e-22
4977.02 6.07684e-22
5094.14 5.95395e-22
5214.01 5.83347e-22
5336.7 5.71534e-22
5462.28 5.59953e-22
5590.81 5.48599e-22
5722.37 5.37468e-22
5857.02 5.26555e-22
5994.84 5.15858e-22
6135.91 5.05371e-22
6280.29 4.95092e-22
6428.07 4.85015e-22
6579.33 4.75138e-22
6734.15 4.65456e-22
6892.61 4.55966e-22
7054.8 4.46664e-22
7220.81 4.37547e-22
7390.72 4.28611e-22
7564.63 4.19852e-22
7742.64 4.11268e-22
7924.83 4.02855e-22
8111.31 3.9461e-22
8302.18 3.8653e-22
8497.53 3.78611e-22
8697.49 3.7085e-22
8902.15 3.63245e-22
9111.63 3.55792e-22
9326.03 3.48488e-22
9545.48 3.41331e-22
9770.1 3.34318e-22
10000 3.27445e-22
10235.3 3.20711e-22
10476.2 3.14112e-22
10722.7 3.07646e-22
10975 3.01311e-22
11233.2 2.95103e-22
11497.6 2.89021e-22
11768.1 2.83061e-22
12045 2.77222e-22
12328.5 2.71501e-22
12618.6 2.65896e-22
12915.5 2.60405e-22
13219.4 2.55024e-22
13530.5 2.49753e-22
13848.9 2.44589e-22
14174.7 2.39529e-22
14508.3 2.34572e-22
14849.7 2.29717e-22
15199.1 2.24959e-22
15556.8 2.20299e-22
15922.8 2.15734e-22
16297.5 2.11261e-22
16681 2.0688e-22
17073.5 2.02588e-22
17475.3 1.98384e-22
17886.5 1.94265e-22
18307.4 1.90231e-22
18738.2 1.86279e-22
19179.1 1.82408e-22
19630.4 1.78617e-22
20092.3 1.74902e-22
File diff suppressed because it is too large Load Diff
-50
View File
@@ -1,50 +0,0 @@
# Electrical Excitation B1sig+u by Yoon:2008aa
# E sig_tot
1.180E+01 0.000E+00
1.200E+01 3.510E-23
1.220E+01 6.400E-23
1.240E+01 1.030E-22
1.260E+01 1.510E-22
1.280E+01 2.060E-22
1.300E+01 2.660E-22
1.330E+01 3.630E-22
1.360E+01 4.640E-22
1.400E+01 5.980E-22
1.450E+01 7.600E-22
1.500E+01 9.130E-22
1.550E+01 1.060E-21
1.600E+01 1.190E-21
1.650E+01 1.310E-21
1.700E+01 1.430E-21
1.750E+01 1.540E-21
1.800E+01 1.640E-21
1.850E+01 1.740E-21
1.900E+01 1.830E-21
2.000E+01 1.990E-21
2.250E+01 2.320E-21
2.500E+01 2.550E-21
2.750E+01 2.730E-21
3.000E+01 2.850E-21
3.500E+01 3.010E-21
4.000E+01 3.080E-21
4.500E+01 3.100E-21
5.000E+01 3.080E-21
6.000E+01 3.010E-21
7.000E+01 2.910E-21
8.000E+01 2.810E-21
9.000E+01 2.710E-21
1.000E+02 2.620E-21
1.500E+02 2.250E-21
2.000E+02 1.980E-21
2.500E+02 1.770E-21
3.000E+02 1.600E-21
3.500E+02 1.460E-21
4.000E+02 1.340E-21
4.500E+02 1.240E-21
5.000E+02 1.150E-21
6.000E+02 1.010E-21
7.000E+02 9.070E-22
8.000E+02 8.230E-22
9.000E+02 7.540E-22
1.000E+03 6.970E-22
1.100E+03 0.000E+00
-50
View File
@@ -1,50 +0,0 @@
# Electrical Excitation C1piu by Yoon:2008aa
# E sig_tot
1.100E+01 0.000E+00
1.200E+01 0.000E+00
1.229E+01 0.000E+00
1.240E+01 6.800E-24
1.260E+01 2.070E-23
1.280E+01 4.810E-23
1.300E+01 8.730E-23
1.330E+01 1.590E-22
1.360E+01 2.420E-22
1.400E+01 3.610E-22
1.450E+01 5.120E-22
1.500E+01 6.570E-22
1.550E+01 7.930E-22
1.600E+01 9.200E-22
1.650E+01 1.040E-21
1.700E+01 1.150E-21
1.750E+01 1.260E-21
1.800E+01 1.350E-21
1.850E+01 1.450E-21
1.900E+01 1.530E-21
2.000E+01 1.690E-21
2.250E+01 2.010E-21
2.500E+01 2.240E-21
2.750E+01 2.420E-21
3.000E+01 2.540E-21
3.500E+01 2.700E-21
4.000E+01 2.780E-21
4.500E+01 2.810E-21
5.000E+01 2.810E-21
6.000E+01 2.760E-21
7.000E+01 2.670E-21
8.000E+01 2.580E-21
9.000E+01 2.500E-21
1.000E+02 2.410E-21
1.500E+02 2.080E-21
2.000E+02 1.840E-21
2.500E+02 1.650E-21
3.000E+02 1.490E-21
3.500E+02 1.360E-21
4.000E+02 1.250E-21
4.500E+02 1.160E-21
5.000E+02 1.080E-21
6.000E+02 9.490E-22
7.000E+02 8.500E-22
8.000E+02 7.710E-22
9.000E+02 7.070E-22
1.000E+03 6.540E-22
1.100E+03 0.000E+00
-37
View File
@@ -1,37 +0,0 @@
# Electrical Excitation EF1sig+g by Yoon:2008aa
# E sig_tot
1.400E+01 0.000E+00
1.500E+01 2.800E-22
1.600E+01 3.300E-22
1.700E+01 3.700E-22
1.750E+01 3.800E-22
1.900E+01 3.900E-22
2.000E+01 4.000E-22
2.100E+01 4.000E-22
2.350E+01 4.000E-22
2.600E+01 4.000E-22
3.000E+01 4.000E-22
4.000E+01 4.100E-22
5.000E+01 4.100E-22
6.000E+01 3.900E-22
7.000E+01 3.600E-22
8.000E+01 3.400E-22
1.000E+02 2.900E-22
1.200E+02 2.600E-22
1.400E+02 2.400E-22
1.600E+02 2.200E-22
1.800E+02 2.100E-22
2.000E+02 2.000E-22
2.200E+02 1.900E-22
2.400E+02 1.800E-22
2.600E+02 1.700E-22
2.800E+02 1.600E-22
3.000E+02 1.500E-22
4.000E+02 1.200E-22
5.000E+02 9.600E-23
6.000E+02 8.000E-23
7.000E+02 6.900E-23
8.000E+02 6.100E-23
9.000E+02 5.400E-23
1.000E+03 4.900E-23
1.100E+03 0.000E+00
-7
View File
@@ -1,7 +0,0 @@
# Electrical Excitation a3sig+g by Yoon:2008aa
# E sig_tot
1.700E+01 0.000E+00
1.750E+01 6.990E-22
2.000E+01 1.011E-21
3.000E+01 1.860E-22
3.100E+01 0.000E+00
-13
View File
@@ -1,13 +0,0 @@
# Electrical Excitation b3Sig+u by Yoon:2008aa
# E sig_tot
9.000E+00 0.000E+00
9.200E+00 1.210E-21
1.020E+01 2.080E-21
1.220E+01 4.940E-21
1.520E+01 8.300E-21
1.720E+01 5.730E-21
2.020E+01 3.920E-21
3.000E+01 1.350E-21
4.000E+01 7.710E-22
1.000E+02 7.300E-23
1.100E+02 0.000E+00
-7
View File
@@ -1,7 +0,0 @@
# Electrical Excitation c3piu by Yoon:2008aa
# E sig_tot
1.100E+01 0.000E+00
1.750E+01 1.090E-21
2.000E+01 2.489E-21
3.000E+01 7.960E-22
3.100E+01 0.000E+00
-7
View File
@@ -1,7 +0,0 @@
# Electrical Excitation e3sig+u by Yoon:2008aa
# E sig_tot
1.700E+01 0.000E+00
1.750E+01 1.080E-22
2.000E+01 2.520E-22
3.000E+01 1.320E-22
3.100E+01 0.000E+00
-43
View File
@@ -1,43 +0,0 @@
# Rotational Excitation J = 0->2 by Yoon:2008aa
# E sig_tot
4.410E-02 0.000E+00
4.700E-02 1.850E-22
5.000E-02 2.700E-22
5.500E-02 3.500E-22
6.000E-02 4.200E-22
6.500E-02 4.800E-22
7.000E-02 5.300E-22
8.000E-02 6.200E-22
9.000E-02 6.800E-22
1.000E-01 7.400E-22
1.100E-01 7.900E-22
1.300E-01 8.800E-22
1.500E-01 9.700E-22
2.000E-01 1.150E-21
2.500E-01 1.320E-21
3.000E-01 1.520E-21
3.500E-01 1.750E-21
4.000E-01 2.000E-21
4.500E-01 2.280E-21
5.000E-01 2.600E-21
6.000E-01 3.230E-21
7.000E-01 3.940E-21
8.000E-01 4.690E-21
9.000E-01 5.550E-21
1.000E+00 6.380E-21
1.200E+00 7.960E-21
1.500E+00 1.036E-20
2.000E+00 1.370E-20
2.500E+00 1.585E-20
3.000E+00 1.704E-20
3.500E+00 1.755E-20
4.000E+00 1.758E-20
4.500E+00 1.732E-20
5.000E+00 1.689E-20
6.000E+00 1.579E-20
7.000E+00 1.462E-20
8.000E+00 1.350E-20
9.000E+00 1.248E-20
1.000E+01 1.156E-20
1.500E+01 7.300E-21
1.600E+01 0.000E+00
-901
View File
@@ -1,901 +0,0 @@
# bin v_z v_r
0 -1.15987e+02 1.08067e-01
1 -1.15639e+02 3.55568e-01
2 -1.11238e+02 5.33661e-01
3 -1.08176e+02 7.10649e-01
4 -1.00880e+02 7.95604e-01
5 -9.37865e+01 8.47885e-01
6 -8.26565e+01 7.48154e-01
7 -6.97409e+01 5.36829e-01
8 -4.57225e+01 7.03579e-02
9 -8.51532e+01 4.60317e-02
10 -8.25859e+01 1.22672e-01
11 -8.08526e+01 1.97098e-01
12 -7.70603e+01 2.57527e-01
13 -7.15105e+01 2.91238e-01
14 -6.43798e+01 2.96228e-01
15 -5.55349e+01 2.64007e-01
16 -4.45193e+01 1.89039e-01
17 -2.71603e+01 2.38274e-02
18 -7.12749e+01 2.43477e-02
19 -7.10769e+01 7.58880e-02
20 -6.84221e+01 1.15083e-01
21 -6.44756e+01 1.44884e-01
22 -5.99590e+01 1.66229e-01
23 -5.36109e+01 1.67487e-01
24 -4.57434e+01 1.48285e-01
25 -3.57203e+01 1.05070e-01
26 -2.04739e+01 1.33036e-02
27 -6.27570e+01 1.67046e-02
28 -6.17418e+01 4.83048e-02
29 -5.99166e+01 7.20976e-02
30 -5.66218e+01 9.48803e-02
31 -5.20829e+01 1.07733e-01
32 -4.62242e+01 1.08140e-01
33 -3.89467e+01 9.44653e-02
34 -2.97582e+01 6.50341e-02
35 -1.61952e+01 7.21513e-03
36 -5.65928e+01 1.19464e-02
37 -5.56435e+01 3.45010e-02
38 -5.39431e+01 5.14944e-02
39 -5.08493e+01 6.75403e-02
40 -4.66330e+01 7.69125e-02
41 -4.11910e+01 7.68965e-02
42 -3.44912e+01 6.65120e-02
43 -2.60897e+01 4.51126e-02
44 -1.35561e+01 3.94247e-03
45 -5.18912e+01 8.95226e-03
46 -5.09970e+01 2.59768e-02
47 -4.93825e+01 3.87799e-02
48 -4.64841e+01 5.08211e-02
49 -4.25016e+01 5.79772e-02
50 -3.74109e+01 5.76302e-02
51 -3.11254e+01 4.99412e-02
52 -2.32684e+01 3.47740e-02
53 -1.16190e+01 3.79275e-03
54 -4.81526e+01 6.97058e-03
55 -4.73021e+01 2.02871e-02
56 -4.57660e+01 3.02392e-02
57 -4.30279e+01 3.96397e-02
58 -3.92445e+01 4.52066e-02
59 -3.44418e+01 4.48151e-02
60 -2.85143e+01 3.87837e-02
61 -2.10894e+01 2.68181e-02
62 -1.02004e+01 2.83994e-03
63 -4.50924e+01 5.59957e-03
64 -4.42793e+01 1.62792e-02
65 -4.28224e+01 2.42362e-02
66 -4.02004e+01 3.17514e-02
67 -3.66065e+01 3.62411e-02
68 -3.20273e+01 3.59213e-02
69 -2.64149e+01 3.10388e-02
70 -1.94903e+01 2.10776e-02
71 -9.11788e+00 1.78532e-03
72 -4.25182e+01 4.57258e-03
73 -4.17424e+01 1.32896e-02
74 -4.03426e+01 1.98390e-02
75 -3.78329e+01 2.59848e-02
76 -3.43939e+01 2.97387e-02
77 -3.00184e+01 2.98199e-02
78 -2.46606e+01 2.54377e-02
79 -1.80522e+01 1.79375e-02
80 -8.22619e+00 1.73314e-03
81 -4.03329e+01 3.81852e-03
82 -3.95858e+01 1.10999e-02
83 -3.82389e+01 1.65483e-02
84 -3.58338e+01 2.17008e-02
85 -3.25247e+01 2.48241e-02
86 -2.83314e+01 2.45242e-02
87 -2.31999e+01 2.12617e-02
88 -1.69117e+01 1.42903e-02
89 -7.50975e+00 1.31380e-03
90 -3.84409e+01 3.22526e-03
91 -3.77192e+01 9.40266e-03
92 -3.64269e+01 1.40106e-02
93 -3.41018e+01 1.83740e-02
94 -3.09202e+01 2.10164e-02
95 -2.68765e+01 2.06994e-02
96 -2.19447e+01 1.80418e-02
97 -1.58916e+01 1.20636e-02
98 -6.91470e+00 1.14446e-03
99 -3.67838e+01 2.77093e-03
100 -3.60878e+01 8.05833e-03
101 -3.48394e+01 1.20153e-02
102 -3.25878e+01 1.57320e-02
103 -2.95190e+01 1.81258e-02
104 -2.56106e+01 1.82087e-02
105 -2.08634e+01 1.54375e-02
106 -1.50519e+01 1.09530e-02
107 -6.39854e+00 9.91809e-04
108 -3.53168e+01 2.38790e-03
109 -3.46440e+01 6.97000e-03
110 -3.34302e+01 1.04073e-02
111 -3.12551e+01 1.36356e-02
112 -2.82787e+01 1.56634e-02
113 -2.45011e+01 1.55580e-02
114 -1.99029e+01 1.33252e-02
115 -1.43129e+01 9.55875e-03
116 -5.97713e+00 6.19015e-04
117 -3.39974e+01 2.11011e-03
118 -3.33420e+01 6.10765e-03
119 -3.21686e+01 9.10283e-03
120 -3.00577e+01 1.19434e-02
121 -2.71715e+01 1.36748e-02
122 -2.35076e+01 1.35288e-02
123 -1.90573e+01 1.16831e-02
124 -1.35797e+01 7.56400e-03
125 -5.59833e+00 8.00313e-04
126 -3.28182e+01 1.83293e-03
127 -3.21824e+01 5.37995e-03
128 -3.10416e+01 8.02238e-03
129 -2.89864e+01 1.05092e-02
130 -2.61847e+01 1.21319e-02
131 -2.26221e+01 1.22461e-02
132 -1.83027e+01 1.03243e-02
133 -1.30040e+01 6.95498e-03
134 -5.25504e+00 4.71036e-04
135 -3.17497e+01 1.62650e-03
136 -3.11319e+01 4.77044e-03
137 -3.00174e+01 7.12570e-03
138 -2.80208e+01 9.31311e-03
139 -2.52899e+01 1.07447e-02
140 -2.18267e+01 1.06530e-02
141 -1.76140e+01 9.15748e-03
142 -1.24787e+01 6.51066e-03
143 -4.97243e+00 3.63821e-04
144 -3.07742e+01 1.46984e-03
145 -3.01708e+01 4.27434e-03
146 -2.90847e+01 6.37672e-03
147 -2.71411e+01 8.39204e-03
148 -2.44768e+01 9.63449e-03
149 -2.11037e+01 9.40953e-03
150 -1.70027e+01 8.04482e-03
151 -1.20609e+01 5.27980e-03
152 -4.70570e+00 3.65081e-04
153 -2.98806e+01 1.31848e-03
154 -2.92904e+01 3.84446e-03
155 -2.82337e+01 5.73208e-03
156 -2.63334e+01 7.50369e-03
157 -2.37364e+01 8.68328e-03
158 -2.04422e+01 8.68877e-03
159 -1.64451e+01 7.47699e-03
160 -1.16035e+01 5.11849e-03
161 -4.46904e+00 5.31456e-04
162 -2.90552e+01 1.17098e-03
163 -2.84809e+01 3.46731e-03
164 -2.74447e+01 5.17786e-03
165 -2.55887e+01 6.75749e-03
166 -2.30509e+01 7.83607e-03
167 -1.98341e+01 7.83092e-03
168 -1.59326e+01 6.71325e-03
169 -1.11450e+01 4.39556e-03
170 -4.24906e+00 3.66568e-04
171 -2.82944e+01 1.09145e-03
172 -2.77315e+01 3.15662e-03
173 -2.67187e+01 4.70814e-03
174 -2.49054e+01 6.19873e-03
175 -2.24214e+01 7.14192e-03
176 -1.92766e+01 7.12701e-03
177 -1.54515e+01 6.11133e-03
178 -1.09066e+01 3.80287e-03
179 -4.10527e+00 2.93149e-04
180 -2.75888e+01 9.88532e-04
181 -2.70365e+01 2.87692e-03
182 -2.60479e+01 4.29267e-03
183 -2.42700e+01 5.62582e-03
184 -2.18407e+01 6.49743e-03
185 -1.87599e+01 6.48989e-03
186 -1.50235e+01 5.73578e-03
187 -1.04990e+01 4.46299e-03
188 -3.91422e+00 3.27214e-04
189 -2.69327e+01 8.90303e-04
190 -2.63926e+01 2.63457e-03
191 -2.54231e+01 3.92807e-03
192 -2.36791e+01 5.12250e-03
193 -2.13004e+01 5.99242e-03
194 -1.82808e+01 6.02923e-03
195 -1.46248e+01 5.07046e-03
196 -1.01997e+01 3.82966e-03
197 -3.75025e+00 3.69227e-04
198 -2.63197e+01 8.41389e-04
199 -2.57911e+01 2.41746e-03
200 -2.48376e+01 3.61800e-03
201 -2.31296e+01 4.76309e-03
202 -2.07949e+01 5.45383e-03
203 -1.78354e+01 5.30756e-03
204 -1.42524e+01 4.60056e-03
205 -9.92378e+00 2.77166e-03
206 -3.59315e+00 3.32424e-04
207 -2.57445e+01 7.63621e-04
208 -2.52246e+01 2.23521e-03
209 -2.42896e+01 3.33394e-03
210 -2.26150e+01 4.38777e-03
211 -2.03224e+01 5.07565e-03
212 -1.74196e+01 5.09068e-03
213 -1.38988e+01 4.48866e-03
214 -9.63183e+00 3.13646e-03
215 -3.47684e+00 9.06580e-05
216 -2.52043e+01 7.01688e-04
217 -2.46927e+01 2.06636e-03
218 -2.37770e+01 3.07924e-03
219 -2.21303e+01 4.00471e-03
220 -1.98809e+01 4.69065e-03
221 -1.70287e+01 4.67758e-03
222 -1.35785e+01 4.03764e-03
223 -9.38566e+00 3.22984e-03
224 -3.33885e+00 8.29420e-05
225 -2.46944e+01 6.58360e-04
226 -2.41937e+01 1.90960e-03
227 -2.32906e+01 2.86227e-03
228 -2.16732e+01 3.76481e-03
229 -1.94624e+01 4.33347e-03
230 -1.66604e+01 4.34915e-03
231 -1.32712e+01 3.69975e-03
232 -9.16447e+00 2.53832e-03
233 -3.22400e+00 9.30475e-05
234 -2.42142e+01 6.10862e-04
235 -2.37209e+01 1.78438e-03
236 -2.28338e+01 2.66200e-03
237 -2.12448e+01 3.50610e-03
238 -1.90700e+01 4.04785e-03
239 -1.63157e+01 4.10716e-03
240 -1.29787e+01 3.45485e-03
241 -8.94610e+00 2.06056e-03
242 -3.11921e+00 1.68756e-04
243 -2.37605e+01 5.63194e-04
244 -2.32742e+01 1.66290e-03
245 -2.24037e+01 2.47543e-03
246 -2.08385e+01 3.21388e-03
247 -1.87007e+01 3.77400e-03
248 -1.59904e+01 3.70227e-03
249 -1.27105e+01 3.22257e-03
250 -8.70965e+00 2.39641e-03
251 -3.02412e+00 2.34561e-04
252 -2.33311e+01 5.33651e-04
253 -2.28535e+01 1.54885e-03
254 -2.19958e+01 2.31971e-03
255 -2.04541e+01 3.03475e-03
256 -1.83509e+01 3.54658e-03
257 -1.56821e+01 3.52683e-03
258 -1.24539e+01 2.96809e-03
259 -8.54988e+00 1.61622e-03
260 -2.93162e+00 9.26082e-05
261 -2.29239e+01 5.06882e-04
262 -2.24544e+01 1.45538e-03
263 -2.16074e+01 2.17404e-03
264 -2.00907e+01 2.85577e-03
265 -1.80181e+01 3.29234e-03
266 -1.53912e+01 3.28744e-03
267 -1.22128e+01 2.84841e-03
268 -8.42462e+00 1.95425e-03
269 -2.86327e+00 -4.28329e-05
270 -2.25329e+01 4.63098e-04
271 -2.20685e+01 1.36944e-03
272 -2.12373e+01 2.03867e-03
273 -1.97426e+01 2.65300e-03
274 -1.77013e+01 3.08321e-03
275 -1.51131e+01 3.11631e-03
276 -1.19785e+01 2.81463e-03
277 -8.18800e+00 2.09253e-03
278 -2.76063e+00 2.89746e-04
279 -2.21641e+01 4.32094e-04
280 -2.17073e+01 1.27719e-03
281 -2.08870e+01 1.91474e-03
282 -1.94129e+01 2.50787e-03
283 -1.74017e+01 2.92808e-03
284 -1.48497e+01 3.02656e-03
285 -1.17658e+01 2.38575e-03
286 -8.03762e+00 1.61490e-03
287 -2.69299e+00 1.36662e-04
288 -2.18124e+01 4.17559e-04
289 -2.13628e+01 1.20777e-03
290 -2.05519e+01 1.80523e-03
291 -1.90996e+01 2.37956e-03
292 -1.71152e+01 2.74283e-03
293 -1.46000e+01 2.65535e-03
294 -1.15552e+01 2.47308e-03
295 -7.89325e+00 1.79595e-03
296 -2.61817e+00 -1.26285e-05
297 -2.14755e+01 3.85499e-04
298 -2.10311e+01 1.14040e-03
299 -2.02320e+01 1.70287e-03
300 -1.88004e+01 2.22950e-03
301 -1.68421e+01 2.59310e-03
302 -1.43619e+01 2.55794e-03
303 -1.13633e+01 2.35191e-03
304 -7.76244e+00 1.80255e-03
305 -2.54756e+00 1.64159e-04
306 -2.11533e+01 3.64302e-04
307 -2.07139e+01 1.07726e-03
308 -1.99274e+01 1.61070e-03
309 -1.85132e+01 2.12759e-03
310 -1.65822e+01 2.46494e-03
311 -1.41335e+01 2.46566e-03
312 -1.11725e+01 2.02565e-03
313 -7.61782e+00 1.41339e-03
314 -2.48649e+00 2.09485e-04
315 -2.08443e+01 3.53078e-04
316 -2.04122e+01 1.01903e-03
317 -1.96332e+01 1.52520e-03
318 -1.82379e+01 2.00115e-03
319 -1.63313e+01 2.32882e-03
320 -1.39147e+01 2.31160e-03
321 -1.09873e+01 1.98983e-03
322 -7.48829e+00 1.20419e-03
323 -2.43448e+00 -3.39703e-05
324 -2.05486e+01 3.39516e-04
325 -2.01212e+01 9.71505e-04
326 -1.93526e+01 1.44595e-03
327 -1.79755e+01 1.87630e-03
328 -1.60922e+01 2.20964e-03
329 -1.37065e+01 2.19673e-03
330 -1.08183e+01 2.10294e-03
331 -7.33925e+00 1.48101e-03
332 -2.37749e+00 2.18870e-04
333 -2.02646e+01 3.09172e-04
334 -1.98416e+01 9.13413e-04
335 -1.90844e+01 1.36956e-03
336 -1.77229e+01 1.79575e-03
337 -1.58638e+01 2.08726e-03
338 -1.35067e+01 2.12488e-03
339 -1.06588e+01 1.76440e-03
340 -7.23967e+00 1.17760e-03
341 -2.31339e+00 5.73161e-05
342 -1.99928e+01 2.97025e-04
343 -1.95756e+01 8.71709e-04
344 -1.88264e+01 1.30384e-03
345 -1.74805e+01 1.70560e-03
346 -1.56442e+01 2.01341e-03
347 -1.33144e+01 1.90582e-03
348 -1.04934e+01 1.65669e-03
349 -7.08783e+00 1.13590e-03
350 -2.25468e+00 1.68440e-06
351 -1.97310e+01 2.91934e-04
352 -1.93195e+01 8.33537e-04
353 -1.85774e+01 1.24270e-03
354 -1.72483e+01 1.61986e-03
355 -1.54324e+01 1.88013e-03
356 -1.31307e+01 1.88185e-03
357 -1.03495e+01 1.72568e-03
358 -7.04713e+00 1.25612e-03
359 -2.21824e+00 1.25214e-04
360 -1.94785e+01 2.60780e-04
361 -1.90709e+01 7.87275e-04
362 -1.83380e+01 1.18170e-03
363 -1.70246e+01 1.55787e-03
364 -1.52289e+01 1.80522e-03
365 -1.29544e+01 1.86275e-03
366 -1.02043e+01 1.51851e-03
367 -6.89796e+00 8.28829e-04
368 -2.16761e+00 9.12050e-06
369 -1.92352e+01 2.56900e-04
370 -1.88313e+01 7.53770e-04
371 -1.81082e+01 1.12691e-03
372 -1.68084e+01 1.48263e-03
373 -1.50337e+01 1.73132e-03
374 -1.27832e+01 1.70344e-03
375 -1.00646e+01 1.50765e-03
376 -6.86287e+00 9.53501e-04
377 -2.11732e+00 -5.25494e-05
378 -1.90002e+01 2.54039e-04
379 -1.86023e+01 7.22802e-04
380 -1.78846e+01 1.07886e-03
381 -1.65995e+01 1.39866e-03
382 -1.48438e+01 1.64569e-03
383 -1.26184e+01 1.65668e-03
384 -9.92799e+00 1.46316e-03
385 -6.72503e+00 1.27292e-03
386 -2.07460e+00 1.39439e-04
387 -1.87736e+01 2.26017e-04
388 -1.83791e+01 6.85367e-04
389 -1.76700e+01 1.02863e-03
390 -1.63991e+01 1.35196e-03
391 -1.46617e+01 1.54633e-03
392 -1.24608e+01 1.52571e-03
393 -9.80055e+00 1.40329e-03
394 -6.64734e+00 8.99613e-04
395 -2.04137e+00 5.39785e-05
396 -1.85546e+01 2.26916e-04
397 -1.81635e+01 6.58504e-04
398 -1.74635e+01 9.84393e-04
399 -1.62049e+01 1.29109e-03
400 -1.44865e+01 1.52537e-03
401 -1.23077e+01 1.44216e-03
402 -9.67670e+00 1.26420e-03
403 -6.54943e+00 7.70379e-04
404 -1.99516e+00 3.59561e-05
405 -1.83436e+01 2.25680e-04
406 -1.79573e+01 6.31568e-04
407 -1.72636e+01 9.44099e-04
408 -1.60174e+01 1.22778e-03
409 -1.43170e+01 1.44442e-03
410 -1.21598e+01 1.46590e-03
411 -9.55304e+00 1.33430e-03
412 -6.44501e+00 9.78530e-04
413 -1.96016e+00 1.08616e-04
414 -1.81397e+01 2.15077e-04
415 -1.77580e+01 6.09162e-04
416 -1.70695e+01 9.07708e-04
417 -1.58367e+01 1.16662e-03
418 -1.41525e+01 1.36447e-03
419 -1.20179e+01 1.39197e-03
420 -9.43703e+00 1.31664e-03
421 -6.32111e+00 9.82131e-04
422 -1.91224e+00 6.92862e-05
423 -1.79400e+01 1.61578e-04
424 -1.75606e+01 5.36149e-04
425 -1.68813e+01 8.18716e-04
426 -1.56603e+01 1.07397e-03
427 -1.39933e+01 1.20696e-03
428 -1.18775e+01 1.31198e-03
429 -9.32525e+00 1.14079e-03
430 -6.29435e+00 8.03908e-04
431 -1.89077e+00 2.06670e-04
432 -1.77730e+01 3.91284e-03
433 -1.73942e+01 1.09401e-02
434 -1.67143e+01 1.55810e-02
435 -1.54952e+01 1.93606e-02
436 -1.38344e+01 1.95253e-02
437 -1.17321e+01 1.70954e-02
438 -9.19183e+00 1.18088e-02
439 -6.22218e+00 5.75390e-03
440 -1.83768e+00 5.28683e-04
441 -1.29874e+01 -4.11070e-01
442 -1.24333e+01 -1.34279e+00
443 -1.19159e+01 -2.14085e+00
444 -1.13238e+01 -2.96081e+00
445 -1.03715e+01 -3.68659e+00
446 -8.98614e+00 -4.34624e+00
447 -7.71391e+00 -4.78860e+00
448 -5.64897e+00 -5.55591e+00
449 -2.19954e+00 -1.64280e+00
450 1.27902e+01 -4.05406e-01
451 1.24854e+01 -1.31306e+00
452 1.18864e+01 -2.18954e+00
453 1.15531e+01 -2.89385e+00
454 1.04508e+01 -3.67407e+00
455 9.14878e+00 -4.29526e+00
456 7.63978e+00 -4.90785e+00
457 5.71709e+00 -5.46813e+00
458 2.20262e+00 -1.56429e+00
459 1.77729e+01 3.61697e-03
460 1.73937e+01 1.06751e-02
461 1.67133e+01 1.53524e-02
462 1.54939e+01 1.91835e-02
463 1.38330e+01 1.93770e-02
464 1.17304e+01 1.69639e-02
465 9.18530e+00 1.18776e-02
466 6.17959e+00 5.04321e-03
467 1.85578e+00 1.32328e-04
468 1.79400e+01 2.43050e-04
469 1.75602e+01 6.06712e-04
470 1.68805e+01 8.85157e-04
471 1.56593e+01 1.18694e-03
472 1.39922e+01 1.35118e-03
473 1.18766e+01 1.44961e-03
474 9.32571e+00 1.06881e-03
475 6.32504e+00 7.32592e-04
476 1.88793e+00 5.23891e-04
477 1.81394e+01 2.06740e-04
478 1.77573e+01 6.02847e-04
479 1.70686e+01 9.02263e-04
480 1.58357e+01 1.20022e-03
481 1.41514e+01 1.37826e-03
482 1.20166e+01 1.34108e-03
483 9.43400e+00 1.04379e-03
484 6.33654e+00 9.10949e-04
485 1.91642e+00 -1.03172e-04
486 1.83435e+01 2.10418e-04
487 1.79569e+01 6.26852e-04
488 1.72626e+01 9.42864e-04
489 1.60163e+01 1.24697e-03
490 1.43158e+01 1.45632e-03
491 1.21590e+01 1.48267e-03
492 9.55412e+00 1.17525e-03
493 6.44678e+00 5.15554e-04
494 1.95419e+00 3.64129e-05
495 1.85543e+01 2.21598e-04
496 1.81628e+01 6.57408e-04
497 1.74624e+01 9.83685e-04
498 1.62037e+01 1.26227e-03
499 1.44853e+01 1.50831e-03
500 1.23063e+01 1.56600e-03
501 9.67074e+00 1.26667e-03
502 6.51836e+00 9.88695e-04
503 2.00884e+00 5.87418e-05
504 1.87746e+01 2.37492e-04
505 1.83805e+01 6.87015e-04
506 1.76703e+01 1.02853e-03
507 1.63987e+01 1.34633e-03
508 1.46615e+01 1.57698e-03
509 1.24599e+01 1.58576e-03
510 9.79870e+00 1.35054e-03
511 6.63775e+00 1.35459e-03
512 2.03043e+00 1.35941e-04
513 1.90004e+01 2.45395e-04
514 1.86013e+01 7.19143e-04
515 1.78851e+01 1.07602e-03
516 1.65988e+01 1.41094e-03
517 1.48439e+01 1.65554e-03
518 1.26175e+01 1.60384e-03
519 9.93046e+00 1.27171e-03
520 6.73260e+00 6.20097e-04
521 2.07866e+00 -3.24095e-05
522 1.92345e+01 2.57540e-04
523 1.88303e+01 7.52096e-04
524 1.81069e+01 1.12787e-03
525 1.68070e+01 1.48673e-03
526 1.50322e+01 1.73807e-03
527 1.27817e+01 1.75664e-03
528 1.00600e+01 1.31835e-03
529 6.80826e+00 9.42734e-04
530 2.12701e+00 7.21861e-05
531 1.94779e+01 2.64811e-04
532 1.90699e+01 7.89915e-04
533 1.83367e+01 1.18053e-03
534 1.70231e+01 1.51709e-03
535 1.52273e+01 1.81714e-03
536 1.29527e+01 1.84578e-03
537 1.02023e+01 1.56611e-03
538 6.92381e+00 1.19809e-03
539 2.16153e+00 3.94413e-05
540 1.97305e+01 2.80486e-04
541 1.93187e+01 8.27000e-04
542 1.85760e+01 1.24064e-03
543 1.72467e+01 1.61405e-03
544 1.54307e+01 1.90098e-03
545 1.31293e+01 2.00486e-03
546 1.03516e+01 1.71855e-03
547 7.03831e+00 1.20851e-03
548 2.20632e+00 5.64787e-05
549 1.99929e+01 2.91907e-04
550 1.95746e+01 8.71593e-04
551 1.88259e+01 1.30456e-03
552 1.74804e+01 1.71496e-03
553 1.56433e+01 1.98851e-03
554 1.33141e+01 1.95026e-03
555 1.04995e+01 1.72248e-03
556 7.13421e+00 1.30187e-03
557 2.25771e+00 4.64399e-06
558 2.02656e+01 3.07655e-04
559 1.98431e+01 9.15297e-04
560 1.90835e+01 1.37247e-03
561 1.77229e+01 1.80257e-03
562 1.58626e+01 2.09193e-03
563 1.35065e+01 2.05367e-03
564 1.06539e+01 1.81307e-03
565 7.25636e+00 1.27954e-03
566 2.31035e+00 1.30554e-04
567 2.05495e+01 3.20899e-04
568 2.01225e+01 9.64466e-04
569 1.93527e+01 1.44314e-03
570 1.79746e+01 1.87028e-03
571 1.60918e+01 2.16690e-03
572 1.37055e+01 2.10763e-03
573 1.08217e+01 2.01599e-03
574 7.36210e+00 1.36784e-03
575 2.35916e+00 1.00142e-04
576 2.08444e+01 3.42978e-04
577 2.04113e+01 1.02040e-03
578 1.96334e+01 1.52551e-03
579 1.82366e+01 2.00303e-03
580 1.63311e+01 2.30543e-03
581 1.39133e+01 2.44265e-03
582 1.09949e+01 2.17700e-03
583 7.49487e+00 1.40101e-03
584 2.43063e+00 2.77981e-05
585 2.11519e+01 3.71200e-04
586 2.07122e+01 1.07905e-03
587 1.99253e+01 1.61239e-03
588 1.85110e+01 2.13120e-03
589 1.65800e+01 2.44405e-03
590 1.41313e+01 2.37661e-03
591 1.11742e+01 2.14650e-03
592 7.62919e+00 1.10698e-03
593 2.48091e+00 1.37389e-04
594 2.14761e+01 3.84889e-04
595 2.10321e+01 1.14135e-03
596 2.02319e+01 1.70658e-03
597 1.87992e+01 2.24591e-03
598 1.68416e+01 2.56370e-03
599 1.43608e+01 2.50125e-03
600 1.13595e+01 2.22417e-03
601 7.73660e+00 1.57202e-03
602 2.54257e+00 3.10261e-05
603 2.18121e+01 4.11663e-04
604 2.13613e+01 1.21233e-03
605 2.05519e+01 1.80561e-03
606 1.90981e+01 2.35275e-03
607 1.71149e+01 2.74508e-03
608 1.45984e+01 2.68484e-03
609 1.15570e+01 2.44747e-03
610 7.90372e+00 1.75904e-03
611 2.61560e+00 2.48070e-04
612 2.21638e+01 4.37337e-04
613 2.17057e+01 1.28259e-03
614 2.08858e+01 1.91546e-03
615 1.94123e+01 2.50337e-03
616 1.74002e+01 2.91366e-03
617 1.48488e+01 3.00954e-03
618 1.17640e+01 2.67142e-03
619 8.07965e+00 1.57355e-03
620 2.69196e+00 5.07402e-05
621 2.25358e+01 4.69393e-04
622 2.20728e+01 1.36522e-03
623 2.12381e+01 2.04104e-03
624 1.97436e+01 2.70418e-03
625 1.77015e+01 3.09237e-03
626 1.51130e+01 3.06268e-03
627 1.19857e+01 2.70620e-03
628 8.24843e+00 1.57543e-03
629 2.75702e+00 1.47601e-04
630 2.29230e+01 4.95717e-04
631 2.24521e+01 1.45473e-03
632 2.16071e+01 2.17049e-03
633 2.00888e+01 2.85765e-03
634 1.80175e+01 3.29331e-03
635 1.53890e+01 3.29807e-03
636 1.22098e+01 2.81700e-03
637 8.35754e+00 2.31393e-03
638 2.84155e+00 1.43052e-04
639 2.33305e+01 5.40488e-04
640 2.28515e+01 1.56015e-03
641 2.19941e+01 2.32022e-03
642 2.04533e+01 3.01696e-03
643 1.83490e+01 3.52151e-03
644 1.56804e+01 3.42021e-03
645 1.24556e+01 3.13601e-03
646 8.59964e+00 2.42081e-03
647 2.93469e+00 2.84477e-04
648 2.37605e+01 5.77455e-04
649 2.32748e+01 1.66061e-03
650 2.24015e+01 2.48092e-03
651 2.08379e+01 3.25164e-03
652 1.86983e+01 3.79705e-03
653 1.59884e+01 3.74873e-03
654 1.27062e+01 3.20508e-03
655 8.75267e+00 2.13104e-03
656 3.02017e+00 2.75057e-05
657 2.42143e+01 6.19080e-04
658 2.37216e+01 1.77630e-03
659 2.28331e+01 2.66282e-03
660 2.12426e+01 3.50519e-03
661 1.90688e+01 4.03203e-03
662 1.63136e+01 4.02593e-03
663 1.29820e+01 3.35037e-03
664 8.96999e+00 2.05361e-03
665 3.11706e+00 1.25971e-04
666 2.46955e+01 6.60192e-04
667 2.41923e+01 1.92012e-03
668 2.32918e+01 2.86334e-03
669 2.16735e+01 3.75400e-03
670 1.94631e+01 4.34425e-03
671 1.66601e+01 4.31477e-03
672 1.32742e+01 3.83012e-03
673 9.21914e+00 2.66501e-03
674 3.22637e+00 1.90530e-04
675 2.52038e+01 7.22075e-04
676 2.46928e+01 2.06919e-03
677 2.37741e+01 3.08472e-03
678 2.21293e+01 4.04659e-03
679 1.98780e+01 4.69489e-03
680 1.70273e+01 4.61413e-03
681 1.35759e+01 4.02379e-03
682 9.40189e+00 3.03308e-03
683 3.34166e+00 2.80079e-04
684 2.57440e+01 7.56440e-04
685 2.52248e+01 2.22537e-03
686 2.42885e+01 3.32963e-03
687 2.26121e+01 4.37248e-03
688 2.03209e+01 5.04804e-03
689 1.74163e+01 4.96395e-03
690 1.39013e+01 4.32262e-03
691 9.62806e+00 2.67435e-03
692 3.45757e+00 -3.81489e-05
693 2.63179e+01 8.25750e-04
694 2.57878e+01 2.41779e-03
695 2.48365e+01 3.61866e-03
696 2.31261e+01 4.78201e-03
697 2.07934e+01 5.50213e-03
698 1.78319e+01 5.50491e-03
699 1.42520e+01 4.51895e-03
700 9.97480e+00 2.82401e-03
701 3.60325e+00 1.63749e-04
702 2.69305e+01 8.99221e-04
703 2.63888e+01 2.63489e-03
704 2.54196e+01 3.92608e-03
705 2.36773e+01 5.13720e-03
706 2.12970e+01 5.96948e-03
707 1.82787e+01 5.88989e-03
708 1.46260e+01 5.14566e-03
709 1.02125e+01 4.10511e-03
710 3.75158e+00 2.65926e-04
711 2.75918e+01 9.90439e-04
712 2.70413e+01 2.87644e-03
713 2.60483e+01 4.29389e-03
714 2.42706e+01 5.62871e-03
715 2.18404e+01 6.52057e-03
716 1.87596e+01 6.41072e-03
717 1.50296e+01 5.47294e-03
718 1.05170e+01 4.48253e-03
719 3.90128e+00 3.57685e-04
720 2.82965e+01 1.08000e-03
721 2.77330e+01 3.15368e-03
722 2.67219e+01 4.70821e-03
723 2.49034e+01 6.15844e-03
724 2.24236e+01 7.15372e-03
725 1.92741e+01 7.06544e-03
726 1.54597e+01 6.00671e-03
727 1.08338e+01 4.18472e-03
728 4.07436e+00 2.12728e-04
729 2.90558e+01 1.18392e-03
730 2.84787e+01 3.47357e-03
731 2.74455e+01 5.18240e-03
732 2.55885e+01 6.80219e-03
733 2.30512e+01 7.85583e-03
734 1.98329e+01 7.80124e-03
735 1.59352e+01 6.49514e-03
736 1.12255e+01 4.19423e-03
737 4.26645e+00 3.22766e-04
738 2.98780e+01 1.30451e-03
739 2.92885e+01 3.84059e-03
740 2.82280e+01 5.72304e-03
741 2.63308e+01 7.47757e-03
742 2.37308e+01 8.69950e-03
743 2.04396e+01 8.82411e-03
744 1.64474e+01 7.50693e-03
745 1.16465e+01 5.42977e-03
746 4.48225e+00 4.31279e-04
747 3.07711e+01 1.46530e-03
748 3.01680e+01 4.26609e-03
749 2.90815e+01 6.37003e-03
750 2.71352e+01 8.34415e-03
751 2.44735e+01 9.63311e-03
752 2.10982e+01 9.81544e-03
753 1.70094e+01 8.26504e-03
754 1.20317e+01 5.42423e-03
755 4.69644e+00 3.99749e-04
756 3.17498e+01 1.62356e-03
757 3.11289e+01 4.78338e-03
758 3.00177e+01 7.12835e-03
759 2.80201e+01 9.36206e-03
760 2.52897e+01 1.07675e-02
761 2.18255e+01 1.05361e-02
762 1.76260e+01 9.18238e-03
763 1.25880e+01 6.10588e-03
764 4.97257e+00 4.21942e-04
765 3.28195e+01 1.82587e-03
766 3.21831e+01 5.38161e-03
767 3.10376e+01 8.02593e-03
768 2.89896e+01 1.05423e-02
769 2.61806e+01 1.20936e-02
770 2.26247e+01 1.19996e-02
771 1.82958e+01 1.03039e-02
772 1.30299e+01 7.24054e-03
773 5.25822e+00 6.59539e-04
774 3.39997e+01 2.05748e-03
775 3.33463e+01 6.09387e-03
776 3.21679e+01 9.09466e-03
777 3.00574e+01 1.18952e-02
778 2.71702e+01 1.36912e-02
779 2.35073e+01 1.34932e-02
780 1.90569e+01 1.19033e-02
781 1.36300e+01 8.40003e-03
782 5.58241e+00 6.92073e-04
783 3.53164e+01 2.38779e-03
784 3.46403e+01 6.98980e-03
785 3.34299e+01 1.04130e-02
786 3.12537e+01 1.36487e-02
787 2.82778e+01 1.56664e-02
788 2.44991e+01 1.56910e-02
789 1.99042e+01 1.35989e-02
790 1.42360e+01 8.60508e-03
791 5.96336e+00 8.07842e-04
792 3.67842e+01 2.77290e-03
793 3.60876e+01 8.05782e-03
794 3.48330e+01 1.20137e-02
795 3.25914e+01 1.57666e-02
796 2.95126e+01 1.80477e-02
797 2.56130e+01 1.79462e-02
798 2.08540e+01 1.55986e-02
799 1.50203e+01 9.94161e-03
800 6.40427e+00 8.07249e-04
801 3.84420e+01 3.21113e-03
802 3.77225e+01 9.39553e-03
803 3.64250e+01 1.40197e-02
804 3.41003e+01 1.83822e-02
805 3.09178e+01 2.09989e-02
806 2.68751e+01 2.08461e-02
807 2.19360e+01 1.81400e-02
808 1.58695e+01 1.22202e-02
809 6.91803e+00 1.13935e-03
810 4.03320e+01 3.79893e-03
811 3.95844e+01 1.11061e-02
812 3.82438e+01 1.65615e-02
813 3.58246e+01 2.16444e-02
814 3.25283e+01 2.48109e-02
815 2.83228e+01 2.45061e-02
816 2.31976e+01 2.15617e-02
817 1.69132e+01 1.48341e-02
818 7.53863e+00 1.69380e-03
819 4.25152e+01 4.57876e-03
820 4.17358e+01 1.33168e-02
821 4.03399e+01 1.98467e-02
822 3.78293e+01 2.59823e-02
823 3.43909e+01 2.97008e-02
824 3.00145e+01 2.94533e-02
825 2.46596e+01 2.56372e-02
826 1.80772e+01 1.73385e-02
827 8.22840e+00 1.56652e-03
828 4.50917e+01 5.59368e-03
829 4.42812e+01 1.62399e-02
830 4.28182e+01 2.42424e-02
831 4.01963e+01 3.17655e-02
832 3.66017e+01 3.62527e-02
833 3.20225e+01 3.60569e-02
834 2.64106e+01 3.11318e-02
835 1.93883e+01 2.08851e-02
836 9.10092e+00 2.07757e-03
837 4.81483e+01 6.93710e-03
838 4.72969e+01 2.02562e-02
839 4.57719e+01 3.02447e-02
840 4.30112e+01 3.95428e-02
841 3.92490e+01 4.52318e-02
842 3.44242e+01 4.49636e-02
843 2.85103e+01 3.88465e-02
844 2.11519e+01 2.77404e-02
845 1.02546e+01 1.66632e-03
846 5.18835e+01 9.02094e-03
847 5.09850e+01 2.60053e-02
848 4.93750e+01 3.88299e-02
849 4.64758e+01 5.10641e-02
850 4.24939e+01 5.78737e-02
851 3.73897e+01 5.79001e-02
852 3.11336e+01 4.99145e-02
853 2.33595e+01 3.58096e-02
854 1.16332e+01 3.97516e-03
855 5.64624e+01 1.20716e-02
856 5.60612e+01 3.53622e-02
857 5.39232e+01 5.38749e-02
858 5.07489e+01 6.85978e-02
859 4.67054e+01 7.74980e-02
860 4.13070e+01 7.76103e-02
861 3.46854e+01 6.79762e-02
862 2.64155e+01 4.75009e-02
863 1.36519e+01 6.21890e-03
864 6.29725e+01 1.32878e-02
865 6.18329e+01 4.51960e-02
866 5.99180e+01 7.38181e-02
867 5.66221e+01 9.52297e-02
868 5.20294e+01 1.07625e-01
869 4.61784e+01 1.08316e-01
870 3.90031e+01 9.49677e-02
871 3.00740e+01 6.56401e-02
872 1.62885e+01 9.15138e-03
873 7.14645e+01 1.73833e-02
874 7.04872e+01 6.57196e-02
875 6.82578e+01 1.09453e-01
876 6.47043e+01 1.43842e-01
877 5.97624e+01 1.63988e-01
878 5.33817e+01 1.64780e-01
879 4.54210e+01 1.46362e-01
880 3.54021e+01 1.03522e-01
881 2.02973e+01 1.20534e-02
882 8.44972e+01 2.95636e-02
883 8.34844e+01 1.15571e-01
884 8.09776e+01 1.92048e-01
885 7.71206e+01 2.53561e-01
886 7.15974e+01 2.90931e-01
887 6.45339e+01 2.95824e-01
888 5.55316e+01 2.62929e-01
889 4.41723e+01 1.87396e-01
890 2.71246e+01 2.19960e-02
891 1.15951e+02 1.11453e-01
892 1.15021e+02 3.46751e-01
893 1.11268e+02 5.33268e-01
894 1.07848e+02 7.04827e-01
895 1.00462e+02 7.85416e-01
896 9.38074e+01 8.48361e-01
897 8.29356e+01 7.54558e-01
898 6.89766e+01 5.26199e-01
899 4.57730e+01 7.08304e-02
-32
View File
@@ -1,32 +0,0 @@
# Vibration Excitation v = 0->1 by Yoon:2008aa
# E sig_tot
5.160E-01 0.000E+00
5.500E-01 1.000E-22
6.000E-01 1.700E-22
6.600E-01 2.700E-22
7.400E-01 3.800E-22
8.000E-01 4.700E-22
8.500E-01 5.900E-22
1.000E+00 9.400E-22
1.250E+00 1.720E-21
1.480E+00 2.400E-21
2.000E+00 3.670E-21
2.460E+00 4.420E-21
3.000E+00 4.860E-21
3.800E+00 4.610E-21
4.600E+00 3.800E-21
5.000E+00 3.430E-21
5.300E+00 3.240E-21
5.600E+00 3.020E-21
6.100E+00 2.700E-21
7.000E+00 2.100E-21
1.500E+01 5.650E-22
2.000E+01 3.320E-22
2.500E+01 2.420E-22
3.000E+01 1.700E-22
4.000E+01 1.120E-22
5.000E+01 9.680E-23
6.000E+01 8.170E-23
8.000E+01 6.090E-23
1.000E+02 4.510E-23
1.100E+02 0.000E+00
-59
View File
@@ -1,59 +0,0 @@
//
// dcs_base.h
// mc_electron
//
// Created by Christian Reiling on 08.07.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef dcs_base_h
#define dcs_base_h
#include "random_operations.h"
#include "dcs_theta_container.hpp"
#include "error_types.h"
#include "constants.h"
class DCS_Base {
protected:
UniRNG *rngUni;
public:
DCS_Base(UniRNG *rngUni) {
this->rngUni = rngUni;
}
virtual double get_theta(const double &T_eV) = 0;
};
class FourPi_DCS : public DCS_Base {
public:
FourPi_DCS(UniRNG *rngUni) : DCS_Base(rngUni) {}
double get_theta(const double &T_eV) {
return rngUni->random()*2*pi;
}
};
class ZeroPi_DCS : public DCS_Base {
public:
ZeroPi_DCS(UniRNG *rngUni) : DCS_Base(rngUni) {}
double get_theta(const double &T_eV) {
return 0;
}
};
class Elastic_DCS : public DCS_Base {
DCS_Theta_Container dcs_data;
public:
Elastic_DCS(UniRNG *rngUni) : DCS_Base(rngUni), dcs_data(scale_start, scale_end, 1e3, 200, get_data_path() + "eT2_ela_DCS.dat") {}
double get_theta(const double &T_eV) {
return dcs_data.roll_value(T_eV, rngUni);
}
};
#endif /* dcs_base_h */
-13
View File
@@ -1,13 +0,0 @@
//
// dcs_container_base.h
// mc_electron
//
// Created by Christian Reiling on 04.06.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef dcs_container_base_h
#define dcs_container_base_h
#endif /* dcs_container_base_h */
@@ -1,123 +0,0 @@
//
// dcs_ionization_container.cpp
// mc_electron
//
// Created by Christian Reiling on 04.06.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#include "dcs_ionization_container.hpp"
#include <algorithm>
#include "edge_container.h"
DCS_Ionization_Container::DCS_Ionization_Container(double T_min_eV, double T_max_eV, int number_T_bins, int number_W_bins, std::string load_path) {
T_scale = Log_Scale(T_min_eV, T_max_eV, number_T_bins);
W_scale = new Log_Scale[number_T_bins];
double Tmax_eV;
for (int i = 0; i < number_T_bins; i++) {
Tmax_eV = (T_scale.get_bin_mid(i) - EionT2_eV)/2;
W_scale[i] = Log_Scale(scale_start, Tmax_eV, number_W_bins);
}
init_data();
calc_data(load_path);
}
DCS_Ionization_Container::~DCS_Ionization_Container() {
for (int i=0; i < T_scale.get_number_bins(); i++) {
delete[] data[i];
}
delete[] data;
delete W_scale;
};
DCS_Ionization_Container::DCS_Ionization_Container(const DCS_Ionization_Container& other) {
T_scale = other.T_scale;
int num_T_bins = T_scale.get_number_bins();
W_scale = new Log_Scale[num_T_bins];
for (int i = 0; i < num_T_bins; i++) {
W_scale[i] = other.W_scale[i];
}
int num_W_bins = W_scale[0].get_number_bins();
init_data();
for (int i = 0; i<num_T_bins; i++) {
for (int j = 0; j<num_W_bins; j++) {
data[i][j] = other.data[i][j];
}
}
}
DCS_Ionization_Container& DCS_Ionization_Container::operator=(const DCS_Ionization_Container& other) {
DCS_Ionization_Container tmp(other);
std::swap(T_scale, tmp.T_scale);
std::swap(W_scale, tmp.W_scale);
std::swap(data, tmp.data);
return *this;
}
void DCS_Ionization_Container::init_data() {
int num_T_bins = T_scale.get_number_bins();
int num_W_bins = W_scale[0].get_number_bins();
data = new double *[num_T_bins];
for (int i = 0; i<num_T_bins; i++) {
data[i] = new double [num_W_bins];
}
}
void DCS_Ionization_Container::calc_data(std::string load_path) {
Edge_Container<dim2Map> E2D(load_path);
int num_T_bins = T_scale.get_number_bins();
int num_W_bins = W_scale[0].get_number_bins();
double *temp;
double sum;
//double E_eV;
for (int i = 0; i<num_T_bins; i++) {
//E_eV = T_scale.get_bin_mid(i);
temp = new double[num_W_bins];
sum = 0;
for (int j = 0; j<num_W_bins; j++) {
sum += calc_bin_surface(i, j, &E2D);
temp[j] = sum;
}
if (sum == 0) {
std::stringstream ss;
ss<<"DCS_Ionization_Container::calc_data: sum=0, lower_bound bad.\n";
throw MyException(ss.str());
}
for (int j = 0; j < num_W_bins; j++) {
temp[j] /= sum;
}
data[i] = temp;
}
}
double DCS_Ionization_Container::calc_bin_surface(int T_bin, int W_bin, Edge_Container<dim2Map> *E2D) {
double T_eV = T_scale.get_bin_mid(T_bin);
double W_eV = W_scale[T_bin].get_bin_mid(W_bin);
double width = T_scale.get_upper_bin_bound(T_bin) - T_scale.get_lower_bin_bound(T_bin);
double height = E2D->interpolate(ddeque{T_eV, W_eV});
return width*height;
}
double DCS_Ionization_Container::roll_value(const double &T_eV, UniRNG *rngUni) {
int T_bin = T_scale.calc_index(T_eV);
double target = rngUni->random();
for (int j=0; j<W_scale[T_bin].get_number_bins(); j++) {
if (target < data[T_bin][j]) {
return roll_in_bin(T_bin, j, rngUni);
}
}
std::stringstream ss;
ss<<"DCS_Ionization_Container::roll_value: Overflow.\n";
throw MyException (ss.str());
}
double DCS_Ionization_Container::roll_in_bin(const int &T_bin, const int &W_bin, UniRNG *rngUni) {
double lower_value = W_scale[T_bin].get_lower_bin_bound(W_bin);
double upper_value = W_scale[T_bin].get_upper_bin_bound(W_bin);
double distance = upper_value - lower_value;
double res = lower_value + rngUni->random() * distance;
return res;
}
@@ -1,41 +0,0 @@
//
// dcs_ionization_container.hpp
// mc_electron
//
// Created by Christian Reiling on 04.06.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef dcs_ionization_container_hpp
#define dcs_ionization_container_hpp
#include "log_scale.h"
#include <string>
#include "edge_container.h"
#include "random_operations.h"
class DCS_Ionization_Container {
double **data;
Log_Scale T_scale;
Log_Scale *W_scale;
public:
DCS_Ionization_Container(double T_min_eV, double T_max_eV, int number_T_bins, int number_W_bins, std::string load_path);
~DCS_Ionization_Container();
DCS_Ionization_Container(const DCS_Ionization_Container& other);
DCS_Ionization_Container& operator=(const DCS_Ionization_Container& other);
private:
void init_data();
void calc_data(std::string load_path);
double calc_bin_surface(int T_bin, int W_bin, Edge_Container<dim2Map> *E2D);
public:
double roll_value(const double &T_eV, UniRNG *rngUni);
private:
double roll_in_bin(const int &T_bin, const int &W_bin, UniRNG *rngUni);
};
#endif /* dcs_ionization_container_hpp */
-110
View File
@@ -1,110 +0,0 @@
//
// dcs_theta_container.cpp
// mc_electron
//
// Created by Christian Reiling on 04.06.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#include "dcs_theta_container.hpp"
#include <algorithm>
#include "edge_container.h"
DCS_Theta_Container::DCS_Theta_Container(double E_min_eV, double E_max_eV, int number_E_bins, int number_theta_bins, std::string load_path) {
E_scale = Log_Scale(E_min_eV, E_max_eV, number_E_bins);
theta_scale = Lin_Scale (0, pi, number_theta_bins);
init_data();
calc_data(load_path);
}
DCS_Theta_Container::~DCS_Theta_Container() {
for (int i=0; i < E_scale.get_number_bins(); i++) {
delete[] data[i];
}
delete[] data;
};
DCS_Theta_Container::DCS_Theta_Container(const DCS_Theta_Container& other) {
E_scale = other.E_scale;
theta_scale = other.theta_scale;
init_data();
for (int i = 0; i<E_scale.get_number_bins(); i++) {
for (int j = 0; j<theta_scale.get_number_bins(); j++) {
data[i][j] = other.data[i][j];
}
}
}
DCS_Theta_Container& DCS_Theta_Container::operator=(const DCS_Theta_Container& other) {
DCS_Theta_Container tmp(other);
std::swap(E_scale, tmp.E_scale);
std::swap(theta_scale, tmp.theta_scale);
std::swap(data, tmp.data);
return *this;
}
void DCS_Theta_Container::init_data() {
int number_E_bins = E_scale.get_number_bins();
int number_theta_bins = theta_scale.get_number_bins();
data = new double *[number_E_bins];
for (int i = 0; i<number_E_bins; i++) {
data[i] = new double [number_theta_bins];
}
}
void DCS_Theta_Container::calc_data(std::string load_path) {
Edge_Container<dim2Map> E2D(load_path);
int number_E_bins = E_scale.get_number_bins();
int number_theta_bins = theta_scale.get_number_bins();
double *temp;
double sum;
double E_eV;
for (int i = 0; i<number_E_bins; i++) {
//E_eV = E_scale.get_bin_mid(i);
temp = new double[number_theta_bins];
sum = 0;
for (int j = 0; j<number_theta_bins; j++) {
sum += calc_bin_surface(i, j, &E2D);
temp[j] = sum;
}
for (int j = 0; j < number_theta_bins; j++) {
temp[j] /= sum;
}
data[i] = temp;
}
}
double DCS_Theta_Container::calc_bin_surface(int E_bin, int theta_bin, Edge_Container<dim2Map> *E2D) {
double E_eV = E_scale.get_bin_mid(E_bin);
double theta = theta_scale.get_bin_mid(theta_bin);
double width = E_scale.get_upper_bin_bound(E_bin) - E_scale.get_lower_bin_bound(E_bin);
double height = E2D->interpolate(ddeque{E_eV, theta});
return width*height;
}
double DCS_Theta_Container::roll_value(const double &E_eV, UniRNG *rngUni) {
int E_bin = E_scale.calc_index(E_eV);
double target = rngUni->random();
for (int j=0; j<theta_scale.get_number_bins(); j++) {
if (target < data[E_bin][j]) {
return roll_in_bin(j, rngUni);
}
}
std::stringstream ss;
ss<<"DCS_Theta_Container::roll_value: Overflow./n";
throw MyException (ss.str());
}
double DCS_Theta_Container::roll_in_bin(const int &theta_bin, UniRNG *rngUni) {
double lower_value = theta_scale.get_lower_bin_bound(theta_bin);
double upper_value = theta_scale.get_upper_bin_bound(theta_bin);
double distance = upper_value - lower_value;
double res = lower_value + rngUni->random() * distance;
return res;
}
-42
View File
@@ -1,42 +0,0 @@
//
// dcs_theta_container.hpp
// mc_electron
//
// Created by Christian Reiling on 04.06.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef dcs_theta_container_hpp
#define dcs_theta_container_hpp
#include "edge_container.h"
#include "log_scale.h"
#include "random_operations.h"
class DCS_Theta_Container {
double **data;
Log_Scale E_scale;
Lin_Scale theta_scale;
public:
DCS_Theta_Container(double E_min_eV, double E_max_eV, int number_E_bins, int number_theta_bins, std::string load_path);
~DCS_Theta_Container();
DCS_Theta_Container(const DCS_Theta_Container& other);
DCS_Theta_Container& operator=(const DCS_Theta_Container& other);
private:
void init_data();
void calc_data(std::string load_path);
double calc_bin_surface(int E_bin, int theta_bin, Edge_Container<dim2Map> *E2D);
public:
double roll_value(const double &E_eV, UniRNG *rngUni);
private:
double roll_in_bin(const int &theta_bin, UniRNG *rngUni);
};
#endif /* dcs_theta_container_hpp */
-66
View File
@@ -1,66 +0,0 @@
//
// drift_base.h
// mc_electron
//
// Created by Christian Reiling on 16.05.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef drift_base_h
#define drift_base_h
#include "mover_base.h"
// Drift Approximation: Assume constant B and only movement out in z=0, z=wgtsLength_m...
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 &macro_sigma_m);
protected:
double get_zNew_m(Particle *movePart, const double &macro_sigma_m);
virtual void doWallInteraction(Particle *movePart, vec3 *oldLoc_m, double *znew_m) = 0;
virtual void do_E_calculus(Particle *movePart, const vec3 &oldLoc_m, const double &macro_sigma_m) = 0;
};
inline void Drift_Base::move(Particle *movePart, const double &macro_sigma_m) {
vec3 oldLoc_m = movePart->get_x_m();
vec3 newLoc_m = oldLoc_m;
double znew_m = get_zNew_m(movePart, macro_sigma_m);
doWallInteraction(movePart, &oldLoc_m, &znew_m);
newLoc_m[2] = znew_m;
movePart->set_x_m(newLoc_m);
do_E_calculus(movePart, oldLoc_m, macro_sigma_m);
Logger->log(*movePart, oldLoc_m);
Population->increase_density(*movePart, oldLoc_m);
}
inline double Drift_Base::get_zNew_m(Particle *movePart, const double &macro_sigma_m) {
double zold_m = movePart->get_x_m()[2];
vec3 v_ms = movePart->get_v_ms();
double vTotAbs_ms = calc_vec3_abs(v_ms);
double vForwardAbs_ms = calc_vec3_abs(vec3(0,0,v_ms[2]));
double zDir = v_ms[2] <= 0 ? -1 : 1;
double znew_m;
if (macro_sigma_m == 0) {
if (zDir == -1) {
znew_m = z_RW_m - 2*l_WGTS_m;
} else {
znew_m = z_WGTS_end_m + 2*l_WGTS_m;
}
} else {
double distance_m = 1/macro_sigma_m;
znew_m = zold_m + zDir*vForwardAbs_ms/vTotAbs_ms * distance_m;
}
return znew_m;
}
#endif /* drift_base_h */
-37
View File
@@ -1,37 +0,0 @@
//
// eT2I_disexc.h
// mc_electron
//
// Created by Christian Reiling on 30.07.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef eT2I_disexc_h
#define eT2I_disexc_h
#include "exc_base.h"
#include "janev_eT2I_disexc.h"
class eT2I_DissExc : public Excitation_Base {
public:
eT2I_DissExc(Population_Base *T2IPopulation, UniRNG *rngUni, DCS_Base *dcs_gen) : Excitation_Base(T2IPopulation, rngUni, me_eV, Janev_eT2I_DissExc::get_deltaE_eV(), dcs_gen) {}
double get_microSigma_m2(const double &E_eV) {return Janev_eT2I_DissExc::get_TCS(E_eV);}
InteractionOut do_Interaction (Particle *interPart);
};
inline InteractionOut eT2I_DissExc::do_Interaction (Particle *interPart) {
InteractionOut res = Excitation_Base::do_Interaction(interPart);
vec3 loc_m = interPart->get_x_m();
vec3 vTI_ms = Population->roll_v_ms(loc_m);
Particle TI = Particle_Builder::create_TI(loc_m, vTI_ms, -1, interPart->get_Id());
res.add_new_particle(TI);
//Population->decrease_denisty(interPart->get_x_m(), 0); // dummy since thermal population
return res;
}
#endif /* eT2I_disexc_h */
-38
View File
@@ -1,38 +0,0 @@
//
// eT2I_recombination.h
// mc_electron
//
// Created by Christian Reiling on 18.06.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef eT2I_recombination_h
#define eT2I_recombination_h
#include "e_thermal_base.h"
#include "janev_eT2I_recombination.h"
class eT2I_Recombination : public e_thermal_Precomputed_Interaction_Base {
public:
eT2I_Recombination(Population_Base *T2IPopulation, UniRNG *rngUni) : e_thermal_Precomputed_Interaction_Base(T2IPopulation, rngUni, me_eV) {
calc_values(); // need to call here, because, constructor can't call pure virtual function
}
double get_microSigma_m2(const double &E_eV) {
return Janev_eT2I_Recombination::get_TCS(E_eV);
}
InteractionOut do_Interaction (Particle *interPart);
};
inline InteractionOut eT2I_Recombination::do_Interaction (Particle *interPart) {
InteractionOut res;
res.set_delete_current(true);
//std::cout<<"eT2I:\t"<<*interPart<<"\n";
//Population->decrease_denisty(interPart->get_x_m(), 0);
return res;
}
#endif /* eT2I_recombination_h */
-53
View File
@@ -1,53 +0,0 @@
//
// eT2_elastic.h
// mc_electron
//
// Created by Christian Reiling on 20.05.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef eT2_elastic_h
#define eT2_elastic_h
#include "e_thermal_base.h"
#include "uehara_eT2_elastic.hpp"
#include "tcs_container.hpp"
#include "dcs_theta_container.hpp"
#include "kinematics_base.h"
#include "dcs_base.h"
class eT2_Elastic : public e_thermal_Precomputed_Interaction_Base {
TCS_Container tcs_data;
DCS_Base *dcs_gen;
Elastic_Kinematic_Base kinematics;
public:
eT2_Elastic(Population_Base *T2Population, UniRNG *rngUni, DCS_Base *dcs_gen) : e_thermal_Precomputed_Interaction_Base(T2Population, rngUni, me_eV),
tcs_data(scale_start, scale_end, 1e3, get_data_path() + "eT2_ela_TCS.dat"),
kinematics(me_eV, 2*mT_eV) {
this->dcs_gen = dcs_gen;
calc_values(); // need to call here, because, constructor can't call pure virtual function
}
double get_macro_sigma_m(const Particle &interPart) {
return e_thermal_Precomputed_Interaction_Base::get_macro_sigma_m(interPart);
}
double get_microSigma_m2(const double &E_eV) {return tcs_data.get_value(E_eV);}
InteractionOut do_Interaction (Particle *interPart);
};
inline InteractionOut eT2_Elastic::do_Interaction (Particle *interPart) {
// Here theta and phi are COM-Angles.... prob not correct. For m1 << m2 COM - Angle ~ Lab Angle
vec3 v1_ms = interPart->get_v_ms();
vec3 v2_ms = Population->roll_v_ms(interPart->get_x_m());
vec3 vLab_ms = v1_ms - v2_ms; // P2 fixed
double T_eV = calc_E_eV_from_v_ms(vLab_ms, me_eV);
double theta_lab = dcs_gen->get_theta(T_eV);
double phi_lab = rngUni->random() * 2 * pi;
interPart->set_v_ms(kinematics.get_v1_new(v1_ms, v2_ms, theta_lab, phi_lab));
return InteractionOut();
}
#endif /* eT2_elastic_h */
-53
View File
@@ -1,53 +0,0 @@
//
// eT2_elexc_analytic.h
// mc_electron
//
// Created by Christian Reiling on 01.07.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef eT2_elexc_analytic_h
#define eT2_elexc_analytic_h
#include "exc_base.h"
#include "janev_eT2_elexc.h"
class eT2_ElExc_Nu_Analytic : public Excitation_Base {
Janev_eT2_ElExc_Nu janev_Nu;
public:
eT2_ElExc_Nu_Analytic(Population_Base *T2Population, UniRNG *rngUni, Janev_eT2_ElExc_Nu janev_Nu_in, DCS_Base *dcs_gen) : Excitation_Base(T2Population, rngUni, me_eV, janev_Nu_in.get_deltaE_eV(), dcs_gen), janev_Nu(janev_Nu_in) {};
private:
double get_microSigma_m2(const double &E_eV) {
return janev_Nu.get_TCS_m2(E_eV);
}
};
class eT2_ElExc_Ng_Analytic : public Excitation_Base {
Janev_eT2_ElExc_Ng janev_Ng;
public:
eT2_ElExc_Ng_Analytic(Population_Base *T2Population, UniRNG *rngUni, Janev_eT2_ElExc_Ng janev_Ng_in, DCS_Base *dcs_gen) : Excitation_Base(T2Population, rngUni, me_eV, janev_Ng_in.get_deltaE_eV(), dcs_gen), janev_Ng(janev_Ng_in) {};
private:
double get_microSigma_m2(const double &E_eV) {
return janev_Ng.get_TCS_m2(E_eV);
}
};
class eT2_ElExc_n_Analytic : public Excitation_Base {
Janev_eT2_ElExc_n janev_n;
public:
eT2_ElExc_n_Analytic(Population_Base *T2Population, UniRNG *rngUni, Janev_eT2_ElExc_n janev_n_in, DCS_Base *dcs_gen) : Excitation_Base(T2Population, rngUni, me_eV, janev_n_in.get_deltaE_eV(), dcs_gen), janev_n(janev_n_in) {};
private:
double get_microSigma_m2(const double &E_eV) {
return janev_n.get_TCS_m2(E_eV);
}
};
#endif /* eT2_elexc_analytic_h */
-254
View File
@@ -1,254 +0,0 @@
//
// eT2_ionization.h
// mc_electron
//
// Created by Christian Reiling on 20.05.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef eT2_ionization_h
#define eT2_ionization_h
#include "e_thermal_base.h"
#include "tcs_container.hpp"
#include "dcs_ionization_container.hpp"
#include "BED_eT2_ionization.hpp"
#include "janev_eT2_ionization.h"
/*
Ionization:
Using BED-Model Kim and Rudd 1994
*/
class eT2_Ionization_Base : public e_thermal_Interaction_Base {
double deltaE_eV;
public:
eT2_Ionization_Base(Population_Base *T2Population, UniRNG *rngUni, double deltaE_eV) : e_thermal_Interaction_Base(T2Population, rngUni, me_eV){
this->deltaE_eV = deltaE_eV;
};
double get_macro_sigma_m(const Particle &interPart) {
if (interPart.get_E_eV() < deltaE_eV) {
return 0;
} else {
return e_thermal_Interaction_Base::get_macro_sigma_m(interPart);
}
}
private:
virtual double get_microSigma_m2(const double &E_eV) = 0;
public:
InteractionOut do_Interaction (Particle *interPart);
protected:
vec3 roll_vLab_ms(const Particle &interPart);
double roll_theta1(double T_eV, double W_eV);
double roll_theta2(double T_eV, double W_eV);
virtual double roll_ionW_eV(const double &T_eV) = 0;
virtual void add_Tritiums(InteractionOut *InterOut, const Particle &interPart) = 0;
};
inline InteractionOut eT2_Ionization_Base::do_Interaction (Particle *interPart) {
vec3 v1_ms = interPart->get_v_ms();
vec3 vOff_ms = get_vOff_ms(*interPart, deltaE_eV);
vec3 vLab_ms = v1_ms - vOff_ms;
double T_eV = calc_E_eV_from_v_ms(vLab_ms, me_eV);
double W_eV = roll_ionW_eV(T_eV);
double E1_eV = T_eV-EionT2_eV - W_eV;
E1_eV = (E1_eV < 0) ? 0 : E1_eV;
double phi1 = rngUni->random()*2*pi;
double phi2 = phi1-pi;
double theta1 = roll_theta1(T_eV, W_eV);
double theta2 = roll_theta2(T_eV, W_eV);
double v1_lab_new_ms = calc_v_ms_from_E_eV(E1_eV, me_eV);
double v2_lab_new_ms = calc_v_ms_from_E_eV(W_eV, me_eV);
vec3 new_dir_1 = calc_n_new(vLab_ms, theta1, phi1);
vec3 new_dir_2 = calc_n_new(vLab_ms, theta2, phi2);
vec3 v1_new_ms = v1_lab_new_ms*new_dir_1 + vOff_ms;
vec3 v2_new_ms = v2_lab_new_ms*new_dir_2 + vOff_ms;
interPart->set_v_ms(v1_new_ms);
InteractionOut InterOut;
vec3 loc_m = interPart->get_x_m();
Particle eNew = Particle_Builder::create_e(loc_m, v2_new_ms, -1, interPart->get_Id());
InterOut.add_new_particle(eNew);
add_Tritiums(&InterOut, *interPart);
return InterOut;
}
inline vec3 eT2_Ionization_Base::roll_vLab_ms(const Particle &interPart) {
vec3 v_ms = interPart.get_v_ms();
vec3 vT2_ms = Population->roll_v_ms(interPart.get_x_m());
vec3 vLab_ms = v_ms - vT2_ms;
double T_eV = calc_E_eV_from_v_ms(vLab_ms, me_eV);
if (T_eV < EionT2_eV) { // Set Tritium Speed to 0 if unlucky roll
return v_ms;
} else {
return vLab_ms;
}
}
inline double eT2_Ionization_Base::roll_theta1(double T_eV, double W_eV) {
double theta1;
if (W_eV > 100) {
double numerator = W_eV/T_eV;
double denominator = (1-W_eV / T_eV)*(T_eV/(2*me_eV)) + 1;
theta1 = asin(sqrt(numerator/denominator));
} else {
theta1 = rngUni->random()*pi/4;
}
return theta1;
}
inline double eT2_Ionization_Base::roll_theta2(double T_eV, double W_eV) {
double theta2;
if (W_eV > 200) {
double numerator = 1- W_eV/T_eV;
double denominator = 1 + W_eV/(2*me_eV);
theta2 = asin(sqrt(numerator/denominator));
} else if (W_eV >= 50) {
double decider = rngUni->random();
if (decider < 0.9) {
theta2 = 1 + rngUni->random() * pi/4 + pi/4;
} else {
theta2 = rngUni->random() * pi;
}
} else {
theta2 = rngUni->random() * pi;
}
return theta2;
}
class eT2_Ionization_BED_Base : public eT2_Ionization_Base {
public:
eT2_Ionization_BED_Base(Population_Base *T2Population, UniRNG *rngUni) : eT2_Ionization_Base(T2Population, rngUni, EionT2_eV){};
protected:
void add_Tritiums(InteractionOut *InterOut, const Particle &interPart) {
vec3 loc_m = interPart.get_x_m();
vec3 vT_ms = Population->roll_v_ms(loc_m);
Particle T2I_new = Particle_Builder::create_T2I(loc_m, vT_ms, -1, interPart.get_Id());
InterOut->add_new_particle(T2I_new);
}
};
class eT2_Ionization_BED_Analytic : public eT2_Ionization_BED_Base {
public:
eT2_Ionization_BED_Analytic(Population_Base *T2Population, UniRNG *rngUni) : eT2_Ionization_BED_Base(T2Population, rngUni) {};
protected:
double get_microSigma_m2(const double &E_eV) {
return BED_eT2_Ionization::calc_TCS(E_eV);
}
double roll_ionW_eV(const double &T_eV) {
return BED_eT2_Ionization::roll_W_eV(T_eV, rngUni);
}
};
class eT2_Ionization_BED_Container : public eT2_Ionization_BED_Base {
TCS_Container tcs_data;
//DCS_Ionization_Container dcs_data; //BUGGY
public:
eT2_Ionization_BED_Container(Population_Base *T2Population, UniRNG *rngUni) :
eT2_Ionization_BED_Base(T2Population, rngUni),
tcs_data(scale_start, scale_end, 100, (get_data_path() + "eT2_ion_TCS.dat"))
//dcs_data(EionT2_eV, scale_end, 100, 50, (get_data_path() + "eT2_ion_DCS.dat"))
{};
protected:
double get_microSigma_m2(const double &E_eV) {
return tcs_data.get_value(E_eV);
}
double roll_ionW_eV(const double &T_eV) {
return BED_eT2_Ionization::roll_W_eV(T_eV, rngUni); //dcs_data.roll_value(T_eV, rngUni);
}
};
// Not very fancy from here. Either one function for all 3 or base class with dcs_data, genereally only load the data once.
class eT2_Ionization_Janev_ndiss : public eT2_Ionization_Base {
public:
eT2_Ionization_Janev_ndiss(Population_Base *T2Population, UniRNG *rngUni) : eT2_Ionization_Base(T2Population, rngUni, Janev_eT2_Ionization_ndiss::get_deltaE_eV()) {};
protected:
double get_microSigma_m2(const double &E_eV) {
return Janev_eT2_Ionization_ndiss::get_TCS_m2(E_eV);
}
double roll_ionW_eV(const double &T_eV) {
return BED_eT2_Ionization::roll_W_eV(T_eV, rngUni); //dcs_data.roll_value(T_eV, rngUni);
}
void add_Tritiums(InteractionOut *InterOut, const Particle &interPart) {
vec3 loc_m = interPart.get_x_m();
vec3 vT2_ms = Population->roll_v_ms(loc_m);
Particle T2I_new = Particle_Builder::create_T2I(loc_m, vT2_ms, -1, interPart.get_Id());
InterOut->add_new_particle(T2I_new);
}
};
class eT2_Ionization_Janev_diss_g : public eT2_Ionization_Base {
public:
eT2_Ionization_Janev_diss_g(Population_Base *T2Population, UniRNG *rngUni) : eT2_Ionization_Base(T2Population, rngUni, Janev_eT2_Ionization_diss_g::get_deltaE_eV()) {};
protected:
double get_microSigma_m2(const double &E_eV) {
return Janev_eT2_Ionization_diss_g::get_TCS_m2(E_eV);
}
double roll_ionW_eV(const double &T_eV) {
return BED_eT2_Ionization::roll_W_eV(T_eV, rngUni); //dcs_data.roll_value(T_eV, rngUni);
}
void add_Tritiums(InteractionOut *InterOut, const Particle &interPart) {
vec3 loc_m = interPart.get_x_m();
/*vec3 vT_ms = Population->roll_v_ms(loc_m);
Particle newPart = Particle_Builder::create_T(loc_m, vT_ms, -1, interPart.get_Id());
InterOut->add_new_particle(newPart);*/
vec3 vTI_ms = Population->roll_v_ms(loc_m);
Particle newPart = Particle_Builder::create_TI(loc_m, vTI_ms, -1, interPart.get_Id());
InterOut->add_new_particle(newPart);
}
};
class eT2_Ionization_Janev_diss_u : public eT2_Ionization_Base {
public:
eT2_Ionization_Janev_diss_u(Population_Base *T2Population, UniRNG *rngUni) : eT2_Ionization_Base(T2Population, rngUni, Janev_eT2_Ionization_diss_u::get_deltaE_eV()) {};
protected:
double get_microSigma_m2(const double &E_eV) {
return Janev_eT2_Ionization_diss_u::get_TCS_m2(E_eV);
}
double roll_ionW_eV(const double &T_eV) {
return BED_eT2_Ionization::roll_W_eV(T_eV, rngUni); //dcs_data.roll_value(T_eV, rngUni);
}
void add_Tritiums(InteractionOut *InterOut, const Particle &interPart) {
vec3 loc_m = interPart.get_x_m();
/*vec3 vT_ms = Population->roll_v_ms(loc_m);
Particle newPart = Particle_Builder::create_T(loc_m, vT_ms, -1, interPart.get_Id());
InterOut->add_new_particle(newPart);*/
vec3 vTI_ms = Population->roll_v_ms(loc_m);
Particle newPart = Particle_Builder::create_TI(loc_m, vTI_ms, -1, interPart.get_Id());
InterOut->add_new_particle(newPart);
}
};
#endif /* eT2_ionization_h */
-43
View File
@@ -1,43 +0,0 @@
//
// eT2_vibexc0102.h
// mc_electron
//
// Created by Christian Reiling on 18.06.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef eT2_vibexc0102_h
#define eT2_vibexc0102_h
#include "exc_base.h"
#include "janev_eT2_vibexc0102.h"
class eT2_VibExc01 : public Excitation_Precomputed_Base {
Janev_eT2_VibExc calculator;
public:
eT2_VibExc01(Population_Base *T2Population, UniRNG *rngUni, DCS_Base *dcs_gen) : calculator(1),
Excitation_Precomputed_Base(T2Population, rngUni, me_eV, 0.516, dcs_gen) {};
private:
double get_microSigma_m2(const double &E_eV) {
return calculator.get_TCS(E_eV);
}
};
class eT2_VibExc02 : public Excitation_Precomputed_Base {
Janev_eT2_VibExc calculator;
public:
eT2_VibExc02(Population_Base *T2Population, UniRNG *rngUni, DCS_Base *dcs_gen) : calculator(2),
Excitation_Precomputed_Base(T2Population, rngUni, me_eV, 1.003, dcs_gen) {};
private:
double get_microSigma_m2(const double &E_eV) {
return calculator.get_TCS(E_eV);
}
};
#endif /* eT2_vibexc0102_h */
-35
View File
@@ -1,35 +0,0 @@
//
// eT3I_disexc.h
// mc_electron
//
// Created by Christian Reiling on 30.07.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef eT3I_disexc_h
#define eT3I_disexc_h
#include "exc_base.h"
#include "janev_eT3I_disexc.h"
class eT3I_DissExc : public Excitation_Base {
public:
eT3I_DissExc(Population_Base *T3IPopulation, UniRNG *rngUni, DCS_Base *dcs_gen) : Excitation_Base(T3IPopulation, rngUni, me_eV, Janev_eT3I_DissExc::get_deltaE_eV(), dcs_gen) {}
double get_microSigma_m2(const double &E_eV) {return Janev_eT3I_DissExc::get_TCS(E_eV);}
InteractionOut do_Interaction (Particle *interPart);
};
inline InteractionOut eT3I_DissExc::do_Interaction (Particle *interPart) {
InteractionOut res = Excitation_Base::do_Interaction(interPart);
vec3 loc_m = interPart->get_x_m();
vec3 vTI_ms = Population->roll_v_ms(loc_m);
Particle TI = Particle_Builder::create_TI(loc_m, vTI_ms, -1, interPart->get_Id());
res.add_new_particle(TI);
//Population->decrease_denisty(loc_m, 0); // dummy since thermal population
return res;
}
#endif /* eT3I_disexc_h */
-36
View File
@@ -1,36 +0,0 @@
//
// eT3I_recombination.h
// mc_electron
//
// Created by Christian Reiling on 12.07.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef eT3I_recombination_h
#define eT3I_recombination_h
#include "e_thermal_base.h"
#include "janev_eT3I_recombination.h"
class eT3I_Recombination : public e_thermal_Precomputed_Interaction_Base {
public:
eT3I_Recombination(Population_Base *T3IPopulation, UniRNG *rngUni) : e_thermal_Precomputed_Interaction_Base(T3IPopulation, rngUni, me_eV) {
calc_values(); // need to call here, because, constructor can't call pure virtual function
}
double get_microSigma_m2(const double &E_eV) {return Janev_eT3I_Recombination::get_TCS(E_eV);}
InteractionOut do_Interaction (Particle *interPart);
};
inline InteractionOut eT3I_Recombination::do_Interaction (Particle *interPart) {
InteractionOut res;
res.set_delete_current(true);
//std::cout<<"eT3I:\t"<<*interPart<<"\n";
//Population->decrease_denisty(interPart->get_x_m(), 0);
return res;
}
#endif /* eT3I_recombination_h */
-38
View File
@@ -1,38 +0,0 @@
//
// eT5I_recombination.h
// mc_electron
//
// Created by Christian Reiling on 16.09.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef eT5I_recombination_h
#define eT5I_recombination_h
#include "e_thermal_base.h"
#include "petterson_eT5I_recombination.h"
class eT5I_Recombination : public e_thermal_Precomputed_Interaction_Base {
public:
eT5I_Recombination(Population_Base *T5IPopulation, UniRNG *rngUni) : e_thermal_Precomputed_Interaction_Base(T5IPopulation, rngUni, me_eV) {
calc_values(); // need to call here, because, constructor can't call pure virtual function
}
double get_microSigma_m2(const double &E_eV) {
return Pettersson_eT5I_Recombination::get_TCS(E_eV);
}
InteractionOut do_Interaction (Particle *interPart);
};
inline InteractionOut eT5I_Recombination::do_Interaction (Particle *interPart) {
InteractionOut res;
//std::cout<<"eT5I:\t"<<*interPart<<"\n";
res.set_delete_current(true);
//Population->decrease_denisty(interPart->get_x_m(), 0);
return res;
}
#endif /* eT5I_recombination_h */
-146
View File
@@ -1,146 +0,0 @@
//
// e_kinetic_base.h
// mc_electron
//
// Created by Christian Reiling on 19.11.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef e_kinetic_base_h
#define e_kinetic_base_h
#include "interaction_base.h"
/*
class e_kinetic_Interaction_Base : public Interaction_Base { // Interactions of electrons with kinetic resolved TI (but thermal)
protected:
double m1_eV; // energy of kinetic particle for CS measurement : e-
double m2_eV; // energy of massive: TI
int num_EI_bins; // number of Ee_bins in Populations
double *EI_mids; // values for energy mids of Ee_bins in Populations
double *vI_mids; // corresponding v_values
public:
e_kinetic_Interaction_Base(Population_Base *Population, UniRNG *rngUni, double m_eV) : Interaction_Base(Population, rngUni) {
m1_eV = m_eV;
m2_eV = Population->get_m_eV();
num_EI_bins = Population->get_number_E_bins();
if (num_EI_bins <= 1) {
throw MyException("Population is not kinetic, when expected kinetic.");
}
EI_mids = new double[num_EI_bins];
vI_mids = new double[num_EI_bins];
for (int EI_bin = 0; EI_bin<num_EI_bins; EI_bin++) {
EI_mids[EI_bin] = Population->get_E_bin_mid_eV(EI_bin);
vI_mids[EI_bin] = calc_v_ms_from_E_eV(EI_mids[EI_bin], m2_eV);
}
}
double get_macro_sigma_m(const Particle &interPart);
protected:
double calc_macro_sigma_m(const double &E_eV, const vec3 &loc_m);
double calc_microSigma_m2(const double &E_eV, const int &EI_bin);
vec3 get_vOff_ms(const Particle &interPart, const double &minE_eV); // For derived class -> Roll energy loss
private:
virtual double get_microSigma_m2(const double &E_eV) = 0;
};
inline double e_kinetic_Interaction_Base::get_macro_sigma_m(const Particle &interPart) {
return calc_macro_sigma_m(interPart.get_E_eV(), interPart.get_x_m());
}
inline double e_kinetic_Interaction_Base::calc_macro_sigma_m(const double &E_eV, const vec3 &loc_m) {
Bins loc_bins = Population->get_loc_bin(loc_m);
double macro_sigma_m = 0;
for (int EI_bin = 0; EI_bin<num_EI_bins; EI_bin++) {
macro_sigma_m += calc_microSigma_m2(E_eV, EI_bin) * Population->get_density_m3(EI_bin, loc_bins);
}
return macro_sigma_m;
}
inline double e_kinetic_Interaction_Base::calc_microSigma_m2(const double &E_eV, const int &EI_bin) {
double v1_ms = calc_v_ms_from_E_eV(E_eV, m1_eV);
double v2_ms = vI_mids[EI_bin];
if (v1_ms > v2_ms*2000 ) { // 2000 represents 1% variation in energy
return get_microSigma_m2(E_eV);
} else {
auto integrand = [&](double theta) {
double E_eV = m1_eV/2 * (pow(v1_ms,2) + pow(v2_ms,2) - 2*v1_ms*v2_ms*cos(theta)) * pow(c_ms, -2);
return get_microSigma_m2(E_eV);
};
return integrate(integrand, 0., pi, INT_N, simpson())/pi;
}
}
inline vec3 e_kinetic_Interaction_Base::get_vOff_ms(const Particle &interPart, const double &minE_eV) {
vec3 v1_ms = interPart.get_v_ms();
vec3 v2_ms = Population->roll_v_ms(interPart.get_x_m());
vec3 v1Lab_ms = v1_ms - v2_ms;
double T_eV = calc_E_eV_from_v_ms(v1Lab_ms, m1_eV);
if (T_eV < minE_eV) {
T_eV = calc_E_eV_from_v_ms(v1_ms, m1_eV);
if (T_eV < minE_eV) {
std::stringstream ss;
ss<<"Interaction_Base::get_vOff_ms: T_eV < minE_eV.\nT_eV= "<< T_eV<<"\t minE_eV= "<<minE_eV<<"\n";
throw MyException (ss.str());
}
return vec3(0,0,0);
}
return v2_ms;
}
*/
class e_kinetic_Precomputed_Interaction_Base : public e_kinetic_Interaction_Base { // Precompute Interactions of ions with kinetic e Populations
Log_Scale E_scale; // E_scale for Interpolation calculation
double **precomputed_values;
public:
e_kinetic_Precomputed_Interaction_Base(Population_Base *Population, UniRNG *rngUni, double m_eV) : e_kinetic_Interaction_Base(Population, rngUni, m_eV), E_scale(INT_PRE_START, INT_PRE_END, INT_PRE_N) {
precomputed_values = new double *[E_scale.get_number_bins()];
for (int EI_bin=0; EI_bin<E_scale.get_number_bins(); EI_bin++) {
precomputed_values[EI_bin] = new double[num_EI_bins];
}
}
void calc_values();
double get_macro_sigma_m(const Particle &interPart);
private:
double lookup_macro_sigma_m(const double &E_eV, const vec3 &loc_m);
};
inline void e_kinetic_Precomputed_Interaction_Base::calc_values() {
for (int Ee_bin=0; Ee_bin<E_scale.get_number_bins(); Ee_bin++) {
for (int EI_bin = 0; EI_bin<num_EI_bins; EI_bin++) {
precomputed_values[Ee_bin][EI_bin] = calc_microSigma_m2(E_scale.get_bin_mid(Ee_bin), EI_bin);
}
}
}
inline double e_kinetic_Precomputed_Interaction_Base::get_macro_sigma_m(const Particle &interPart) {
vec3 loc_m = interPart.get_x_m();
double E_eV = interPart.get_E_eV();
if (E_scale.in_scale(E_eV)) {
return lookup_macro_sigma_m(E_eV, loc_m);
} else {
return calc_macro_sigma_m(E_eV, loc_m);
}
}
inline double e_kinetic_Precomputed_Interaction_Base::lookup_macro_sigma_m(const double &E_eV, const vec3 &loc_m) {
int Ee_bin = E_scale.calc_index(E_eV);
double *microSigmas = precomputed_values[Ee_bin];
Bins loc_bins = Population->get_loc_bin(loc_m);
double macro_sigma_m = 0;
for (int EI_bin = 0; EI_bin<num_EI_bins; EI_bin++) {
macro_sigma_m += microSigmas[EI_bin] * Population->get_density_m3(EI_bin, loc_bins);
}
return macro_sigma_m;
}
#endif /* e_kinetic_base_h */
-122
View File
@@ -1,122 +0,0 @@
//
// e_thermal_base.h
// mc_electron
//
// Created by Christian Reiling on 18.11.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef e_thermal_base_h
#define e_thermal_base_h
#include "interaction_base.h"
class e_thermal_Interaction_Base : public Interaction_Base { // Interactions of electrons with thermal Populations
protected:
double m1_eV; // energy of kinetic particle in CS measurement : e-
double E_limit; // limit for integration calculation
double v_therm; // typical spped for thermal population
public:
e_thermal_Interaction_Base(Population_Base *Population, UniRNG *rngUni, double m_eV) : Interaction_Base(Population, rngUni) {
if (Population->get_number_E_bins() > 1) {
throw MyException("Population is not thermal, when expected thermal.");
}
m1_eV = m_eV;
v_therm = Population->get_thermal_v_ms(); // Typical Speed of "Thermal Blur"
E_limit = calc_E_eV_from_v_ms(v_therm * 2000, m1_eV); // 2000 represents 1% variation in energy
}
double get_macro_sigma_m(const Particle &interPart);
protected:
double calc_macro_sigma_m(const double &E_eV, const vec3 &loc_m);
double calc_microSigma_m2(const double &E_eV);
vec3 get_vOff_ms(const Particle &interPart, const double &minE_eV); // For derived class -> Roll energy loss
private:
virtual double get_microSigma_m2(const double &E_eV) = 0;
};
inline double e_thermal_Interaction_Base::get_macro_sigma_m(const Particle &interPart) {
vec3 loc_m = interPart.get_x_m();
double v_ms = calc_vec3_abs(interPart.get_v_ms() - Population->get_drift_v_ms(loc_m)); // Shift to "Labframe without thermal blur"
double E_eV = calc_E_eV_from_v_ms(v_ms, m1_eV); // Lab energy without thermal integration
return calc_macro_sigma_m(E_eV, loc_m);
}
inline double e_thermal_Interaction_Base::calc_macro_sigma_m(const double &E_eV, const vec3 &loc_m) {
return calc_microSigma_m2(E_eV)*Population->get_density_m3(loc_m);
}
inline double e_thermal_Interaction_Base::calc_microSigma_m2(const double &E_eV) {
//return get_microSigma_m2(E_eV); //No Integration... Only e- energy
if (E_eV > E_limit) {
return get_microSigma_m2(E_eV);
} else {
double v1_ms = calc_v_ms_from_E_eV(E_eV, m1_eV);
// Integration over theta and v
auto integrand = [&](double v2_ms, double theta) {
double E_eV = m1_eV/2 * (pow(v1_ms,2) + pow(v2_ms,2) - 2*v1_ms*v2_ms*cos(theta)) * pow(c_ms, -2);
return Population->get_v_pdf(v2_ms)*get_microSigma_m2(E_eV)/pi;
};
return double_simpson_integrate(integrand, 0., 3*v_therm, 0., pi, INT_N, INT_N); // 3*v_therm equals 99% of the integral
}
}
inline vec3 e_thermal_Interaction_Base::get_vOff_ms(const Particle &interPart, const double &minE_eV) {
vec3 v1_ms = interPart.get_v_ms();
vec3 v2_ms = Population->roll_v_ms(interPart.get_x_m());
vec3 v1Lab_ms = v1_ms - v2_ms;
double T_eV = calc_E_eV_from_v_ms(v1Lab_ms, m1_eV);
if (T_eV < minE_eV) {
T_eV = calc_E_eV_from_v_ms(v1_ms, m1_eV);
if (T_eV < minE_eV) {
std::stringstream ss;
ss<<"Interaction_Base::get_vOff_ms: T_eV < minE_eV.\nT_eV= "<< T_eV<<"\t minE_eV= "<<minE_eV<<"\n";
throw MyException (ss.str());
}
return vec3(0,0,0);
}
return v2_ms;
}
class e_thermal_Precomputed_Interaction_Base : public e_thermal_Interaction_Base { // + Using precomputed values
Log_Scale E_scale; // E_scale for Interpolation calculation
double *precomputed_values;
public:
e_thermal_Precomputed_Interaction_Base(Population_Base *Population, UniRNG *rngUni, double m_eV) : e_thermal_Interaction_Base(Population, rngUni, m_eV), E_scale(INT_PRE_START, INT_PRE_END, INT_PRE_N) {
precomputed_values = new double [E_scale.get_number_bins()];
}
void calc_values(); // must be called by derived class, can't call in this constructor, due to virtual pure
double get_macro_sigma_m(const Particle &interPart);
private:
double lookup_macro_sigma_m(const double &E_eV, const vec3 &loc_m);
};
inline void e_thermal_Precomputed_Interaction_Base::calc_values() {
for (int i=0; i<E_scale.get_number_bins(); i++) {
precomputed_values[i] = calc_microSigma_m2(E_scale.get_bin_mid(i));
}
}
inline double e_thermal_Precomputed_Interaction_Base::get_macro_sigma_m(const Particle &interPart) {
vec3 loc_m = interPart.get_x_m();
double v_ms = calc_vec3_abs(interPart.get_v_ms() - Population->get_drift_v_ms(loc_m)); // Shift to "Labframe without thermal blur"
double E_eV = calc_E_eV_from_v_ms(v_ms, m1_eV); // Lab energy without thermal integration
if (E_scale.in_scale(E_eV)) {
return lookup_macro_sigma_m(E_eV, loc_m);
} else {
return calc_macro_sigma_m(E_eV, loc_m);
}
}
inline double e_thermal_Precomputed_Interaction_Base::lookup_macro_sigma_m(const double &E_eV, const vec3 &loc_m) {
int i = E_scale.calc_index(E_eV);
return precomputed_values[i] * Population->get_density_m3(loc_m);
}
#endif /* e_thermal_base_h */
-81
View File
@@ -1,81 +0,0 @@
//
// edge_container.h
// mc_electron
//
// Created by Christian Reiling on 10.05.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef edge_container_h
#define edge_container_h
#include "base_container.h"
template <class T_Map>
class Edge_Container : public Base_Container<T_Map> {
public:
Edge_Container() : Base_Container<T_Map>() {} ;
Edge_Container(std::string load_path) : Base_Container<T_Map>(load_path) {} ;
public:
//set_from_function();
public:
double interpolate(ddeque point) ;
private:
double rec_interpolate(const double &Map, std::deque<double> subPoint) ;
template <typename T> double rec_interpolate(const T &Map, std::deque<double> subPoint) ;
};
template <class T_Map>
double Edge_Container<T_Map>::interpolate(std::deque<double> point) {
Base_Container<T_Map>::checkEmpty();
if (Base_Container<T_Map>::Dim != point.size()) {
std::stringstream ss;
ss<<"EdgeBase_Container::interpolate: deque point dimension missmatch.\n";
throw MyException(ss.str());
}
return rec_interpolate(Base_Container<T_Map>::Map, point);
}
template <class T_Map>
double Edge_Container<T_Map>::rec_interpolate(const double &subMap, std::deque<double> subPoint) {
if (subPoint.size() != 0) {
std::stringstream ss;
ss<<"sub_interpolate: deque subPoint dimension missmatch.\n";
throw MyException(ss.str());
}
return subMap;
}
template <class T_Map>
template <typename T>
double Edge_Container<T_Map>::rec_interpolate(const T &subMap, std::deque<double> subPoint) {
double x = *subPoint.begin();
subPoint.pop_front();
typename T::const_iterator upitr = subMap.lower_bound(x);
if (upitr == subMap.cbegin()) {
return rec_interpolate(upitr->second, subPoint);
} else {
typename T::const_iterator lowitr = upitr;
--lowitr;
if (upitr == subMap.cend()) {
return rec_interpolate(lowitr->second, subPoint);
} else {
double low_x = lowitr->first;
double low_f = rec_interpolate(lowitr->second, subPoint);
double up_x = upitr->first;
double up_f = rec_interpolate(upitr->second, subPoint);
double res = low_f + (x-low_x)/(up_x-low_x) * (up_f-low_f);
return res;
}
}
}
#endif /* edge_container_h */
-43
View File
@@ -1,43 +0,0 @@
//
// electron_E_drift.h
// mc_electron
//
// Created by Christian Reiling on 05.10.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef electron_E_drift_h
#define electron_E_drift_h
#include "electron_drift.h"
#include "katrin_fields.hpp"
class E_Mover_E_Drift : public E_Mover_Drift {
public:
E_Mover_E_Drift(Particle_Logger_Base *Logger, Population_Base *Population) : E_Mover_Drift(Logger, Population) {};
protected:
void do_E_calculus(Particle *movePart, const vec3 &oldLoc_m, const double &macro_sigma_m);
};
inline void E_Mover_E_Drift::do_E_calculus(Particle *movePart, const vec3 &oldLoc_m, const double &macro_sigma_m) {
if (macro_sigma_m <= 0) {
return;
}
double t_s = 1/macro_sigma_m/calc_vec3_abs(movePart->get_v_ms());
vec3 newLoc_m = movePart->get_x_m();
vec3 E_Vm = 0.5 * (Katrin_Fields::getElField_Vm(oldLoc_m) + Katrin_Fields::getElField_Vm(newLoc_m));
double B_T = calc_vec3_abs( 0.5 * (Katrin_Fields::getMagField_T(oldLoc_m) + Katrin_Fields::getMagField_T(newLoc_m)) );
double E_rad_Vm = calc_r_m(E_Vm);
double v_rad_ms = E_rad_Vm/B_T;
vec3 loc_offset_m = E_Vm;
loc_offset_m[2] = 0;
loc_offset_m = loc_offset_m/calc_vec3_abs(loc_offset_m) * v_rad_ms * t_s;
movePart->set_x_m(newLoc_m + loc_offset_m);
vec3 v_boost_ms = vec3(0,0, movePart->get_Z()*e_C/movePart->get_m_eV()*E_Vm[2] * t_s/c_ms/c_ms);
movePart->set_v_ms(movePart->get_v_ms() + v_boost_ms);
}
#endif /* electron_E_drift_h */
-126
View File
@@ -1,126 +0,0 @@
//
// electron_boris.h
// mc_electron
//
// Created by Christian Reiling on 16.05.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef electron_boris_h
#define electron_boris_h
#include "mover_base.h"
class E_Mover_Boris : public Mover_Base {
double dt_s;
public:
E_Mover_Boris(double dt_s, Particle_Logger_Base *Logger, Population_Base *Population) : Mover_Base(electron, Logger, Population) {
this->dt_s = dt_s;
};
void move(Particle *movePart, const double &macro_sigma_m);
private:
double doBoris_singleStep_m(Particle *movePart, const vec3 &E_Vm , const vec3 &B_T);
void doBoris_speedChange(Particle *movePart, const vec3 &E_Vm, const vec3 &B_T);
bool doBoris_WallInteraction(Particle *movePart);
void doBoris_LogzDirChange(Particle *movePart, double *oldzDir, vec3 *oldLoc_m);
};
void E_Mover_Boris::move(Particle *movePart, const double &macro_sigma_m) {
// Prepare detection for change of z direction for logging
double oldzDir = movePart->get_v_ms()[2] < 0 ? -1 : 1;
vec3 oldLoc_m = movePart->get_x_m();
if (macro_sigma_m == 0) { // If infinite movement distance let electron leave at only exit... Prob extremly faulty, but also impossible.
movePart->set_x_m(z_RW_m);
Logger->log(*movePart,oldLoc_m);
return;
}
double distance_m = 1/macro_sigma_m;
double traveledDistance_m = 0;
vec3 loc_m, E_Vm ,B_T;
while (traveledDistance_m < distance_m) {
loc_m = movePart->get_x_m();
E_Vm = Katrin_Fields::getElField_Vm(loc_m);
B_T = Katrin_Fields::getMagField_T(loc_m);
traveledDistance_m += doBoris_singleStep_m(movePart, E_Vm, B_T);
if (doBoris_WallInteraction(movePart) == true) {
Logger->log(*movePart, oldLoc_m);
Population->increase_density(*movePart, oldLoc_m);
return;
}
doBoris_LogzDirChange(movePart, &oldzDir, &oldLoc_m); // Log if z direction changes, and adapt quantities
}
Logger->log(*movePart,oldLoc_m);
Population->increase_density(*movePart, oldLoc_m);
return;
}
double E_Mover_Boris::doBoris_singleStep_m(Particle *movePart, const vec3 &E_Vm , const vec3 &B_T) {
double distance_m;
vec3 x_m = movePart->get_x_m();
vec3 v_ms = movePart->get_v_ms();
x_m += dt_s/2 * v_ms;
distance_m = dt_s/2 * calc_vec3_abs(v_ms);
doBoris_speedChange(movePart, E_Vm , B_T);
x_m += dt_s/2 * v_ms;
distance_m += dt_s/2 * calc_vec3_abs(v_ms);
movePart->set_x_m(x_m);
return distance_m;
}
void E_Mover_Boris::doBoris_speedChange(Particle *movePart, const vec3 &E_Vm, const vec3 &B_T) {
double q_C = movePart->get_Z() * e_C;
double m_kg = movePart->get_m_eV() * e_C/c_ms/c_ms;
vec3 v_ms = movePart->get_v_ms();
vec3 t = q_C*dt_s/(2*m_kg) * B_T;
vec3 s = (2*t)/(1+dot(t,t));
vec3 vMinus_ms = v_ms + (q_C*E_Vm*dt_s)/(2*m_kg);
vec3 vPrime_ms = vMinus_ms + cross(vMinus_ms,t);
vec3 vPlus_ms = vMinus_ms + cross(vPrime_ms,s);
v_ms = vPlus_ms + q_C/m_kg*E_Vm*0.5*dt_s;
movePart->set_v_ms(v_ms);
}
bool E_Mover_Boris::doBoris_WallInteraction(Particle *movePart) {
vec3 loc_m = movePart->get_x_m();
double r_m = movePart->get_r_m();
if (loc_m[2]<=z_RW_m) { // Rear Wall Termination
vec3 newLoc_m = movePart->get_x_m();
newLoc_m[2] = 0;
movePart->set_x_m(newLoc_m);
return true;
}
if (r_m>=r_WGTS_m) { // WGTS Wall Termination
vec3 newLoc_m = movePart->get_x_m();
double z_m = newLoc_m[2];
newLoc_m[2] = 0;
newLoc_m = (r_WGTS_m * 1.01)/calc_vec3_abs(newLoc_m) * newLoc_m; //1.01 to move Particle slightly out of WGTS
newLoc_m[2] = z_m;
return true;
}
if (loc_m[2]>=z_WGTS_end_m) { // Spectrometer Reflection
movePart->set_v_ms( -1*(movePart->get_v_ms()) );
}
return false;
}
void E_Mover_Boris::doBoris_LogzDirChange(Particle *movePart, double *oldzDir, vec3 *oldLoc_m) {
double zDir = movePart->get_v_ms()[2] < 0 ? -1 : 1;
if (*oldzDir != zDir) {
Logger->log(*movePart, *oldLoc_m);
Population->increase_density(*movePart, *oldLoc_m);
*oldzDir = zDir;
*oldLoc_m = movePart->get_x_m();
}
return;
}
#endif /* electron_boris_h */
-48
View File
@@ -1,48 +0,0 @@
//
// electron_drift.h
// mc_electron
//
// Created by Christian Reiling on 16.05.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef electron_drift_h
#define electron_drift_h
#include "drift_base.h"
class E_Mover_Drift : public Drift_Base {
public:
E_Mover_Drift(Particle_Logger_Base *Logger, Population_Base *Population) : Drift_Base(electron, Logger, Population) {};
protected:
void doWallInteraction(Particle *movePart, vec3 *oldLoc_m, double *znew_m);
void do_E_calculus(Particle *movePart, const vec3 &oldLoc_m, const double &macro_sigma_m);
};
inline void E_Mover_Drift::doWallInteraction(Particle *movePart, vec3 *oldLoc_m, double *znew_m) {
if (*znew_m >= z_WGTS_end_m) { // Moveing into Spectrometer and reversing Speed.
vec3 reverseLoc_m = *oldLoc_m;
// Log Movement before Reflection
reverseLoc_m[2] = z_WGTS_end_m ;
movePart->set_x_m(reverseLoc_m);
Logger->log(*movePart, *oldLoc_m);
Population->increase_density(*movePart, *oldLoc_m);
// Final Movement
*oldLoc_m = reverseLoc_m;
*znew_m = z_WGTS_end_m - (*znew_m - z_WGTS_end_m);
movePart->set_v_ms( -1*(movePart->get_v_ms()) );
}
if (*znew_m <= z_RW_m) {
*znew_m = z_RW_m;
}
}
inline void E_Mover_Drift::do_E_calculus(Particle *movePart, const vec3 &oldLoc_m, const double &macro_sigma_m) {
return;
}
#endif /* electron_drift_h */
-48
View File
@@ -1,48 +0,0 @@
//
// E_Terminator.h
// mc_electron
//
// Created by Christian Reiling on 19.05.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef E_Terminator_h
#define E_Terminator_h
#include "terminator_base.h"
class Negative_Terminator : public Terminator_Base {
double dipole_cutoffE_eV;
public:
Negative_Terminator(species this_species, long int max_interactions, double cut_off_energy_eV, double dipole_cutoffE_eV) : Terminator_Base(this_species, max_interactions, cut_off_energy_eV) {
this->dipole_cutoffE_eV = dipole_cutoffE_eV;
};
private:
bool check_walls(const Particle &movePart);
};
inline bool Negative_Terminator::check_walls(const Particle &movePart) {
vec3 loc_m = movePart.get_x_m();
double E_eV = movePart.get_E_eV();
double z_m = calc_z_m(loc_m);
double r_m = calc_r_m(loc_m);
if (z_m <= z_RW_m) {
stats.n_rw += 1;
return true;
}
if (z_m >= z_WGTS_end_m && E_eV <= dipole_cutoffE_eV) {
stats.n_dipole += 1;
return true;
}
if (r_m >= r_WGTS_m) {
stats.n_radial += 1;
return true;
}
return false;
}
#endif /* E_Terminator_h */
@@ -1,95 +0,0 @@
//
// energeticPop_container.cpp
// mc_electron
//
// Created by Christian Reiling on 15.05.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#include "energeticPop_container.hpp"
using namespace std;
void EnergeticPop_Container::set_Map() {
vector<vec3> bins = get_bins();
double Ex_min = floor(log10(1e-3));
double Ex_max = ceil(log10(E_max_eV));
double step = (Ex_max-Ex_min)/Epoints;
double x, E_eV;
for (vector<vec3>::iterator itr = bins.begin(); itr!=bins.end(); itr++) {
for (int i = 1; i<=Epoints; i++) {
x = Ex_min + step*i;
E_eV = pow(10,x);
addPoint(deque<double>{(*itr)[0], (*itr)[1], (*itr)[2], E_eV, 0});
}
}
}
double EnergeticPop_Container::getDensity_m3(const vec3 &locXYZ_m, double physTime_s) {
check_In_Container(locXYZ_m, xyz);
vec3 zrphiCords = transformTo_zrphiCords(locXYZ_m, xyz);
double V_m3 = get_V_m3(zrphiCords[1]);
double cumTime_s = get_cumulated_time_s(zrphiCords);
return cumTime_s/physTime_s/V_m3;
}
double EnergeticPop_Container::get_cumulated_time_s(vec3 zrphiCords) {
dim1Map EMap = *getSubMap<dim1Map>(ddeque{zrphiCords[0], zrphiCords[1], zrphiCords[2]}, Lower_bound);
double cumTime_s = 0;
for (dim1Map::iterator itr = EMap.begin(); itr != EMap.end(); itr++) {
cumTime_s +=itr->second;
}
return cumTime_s;
}
void EnergeticPop_Container::upDensity (const Particle &upParticle, const vec3 &oldLocXYZ_m) {
check_In_Container(oldLocXYZ_m, xyz);
vec3 zrphiOld_m = transformTo_zrphiCords(oldLocXYZ_m, xyz);
vec3 zrphiNew_m = upParticle.get_x_m();
check_In_Container(zrphiNew_m, zrphi);
// Check r and phi not changing, only valid for drift approximation....
double z_min_m = zrphiOld_m[0];
double z_max_m = zrphiNew_m[0];
if (z_max_m<z_min_m) {
swap (z_min_m, z_max_m);
}
double r_m = zrphiOld_m[1];
double phi = zrphiOld_m[2];
double l_m = get_l_m();
double vAbs_ms = upParticle.get_vAbs_ms();
double E_eV = upParticle.get_E_eV();
dim4Map::iterator zitr_min = Map.lower_bound(z_min_m);
dim4Map::iterator zitr_max = Map.lower_bound(z_max_m);
for (dim4Map::iterator itr = zitr_min;itr != zitr_max;itr++) {
itr->second.lower_bound(r_m)->second.lower_bound(phi)->second.lower_bound(E_eV)->second += l_m/vAbs_ms;
}
}
double EnergeticPop_Container::roll_Energy_eV(const vec3 &locXYZ_m, UniRNG *rngUni) {
check_In_Container(locXYZ_m, xyz);
vec3 zrphiCords = transformTo_zrphiCords(locXYZ_m, xyz);
dim1Map EMap = *getSubMap<dim1Map>(ddeque{locXYZ_m[0], locXYZ_m[1], locXYZ_m[2]}, Lower_bound);
double targetTime_s = rngUni->random() * get_cumulated_time_s(zrphiCords);
double summedTime_s = 0;
dim1Map::iterator itr = EMap.begin();
do {
summedTime_s += itr->second;
itr++;
} while(summedTime_s < targetTime_s);
itr--;
if (itr == EMap.begin() ) {
return itr->first;
} else {
double E_eV = ( (itr->first) + ((--itr)->first) )/2;
return E_eV;
}
}
@@ -1,43 +0,0 @@
//
// energeticPop_container.hpp
// mc_electron
//
// Created by Christian Reiling on 15.05.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef energeticPop_container_hpp
#define energeticPop_container_hpp
#include "zylindric_cords.h"
#include "particle.hpp"
#include "random_operations.h"
class EnergeticPop_Container : private Base_Container<dim4Map>, private Zylindric_Cords {
double E_max_eV;
double Epoints;
public:
EnergeticPop_Container(vec3 zrphi_numBins, double E_max_eV, double Epoints) : Zylindric_Cords(zrphi_numBins) {
this->E_max_eV = E_max_eV;
this->Epoints = Epoints;
set_Map();
}
private:
void set_Map();
public:
double getDensity_m3(const vec3 &locXYZ_m, double physTime_s) ;
private:
double get_cumulated_time_s(vec3 zrphiCords);
public:
void upDensity (const Particle &upParticle, const vec3 &oldLocXYZ_m) ;
public:
double roll_Energy_eV(const vec3 &locXYZ_m, UniRNG *rngUni) ;
};
#endif /* energeticPop_container_hpp */
-24
View File
@@ -1,24 +0,0 @@
//
// error_types.h
// mc_electron
//
// Created by Christian Reiling on 30.04.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef error_types_h
#define error_types_h
#include <iostream>
struct MyException : public std::exception
{
std::string s;
MyException(std::string errorMessage) : s(errorMessage) {}
~MyException() throw () {}
const char* what() const throw() { return s.c_str(); }
};
#endif /* error_types_h */

Some files were not shown because too many files have changed in this diff Show More