Makefile
This commit is contained in:
@@ -13,23 +13,27 @@
|
||||
#include "janev_eT2_vibexc0102.h"
|
||||
|
||||
class eT2_VibExc01 : public Excitation_Base {
|
||||
Janev_eT2_VibExc calculator;
|
||||
public:
|
||||
eT2_VibExc01(Population_Base *T2Population, UniRNG *rngUni, DCS_Base *dcs_gen) : Excitation_Base(T2Population, rngUni, dcs_gen, Janev_eT2_VibExc0102::get_deltaE_eV(1)) {};
|
||||
eT2_VibExc01(Population_Base *T2Population, UniRNG *rngUni, DCS_Base *dcs_gen) : calculator(1),
|
||||
Excitation_Base(T2Population, rngUni, 0.516, dcs_gen) {};
|
||||
|
||||
private:
|
||||
double get_microSigma_m2(const double &E_eV) {
|
||||
return Janev_eT2_VibExc0102::get_TCS(E_eV, 1);
|
||||
return calculator.get_TCS(E_eV);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
class eT2_VibExc02 : public Excitation_Base {
|
||||
Janev_eT2_VibExc calculator;
|
||||
public:
|
||||
eT2_VibExc02(Population_Base *T2Population, UniRNG *rngUni) : Excitation_Base(T2Population, rngUni, Janev_eT2_VibExc0102::get_deltaE_eV(2)) {};
|
||||
eT2_VibExc02(Population_Base *T2Population, UniRNG *rngUni, DCS_Base *dcs_gen) : calculator(1),
|
||||
Excitation_Base(T2Population, rngUni, 1.003, dcs_gen) {};
|
||||
|
||||
private:
|
||||
double get_microSigma_m2(const double &E_eV) {
|
||||
return Janev_eT2_VibExc0102::get_TCS(E_eV, 2);
|
||||
return calculator.get_TCS(E_eV);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include "eT2_elastic.h"
|
||||
#include "eT2_ionization.h"
|
||||
#include "eT2I_recombination.h"
|
||||
//#include "eT2_vibexc0102.h"
|
||||
#include "eT2_vibexc0102.h"
|
||||
#include "exc_base.h"
|
||||
#include "eT2_elexc_analytic.h"
|
||||
#include "eT3I_recombination.h"
|
||||
@@ -46,13 +46,18 @@ Interaction_Base* Interaction_Builder::build_electron(Population_Manager *Popula
|
||||
Population_Base *T2Population = Populations->find(tritium2);
|
||||
Population_Base *T2IPopulation = Populations->find(tritium2I);
|
||||
Population_Base *T3IPopulation = Populations->find(tritium3I);
|
||||
DCS_Base *dcs_gen;
|
||||
|
||||
DCS_Base *elastic_dcs;
|
||||
DCS_Base *exc_dcs;
|
||||
if (e_direction == 0) {
|
||||
dcs_gen = new Elastic_DCS(rngUni);
|
||||
elastic_dcs = new Elastic_DCS(rngUni);
|
||||
exc_dcs = new FourPi_DCS(rngUni);
|
||||
} else if (e_direction == 1) {
|
||||
dcs_gen = new FourPi_DCS(rngUni);
|
||||
elastic_dcs = new FourPi_DCS(rngUni);
|
||||
exc_dcs = new FourPi_DCS(rngUni);
|
||||
} else if (e_direction == 2) {
|
||||
dcs_gen = new ZeroPi_DCS(rngUni);
|
||||
elastic_dcs = new ZeroPi_DCS(rngUni);
|
||||
exc_dcs = new ZeroPi_DCS(rngUni);
|
||||
} else {
|
||||
std::stringstream ss;
|
||||
ss<<"Interaction_Builder::build_electron: e_direction value invalid.\n";
|
||||
@@ -60,7 +65,7 @@ Interaction_Base* Interaction_Builder::build_electron(Population_Manager *Popula
|
||||
}
|
||||
|
||||
if (eT2elastic == 1) {
|
||||
eInteraction->add(new eT2_Elastic(T2Population, rngUni, dcs_gen));
|
||||
eInteraction->add(new eT2_Elastic(T2Population, rngUni, elastic_dcs));
|
||||
} else if(eT2elastic != 0) {
|
||||
std::stringstream ss;
|
||||
ss<<"Interaction_Builder::build_electron: eT2elastic value invalid.\n";
|
||||
@@ -89,34 +94,39 @@ Interaction_Base* Interaction_Builder::build_electron(Population_Manager *Popula
|
||||
}
|
||||
|
||||
if (eT2excitation == 1 || eT2excitation == 2) {
|
||||
eInteraction->add(new Exp_Excitation_Base(T2Population, rngUni, 4.41e-4, dcs_gen, "rot_exc_j02.dat"));
|
||||
eInteraction->add(new Exp_Excitation_Base(T2Population, rngUni, 0.516, dcs_gen, "vib_exc_v01.dat"));
|
||||
eInteraction->add(new Exp_Excitation_Base(T2Population, rngUni, 4.41e-4, exc_dcs, "rot_exc_j02.dat"));
|
||||
|
||||
if (eT2excitation == 1) {
|
||||
eInteraction->add(new eT2_ElExc_Nu_Analytic(T2Population, rngUni, Janev_eT2_ElExc_Nu(B1Sigmau), dcs_gen));
|
||||
eInteraction->add(new eT2_ElExc_Nu_Analytic(T2Population, rngUni, Janev_eT2_ElExc_Nu(Bp1Sigu), dcs_gen));
|
||||
eInteraction->add(new eT2_ElExc_Nu_Analytic(T2Population, rngUni, Janev_eT2_ElExc_Nu(Bpp1Sigu), dcs_gen));
|
||||
eInteraction->add(new eT2_ElExc_Nu_Analytic(T2Population, rngUni, Janev_eT2_ElExc_Nu(C1Piu), dcs_gen));
|
||||
eInteraction->add(new eT2_ElExc_Nu_Analytic(T2Population, rngUni, Janev_eT2_ElExc_Nu(D1Piu), dcs_gen));
|
||||
eInteraction->add(new eT2_ElExc_Nu_Analytic(T2Population, rngUni, Janev_eT2_ElExc_Nu(Dp1Piu), dcs_gen));
|
||||
eInteraction->add(new eT2_VibExc01(T2Population, rngUni, exc_dcs));
|
||||
eInteraction->add(new eT2_VibExc02(T2Population, rngUni, exc_dcs));
|
||||
|
||||
eInteraction->add(new eT2_ElExc_Ng_Analytic(T2Population, rngUni, Janev_eT2_ElExc_Ng(EF1Sigpg), dcs_gen));
|
||||
eInteraction->add(new eT2_ElExc_Ng_Analytic(T2Population, rngUni, Janev_eT2_ElExc_Ng(HHb1Sigpg), dcs_gen));
|
||||
eInteraction->add(new eT2_ElExc_Ng_Analytic(T2Population, rngUni, Janev_eT2_ElExc_Ng(GK1Sigpg), dcs_gen));
|
||||
eInteraction->add(new eT2_ElExc_Ng_Analytic(T2Population, rngUni, Janev_eT2_ElExc_Ng(I1Pig), dcs_gen));
|
||||
eInteraction->add(new eT2_ElExc_Nu_Analytic(T2Population, rngUni, Janev_eT2_ElExc_Nu(B1Sigmau), exc_dcs));
|
||||
eInteraction->add(new eT2_ElExc_Nu_Analytic(T2Population, rngUni, Janev_eT2_ElExc_Nu(Bp1Sigu), exc_dcs));
|
||||
eInteraction->add(new eT2_ElExc_Nu_Analytic(T2Population, rngUni, Janev_eT2_ElExc_Nu(Bpp1Sigu), exc_dcs));
|
||||
eInteraction->add(new eT2_ElExc_Nu_Analytic(T2Population, rngUni, Janev_eT2_ElExc_Nu(C1Piu), exc_dcs));
|
||||
eInteraction->add(new eT2_ElExc_Nu_Analytic(T2Population, rngUni, Janev_eT2_ElExc_Nu(D1Piu), exc_dcs));
|
||||
eInteraction->add(new eT2_ElExc_Nu_Analytic(T2Population, rngUni, Janev_eT2_ElExc_Nu(Dp1Piu), exc_dcs));
|
||||
|
||||
eInteraction->add(new eT2_ElExc_n_Analytic(T2Population, rngUni, Janev_eT2_ElExc_n(a3Sigpg), dcs_gen));
|
||||
eInteraction->add(new eT2_ElExc_n_Analytic(T2Population, rngUni, Janev_eT2_ElExc_n(b3Sigpu), dcs_gen));
|
||||
eInteraction->add(new eT2_ElExc_n_Analytic(T2Population, rngUni, Janev_eT2_ElExc_n(c3Piu), dcs_gen));
|
||||
eInteraction->add(new eT2_ElExc_n_Analytic(T2Population, rngUni, Janev_eT2_ElExc_n(e3Sigpu), dcs_gen));
|
||||
eInteraction->add(new eT2_ElExc_n_Analytic(T2Population, rngUni, Janev_eT2_ElExc_n(d3Piu), dcs_gen));
|
||||
eInteraction->add(new eT2_ElExc_Ng_Analytic(T2Population, rngUni, Janev_eT2_ElExc_Ng(EF1Sigpg), exc_dcs));
|
||||
eInteraction->add(new eT2_ElExc_Ng_Analytic(T2Population, rngUni, Janev_eT2_ElExc_Ng(HHb1Sigpg), exc_dcs));
|
||||
eInteraction->add(new eT2_ElExc_Ng_Analytic(T2Population, rngUni, Janev_eT2_ElExc_Ng(GK1Sigpg), exc_dcs));
|
||||
eInteraction->add(new eT2_ElExc_Ng_Analytic(T2Population, rngUni, Janev_eT2_ElExc_Ng(I1Pig), exc_dcs));
|
||||
|
||||
eInteraction->add(new eT2_ElExc_n_Analytic(T2Population, rngUni, Janev_eT2_ElExc_n(a3Sigpg), exc_dcs));
|
||||
eInteraction->add(new eT2_ElExc_n_Analytic(T2Population, rngUni, Janev_eT2_ElExc_n(b3Sigpu), exc_dcs));
|
||||
eInteraction->add(new eT2_ElExc_n_Analytic(T2Population, rngUni, Janev_eT2_ElExc_n(c3Piu), exc_dcs));
|
||||
eInteraction->add(new eT2_ElExc_n_Analytic(T2Population, rngUni, Janev_eT2_ElExc_n(e3Sigpu), exc_dcs));
|
||||
eInteraction->add(new eT2_ElExc_n_Analytic(T2Population, rngUni, Janev_eT2_ElExc_n(d3Piu), exc_dcs));
|
||||
} else if (eT2excitation == 2) {
|
||||
eInteraction->add(new Exp_Excitation_Base(T2Population, rngUni, 8.48, dcs_gen, "el_exc_b3sigpu.dat"));
|
||||
eInteraction->add(new Exp_Excitation_Base(T2Population, rngUni, 11.18, dcs_gen, "el_exc_B1sigpu.dat"));
|
||||
eInteraction->add(new Exp_Excitation_Base(T2Population, rngUni, 11.76, dcs_gen, "el_exc_c3piu.dat"));
|
||||
eInteraction->add(new Exp_Excitation_Base(T2Population, rngUni, 11.79, dcs_gen, "el_exc_a3sigpg.dat"));
|
||||
eInteraction->add(new Exp_Excitation_Base(T2Population, rngUni, 12.29, dcs_gen, "el_exc_C1piu.dat"));
|
||||
eInteraction->add(new Exp_Excitation_Base(T2Population, rngUni, 12.3, dcs_gen, "el_exc_EF1sigpg.dat"));
|
||||
eInteraction->add(new Exp_Excitation_Base(T2Population, rngUni, 13.23, dcs_gen, "el_exc_e3sigpu.dat"));
|
||||
eInteraction->add(new Exp_Excitation_Base(T2Population, rngUni, 0.516, exc_dcs, "vib_exc_v01.dat"));
|
||||
|
||||
eInteraction->add(new Exp_Excitation_Base(T2Population, rngUni, 8.48, exc_dcs, "el_exc_b3sigpu.dat"));
|
||||
eInteraction->add(new Exp_Excitation_Base(T2Population, rngUni, 11.18, exc_dcs, "el_exc_B1sigpu.dat"));
|
||||
eInteraction->add(new Exp_Excitation_Base(T2Population, rngUni, 11.76, exc_dcs, "el_exc_c3piu.dat"));
|
||||
eInteraction->add(new Exp_Excitation_Base(T2Population, rngUni, 11.79, exc_dcs, "el_exc_a3sigpg.dat"));
|
||||
eInteraction->add(new Exp_Excitation_Base(T2Population, rngUni, 12.29, exc_dcs, "el_exc_C1piu.dat"));
|
||||
eInteraction->add(new Exp_Excitation_Base(T2Population, rngUni, 12.3, exc_dcs, "el_exc_EF1sigpg.dat"));
|
||||
eInteraction->add(new Exp_Excitation_Base(T2Population, rngUni, 13.23, exc_dcs, "el_exc_e3sigpu.dat"));
|
||||
}
|
||||
} else if(eT2excitation != 0) {
|
||||
std::stringstream ss;
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
#include "error_types.h"
|
||||
|
||||
// See Janev p34. and table 15
|
||||
// See Janev p34. and onwards formulars: (80) (81) (95)
|
||||
|
||||
enum states_Nu {B1Sigmau, Bp1Sigu, Bpp1Sigu, C1Piu, D1Piu, Dp1Piu};
|
||||
|
||||
@@ -88,7 +88,7 @@ private:
|
||||
A3 = 0.13110;
|
||||
A4 = 0.30464;
|
||||
break;
|
||||
default : //Optional
|
||||
default :
|
||||
std::stringstream ss;
|
||||
ss<<"Janev_eT2_ElExc_Nu:set_constants: finale_state unknown. \n";
|
||||
throw MyException(ss.str());
|
||||
@@ -140,7 +140,7 @@ private:
|
||||
alpha = 2.80;
|
||||
A1 = 5.409e-2;
|
||||
break;
|
||||
default : //Optional
|
||||
default :
|
||||
std::stringstream ss;
|
||||
ss<<"Janev_eT2_ElExc_Ng:set_constants: finale_state unknown. \n";
|
||||
throw MyException(ss.str());
|
||||
|
||||
@@ -11,47 +11,38 @@
|
||||
|
||||
#include "error_types.h"
|
||||
|
||||
// See Janev p28 (74)
|
||||
|
||||
class Janev_eT2_VibExc0102 {
|
||||
class Janev_eT2_VibExc {
|
||||
double deltaE_eV, xi;
|
||||
public:
|
||||
Janev_eT2_VibExc0102() {}
|
||||
|
||||
static double get_TCS(const double &E_eV, const int &finale_state) {
|
||||
if (E_eV<get_deltaE_eV(finale_state)) {
|
||||
Janev_eT2_VibExc(int finale_state) {
|
||||
if (finale_state == 1) {
|
||||
deltaE_eV = 0.516;
|
||||
xi = 1;
|
||||
} else if (finale_state == 2) {
|
||||
deltaE_eV = 1.003;
|
||||
xi = 0.628;
|
||||
} else {
|
||||
std::stringstream ss;
|
||||
ss<<"Janev_eT2_VibExc: finale_state = "<<finale_state<<" not defined. \n";
|
||||
throw MyException (ss.str());
|
||||
}
|
||||
}
|
||||
|
||||
double get_TCS(const double &E_eV) {
|
||||
if (E_eV<deltaE_eV) {
|
||||
return 0;
|
||||
}
|
||||
double xi = get_xi(finale_state);
|
||||
double deltaE_eV = get_deltaE_eV(finale_state);
|
||||
double x = E_eV/deltaE_eV;
|
||||
double fac1 = 5.78*xi*pow(deltaE_eV,-4)*pow(x,-2);
|
||||
double fac2 = pow(1-1/x, 6.11*pow(deltaE_eV,-0.5));
|
||||
return fac1*fac2*1e-20;
|
||||
}
|
||||
|
||||
static double get_deltaE_eV(const int &finale_state) {
|
||||
if (finale_state == 1) {
|
||||
return 0.516;
|
||||
} else if (finale_state == 2) {
|
||||
return 1.003;
|
||||
}
|
||||
std::stringstream ss;
|
||||
ss<<"Janev_eT2I_Recombination:get_deltaE_eV: finale_state != 1,2 \n";
|
||||
throw MyException(ss.str());
|
||||
double get_deltaE_eV() {
|
||||
return deltaE_eV;
|
||||
}
|
||||
|
||||
private:
|
||||
static double get_xi(const int &finale_state) {
|
||||
if (finale_state == 1) {
|
||||
return 1;
|
||||
} else if (finale_state == 2) {
|
||||
return 0.628;
|
||||
}
|
||||
std::stringstream ss;
|
||||
ss<<"Janev_eT2I_Recombination:get_xi: finale_state != 1,2 \n";
|
||||
throw MyException(ss.str());
|
||||
}
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -12,7 +12,9 @@ OBJS := particle_looper.o \
|
||||
terminator_builder.o
|
||||
|
||||
|
||||
CXXFLAGS = $(X_OFLAGS) -I.. $(X_INC)
|
||||
CXXFLAGS = $(X_OFLAGS) -I.. $(X_INC) -std=c++11
|
||||
|
||||
MPXFLAGS = $(X_OFLAGS) -I.. $(X_INC) -std=c++11
|
||||
|
||||
LDFLAGS = $(X_LIB)
|
||||
|
||||
@@ -26,10 +28,10 @@ mcelectron: main.o simulation.o $(OBJS)
|
||||
$(MPICXX) -o $@ $^ $(LDFLAGS) $(LOADLIBES)
|
||||
|
||||
mcelectron_serial: main_serial.o simulation_serial.o $(OBJS)
|
||||
$(CXX) -o $@ $^ $(LDFLAGS) $(LOADLIBES) -std=c++11
|
||||
$(CXX) -o $@ $^ $(LDFLAGS) $(LOADLIBES)
|
||||
|
||||
%.o : %.cpp
|
||||
$(MPICXX) -c $< $(CXXFLAGS) -o $@ -std=c++11
|
||||
$(MPICXX) -c $< $(MPXFLAGS) -o $@
|
||||
|
||||
clean:
|
||||
rm *.o mcelectron mcelectron_serial
|
||||
|
||||
Reference in New Issue
Block a user