13 Commits
420 changed files with 4498703 additions and 53 deletions
BIN
View File
Binary file not shown.
+1
View File
@@ -0,0 +1 @@
include $(HOMEBASE)/src/makeinclude/first.mak
+25
View File
@@ -0,0 +1,25 @@
include $(HOMEBASE)/src/makeinclude/include.mak
OFLAGS = $(X_OFLAGS)
CXXFLAGS = $(OFLAGS) $(X_INC)
ZIP = tar -zxvf
NAME = gsl-2.6
all:
$(ZIP) ../$(NAME).tar.gz
cd $(NAME)
$(NAME)/configure --prefix=$(HOMEBASE)/src/gsl/$(X_OSTYPE)/gsl/ --includedir=$(HOMEBASE)/include/ --libdir=$(HOMEBASE)/lib/$(X_OSTYPE)
make
install:
make install
rm -rf $(HOMEBASE)/lib/$(X_OSTYPE)/pkconfig
clean:
-rm -rf $(HOMEBASE)/include/gsl
-rm -rf $(HOMEBASE)/lib/$(X_OSTYPE)/libgsl*
-rm -rf $(HOMEBASE)/src/gsl/$(X_OSTYPE)
$(X_CLEAN)
+2
View File
@@ -0,0 +1,2 @@
#include "Bessel.h"
+31
View File
@@ -0,0 +1,31 @@
#ifndef BESSEL_H
#define BESSEL_H
//#include "kinematics.h"
#include "ElectricField.h"
#include "lin_scale.h"
#include "constants.h"
#include "RearwallPotential.h"
class Bessel : public ElectricField, public RearwallPotential{
private:
vec3 efeld_value;
vec3 efeld_loc;
public:
Bessel(vec3 efeld_value);
~Bessel(){};
//int getValue();
vec3 getLoc(const vec3 &loc_m);
vec3 getLoc(const double &z, const double &r, const double &phi);
vec3 getValue(const vec3 &loc_m);
vec3 getValue(const double &z, const double &r, const double &phi);
vec3 getValue();
};
#endif /* BESSEL_H */
+50
View File
@@ -0,0 +1,50 @@
#include "ElectricField.h"
#include <iostream> //cout
#include <Homogene.h>
ElectricField::ElectricField(int i){
if (i==1)
{
double radius = load_parameter("RADIUS");
double height = load_parameter("HEIGHT");
double rearwall_potential = load_parameter("POTENTIAL");
vec3 center(0.0, 0.0, 0.0);
double minimal_z_for_bessel_calculation = 0.001;
int max_bessel_zero_order_ = 1000;
double precision = 1e-15;
bool potential_in_si = true;
f = new RearwallPotential(radius, height, rearwall_potential, center, minimal_z_for_bessel_calculation, max_bessel_zero_order_, precision, potential_in_si);
}
else if (i==2)
{
vec3 efeld_value = vec3(load_parameter("E_r"), load_parameter("E_phi"), load_parameter("E_z"));
f = new Homogene(efeld_value);
}
else
{
ElectricField();
}
}
vec3 ElectricField::getValue(){
return vec3(0,0,0);
}
vec3 ElectricField::getValue(const vec3 &loc_m){
return vec3(0,0,0);
}
vec3 ElectricField::getValue(double z, double r, double phi){
return f->getValue(z, r, phi);
//return vec3(0,0,0);
}
void ElectricField::print() const {
f->print();
}
+19
View File
@@ -0,0 +1,19 @@
#ifndef ELECTRICFIELD_H
#define ELECTRICFIELD_H
#include "kinematics.h"
#include "Function3d.h"
#include "RearwallPotential.h"
class ElectricField{
public:
ElectricField(int i);
ElectricField(){};
virtual vec3 getValue();
virtual vec3 getValue(const vec3 &loc_m);
virtual vec3 getValue(double z, double r, double phi);
virtual void print() const;
private:
Function3d *f;
};
#endif /* ELECTRICFIELD_H */
+26
View File
@@ -0,0 +1,26 @@
#include "Function3d.h"
blitz::TinyVector<double, 3> Function3d::getValue(const blitz::TinyVector<double, 3>& x) const {
return getValue(x(0), x(1), x(2));
}
/*
double Function3d::getValue(const blitz::TinyVector<double, 3>& x, int cart_axis) const {
return getValue(x(0), x(1), x(2), cart_axis);
}
*/
/*
std::ostream & operator << (std::ostream &out, const Function3d& function) {
function.print(out);
return out;
}
void Function3d::print(std::ostream &out) const{
out << "Function3d Base:\n";
}
*/
void Function3d::print() const{
std::cout << "Function3d Base:\n";
}
+25
View File
@@ -0,0 +1,25 @@
#ifndef FUNCTION3D_H
#define FUNCTION3D_H
#include "blitz/array.h"
#include <iostream> // ostream
// Abstract base class for a 3d function
// - can provide an element of the return vector (direction: x, y, z)
// - can prodvie whole vector
class Function3d {
public:
virtual ~Function3d() {};
//virtual double getValue(double x, double y, double z, int cart_axis) const = 0;
virtual blitz::TinyVector<double ,3> getValue(double z, double r, double phi) const = 0;
//double getValue(const blitz::TinyVector<double, 3>& x, int cart_axis) const;
blitz::TinyVector<double, 3> getValue(const blitz::TinyVector<double, 3>& x) const;
//friend std::ostream & operator << (std::ostream &out, const Function3d& function);
//virtual void print(std::ostream &out) const;
virtual void print() const;
};
#endif /* FUNCTION3D_H */
+37
View File
@@ -0,0 +1,37 @@
#include "Homogene.h"
Homogene::Homogene(vec3 efeld_value){
efeld_value_ = efeld_value;
E_r_ = efeld_value[0];
E_phi_ = efeld_value[1];
E_z_ = efeld_value[2];
std::cout << "wurde aufgegrufen" << std::endl;
std::cout << efeld_value_ << std::endl;
std::cout << E_r_ << std::endl;
std::cout << E_phi_ << std::endl;
std::cout << E_z_ << std::endl;
}
Homogene::Homogene(double E_r, double E_phi, double E_z){
E_r_ = E_r;
E_phi_ = E_phi;
E_z_ = E_z;
efeld_value_ = vec3(E_r, E_phi, E_z);
}
vec3 Homogene::getValue(const vec3 &loc_m){
return efeld_value_;
}
vec3 Homogene::getValue(double z, double r, double phi) const{
return efeld_value_;
}
void Homogene::print()const {
std::cout << "efeld_value: " << efeld_value_ << std::endl;
}
+26
View File
@@ -0,0 +1,26 @@
#ifndef HOMOGENE_H
#define HOMOGENE_H
#include "kinematics.h"
#include "lin_scale.h"
#include "constants.h"
#include "Function3d.h"
class Homogene : public Function3d{
private:
vec3 efeld_value_;
double E_r_;
double E_phi_;
double E_z_;
public:
Homogene(){};
Homogene(double E_r, double E_phi, double E_z);
Homogene(vec3 efeld_value);
~Homogene(){};
vec3 getValue(const vec3 &loc_m);
vec3 getValue(double z, double r, double phi) const;
void print() const;
};
#endif /* HOMOGENE_H */
+292
View File
@@ -0,0 +1,292 @@
#include "RearwallPotential.h"
#include "physconst.H"
#include "constants.h"
#include "enumerations.h"
#include <gsl/gsl_sf_trig.h> // sin/cos/sinh/cosh
#include <gsl/gsl_sf_bessel.h> // bessel function, and zeros
//#include "tools/my_errors.h"
#include "error_types.h"
#include <math.h> // isnan
RearwallPotential::RearwallPotential(double radius, double height,
double rearwall_potential,
const blitz::TinyVector<double, 3>& center,
double minimal_z_for_bessel_calculation,
int max_bessel_zero_order_,
double precision, bool potential_in_si
)
: radius_(radius),
height_(height),
max_bessel_zero_order_(max_bessel_zero_order_),
minimal_z_for_bessel_calculation_(minimal_z_for_bessel_calculation),
maximal_z_for_bessel_calculation_(height),
center_(center) {
if (potential_in_si) {
//rearwall_potential_ = rearwall_potential * 1E8 / PhysicalConstantsSI::c;
rearwall_potential_ = rearwall_potential * 1E8 / c_ms;
} else {
rearwall_potential_ = rearwall_potential;
}
maximal_z_for_bessel_calculation_ = getMaximalZ(radius, precision);
if (maximal_z_for_bessel_calculation_ < height_) {
height_ = maximal_z_for_bessel_calculation_;
}
}
RearwallPotential::~RearwallPotential() {};
void RearwallPotential::print(std::ostream &out) const {
out << "Function3d: RearwallPotential\n";
out << "radius: " << radius_ << "\n";
out << "height: " << height_ << "\n";
out << "minimal z for bessel calculation: " << minimal_z_for_bessel_calculation_ << "\n";
out << "maximal z for bessel calculation: " << maximal_z_for_bessel_calculation_ << "\n";
out << "center: " << center_ << "\n";
out << "potential (cgs): " << rearwall_potential_ << "\n";
}
void RearwallPotential::print() const{
std::cout << "Function3d: RearwallPotential\n";
std::cout << "radius: " << radius_ << "\n";
std::cout << "height: " << height_ << "\n";
std::cout << "minimal z for bessel calculation: " << minimal_z_for_bessel_calculation_ << "\n";
std::cout << "maximal z for bessel calculation: " << maximal_z_for_bessel_calculation_ << "\n";
std::cout << "center: " << center_ << "\n";
std::cout << "potential (cgs): " << rearwall_potential_ << "\n";
}
double RearwallPotential::getValue(double x, double y, double z,
int cart_axis) const {
// convert to local coordinates
x += -center_(0);
y += -center_(1);
z += -center_(2);
// get cylinder coordinates
gsl_sf_result r = {0.0, 0.0};
gsl_sf_result phi = {0.0, 0.0};
if(x == 0.0 && y == 0.0){ // guard for gsl error: 0,0 not defined
r.val = 0.0;
phi.val = 0.0;
} else {
gsl_sf_rect_to_polar(x, y, &r, &phi);
}
if (cart_axis == Cart::Axis::x) {
return getRadialElectricField(r.val, z) * gsl_sf_cos(phi.val);
} else if (cart_axis == Cart::Axis::y) {
return getRadialElectricField(r.val, z) * gsl_sf_sin(phi.val);
} else if (cart_axis == Cart::Axis::z) {
return getLongitudinalElectricField(r.val, z);
} else {
std::stringstream ss;
ss<<"This axis " << cart_axis << " was not implemented. Use x, y or z for getValue." << std::endl;
throw MyException(ss.str());
//PANIC_NORANK(
// "This axis %d was not implemented. Use x, y or z for getValue.\n",
// cart_axis);
return 0.0;
}
}
blitz::TinyVector<double, 3> RearwallPotential::getValue(double z, double r,
double phi) const {
// convert to local coordinates
//x += -center_(0);
//y += -center_(1);
z += -center_(2);
/*
// get cylinder coordinates
gsl_sf_result r = {0.0, 0.0};
gsl_sf_result phi = {0.0, 0.0};
if(x == 0.0 && y == 0.0){ // guard for gsl error: 0,0 not defined
r.val = 0.0;
phi.val = 0.0;
} else {
gsl_sf_rect_to_polar(x, y, &r, &phi);
}
*/
//std::cout << "ich wurde aufgerufen " << height_ << std::endl;
return blitz::TinyVector<double, 3>(
getRadialElectricField(r, z) * gsl_sf_cos(phi),
getRadialElectricField(r, z) * gsl_sf_sin(phi),
getLongitudinalElectricField(r, z));
}
double RearwallPotential::getElectricField(double radius, double z,
int clynder_axis) const {
if (clynder_axis == Cyl::Axis::rho) {
return getRadialElectricField(radius, z);
} else if (clynder_axis == Cyl::Axis::z) {
return getLongitudinalElectricField(radius, z);
} else if(clynder_axis == Cyl::Axis::phi) {
return 0.0;
}
else {
std::stringstream ss;
ss<<"This axis " << clynder_axis << " was not implemented. Use x, y or z for getElectricField. " << std::endl;
throw MyException(ss.str());
//PANIC_NORANK(
// "This axis %d was not implemented. Use x, y or z for "
// "getElectricField.\n",
// clynder_axis);
return 0.0;
}
}
double RearwallPotential::getRadialElectricField(double radius,
double z) const {
// boundary checks
if (isCoordinateOutsideCylinder(radius, z)) {
//std::cout << "out of cylinder" << std::endl;
return 0.0;
}
// scales linearly from 0 to E(minimal_z_for_bessel_calculation_)
if (z <= minimal_z_for_bessel_calculation_) {
double Er_zmin = 0.0;
for (int order = 1; order <= max_bessel_zero_order_; ++order) {
Er_zmin += getRadialFieldComponent(
radius, minimal_z_for_bessel_calculation_, order);
}
Er_zmin = Er_zmin * z / minimal_z_for_bessel_calculation_;
return Er_zmin;
}
// standard calculation
double Er = 0.0;
for (int order = 1; order <= max_bessel_zero_order_; ++order) {
Er += getRadialFieldComponent(radius, z, order);
}
return Er;
}
double RearwallPotential::getLongitudinalElectricField(double radius,
double z) const {
// boundary checks
if (isCoordinateOutsideCylinder(radius, z)) {
// in contrast to radial component the long. field is not zero
if (z != 0.0) {
return 0.0;
}
}
// uses value of E(minimal_z_for_bessel_calculation_) for smaller z
if (z <= minimal_z_for_bessel_calculation_) {
double Ez_zmin = 0.0;
for (int order = 1; order <= max_bessel_zero_order_; ++order) {
Ez_zmin += getLongitudinalFieldComponent(
radius, minimal_z_for_bessel_calculation_, order);
}
return Ez_zmin;
}
// standard calculation
double Ez = 0.0;
for (int order = 1; order <= max_bessel_zero_order_; ++order) {
Ez += getLongitudinalFieldComponent(radius, z, order);
}
return Ez;
}
double RearwallPotential::getPotential(double r, double z) const {
// check for boundaries
if(z <= 0.0) {
return rearwall_potential_;
} else if(isCoordinateOutsideCylinder(r, z)) {
return 0.0;
}
// standard calculation
double potential = 0.0;
for(int order = 1; order <= max_bessel_zero_order_; ++order) {
potential += getRadialPotentialComponent(r, order) * getLongitudinalPotentialComponent(z, order);
}
potential *= rearwall_potential_;
if(potential > rearwall_potential_) {
potential = rearwall_potential_;
}
return potential;
}
double RearwallPotential::getRadialPotentialComponent(
double r, int bessel_zero_order) const {
long double k0i = gsl_sf_bessel_zero_J0(bessel_zero_order);
return gsl_sf_bessel_J0(k0i*r/radius_)/(k0i * gsl_sf_bessel_J1(k0i));
}
double RearwallPotential::getLongitudinalPotentialComponent(
double z, int bessel_zero_order) const {
double k0i = gsl_sf_bessel_zero_J0(bessel_zero_order);
double b = k0i * height_/radius_;
double b_z = k0i/radius_*(height_ - z);
double V_long = 2.0*exp(gsl_sf_lnsinh(b_z) - gsl_sf_lnsinh(b));
if(isnan(V_long) || isinf(V_long)) {
return 0.0;
} else {
return V_long;
}
}
double RearwallPotential::getLongitudinalFieldComponent(
double r, double z, int bessel_zero_order) const {
double k0i = gsl_sf_bessel_zero_J0(bessel_zero_order);
double b = k0i * height_ / radius_;
double b_z = k0i / radius_ * (height_ - z);
// cosh(b_z)/sinh(b):
double cosh_sinh = exp(gsl_sf_lncosh(b_z) - gsl_sf_lnsinh(b));
if (isnan(cosh_sinh) || isinf(cosh_sinh)) {
cosh_sinh = 0.0;
}
double potential_z_derivative = 0.0;
if (z <= 0.0) {
potential_z_derivative = 2.0 * k0i / radius_;
} else {
potential_z_derivative = 2.0 * k0i / radius_ * cosh_sinh;
}
return rearwall_potential_ * potential_z_derivative *
getRadialPotentialComponent(r, bessel_zero_order);
}
double RearwallPotential::getRadialFieldComponent(double r, double z,
int bessel_zero_order) const {
double k0i = gsl_sf_bessel_zero_J0(bessel_zero_order);
double Er_i = rearwall_potential_ *
getLongitudinalPotentialComponent(z, bessel_zero_order) *
gsl_sf_bessel_J1(k0i * r / radius_) /
(radius_ * gsl_sf_bessel_J1(k0i));
return Er_i;
}
bool RearwallPotential::isCoordinateOutsideCylinder(double radius, double z) const {
if (z<=0)
{
std::cout << "z kleiner null" << std::endl;
}
else if (z>=maximal_z_for_bessel_calculation_)
{
//std::cout << z << " größer als "<< maximal_z_for_bessel_calculation_ << std::endl;
}
else if (radius > radius_)
{
std::cout << "radius auserhalb" << std::endl;
}
return z<=0.0 || z>= maximal_z_for_bessel_calculation_ || radius > radius_;
}
double RearwallPotential::getMaximalZ(double radius, double precision) const {
return (-1.0) * log(precision) * radius / gsl_sf_bessel_zero_J0(1);
}
+51
View File
@@ -0,0 +1,51 @@
#ifndef REARWALLPOTENTIAL_H
#define REARWALLPOTENTIAL_H
#include "Function3d.h"
#include "ElectricField.h"
class RearwallPotential : public Function3d {
public:
RearwallPotential(double radius, double height, double rearwall_potential, const blitz::TinyVector<double, 3>& center,
double minimal_z_for_bessel_calculation = 0.05, int max_bessel_zero_order_ = 1000,
double precision = 1E-15, bool potential_in_si = false);
~RearwallPotential();
void print(std::ostream &out) const;
void print() const;
double getValue(double x, double y, double z, int cart_axis) const;
blitz::TinyVector<double, 3> getValue(double z, double r, double phi) const;
double getElectricField(double radius, double z, int clinder_axis) const; // only used for debugging
double getPotential(double r, double z) const; // only used for debugging
double height_;
private:
double radius_;
double max_bessel_zero_order_;
double rearwall_potential_;
double minimal_z_for_bessel_calculation_;
double maximal_z_for_bessel_calculation_;
const blitz::TinyVector<double, 3> center_;
// use that for large values of z the result of the potential/field is smaller than double precision
// the bessel calculation is only done up to this z value
double getMaximalZ(double radius, double precision) const;
double getRadialElectricField(double radius, double z) const;
double getLongitudinalElectricField(double radius, double z) const;
double getRadialPotentialComponent(double r, int bessel_zero_order) const;
double getLongitudinalPotentialComponent(double z, int bessel_zero_order) const;
double getLongitudinalFieldComponent(double r, double z, int bessel_zero_order) const;
double getRadialFieldComponent(double r, double z, int bessel_zero_order) const;
bool isCoordinateOutsideCylinder(double radius, double z) const;
};
#endif /* REARWALLPOTENTIAL_H */
+18
View File
@@ -13,6 +13,7 @@
#include "janev_eT2I_recombination.h"
using namespace std;
class T2Ie_Recombination : public TI_e_Precomputed_Interaction_Base {
public:
@@ -23,6 +24,7 @@ public:
InteractionOut do_Interaction (Particle *interPart);
protected:
double get_microSigma_m2(const double &E_eV) {
//std::cout<<"Reco Crosssection: "<<Janev_eT2I_Recombination::get_TCS(E_eV)<<"\n";
return Janev_eT2I_Recombination::get_TCS(E_eV);
}
};
@@ -30,8 +32,24 @@ protected:
inline InteractionOut T2Ie_Recombination::do_Interaction (Particle *interPart) {
InteractionOut res;
res.set_delete_current(true);
//std::cout <<"Interactiin particle in do interaction: " <<interPart->get_species()<<"\n";
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.
std::cout << "Ort des interpart = " << interPart->get_x_m()<<"\n";
std::cout << "v_ms = " << Population->roll_v_ms(interPart->get_x_m())<<"\n";
Log_Scale E_scale;
int Ee_bin = E_scale.calc_index(E_eV);
std::cout<<"Ee_bin = " << Ee_bin<<"\n";
std::cout << "E_eV = " << E_eV<<"\n";
Bins loc_bin = Population->get_loc_bin(interPart->get_x_m());
//std::cout<<"E aus roll v = "<<E_eV<<"\n";
double n1 = Population->get_density_m3(Ee_bin, loc_bin); //nur zum schauen
std::cout<<"Population vor Reco = "<<n1<<"\n";
Population->decrease_denisty(interPart->get_x_m(), E_eV);
double n2 = Population->get_density_m3(Ee_bin, loc_bin); //nur zum schauen
std::cout<<"Population vor Reco = "<<n2<<"\n";
std::cout<<"T2+ wurde gelöscht"<<"\n";
return res;
}
+1
View File
@@ -95,6 +95,7 @@ private:
inline void TI_e_Precomputed_Interaction_Base::calc_values() {
for (int EI_bin=0; EI_bin<E_scale.get_number_bins(); EI_bin++) {
std::cout<<"EI_bin = "<<EI_bin<<"\n";
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);
}
+2
View File
@@ -27,6 +27,7 @@ protected:
};
inline void Drift_Base::move(Particle *movePart, const double &macro_sigma_m) {
vec3 oldLoc_m = movePart->get_x_m();
vec3 newLoc_m = oldLoc_m;
@@ -56,6 +57,7 @@ inline double Drift_Base::get_zNew_m(Particle *movePart, const double &macro_sig
}
} else {
double distance_m = 1/macro_sigma_m;
std::cout<<"Distanz = " << distance_m<<"\n";
znew_m = zold_m + zDir*vForwardAbs_ms/vTotAbs_ms * distance_m;
}
return znew_m;
+10 -2
View File
@@ -18,8 +18,10 @@ 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) {
//std::cout<<"werde ich benutzt?"<<"\n";
//std::cout<< "micro sigma = "<< Janev_eT2I_Recombination::get_TCS(E_eV)<<"\n";
return Janev_eT2I_Recombination::get_TCS(E_eV);
}
InteractionOut do_Interaction (Particle *interPart);
@@ -30,7 +32,13 @@ 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);
std::cout<<"e- wurde gelöscht"<<"\n";
//Bins loc_bin = Population->get_loc_bin(interPart->get_x_m());
double n1 = Population->get_density_m3(interPart->get_x_m()); //nur zum schauen
std::cout<<"Population vor Reco = "<< n1<<"\n";
Population->decrease_denisty(interPart->get_x_m(), 0);
double n2 = Population->get_density_m3(interPart->get_x_m());
std::cout<<"Population nach Reco = " <<n2<<"\n";
return res;
}
+1 -1
View File
@@ -41,7 +41,7 @@ public:
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 v2_ms = Population->roll_v_ms(interPart->get_x_m()); //trifft das?
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);
+11
View File
@@ -46,6 +46,7 @@ inline double e_thermal_Interaction_Base::get_macro_sigma_m(const Particle &inte
}
inline double e_thermal_Interaction_Base::calc_macro_sigma_m(const double &E_eV, const vec3 &loc_m) {
//std::cout<<"hi"<<"\n";
return calc_microSigma_m2(E_eV)*Population->get_density_m3(loc_m);
}
@@ -103,18 +104,28 @@ inline void e_thermal_Precomputed_Interaction_Base::calc_values() {
}
inline double e_thermal_Precomputed_Interaction_Base::get_macro_sigma_m(const Particle &interPart) {
//std::cout<<"e_thermal... getmacrosigma macht was"<<"\n";
vec3 loc_m = interPart.get_x_m();
//std::cout<<"loc_m = "<<loc_m<<"\n";
double v_ms = calc_vec3_abs(interPart.get_v_ms() - Population->get_drift_v_ms(loc_m)); // Shift to "Labframe without thermal blur"
//std::cout<<"v_ms = "<<v_ms<<"\n";
double E_eV = calc_E_eV_from_v_ms(v_ms, m1_eV); // Lab energy without thermal integration
//std::cout<<"E_eV = "<<E_eV<<"\n";
if (E_scale.in_scale(E_eV)) {
//std::cout<< "Macro sigma = " << lookup_macro_sigma_m(E_eV, loc_m)<<"\n";
return lookup_macro_sigma_m(E_eV, loc_m);
} else {
//std::cout<< "Macro sigma = " << calc_macro_sigma_m(E_eV, loc_m)<<"\n";
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);
//std::cout <<"E index = "<<i<<"\n";
//std::cout <<"precomputed_values[i] = " << precomputed_values[i]<< "\n";
//std::cout << "pop denisity = " << Population->get_density_m3(loc_m)<<"\n";
//std::cout << "pop denisity species = " << Population->get_species()<<"\n";
return precomputed_values[i] * Population->get_density_m3(loc_m);
}
+2
View File
@@ -30,6 +30,8 @@ private:
void E_Mover_Boris::move(Particle *movePart, const double &macro_sigma_m) {
// Prepare detection for change of z direction for logging
std::cout<<"boris mover"<<"\n";
double oldzDir = movePart->get_v_ms()[2] < 0 ? -1 : 1;
vec3 oldLoc_m = movePart->get_x_m();
+130
View File
@@ -0,0 +1,130 @@
#ifndef ENUMERATIONS_H
#define ENUMERATIONS_H
namespace Cart {
enum Axis {
x = 0,
y = 1,
z = 2
};
};
namespace Cyl {
enum Axis {
rho = 0,
phi = 1,
z = 2
};
};
namespace AXIS {
static const int X = 0;
static const int Y = 1;
static const int Z = 2;
static const int Rho = 3;
static const int Phi = 4;
}
namespace GEOMETRY {
static const int undefined = -1;
static const int cylinder = 1;
static const int cube = 2;
}
namespace FORMFACTOR {
static const int undefined = -1;
static const int Default = 5;
static const int NGP = 1;
static const int NGPCIC = 2;
static const int CIC = 3;
static const int CICTSC = 4;
static const int TSC = 5;
static const int TSCPQS = 6;
static const int PQS = 7;
static const int PQSPCS = 8;
static const int PCS = 9;
static const int SUDS1 = 10;
static const int SUDS2 = 11;
static const int COS = 12;
}
namespace PARTICLE_PUSHER {
static const int undefined = -1;
static const int Default = 1;
static const int boris = 1;
static const int vay = 2;
}
namespace CURRENT_ASSIGNMENT {
static const int undefined = -1;
static const int Default = 1;
static const int esirkepov = 1;
static const int umeda = 2;
}
namespace MAXWELL_SOLVER {
static const int undefined = -1;
static const int Default = 1;
static const int yee = 1;
static const int ck = 2;
static const int ck5 = 3;
static const int O4 = 4;
static const int M24 = 5;
static const int ES = 6;
static const int darwin = 7;
static const int deymittra = 8;
}
namespace CURRENT_BACKGROUND {
static const int undefined = -1;
static const int precalculated = 1;
static const int homogeneous = 2;
static const int polynomial = 3;
}
namespace MAGENTIC_BACKGROUND {
static const int undefined = -1;
static const int polynomial = 1;
static const int homogeneous = 2;
static const int precalculated = 3;
}
namespace ELECTRIC_BACKGROUND {
static const int undefined = -1;
static const int polynomial = 1;
static const int homogeneous = 2;
static const int precalculated = 3;
static const int rearwall = 4;
}
namespace CAVITY_MODE {
static const int undefined = -1;
static const int TE = 1;
static const int TM = 2;
}
namespace RANDOM_NUMBER_METHOD {
static const int undefined = -1;
static const int rejection = 1;
static const int inverse = 2;
static const int gamma_boltzmann= 3;
static const int histogram = 4;
}
namespace DISTRIBUTION_FUNCTION {
static const int undefined = -1;
static const int boltzmann3D = 1;
static const int T3_beta = 2;
static const int linear = 3;
static const int power = 4;
static const int power_inverse = 5;
}
namespace INJECTION_PLANE_TYPE {
static const int undefined = -1;
static const int density = 1;
static const int current = 2;
}
#endif // ENUMERATIONS_H
+35 -3
View File
@@ -41,27 +41,59 @@ private:
inline int Injector::inject (std::vector<Particle> *particle_queue, const int &last_ID) {
vec3 loc_m = T2Population->roll_x_ms();
vec3 v_ms;
//vec3 direction;
double E_eV;
switch(method) {
case 0: // Fermi
E_eV = roll_FermiEnergy_eV();
v_ms = roll_uniform_direction(rngUni) * calc_v_ms_from_E_eV(E_eV,me_eV);
particle_queue->push_back(PartFac.create_e(loc_m, v_ms, last_ID+1, last_ID+1));
break;
case 1: //Delta
E_eV = energy_eV;
v_ms = roll_uniform_direction(rngUni) * calc_v_ms_from_E_eV(E_eV,me_eV);
particle_queue->push_back(PartFac.create_e(loc_m, v_ms, last_ID+1, last_ID+1));
break;
case 2: //Maxwell Boltzman
E_eV = roll_MBEnergy(energy_eV/kb_eVK, me_eV, rngNormal);
v_ms = roll_uniform_direction(rngUni) * calc_v_ms_from_E_eV(E_eV,me_eV);
particle_queue->push_back(PartFac.create_e(loc_m, v_ms, last_ID+1, last_ID+1));
break;
case 3: // Delta Injection for Recombination Testing
loc_m = vec3(0.,0.,9.99);
E_eV = energy_eV;
//std::cout<<"E = "<< E_eV<<"\n";
//direction = vec3(0,0,-1);
v_ms = vec3(0.,0.,-1.) * calc_v_ms_from_E_eV(E_eV, me_eV);
particle_queue->push_back(PartFac.create_e(loc_m, v_ms, last_ID+1, last_ID+1));
break;
case 4:
loc_m = vec3(0.,0.,z_WGTS_end_m);
E_eV = energy_eV;
//direction = vec3(0,0,-1);
v_ms = vec3(0.,0.,-1.) * calc_v_ms_from_E_eV(E_eV, me_eV);
//particle_queue->push_back(PartFac.create_e(loc_m, v_ms, last_ID+1, last_ID+1));
break;
default:
throw MyException("Katrin::injectElectron: Invalid Injection Method.");
break;
}
vec3 v_ms = roll_uniform_direction(rngUni) * calc_v_ms_from_E_eV(E_eV,me_eV);
particle_queue->push_back(PartFac.create_e(loc_m, v_ms, last_ID+1, last_ID+1));
//vec3 v_ms = roll_uniform_direction(rngUni) * calc_v_ms_from_E_eV(E_eV,me_eV);
//particle_queue->push_back(PartFac.create_e(loc_m, v_ms, last_ID+1, last_ID+1));
if (ions == 0) {
return 1;
}
if (ions == 2) { // 2: Delta Injection for Testing Recombination
vec3 direction = vec3(0.,0.,-1.);
vec3 loc_m = vec3(0.,0.,9.99);
vec3 vTI_ms = direction * calc_v_ms_from_E_eV(E_eV, 2*mT_eV);
particle_queue->push_back(PartFac.create_T2I(loc_m, vTI_ms, last_ID+2, last_ID+2));
return 2;
} else {
vec3 vTI_ms = T2Population->roll_v_ms(loc_m);
particle_queue->push_back(PartFac.create_T2I(loc_m, vTI_ms, last_ID+2, last_ID+2));
+29 -11
View File
@@ -46,7 +46,7 @@
#include "T5IT2_elastic.h"
#include "T5Ie_recombination.h"
using namespace std;
Interaction_Manager Interaction_Builder::build(Population_Manager *Populations, UniRNG *rngUni) {
Interaction_Manager Interactions;
@@ -117,9 +117,10 @@ Interaction_Channel_Base* Interaction_Builder::build_electron(Population_Manager
}
if (load_parameter("e_REC") == 1) {
std::cout<<"Recombination für e- an"<<"\n";
eInteraction->add(new eT2I_Recombination(T2IPopulation, rngUni));
eInteraction->add(new eT3I_Recombination(T3IPopulation, rngUni));
eInteraction->add(new eT5I_Recombination(T5IPopulation, rngUni));
//eInteraction->add(new eT3I_Recombination(T3IPopulation, rngUni));
//eInteraction->add(new eT5I_Recombination(T5IPopulation, rngUni));
} else if (load_parameter("e_REC") != 0) {
throw MyException ("e_REC invalid.");
}
@@ -170,9 +171,15 @@ Interaction_Channel_Base* Interaction_Builder::build_tritium(Population_Manager
Interaction_Channel_Base* Interaction_Builder::build_tritiumI(Population_Manager *Populations, UniRNG *rngUni) {
Interaction_Channel_Base *TI_Interaction = new Interaction_Channel_Base(tritiumI, rngUni);
Population_Base *T2Population = Populations->find(tritium2);
TI_Interaction->add(new TIT2_Elastic(T2Population, rngUni));
TI_Interaction->add (new TIT2_RadAsc(T2Population, rngUni));
TI_Interaction->add (new TIT2_TerAsc(T2Population, rngUni));
if (load_parameter("T_INTER") == 1) {
TI_Interaction->add(new TIT2_Elastic(T2Population, rngUni));
TI_Interaction->add (new TIT2_RadAsc(T2Population, rngUni));
TI_Interaction->add (new TIT2_TerAsc(T2Population, rngUni));
} else if (load_parameter("T_INTER") != 0) {
throw MyException ("T_INTER invalid.");
}
return TI_Interaction;
}
@@ -182,13 +189,18 @@ Interaction_Channel_Base* Interaction_Builder::build_tritium2I(Population_Manage
Population_Base *ePopulation = Populations->find(electron);
if (load_parameter("e_REC") == 1) {
std::cout<<"Recombination für T2+ an"<<"\n";
T2I_Interaction->add(new T2Ie_Recombination(ePopulation, rngUni));
} else if (load_parameter("e_REC") != 0) {
throw MyException ("e_REC invalid.");
}
//T2I_Interaction->add(new T2Ie_DissExc(ePopulation, rngUni));
if (load_parameter("T_INTER") == 1) {
T2I_Interaction->add(new T2IT2_Cluster(T2Population, rngUni));
T2I_Interaction->add(new T2IT2_CX(T2Population, rngUni));
} else if (load_parameter("T_INTER") != 0) {
throw MyException ("T_INTER invalid.");
}
return T2I_Interaction ;
}
@@ -196,10 +208,13 @@ Interaction_Channel_Base* Interaction_Builder::build_tritium3I(Population_Manage
Interaction_Channel_Base *T3I_Interaction = new Interaction_Channel_Base(tritium3I, rngUni);
Population_Base *T2Population = Populations->find(tritium2);
Population_Base *ePopulation = Populations->find(electron);
T3I_Interaction->add(new T3IT2_Elastic(T2Population, rngUni));
T3I_Interaction->add(new T3IT2_RadAsc(T2Population, rngUni));
T3I_Interaction->add(new T3IT2_TerAsc(T2Population, rngUni));
if (load_parameter("T_INTER") == 1) {
T3I_Interaction->add(new T3IT2_Elastic(T2Population, rngUni));
T3I_Interaction->add(new T3IT2_RadAsc(T2Population, rngUni));
T3I_Interaction->add(new T3IT2_TerAsc(T2Population, rngUni));
} else if (load_parameter("T_INTER") != 0) {
throw MyException ("T_INTER invalid.");
}
if (load_parameter("e_REC") == 1) {
T3I_Interaction->add(new T3Ie_Recombination(ePopulation, rngUni));
} else if (load_parameter("e_REC") != 0) {
@@ -214,8 +229,11 @@ Interaction_Channel_Base* Interaction_Builder::build_tritium5I(Population_Manage
Interaction_Channel_Base *T5I_Interaction = new Interaction_Channel_Base(tritium5I, rngUni);
Population_Base *T2Population = Populations->find(tritium2);
Population_Base *ePopulation = Populations->find(electron);
if (load_parameter("T_INTER") == 1) {
T5I_Interaction->add(new T5IT2_Elastic(T2Population, rngUni));
} else if (load_parameter("T_INTER") != 0) {
throw MyException ("T_INTER invalid.");
}
if (load_parameter("e_REC") == 1) {
T5I_Interaction->add(new T5Ie_Recombination(ePopulation, rngUni));
} else if (load_parameter("e_REC") != 0) {
+7 -1
View File
@@ -12,6 +12,7 @@
#include "process_base.h"
#include "interaction_base.h"
using namespace std;
class Interaction_Channel_Base : public Process_Base {
Interaction_Base **SubInteractions;
@@ -32,9 +33,12 @@ public:
inline InteractionOut Interaction_Channel_Base::do_Interaction(Particle *interPart) {
double macro_sigma_m = get_macro_sigma_m(*interPart);
//std::cout<<"MacroSigma_m = "<<macro_sigma_m<<"\n";
double currentStackedSigma = 0;
double targetStackedSigma = rngUni->random() * macro_sigma_m;
//std::cout<<"TargetStackedSigma_m = "<<targetStackedSigma<<"\n";
//std::cout<<"numSubInteractions = "<<numSubInteractions<<"\n";
for (int i = 0; i < numSubInteractions; i++) {
currentStackedSigma += SubInteractions[i]->get_macro_sigma_m(*interPart);
if (currentStackedSigma >= targetStackedSigma) {
@@ -50,6 +54,8 @@ inline InteractionOut Interaction_Channel_Base::do_Interaction(Particle *interPa
inline double Interaction_Channel_Base::get_macro_sigma_m(const Particle &interPart) {
double macro_sigma_m = 0;
for (int i = 0; i < numSubInteractions; i++) {
//std::cout<< "macro_sigma_m = " << macro_sigma_m << "\n";
//std::cout<<"Subinteraction "<<SubInteractions[i]<<"\n";
macro_sigma_m += SubInteractions[i]->get_macro_sigma_m(interPart);
}
return macro_sigma_m;
@@ -20,6 +20,8 @@ public:
static double get_TCS(const double &E_eV) {
double const1 = pow( pow(E_eV,0.665) * (1 + 1.1*pow(E_eV,0.512) + 0.011*pow(E_eV,3.10)) , -1);
double const2 = 0.133 * exp(-0.35*pow(E_eV-6.05,2));
//std::cout<<"E_eV = "<<E_eV<<"\n";
//std::cout<<"TCS = " <<17.3e-20 * (const1+const2)<<"\n";
return 17.3e-20 * (const1+const2);
}
};
+4
View File
@@ -64,8 +64,12 @@ inline double calc_r_m(const vec3 &loc_m) {
}
inline double calc_phi(const vec3 &loc_m) {
if (loc_m[1] == 0 and loc_m[0] == 0){
return 0;
}
if (loc_m[1] >= 0) {
return acos(loc_m[0]/calc_r_m(loc_m));
//return atan(loc_m[1]/loc_m[0]);
} else {
return 2*pi - acos(loc_m[0]/calc_r_m(loc_m));
}
+4
View File
@@ -53,6 +53,7 @@ inline void Kinetic_Population::increase_density (const Particle &upPart, const
}
inline void Kinetic_Population::decrease_denisty (const vec3 &loc_m, const double &E_eV) {
std::cout<<"Kinetic POP"<<"\n";
container.increase_offset(loc_m, E_eV);
}
@@ -75,6 +76,8 @@ inline vec3 Kinetic_Population::roll_v_ms (const vec3 &loc_m) {
Bins loc_bins = get_loc_bin(loc_m);
double target = 0;
for (int E_bin = 0; E_bin<get_number_E_bins(); E_bin++) {
double E = get_E_bin_mid_eV(E_bin);
//std::cout<<"E_bin = "<< E_bin<<" E = "<<E<<"\n";
target += get_density_m3(E_bin, loc_bins);
}
target *= rngUni->random();
@@ -82,6 +85,7 @@ inline vec3 Kinetic_Population::roll_v_ms (const vec3 &loc_m) {
for (int E_bin = 0; E_bin<get_number_E_bins(); E_bin++) {
current += get_density_m3(E_bin, loc_bins);
if (current >= target) {
std::cout<<"roll_v_ms output = "<<container.roll_E_eV_in_bin(E_bin, rngUni)<<"\n";
return container.roll_E_eV_in_bin(E_bin, rngUni);
}
}
+20
View File
@@ -32,6 +32,26 @@ Particle_Logger_Manager Particle_Logger_Builder::build(H5_File *h5f) {
ParticleLogger.add(new SF_Particle_Logger(tritium2I, h5f));
ParticleLogger.add(new SF_Particle_Logger(tritium3I, h5f));
ParticleLogger.add(new SF_Particle_Logger(tritium5I, h5f));
}
else if(numberZBins == -3){
double *zValues = new double[numberZBins];
double start_m = z_RW_m;
double mid_m = z_WGTS_mid_m;
double end_m = z_WGTS_end_m;
zValues[0] = start_m;
zValues[1] = mid_m;
zValues[2] = end_m;
ParticleLogger.add(new MultiZ_Particle_Logger(electron, h5f, numberZBins, zValues));
ParticleLogger.add(new MultiZ_Particle_Logger(tritiumI, h5f, numberZBins, zValues));
ParticleLogger.add(new MultiZ_Particle_Logger(tritium2I, h5f, numberZBins, zValues));
ParticleLogger.add(new MultiZ_Particle_Logger(tritium3I, h5f, numberZBins, zValues));
ParticleLogger.add(new MultiZ_Particle_Logger(tritium5I, h5f, numberZBins, zValues));
delete[] zValues;
} else {
build_MultiZ(&ParticleLogger, h5f);
}
+3
View File
@@ -0,0 +1,3 @@
#define CATCH_CONFIG_MAIN
#include "catch.hpp"
+16 -7
View File
@@ -10,7 +10,13 @@ OBJS := particle_looper.o \
population_builder.o \
mover_builder.o \
interaction_builder.o BED_eT2_ionization.o uehara_eT2_elastic.o rutherford_elastic.o \
terminator_builder.o
terminator_builder.o \
ElectricField.o \
Homogene.o \
Function3d.o \
RearwallPotential.o
OBJECTS_TEST := test_vec3_container.o
CXXFLAGS = $(X_OFLAGS) -I.. $(X_INC) -std=c++11
@@ -19,12 +25,16 @@ MPXFLAGS = $(X_OFLAGS) -I.. $(X_INC) $(X_HDF5P_INC) -std=c++11
LDFLAGS = $(X_LIB) $(X_HDF5P_LIBS)
LOADLIBES = -lblitz -lm -lhdf5 -lhdf5_hl
LOADLIBES = -lblitz -lm -lhdf5 -lhdf5_hl -lgsl -lgslcblas -lm
TARGETS = mcelectron
TARGETS_TEST = mcelectron_test
all: $(TARGETS)
testing: $(TARGETS_TEST)
clean:
rm *.o mcelectron mcelectron_serial mcelectron_test
mcelectron: main.o simulation.o $(OBJS)
$(MPICXX) -o $@ $^ $(LDFLAGS) $(LOADLIBES)
@@ -32,9 +42,8 @@ mcelectron: main.o simulation.o $(OBJS)
mcelectron_serial: main_serial.o simulation_serial.o $(OBJS)
$(CXX) -o $@ $^ $(LDFLAGS) $(LOADLIBES)
mcelectron_test: main_test.o $(OBJS) $(OBJECTS_TEST)
$(MPICXX) -o $@ $^ $(LDFLAGS) $(LOADLIBES)
%.o : %.cpp
$(MPICXX) -c $< $(MPXFLAGS) -o $@ -g
clean:
rm *.o mcelectron mcelectron_serial
$(MPICXX) -c $< $(MPXFLAGS) -o $@ -g
+1 -1
View File
@@ -91,7 +91,7 @@ double get_species_mass(const species &spec) {
res = 3*mT_eV;
break;
case tritium5I:
res = 3*mT_eV;
res = 5*mT_eV;
break;
default:
stringstream ss;
+10
View File
@@ -54,11 +54,21 @@ void Particle_Looper::process_one(std::vector<Particle> *particle_queue) {
while (!terminatorPtr->check_terminlization(curPart)) {
oldLoc_m = curPart.get_x_m();
macro_sigma_m = interactionPtr->get_macro_sigma_m(curPart);
//macro_sigma_m = 1; //nur test
std::cout<<"###############################"<<"\n";
std::cout<<"Current Particle: "<<curPart<<"\n";
std::cout<<"MacroSigma von Current Particle = "<< macro_sigma_m<<"\n";
moverPtr->move(&curPart, macro_sigma_m);
if (terminatorPtr->check_terminlization(curPart)) {
std::cout<<"Keine Interaktion."<<"\n";
break; // Don't double check terminlization, else n_double.
} else {
std::cout<<"Interaktion."<<"\n";
IntOut = interactionPtr->do_Interaction(&curPart);
for (int i=0; i<IntOut.get_number_new_particles(); i++) {
particle_queue->push_back(IntOut.get_new_particles()[i]);
+2
View File
@@ -31,6 +31,8 @@ Population_Manager Population_Builder::build(Timer *timer,UniRNG *rngUni, Normal
int num_E_bins = POP_N_E;
Populations.add(new Kinetic_Population(electron, timer, rngUni, rngNormal, num_z_bins, num_r_bins, num_phi_bins, num_E_bins, POP_E_START, POP_E_END));
if (v_flow == -1) {
Populations.add(new Thermal_Population(tritium, new WGTS_Kinematics(mT_eV, wgtsTemp_K, rngUni, rngNormal), timer, rngUni, rngNormal, num_z_bins, num_r_bins, num_phi_bins));
Populations.add(new Thermal_Population(tritiumI, new WGTS_Kinematics(mT_eV, wgtsTemp_K, rngUni, rngNormal), timer, rngUni, rngNormal, num_z_bins, num_r_bins, num_phi_bins));
+7 -1
View File
@@ -125,6 +125,7 @@ void Population_Container::increase_offset(const vec3 &loc_m, const double &E_eV
Bins loc_bins = calc_loc_bin(loc_m);
int bin = calc_data_bin(loc_bins, E_bin);
offsets[bin] += 1;
std::cout<<"Offset[bin]= "<<offsets[bin]<<"["<<bin<<"]"<<"\n";
}
double Population_Container::get_density_m3(const vec3 &loc_m, const double &E_eV, const double &time_s) {
@@ -137,10 +138,15 @@ double Population_Container::get_density_m3(const int &E_bin, const Bins &loc_bi
int data_bin = calc_data_bin(loc_bins, E_bin);
double cum_time_s = cum_times_s[data_bin];
int offset = offsets[data_bin];
//std::cout<< "Offset = " << offset<<"\n";
double V_m3 = size_data_m3[loc_bins.r];
//std::cout<<"cum_time/time = "<<cum_time_s/time_s<<"\n";
//std::cout<<"offset = " <<offset<<"\n";
double n_m3 = cum_time_s/time_s/V_m3 - offset;
double n_m3 = cum_time_s/time_s/V_m3 - offset/V_m3;
if (n_m3<0) {
std::cout<<"Offset größer als n"<<"\n";
n_m3 = 0;
}
return n_m3;
File diff suppressed because it is too large Load Diff
+3
View File
@@ -20,6 +20,7 @@ struct Termination_Stats {
int n_max = 0;
int n_energy = 0;
int n_reaction = 0;
int n_offset = 0;
void reset () {
n_total = 0;
@@ -29,6 +30,7 @@ struct Termination_Stats {
n_max = 0;
n_energy = 0;
n_reaction = 0;
n_offset = 0;
}
void to_array(int *array) { // Ugly workarounds maybe move to casting with reinterpret cast
@@ -39,6 +41,7 @@ struct Termination_Stats {
array [4] = n_max;
array [5] = n_energy;
array [6] = n_reaction;
array [7] = n_offset;
}
void from_array(int *array) { // Ugly workarounds maybe move to casting with reinterpret cast
+16
View File
@@ -0,0 +1,16 @@
#include "catch.hpp"
#include "ElectricField.h"
SCENARIO("Test the ElectricField class", "[ElectricField]") {
GIVEN("An electric field") {
ElectricField electric_field;
WHEN("A value is ordered") {
THEN("Jonas value is returned") {
REQUIRE(electric_field.getValue()[0] == 0);
REQUIRE(electric_field.getValue()[1] == 0);
REQUIRE(electric_field.getValue()[2] == 0);
}
}
}
}
+72
View File
@@ -0,0 +1,72 @@
#include "catch.hpp"
#include "blitz/array.h"
//#include "function3d/Homogene.h"
//#include "function3d/PolynomialCylinder.h"
//#include "function3d/Zeros.h"
#include "RearwallPotential.h"
#include <memory> // unique_ptr
#include <fstream> // output file
SCENARIO("Test Function3d class", "[Function3d]") {
GIVEN("A RearWall Function3d") {
double dx = 0.10984755318623787;
double radius = 4.5;
double height = dx*3060;
double rearwall_potential = 10.0;
blitz::TinyVector<double, 3> center(4.5, 4.5, 0.0);
double minimal_z_for_bessel_calculation = dx*1;
int max_bessel_zero_order = 1000;
double precision = 1E-15;
bool potential_in_si = true;
RearwallPotential rearwall(radius, height, rearwall_potential, center,
minimal_z_for_bessel_calculation,
max_bessel_zero_order, precision,
potential_in_si);
std::cout << rearwall << "\n";
WHEN("A value in x,y,z direction is ordered"){
THEN("The correct value is returned and saved to file. Look at that file.") {
double increment = dx;
std::ofstream output_file_potential;
output_file_potential.open("rearwall_potential_output.dat");
output_file_potential << "#r z potential\n";
for(double r = 0.0; r <= radius; r+=increment ){
for(double z = 0.0; z <= height; z+=increment){
output_file_potential << r << "," << z << ",";
output_file_potential << rearwall.getPotential(r, z) << "\n";
}
}
output_file_potential.close();
std::ofstream output_file_field;
output_file_field.open("rearwall_field_output.dat");
output_file_field << "#r z Er Ephi Ez\n";
for(double r = 0.0; r <= radius; r+=increment ){
for(double z = 0.0; z <= height; z+=increment){
output_file_field << r << "," << z << ",";
output_file_field << rearwall.getElectricField(r, z, 0) << ",";
output_file_field << rearwall.getElectricField(r, z, 1) << ",";
output_file_field << rearwall.getElectricField(r, z, 2) << "\n";
}
}
output_file_field.close();
REQUIRE(true);
}
}
}
}
+27
View File
@@ -0,0 +1,27 @@
#include "catch.hpp"
#include "Homogene.h"
SCENARIO("Test the Homogene class", "[Homogene]") {
GIVEN("A homogene electric field mit 5 V/m in z Richtung") {
Homogene electric_field(vec3(5,0,0));
//vec3 value(5,0,0);
//vec3 value = blitz::TinyVector<double, 3>(5,0,0)
vec3 loc = (5,5,5);
WHEN("A value is ordered") {
THEN("Jonas value is returned") {
REQUIRE(electric_field.getValue(loc)[0] == 5);
REQUIRE(electric_field.getValue(loc)[1] == 0);
REQUIRE(electric_field.getValue(loc)[2] == 0);
}
}
//WHEN("The value is changed and ordered"){
// electric_field.setValue(vec3(2,2,2));
// THEN("Changed Value is returned"){
// REQUIRE(electric_field.getValue()[0] == 2);
// REQUIRE(electric_field.getValue()[1] == 2);
// REQUIRE(electric_field.getValue()[2] == 2);
// }
//}
}
}
+27
View File
@@ -0,0 +1,27 @@
#include "catch.hpp"
#include "vec3_container.hpp"
#include "Homogene.h"
#include "RearwallPotential.h"
#include "constants.h"
#include <fstream>
#include <memory>
SCENARIO("Test the vec3_container Constructor with Electric Field class", "[vec3_container]") {
GIVEN("Vec3 Container initilazed with a homogene electric field") {
ElectricField electric_field(load_parameter("electric_field"));
electric_field.print();
Vec3_Container efeld(1000, 50, 20, electric_field);
THEN("The correct value is returned and saved to file. Look at that file.") {
REQUIRE(true);
}
}
}
+5 -1
View File
@@ -23,10 +23,14 @@ public:
Thermal_Population(species this_species, Base_Kinematics *kinematics, Timer *timer, UniRNG *rngUni, NormalRNG *rngNormal, int num_z_bins, int num_r_bins, int num_phi_bins) : Population_Base(this_species), RNG_Base(rngUni, rngNormal), container(num_z_bins, num_r_bins, num_phi_bins, 1) {
this->timer = timer;
this->kinematics = kinematics;
std::cout<<"Thermal Population: "<< this_species <<"\n";
}
void increase_density (const Particle &upPart, const vec3 &oldLoc_m) {container.increase_cum_time_s(oldLoc_m, upPart.get_x_m(), calc_vec3_abs(upPart.get_v_ms()), upPart.get_E_eV());}
void decrease_denisty (const vec3 &loc_m, const double &E_eV) {container.increase_offset(loc_m, E_eV);}
void decrease_denisty (const vec3 &loc_m, const double &E_eV) {
std::cout<<"THermal POP"<<"\n";
container.increase_offset(loc_m, E_eV);
}
double get_density_m3(const vec3 &loc_m) {return container.get_density_m3(loc_m, 0, timer->get_time_s());}
+57 -2
View File
@@ -20,6 +20,55 @@ Vec3_Container::Vec3_Container(int num_z_bins, int num_r_bins, int num_phi_bins,
load_data(load_path);
}
Vec3_Container::Vec3_Container(int num_z_bins, int num_r_bins, int num_phi_bins, ElectricField &E){
z_scale = Lin_Scale(z_WGTS_start_m, z_WGTS_end_m, num_z_bins);
r_scale = Lin_Scale(0, r_WGTS_m, num_r_bins);
phi_scale = Lin_Scale(0, 180, num_phi_bins);
int num_tot_bins = num_z_bins * num_r_bins * num_phi_bins;
data = new vec3[num_tot_bins];
dataloc = new vec3[num_tot_bins];
std::ofstream output_file_field;
output_file_field.open("../rearwall_electricfield_test.dat");
output_file_field << "#r phi z Er Ephi Ez\n";
for(int i = 0; i < num_z_bins; i++){
for (int j = 0; j < num_r_bins; j++){
for (int k = 0; k < num_phi_bins; k++){
double z = z_scale.get_bin_mid(i);
double r = r_scale.get_bin_mid(j);
double phi = phi_scale.get_bin_mid(k);
//double x = r*cos(phi);
//double y = r*sin(phi);
//std::cout << x << ", " << y << ", " << z << std::endl;
//while(l < num_tot_bins){
// std::cout << l << std::endl;
// data[l] = E.getValue(z, r, phi);
// l++;
//}
//std::cout << i*num_r_bins*num_phi_bins+j*num_phi_bins+k << std::endl;
data[i*num_r_bins*num_phi_bins+j*num_phi_bins+k] = E.getValue(z, r, phi);
//data[i*num_r_bins*num_phi_bins+j*num_phi_bins+k] = E.getPotential(r, z);
//dataloc[i*num_r_bins*num_phi_bins+j*num_phi_bins+k] = E.getLoc(z, r, phi);
dataloc[i*num_r_bins*num_phi_bins+j*num_phi_bins+k] = vec3(z, r, phi);
//std::cout << i*num_r_bins*num_phi_bins+j*num_phi_bins+k << " " << dataloc[i*num_r_bins*num_phi_bins+j*num_phi_bins+k] << " " << data[i*num_r_bins*num_phi_bins+j*num_phi_bins+k] << std::endl;
//std::cout << i*num_r_bins*num_phi_bins+j*num_phi_bins+k << " " << dataloc[i*num_r_bins*num_phi_bins+j*num_phi_bins+k] << " " << E.getPotential(r,z) << std::endl;
output_file_field << r << "," << phi << "," << z << ",";
output_file_field << E.getValue(z, r, phi)[0] << ",";
output_file_field << E.getValue(z, r, phi)[1] << ",";
output_file_field << E.getValue(z, r, phi)[2] << "\n";
//output_file_field << E.getPotential(r, z) << "\n";
}
}
}
output_file_field.close();
//int l = calc_data_bin(vec3(0, 0, 5));
//std::cout << "bin " << l << " ort " << dataloc[l] <<std::endl;
}
Vec3_Container::~Vec3_Container() {
delete[] data;
}
@@ -99,9 +148,15 @@ int Vec3_Container::calc_data_bin(const vec3 &loc_m) {
double z_m = calc_z_m(loc_m);
double r_m = calc_r_m(loc_m);
double phi = calc_phi(loc_m);
//double phi = 0;
int z_bin = z_scale.calc_index(z_m);
int r_bin = r_scale.calc_index(r_m);
int phi_bin = phi_scale.calc_index(phi);
//std::cout << "z " << z_m << std::endl;
//std::cout << "r " << r_m << std::endl;
//std::cout << "phi "<< phi << std::endl;
//std::cout << "zbin " << z_bin << std::endl;
//std::cout << "rbin " << r_bin << std::endl;
//std::cout << "phi_bin " << phi_bin << std::endl;
return z_bin * r_scale.get_number_bins() * phi_scale.get_number_bins() + r_bin * phi_scale.get_number_bins() + phi_bin;
};
};
+5 -1
View File
@@ -12,14 +12,18 @@
#include "lin_scale.h"
#include "kinematics.h"
#include "constants.h"
#include "ElectricField.h"
#include "Homogene.h"
#include "RearwallPotential.h"
class Vec3_Container {
vec3 *data;
vec3 *dataloc;
Lin_Scale z_scale, r_scale, phi_scale;
public:
Vec3_Container(int num_z_bins, int num_r_bins, int num_phi_bins, std::string load_path);
Vec3_Container(int num_z_bins, int num_r_bins, int num_phi_bins, ElectricField &E);
~Vec3_Container();
Vec3_Container(const Vec3_Container& other);
Vec3_Container& operator=(const Vec3_Container& other);
@@ -0,0 +1,296 @@
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import scipy.optimize as optimization
import glob
import h5py
import os
import sys
#from decimal import Decimal
# get a list of h5 files in a directory
def get_h5list(directory, extension='h5'):
liste = []
for f in os.listdir(directory):
if f.endswith('.' + extension):
liste.append(directory + '/' + f)
return liste
def get_csv_part_e(inputpath, sim_time, num_E=100, num_r=1, Erange=[1e-5,2e4]):
#set outputpath
outputpath = inputpath + '/csv'
try:
os.mkdir(outputpath)
except:
pass
num_E = num_E
num_r = num_r
Erange=[1e-5,2e4]
h5list = get_h5list(inputpath)
# def some constants
me_eV = 511e3
c_ms = 3e8
rrange = [0, 0.045]
# calc bin properties
Ebins = pow(10, np.linspace(np.log10(Erange[0]), np.log10(Erange[1]), (num_E+1)))
Emids = (Ebins[1:] + Ebins[:-1]/2)
Emids = pow(10, (np.log10(Ebins[1:]) + np.log10(Ebins[:-1]))/2)
rbins = np.linspace(0, 0.045, (num_r+1))
rmids = (rbins[1:] + rbins[:-1])/2
As = np.pi*rbins[1:]**2 - np.pi*rbins[:-1]**2
# open the first h5 file to get keys
f = h5py.File(h5list[0], 'r')
g = f['Particles']['e-']
zs = list(g.keys())
f.close()
df = pd.DataFrame() # this will be our csv file
zeros = np.zeros(num_E)
for z in zs:
print(z)
# this is how our csv dataframe will look like:
a = pd.DataFrame({
'z' : float(z),
'Emin' : zeros,
'Emax' : 0,
'Emid' : 0,
'rmin' : 0,
'rmax' : 0,
'rmid' : 0,
'N' : 0,
'dndE' : 0,
'djzabsdE' : 0,
'djzdE' : 0,
'N+' : 0,
'N-' : 0,
})
for h5 in h5list[:]:
#print(h5)
f = h5py.File(h5, 'r')
g = f['Particles']['e-']
df_z = pd.DataFrame(g[z][:])
# calc properties and calculate categories
df_z['E_eV'] = 0.5*me_eV*(df_z.vx_ms**2 + df_z.vy_ms**2 + df_z.vz_ms**2)/c_ms**2
df_z['r_m'] = np.sqrt(df_z['x_m']**2 + df_z['y_m']**2)
df_z['inv_v_z'] = 1/df_z['vz_ms'].abs()
df_z['v_sign'] = np.sign(df_z['vz_ms'])
df_z['v_sign_+'] = df_z['v_sign'].apply(lambda x: 1 if x > 0 else 0)
df_z['v_sign_-'] = df_z['v_sign'].apply(lambda x: 1 if x < 0 else 0)
df_z['E_cut'] = pd.cut(df_z['E_eV'], bins=Ebins, labels = False)
df_z['r_cut'] = pd.cut(df_z['r_m'], bins=rbins, labels = False, include_lowest = True)
# apply categories and fill empty with 0
t = df_z.groupby([df_z['E_cut'], df_z['r_cut']])['inv_v_z'].agg([('N','size'), ('inv_v_sum','sum')])
t['v_sign'] = df_z.groupby([df_z['E_cut'], df_z['r_cut']])['v_sign'].sum()
t['N+'] = df_z.groupby([df_z['E_cut'], df_z['r_cut']])['v_sign_+'].sum()
t['N-'] = df_z.groupby([df_z['E_cut'], df_z['r_cut']])['v_sign_-'].sum()
t = t.reindex( pd.MultiIndex.from_product([np.arange(num_E),
np.arange(num_r)], names=['E_bin', 'r_bin']) ,fill_value=0)
t = t.reset_index()
t['z'] = float(z)
# transform to df form
a['Emin'] = Ebins[t['E_bin']]
a['Emax'] = Ebins[t['E_bin']+1]
a['Emid'] = Emids[t['E_bin']]
a['rmin'] = rbins[t['r_bin']]
a['rmax'] = rbins[t['r_bin']+1]
a['rmid'] = rmids[t['r_bin']]
a['N'] += t['N']
a['dndE'] += t['inv_v_sum']/As[t['r_bin']]/sim_time
a['dndE'] = a['dndE'].replace(np.inf, 0)
a['djzabsdE'] += t['N']/As[t['r_bin']]/sim_time
a['djzdE'] += t['v_sign']/As[t['r_bin']]/sim_time
a['N+'] += t['N+']
a['N-'] += t['N-']
f.close()
#append to final df
df = df.append(a)
df.to_csv(inputpath + "/csv/df_part_e.csv")
print("csv saved to " + inputpath + "/csv/df_part_e.csv")
def get_csv_part_all(inputpath, sim_time, num_r=1):
outputpath = inputpath + '/csv'
try:
os.mkdir(outputpath)
except:
pass
# def some constants
c_ms = 3e8
rrange = [0, 0.045]
# calc bin properties
rbins = np.linspace(0, 0.045, (num_r+1))
rmids = (rbins[1:] + rbins[:-1])/2
As = np.pi*rbins[1:]**2 - np.pi*rbins[:-1]**2
h5list = get_h5list(inputpath)
# open one h5 file to get keys
f = h5py.File(h5list[0], 'r')
g = f['Particles']['e-']
species = list(f['Particles'].keys())
zs = list(g.keys())
f.close()
zeros = np.zeros(num_r)
df = pd.DataFrame()
for s in species:
print (s)
for z in zs:
# calc properties and calculate categories
#print(z)
a = pd.DataFrame({
'species' : s,
'z' : float(z),
'rmin' : zeros,
'rmax' : 0,
'rmid' : 0,
'N' : 0,
'N+' : 0,
'N-' : 0,
'n' : 0,
'jzabs' : 0,
'jz' : 0,
})
for h5 in h5list[:]:
#print(h5)
f = h5py.File(h5, 'r')
g = f['Particles'][s]
df_z = pd.DataFrame(g[z][:])
# calc properties and calc categories
df_z['r_m'] = np.sqrt(df_z['x_m']**2 + df_z['y_m']**2)
df_z['inv_v_z'] = 1/df_z['vz_ms'].abs()
df_z['v_sign'] = np.sign(df_z['vz_ms'])
df_z['v_sign_+'] = df_z['v_sign'].apply(lambda x: 1 if x > 0 else 0)
df_z['v_sign_-'] = df_z['v_sign'].apply(lambda x: 1 if x < 0 else 0)
df_z['r_cut'] = pd.cut(df_z['r_m'], bins=rbins, labels = False, include_lowest = True)
# apply categories and fill empty with 0
t = df_z.groupby(df_z['r_cut'])['inv_v_z'].agg([('N','size'), ('inv_v_sum','sum')])
t['v_sign'] = df_z.groupby([df_z['r_cut']])['v_sign'].sum()
t['N+'] = df_z.groupby(df_z['r_cut'])['v_sign_+'].sum()
t['N-'] = df_z.groupby(df_z['r_cut'])['v_sign_-'].sum()
t = t.reindex(np.arange(num_r) ,fill_value=0)
t.index.name = 'r_bin'
t = t.reset_index()
t['z'] = float(z)
# transform to df form
a['N'] += t['N']
a['N+'] += t['N+']
a['N-'] += t['N-']
a['n'] += t['inv_v_sum']/As[t['r_bin']]/sim_time
a['n'] = a['n'].replace(np.inf, 0)
a['jzabs'] += t['N']/As[t['r_bin']]/sim_time
a['jz'] += t['v_sign']/As[t['r_bin']]/sim_time
f.close()
#append to final
df = df.append(a)
df.to_csv(inputpath + "/csv/df_part_all.csv")
print("csv saved to " + inputpath + "/csv/df_part_all.csv")
def get_csv_part_rw(inputpath, sim_time, Vmax = 5, number_points = 100):
outputpath = inputpath + '/csv'
try:
os.mkdir(outputpath)
except:
pass
def get_rw_hits(f, s, sim_time):
def get_mass(s):
m_T = 2.81e9
if s=='e-':
return 511e3
elif s=='T+':
return m_T
elif s=='T2+':
return 2*m_T
elif s=='T3+':
return 3*m_T
elif s=='T5+':
return 5*m_T
else:
raise ('Species invalid')
def get_Z(species):
return species.count('+') - species.count('-')
try:
df_temp = pd.DataFrame(f['Particles'][s]['-3.000000'][:])
except:
return np.zeros(2*number_points-1)
E = get_mass(s)/2*(df_temp['vx_ms']**2 + df_temp['vy_ms']**2 + df_temp['vz_ms']**2)/3e8/3e8
N_tot = len(E)
N_hits = N_tot - np.cumsum(np.histogram(E, E_boarders)[0])
N_hits = np.concatenate((N_tot*np.ones(number_points), N_hits))
if (get_Z(s) < 0):
N_hits = np.flip(N_hits, axis=0)
I = N_hits * 1.602176462e-19 * get_Z(s) / sim_time * 1e9
return I
E_boarders = np.linspace(0, Vmax, number_points)
h5list = get_h5list(inputpath)
f = h5py.File(h5list[0], 'r')
species = list(f['Particles'].keys())
df_rw = pd.DataFrame()
df_rw['E'] = np.concatenate((-np.flip(E_boarders, axis = 0),E_boarders[1:]))
for s in species:
I = 0
for h5 in h5list[:]:
f = h5py.File(h5, 'r')
I += get_rw_hits(f, s, sim_time)
f.close()
df_rw[s] = I
df_rw.insert (1, 'total', df_rw.iloc[:,1:].sum(axis = 1))
df_rw.melt(id_vars = 'E', var_name = 'species', value_name = 'I')
df_rw.to_csv(inputpath + "/csv/df_part_rw.csv")
print("csv saved to " + inputpath + "/csv/df_part_rw.csv")
##############################################################
if (len(sys.argv) != 3):
print ('Error: Too many or too few number of arguments.')
sys.exit()
print( "This is the name of the script: ", sys.argv[0])
print( "Number of arguments: ", len(sys.argv))
print( "The arguments are: " , str(sys.argv))
inputpath = sys.argv[1]
sim_time = float(sys.argv[2])
print("inputpath = ", inputpath)
print("sim_time = ", sim_time)
get_csv_part_e(inputpath, sim_time)
get_csv_part_all(inputpath, sim_time)
get_csv_part_rw(inputpath, sim_time)
@@ -13,6 +13,7 @@ def get_df_part_e(file_path, sim_time, num_E, num_r, Erange = [1e-5, 2e4]):
Ebins = pow(10, np.linspace(np.log10(Erange[0]), np.log10(Erange[1]), (num_E+1)))
Emids = (Ebins[1:] + Ebins[:-1]/2)
Emids = pow(10, (np.log10(Ebins[1:]) + np.log10(Ebins[:-1]))/2)
rbins = np.linspace(0, 0.045, (num_r+1))
rmids = (rbins[1:] + rbins[:-1])/2
As = np.pi*rbins[1:]**2 - np.pi*rbins[:-1]**2
@@ -20,21 +21,28 @@ def get_df_part_e(file_path, sim_time, num_E, num_r, Erange = [1e-5, 2e4]):
# open h5 file
f = h5py.File(file_path, 'r')
g = f['Particles']['e-']
print(g)
df = pd.DataFrame()
# iterate over all zs and append to df
zs = list(g.keys())
for z in zs:
print (z)
# calc properties and calculate categories
df_z = pd.DataFrame(g[z][:])
df_z['E_eV'] = 0.5*me_eV*(df_z.vx_ms**2 + df_z.vy_ms**2 + df_z.vz_ms**2)/c_ms**2
df_z['r_m'] = np.sqrt(df_z['x_m']**2 + df_z['y_m']**2)
df_z['inv_v_z'] = 1/df_z['vz_ms'].abs()
df_z['v_sign'] = np.sign(df_z['vz_ms'])
df_z['E_cut'] = pd.cut(df_z['E_eV'], bins=Ebins, labels = False)
df_z['r_cut'] = pd.cut(df_z['r_m'], bins=rbins, labels = False, include_lowest = True)
print("calc properties and calculatre categoreies fertig")
# apply categories and fill empty with 0
#t = df_z['inv_v_z'].groupby([df_z['E_cut'], df_z['r_cut']]).agg(N=np.size,inv_v_sum=np.sum)
t = df_z.groupby([df_z['E_cut'], df_z['r_cut']])['inv_v_z'].agg([('N','size'), ('inv_v_sum','sum')])
@@ -43,7 +51,7 @@ def get_df_part_e(file_path, sim_time, num_E, num_r, Erange = [1e-5, 2e4]):
np.arange(num_r)], names=['E_bin', 'r_bin']) ,fill_value=0)
t = t.reset_index()
t['z'] = float(z)
print("apply categoires and fill empty with 0 fertig")
# transform to df form
a = pd.DataFrame({
'z' : t['z'],
@@ -58,11 +66,16 @@ def get_df_part_e(file_path, sim_time, num_E, num_r, Erange = [1e-5, 2e4]):
'djzabsdE' : 0,
'djzdE' : 0,
})
a['dndE'] = t['inv_v_sum']/As[t['r_bin']]/sim_time/(a['Emax']-a['Emin'])
#a['dndE'] = t['inv_v_sum']/As[t['r_bin']]/sim_time/(a['Emax']-a['Emin'])
a['dndE'] = t['inv_v_sum']/As[t['r_bin']]/sim_time
a['dndE'] = a['dndE'].replace(np.inf, 0)
a['djzabsdE'] = t['N']/As[t['r_bin']]/sim_time/(a['Emax']-a['Emin'])
a['djzdE'] = t['v_sign']/As[t['r_bin']]/sim_time/(a['Emax']-a['Emin'])
#a['djzabsdE'] = t['N']/As[t['r_bin']]/sim_time/(a['Emax']-a['Emin'])
a['djzabsdE'] = t['N']/As[t['r_bin']]/sim_time
#a['djzdE'] = t['v_sign']/As[t['r_bin']]/sim_time/(a['Emax']-a['Emin'])
a['djzdE'] = t['v_sign']/As[t['r_bin']]/sim_time
df = df.append(a) #append to final
print("transform to df form fertig ")
print("get_df_part_e fertig")
return df
def get_df_part_all(file_path, sim_time, num_r):
@@ -120,6 +133,7 @@ def get_df_part_all(file_path, sim_time, num_r):
a['jz'] = t['v_sign']/As[t['r_bin']]/sim_time
df = df.append(a) #append to final
print("get_df_part_all fertig")
return df
def get_df_part_rw(file_path, sim_time, Vmax = 5, number_points = 100):
@@ -165,6 +179,7 @@ def get_df_part_rw(file_path, sim_time, Vmax = 5, number_points = 100):
I = get_rw_hits(f, s, sim_time)
df_rw[s] = I
df_rw.insert (1, 'total', df_rw.iloc[:,1:].sum(axis = 1))
print("get_df_part_rw fertig")
return df_rw.melt(id_vars = 'E', var_name = 'species', value_name = 'I')
@@ -223,9 +238,13 @@ def get_df_part_e_vz(file_path, sim_time, num_vz, num_r, vzrange = [1e-5, 1e9]):
'djzabsdvz' : 0,
'djzdvz' : 0,
})
a['dndE'] = t['inv_v_sum']/As[t['r_bin']]/sim_time/(a['vzmax']-a['vzmin'])
#a['dndE'] = t['inv_v_sum']/As[t['r_bin']]/sim_time/(a['vzmax']-a['vzmin'])
a['dndE'] = t['inv_v_sum']/As[t['r_bin']]/sim_time
a['dndE'] = a['dndE'].replace(np.inf, 0)
a['djzabsdvz'] = t['N']/As[t['r_bin']]/sim_time/(a['vzmax']-a['vzmin'])
a['djzdvz'] = t['v_sign']/As[t['r_bin']]/sim_time/(a['vzmax']-a['vzmin'])
#a['djzabsdvz'] = t['N']/As[t['r_bin']]/sim_time/(a['vzmax']-a['vzmin'])
a['djzabsdvz'] = t['N']/As[t['r_bin']]/sim_time
#a['djzdvz'] = t['v_sign']/As[t['r_bin']]/sim_time/(a['vzmax']-a['vzmin'])
a['djzdvz'] = t['v_sign']/As[t['r_bin']]/sim_time
df = df.append(a) #append to final
print("get_df_part_vz fertig")
return df
@@ -51,7 +51,7 @@ def plot_part_e_dndE_z3(df_part_e, ax):
ax.set_ylabel (r'Diff. e$^-$ density dn/dE (m$^{-3}$ eV$^{-1}$)')
handles, labels = ax.get_legend_handles_labels()
ax.legend(handles=handles[1:], labels=labels[1:])
print("plot_part_e_dndE_z3 fertig")
def plot_part_e_dndE_zmid(df_part_e, ax):
df_plot = df_part_e[(df_part_e['z']== 5)]
@@ -61,7 +61,7 @@ def plot_part_e_dndE_zmid(df_part_e, ax):
ax.set_yscale('log')
ax.set_xlabel ('Electron energy (eV)')
ax.set_ylabel (r'Diff. e$^-$ density dn/dE (m$^{-3}$ eV$^{-1}$)')
print("plot_part_e_dndE_zmid fertig")
def plot_part_e_dndE_hm(df_part_e, fig, ax):
df_temp = df_part_e[['z','Emid', 'dndE']].groupby(['z', 'Emid'], as_index = False).mean()
@@ -93,7 +93,7 @@ def plot_part_e_dndE_hm(df_part_e, fig, ax):
ax.spines['bottom'].set_visible(False)
ax.spines['right'].set_visible(False)
ax.spines['left'].set_visible(False)
print("plot_part_e_dndE_hm fertig")
def plot_part_e_djzdE_z3(df_part_e, ax):
df_plot = df_part_e[(df_part_e['z']== -3) | (df_part_e['z']== 5) | (df_part_e['z']== 10)]
@@ -110,7 +110,7 @@ def plot_part_e_djzdE_z3(df_part_e, ax):
handles, labels = ax.get_legend_handles_labels()
ax.legend(handles=handles[1:], labels=labels[1:])
print("plot_part_e_dndE_z3 fertig")
def plot_part_n_z(df_part_all, ax):
sns.lineplot(ax = ax, x="z", y="n", style = 'species', hue = 'species', data=df_part_all, err_style=None)
@@ -122,7 +122,7 @@ def plot_part_n_z(df_part_all, ax):
handles, labels = ax.get_legend_handles_labels()
ax.legend(handles=handles[1:], labels=labels[1:])
print("plot_part_n_z fertig")
def plot_part_jz_z(df_part_all, ax):
sns.lineplot(ax = ax, x="z", y="jz", style = 'species', hue = 'species', data=df_part_all, err_style=None)
@@ -134,7 +134,7 @@ def plot_part_jz_z(df_part_all, ax):
handles, labels = ax.get_legend_handles_labels()
ax.legend(handles=handles[1:], labels=labels[1:])
print("plot_part_jz_z fertig")
def plot_part_iz_z(df_part_all, ax):
def get_charge(species):
@@ -156,7 +156,7 @@ def plot_part_iz_z(df_part_all, ax):
handles, labels = ax.get_legend_handles_labels()
ax.legend(handles=handles[1:], labels=labels[1:])
print("plot_part_iz_z fertig")
def plot_part_rw(df_part_rw, ax):
sns.lineplot(ax = ax, x="E", y="I", style = 'species', hue = 'species', data=df_part_rw, err_style=None)
@@ -168,7 +168,8 @@ def plot_part_rw(df_part_rw, ax):
handles, labels = ax.get_legend_handles_labels()
ax.legend(handles=handles[1:], labels=labels[1:])
print("plot_part_rw fertig")
def plot_part_rw_zoom(df_part_rw_zoom, ax):
sns.lineplot(ax = ax, x="E", y="I", style = 'species', hue = 'species', data=df_part_rw_zoom, err_style=None)
ax.set_xscale('linear')
@@ -179,3 +180,4 @@ def plot_part_rw_zoom(df_part_rw_zoom, ax):
handles, labels = ax.get_legend_handles_labels()
ax.legend(handles=handles[1:], labels=labels[1:])
print("plot_part_rw_zoom fertig")
@@ -6,7 +6,7 @@ def get_df_pop(file_path):
def append_V_m3 (df_meta):
A_m2 = np.pi*(df_meta.r_max_m**2-df_meta.r_min_m**2)*(df_meta.phi_max-df_meta.phi_min)/2/np.pi
V_m3 = A_m2*(df_meta.z_max_m-df_meta.z_min_m)
df_meta.insert(len(df_meta.columns),'V_m3',V_m3)
df_meta.insert(len(df_meta.columns),'V_m3',V_m3)
return df_meta
def get_V_m3(df_meta):
@@ -72,5 +72,5 @@ def get_df_pop(file_path):
'n': df_data['n_m3']
})
df = df.append(a) #append to final
return (df)
@@ -63,14 +63,15 @@ def plot_pop_n_z(df_pop, ax):
handles, labels = ax.get_legend_handles_labels()
ax.legend(handles=handles[1:], labels=labels[1:])
print("plot_pop_n_z")
def plot_pop_e_dndE_z3(df_pop, ax):
t_max = np.sort(df_pop.t.unique())[-1]
df_plot = df_pop[(df_pop.species == 'e-') & (df_pop.t == t_max)]
df_plot['zmid'] = (df_plot['zmin']+df_plot['zmax'])/2
df_plot['Emid'] = (df_plot['Emin']+df_plot['Emax'])/2
df_plot['dndE'] = df_plot['n']/(df_plot['Emax'] - df_plot['Emin'])
#df_plot['dndE'] = df_plot['n']/(df_plot['Emax'] - df_plot['Emin'])
df_plot['dndE'] = df_plot['n']
df_plot = df_plot.groupby(['zmid','Emid'], as_index = False).dndE.mean()
df_plot = df_plot[
(abs(df_plot['zmid'] - -2.675) < 1e-1) |
@@ -98,14 +99,15 @@ def plot_pop_e_dndE_z3(df_pop, ax):
ax.set_ylabel (r'Diff. e$^-$ density dn/dE (m$^{-3}$ eV$^{-1}$)')
handles, labels = ax.get_legend_handles_labels()
ax.legend(handles=handles[1:], labels=labels[1:])
print("plot_pop_e_dndE_z3 fertig")
def plot_pop_e_dndE_zmid(df_pop, ax):
t_max = np.sort(df_pop.t.unique())[-1]
df_plot = df_pop[(df_pop.species == 'e-') & (df_pop.t == t_max)]
df_plot['zmid'] = (df_plot['zmin']+df_plot['zmax'])/2
df_plot['Emid'] = (df_plot['Emin']+df_plot['Emax'])/2
df_plot['dndE'] = df_plot['n']/(df_plot['Emax'] - df_plot['Emin'])
#df_plot['dndE'] = df_plot['n']/(df_plot['Emax'] - df_plot['Emin'])
df_plot['dndE'] = df_plot['n']
df_plot = df_plot.groupby(['zmid','Emid'], as_index = False).dndE.mean()
df_plot = df_plot[abs(df_plot['zmid'] - 5.125) < 1e-1]
@@ -116,3 +118,4 @@ def plot_pop_e_dndE_zmid(df_pop, ax):
ax.set_xlabel ('Electron energy (eV)')
ax.set_ylabel (r'Diff. e$^-$ density dn/dE (m$^{-3}$ eV$^{-1}$)')
print("plot_pop_e_dndE_zmid fertig")
@@ -0,0 +1,23 @@
import sys
import os
import glob
import h5py
if (len(sys.argv) != 3):
print ('Error: Too many or too few number of arguments.')
sys.exit()
print( "This is the name of the script: ", sys.argv[0])
print( "Number of arguments: ", len(sys.argv))
print( "The arguments are: " , str(sys.argv))
inputpath = sys.argv[1]
sim_time = sys.argv[2]
print("inputpath = ", inputpath)
print("sim_time = ", sim_time)
import get_csv_part
get_csv_part_e(inputpath, sim_time)
@@ -0,0 +1,251 @@
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import scipy.optimize as optimization
import glob
import h5py
import os
import sys
def get_h5list(directory, extension='h5'):
liste = []
for f in os.listdir(directory):
if f.endswith('.' + extension):
liste.append(directory + '/' + f)
return liste
def get_csv_part_reco(inputpath, sim_time, num_E=100, num_r=1, Erange=[1e-5,2e4]):
outputpath = inputpath + '/csv'
try:
os.mkdir(outputpath)
except:
pass
# def some constants
me_eV = 511e3
mT_eV = 2.8094320212e9
c_ms = 3e8
rrange = [0, 0.045]
num_E = num_E
num_r = num_r
Erange=[1e-5,2e4]
# calc bin properties
Ebins = pow(10, np.linspace(np.log10(Erange[0]), np.log10(Erange[1]), (num_E+1)))
Emids = (Ebins[1:] + Ebins[:-1]/2)
Emids = pow(10, (np.log10(Ebins[1:]) + np.log10(Ebins[:-1]))/2)
rbins = np.linspace(0, 0.045, (num_r+1))
rmids = (rbins[1:] + rbins[:-1])/2
As = np.pi*rbins[1:]**2 - np.pi*rbins[:-1]**2
h5list = get_h5list(inputpath)
# open irgendeine h5 file
f = h5py.File(h5list[0], 'r')
g = f['Particles']['e-']
species = list(f['Particles'].keys())
zs = list(g.keys())
f.close()
zeros = np.zeros(num_E)
df = pd.DataFrame()
for s in species:
#print (s)
if(s=='T+'):
m = mT_eV
if(s=='T2+'):
m = 2*mT_eV
if(s=='T3+'):
m = 3*mT_eV
if(s=='T5+'):
m = 5*mT_eV
if(s=='e-'):
m = me_eV
for z in zs:
# calc properties and calculate categories
#print(z)
a = pd.DataFrame({
'species' : s,
'z' : float(z),
'Emin' : zeros,
'Emax' : 0,
'Emid' : 0,
'rmin' : 0,
'rmax' : 0,
'rmid' : 0,
'N' : 0,
'dndE' : 0,
'djzabsdE' : 0,
'djzdE' : 0,
'N+' : 0,
'N-' : 0,
'dj+dE' : 0,
'dj-dE' : 0
})
for h5 in h5list[:]:
#print(h5)
f = h5py.File(h5, 'r')
g = f['Particles'][s]
df_z = pd.DataFrame(g[z][:])
#print(df_z)
#print(df_z['Id'])
# calc properties and calc categories
df_z['E_eV'] = 0.5*m*(df_z.vx_ms**2 + df_z.vy_ms**2 + df_z.vz_ms**2)/c_ms**2
df_z['r_m'] = np.sqrt(df_z['x_m']**2 + df_z['y_m']**2)
df_z['inv_v_z'] = 1/df_z['vz_ms'].abs()
df_z['v_sign'] = np.sign(df_z['vz_ms'])
df_z['v_sign_+'] = df_z['v_sign'].apply(lambda x: 1 if x > 0 else 0)
df_z['v_sign_-'] = df_z['v_sign'].apply(lambda x: 1 if x < 0 else 0)
df_z['E_cut'] = pd.cut(df_z['E_eV'], bins=Ebins, labels = False)
df_z['r_cut'] = pd.cut(df_z['r_m'], bins=rbins, labels = False, include_lowest = True)
# apply categories and fill empty with 0
t = df_z.groupby([df_z['E_cut'], df_z['r_cut']])['inv_v_z'].agg([('N','size'), ('inv_v_sum','sum')])
t['v_sign'] = df_z.groupby([df_z['E_cut'], df_z['r_cut']])['v_sign'].sum()
t['N+'] = df_z.groupby([df_z['E_cut'], df_z['r_cut']])['v_sign_+'].sum()
t['N-'] = df_z.groupby([df_z['E_cut'], df_z['r_cut']])['v_sign_-'].sum()
t = t.reindex( pd.MultiIndex.from_product([np.arange(num_E),
np.arange(num_r)], names=['E_bin', 'r_bin']) ,fill_value=0)
t = t.reset_index()
t['z'] = float(z)
#print(Ebins[t['E_bin']])
# transform to df form
#a['Emin'] = Ebins[t['E_bin']]
#a['Emax'] = Ebins[t['E_bin']+1]
a['Emid'] = Emids[t['E_bin']]
a['rmin'] = rbins[t['r_bin']]
a['rmax'] = rbins[t['r_bin']+1]
a['rmid'] = rmids[t['r_bin']]
a['N'] += t['N']
a['dndE'] += t['inv_v_sum']/As[t['r_bin']]/sim_time
a['dndE'] = a['dndE'].replace(np.inf, 0)
a['djzabsdE'] += t['N']/As[t['r_bin']]/sim_time
a['djzdE'] += t['v_sign']/As[t['r_bin']]/sim_time
a['N+'] += t['N+']
a['N-'] += t['N-']
a['dj+dE'] += t['N+']/As[t['r_bin']]/sim_time
a['dj-dE'] += t['N-']/As[t['r_bin']]/sim_time
f.close()
#append to final
df = df.append(a)
df.to_csv(inputpath + "/csv/df_part_reco.csv")
print("saved to " + inputpath + "/csv/df_part_reco.csv")
#return df
def get_csv_pop_reco(inputpath):
outputpath = inputpath + '/csv'
try:
os.mkdir(outputpath)
except:
pass
def append_V_m3 (df_meta):
A_m2 = np.pi*(df_meta.r_max_m**2-df_meta.r_min_m**2)*(df_meta.phi_max-df_meta.phi_min)/2/np.pi
V_m3 = A_m2*(df_meta.z_max_m-df_meta.z_min_m)
df_meta.insert(len(df_meta.columns),'V_m3',V_m3)
return df_meta
def get_V_m3(df_meta):
r_bins = np.unique(df_meta.r_bin)
#print(r_bins)
V_m3 = np.zeros(r_bins.size)
for i in np.arange(r_bins.size):
V_m3[i] = np.mean (df_meta[df_meta.r_bin==r_bins[i]].V_m3)
return V_m3
def append_n_m3 (df, V_m3):
n_m3 = df.cum_time/df.phys_time_s/V_m3[df.r_bin]
df['n_m3'] = n_m3
df['n_m3'].fillna(0., inplace=True)
return df
def append_from_meta(df, df_meta):
df_length = df.shape[0]
bin_list = ['z_bin','r_bin','phi_bin','E_bin']
min_list = ['z_min_m', 'r_min_m', 'phi_min', 'E_min_eV']
max_list = ['z_max_m', 'r_max_m', 'phi_max', 'E_max_eV']
for i in range(len(bin_list)):
i_bin = bin_list[i]
i_min = min_list[i]
i_max = max_list[i]
info_df = df_meta.groupby(i_bin, as_index=False).mean()
mins = np.zeros(df_length)
maxs = np.zeros(df_length)
for row in range(0, info_df.shape[0]):
mins[df[i_bin] == info_df[i_bin][row]] = info_df[i_min][row]
maxs[df[i_bin] == info_df[i_bin][row]] = info_df[i_max][row]
df[i_min] = mins
df[i_max] = maxs
return df
h5list = get_h5list(inputpath)
f = h5py.File(h5list[0], 'r')
df = pd.DataFrame()
species = list(f['Populations'].keys())
for s in species:
try: # If has been merged
pop_key = list(f['Populations'][s].keys())[0]
df_data = pd.DataFrame(f['Populations'][s][pop_key][s][:])
df_meta = pd.DataFrame(f['Populations'][s][pop_key][s + '_meta_data'][:])
except: # If not merged
df_data = pd.DataFrame(f['Populations'][s][s][:])
df_meta = pd.DataFrame(f['Populations'][s][s + '_meta_data'][:])
df_meta = append_V_m3(df_meta)
V_m3 = get_V_m3(df_meta)
df_data = append_n_m3(df_data, V_m3)
df_data = append_from_meta(df_data, df_meta)
a = pd.DataFrame({
'species' : s,
't' : df_data['phys_time_s'],
'zmin' : df_data['z_min_m'],
'zmax' : df_data['z_max_m'],
'rmin' : df_data['r_min_m'],
'rmax' : df_data['r_max_m'],
'phimin' : df_data['phi_min'],
'phimax' : df_data['phi_max'],
'Emin' : df_data['E_min_eV'],
'Emax' : df_data['E_max_eV'],
'n': df_data['n_m3']
})
df = df.append(a) #append to final
df.to_csv(inputpath + "/csv/df_pop_reco.csv")
print("saved to " + inputpath + "/csv/df_pop_reco.csv")
#return df
inputpath = sys.argv[1]
sim_time = float(sys.argv[2])
get_csv_part_reco(inputpath, sim_time)
get_csv_pop_reco(inputpath)
+1
View File
@@ -4,6 +4,7 @@ import sys
import os
import glob
import h5py
base_dir = os.path.dirname(os.path.realpath(__file__)) + '/..'
Binary file not shown.
Binary file not shown.
1 ����Mac OS X ���� ���2��°�����â�����������������������������������ATTR;šÉÿ��â���ä�� ������������������ä���<��com.apple.quarantine��� ���H��com.apple.macl�F8��h���‰��%com.apple.metadata:kMDItemWhereFroms�0081;5db98beb;Cyberduck;5FF8AB16-753B-4DFF-B46D-57496EC07D7B�p†Úïˆ^G#·�¹„·Q������������������������������������������������������bplist00¡_Zsftp://kalinka4.ikp.kit.edu/kalinka/home/reiling/mcelectron-analysis/kalinka/export_df.csv
2 ����������������������������g��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������This resource fork intentionally left blank �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ÿÿ
File diff suppressed because one or more lines are too long
@@ -0,0 +1,15 @@
,species,z,rmin,rmax,rmid,N,n,jzabs,jz
0,e-,-1.0,0.0,0.045,0.0225,99985,26392481611.44686,1571664887411669.8,-1565377284721619.5
0,e-,-2.0,0.0,0.045,0.0225,99995,26397047310.47765,1571822077478921.0,-1570155862766057.8
0,e-,-3.0,0.0,0.045,0.0225,100000,26398910789.568596,1571900672512546.8,-1571900672512546.8
0,e-,0.0,0.0,0.045,0.0225,99989,26393880263.36666,1571727763438570.2,-1558115103614611.8
0,e-,1.0,0.0,0.045,0.0225,99988,26516963277.420944,1571712044431845.2,-1519587818131329.0
0,e-,10.0,0.0,0.045,0.0225,99918,25899032113.23956,1570611713961086.5,0.0
0,e-,2.0,0.0,0.045,0.0225,100114,26676161909.863304,1573692639279211.0,-1419803563440232.8
0,e-,3.0,0.0,0.045,0.0225,100039,24784061018.565693,1572513713774826.5,-1264358305935467.0
0,e-,4.0,0.0,0.045,0.0225,99931,25313564884.091675,1570816061048513.0,-1051837335011770.5
0,e-,5.0,0.0,0.045,0.0225,99993,27209450688.98409,1571790639465470.8,-779647014559498.0
0,e-,6.0,0.0,0.045,0.0225,100126,27415648873.754333,1573881267359912.5,-505146000118632.06
0,e-,7.0,0.0,0.045,0.0225,100078,27207950713.319912,1573126755037106.5,-292090582966281.44
0,e-,8.0,0.0,0.045,0.0225,99866,25972771094.585533,1569794325611380.0,-137415556791046.84
0,e-,9.0,0.0,0.045,0.0225,99892,25948051425.605534,1570203019786233.0,-39077450718661.91
1 species z rmin rmax rmid N n jzabs jz
2 0 e- -1.0 0.0 0.045 0.0225 99985 26392481611.44686 1571664887411669.8 -1565377284721619.5
3 0 e- -2.0 0.0 0.045 0.0225 99995 26397047310.47765 1571822077478921.0 -1570155862766057.8
4 0 e- -3.0 0.0 0.045 0.0225 100000 26398910789.568596 1571900672512546.8 -1571900672512546.8
5 0 e- 0.0 0.0 0.045 0.0225 99989 26393880263.36666 1571727763438570.2 -1558115103614611.8
6 0 e- 1.0 0.0 0.045 0.0225 99988 26516963277.420944 1571712044431845.2 -1519587818131329.0
7 0 e- 10.0 0.0 0.045 0.0225 99918 25899032113.23956 1570611713961086.5 0.0
8 0 e- 2.0 0.0 0.045 0.0225 100114 26676161909.863304 1573692639279211.0 -1419803563440232.8
9 0 e- 3.0 0.0 0.045 0.0225 100039 24784061018.565693 1572513713774826.5 -1264358305935467.0
10 0 e- 4.0 0.0 0.045 0.0225 99931 25313564884.091675 1570816061048513.0 -1051837335011770.5
11 0 e- 5.0 0.0 0.045 0.0225 99993 27209450688.98409 1571790639465470.8 -779647014559498.0
12 0 e- 6.0 0.0 0.045 0.0225 100126 27415648873.754333 1573881267359912.5 -505146000118632.06
13 0 e- 7.0 0.0 0.045 0.0225 100078 27207950713.319912 1573126755037106.5 -292090582966281.44
14 0 e- 8.0 0.0 0.045 0.0225 99866 25972771094.585533 1569794325611380.0 -137415556791046.84
15 0 e- 9.0 0.0 0.045 0.0225 99892 25948051425.605534 1570203019786233.0 -39077450718661.91
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,100 @@
-3.96 -1.62
-3.88 -2.22
-3.79 -2.13
-3.71 -2.04
-3.63 -1.95
-3.54 -1.86
-3.46 -1.77
-3.38 -1.69
-3.29 -1.61
-3.21 -1.53
-3.13 -1.46
-3.05 -1.39
-2.96 -1.33
-2.88 -1.27
-2.80 -1.22
-2.71 -1.18
-2.63 -1.15
-2.55 -1.13
-2.46 -1.13
-2.38 -1.15
-2.30 -1.19
-2.22 -1.26
-2.13 -1.36
-2.05 -1.49
-1.97 -1.66
-1.88 -1.88
-1.80 -2.15
-1.72 -2.50
-1.63 -2.88
-1.55 -3.24
-1.47 -3.42
-1.39 -3.45
-1.30 -3.49
-1.22 -3.48
-1.14 -3.49
-1.05 -3.50
-0.97 -3.50
-0.89 -3.52
-0.80 -3.53
-0.72 -3.55
-0.64 -3.61
-0.56 -3.69
-0.47 -3.79
-0.39 -3.89
-0.31 -4.00
-0.22 -4.12
-0.14 -4.21
-0.06 -4.30
0.03 -4.42
0.11 -4.55
0.19 -4.67
0.28 -4.82
0.36 -4.90
0.44 -4.98
0.52 -5.04
0.61 -5.06
0.69 -5.07
0.77 -5.09
0.86 -5.14
0.94 -5.32
1.02 -4.58
1.11 -6.06
1.19 -6.24
1.27 -6.55
1.35 -6.89
1.44 -7.10
1.52 -7.31
1.60 -7.27
1.69 -7.35
1.77 -7.47
1.85 -7.43
1.94 -7.62
2.02 -7.66
2.10 -7.66
2.18 -7.71
2.27 -7.67
2.35 -7.51
2.43 -7.75
2.52 -7.72
2.60 -7.66
2.68 -7.58
2.77 -7.42
2.85 -7.52
2.93 -7.38
3.01 -7.35
3.10 -7.18
3.18 -7.16
3.26 -7.18
3.35 -7.10
3.43 -6.92
3.51 -6.89
3.60 -6.90
3.68 -6.82
3.76 -6.74
3.84 -6.72
3.93 -6.91
4.01 -6.90
4.09 -7.11
4.18 -7.37
4.26 -22.88
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,131 @@
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
@@ -0,0 +1,754 @@
# Hydrogen -neutral atom
# ELECTRON DENSITY
# R RHO(R)
7.1799156E-06 3.1849005E-01
7.3616759E-06 3.1848996E-01
7.5480375E-06 3.1848985E-01
7.7391168E-06 3.1848975E-01
7.9350333E-06 3.1848963E-01
8.1359095E-06 3.1848952E-01
8.3418708E-06 3.1848939E-01
8.5530461E-06 3.1848926E-01
8.7695673E-06 3.1848913E-01
8.9915698E-06 3.1848898E-01
9.2191922E-06 3.1848883E-01
9.4525770E-06 3.1848868E-01
9.6918699E-06 3.1848851E-01
9.9372205E-06 3.1848834E-01
1.0188782E-05 3.1848816E-01
1.0446712E-05 3.1848798E-01
1.0711172E-05 3.1848778E-01
1.0982326E-05 3.1848757E-01
1.1260345E-05 3.1848736E-01
1.1545401E-05 3.1848714E-01
1.1837674E-05 3.1848690E-01
1.2137346E-05 3.1848666E-01
1.2444604E-05 3.1848640E-01
1.2759640E-05 3.1848613E-01
1.3082651E-05 3.1848585E-01
1.3413840E-05 3.1848556E-01
1.3753412E-05 3.1848526E-01
1.4101581E-05 3.1848494E-01
1.4458564E-05 3.1848461E-01
1.4824584E-05 3.1848427E-01
1.5199869E-05 3.1848391E-01
1.5584655E-05 3.1848354E-01
1.5979182E-05 3.1848316E-01
1.6383696E-05 3.1848275E-01
1.6798451E-05 3.1848234E-01
1.7223705E-05 3.1848191E-01
1.7659724E-05 3.1848146E-01
1.8106781E-05 3.1848100E-01
1.8565156E-05 3.1848052E-01
1.9035134E-05 3.1848002E-01
1.9517010E-05 3.1847951E-01
2.0011084E-05 3.1847898E-01
2.0517666E-05 3.1847844E-01
2.1037073E-05 3.1847788E-01
2.1569627E-05 3.1847730E-01
2.2115664E-05 3.1847671E-01
2.2675523E-05 3.1847610E-01
2.3249556E-05 3.1847548E-01
2.3838120E-05 3.1847484E-01
2.4441583E-05 3.1847419E-01
2.5060323E-05 3.1847351E-01
2.5694726E-05 3.1847283E-01
2.6345190E-05 3.1847213E-01
2.7012120E-05 3.1847141E-01
2.7695933E-05 3.1847068E-01
2.8397057E-05 3.1846993E-01
2.9115930E-05 3.1846916E-01
2.9853001E-05 3.1846838E-01
3.0608731E-05 3.1846758E-01
3.1383592E-05 3.1846677E-01
3.2178069E-05 3.1846594E-01
3.2992658E-05 3.1846509E-01
3.3827868E-05 3.1846423E-01
3.4684222E-05 3.1846335E-01
3.5562254E-05 3.1846245E-01
3.6462513E-05 3.1846154E-01
3.7385563E-05 3.1846060E-01
3.8331979E-05 3.1845965E-01
3.9302354E-05 3.1845868E-01
4.0297294E-05 3.1845770E-01
4.1317420E-05 3.1845669E-01
4.2363371E-05 3.1845566E-01
4.3435801E-05 3.1845462E-01
4.4535378E-05 3.1845356E-01
4.5662792E-05 3.1845247E-01
4.6818745E-05 3.1845137E-01
4.8003962E-05 3.1845024E-01
4.9219182E-05 3.1844910E-01
5.0465165E-05 3.1844793E-01
5.1742690E-05 3.1844674E-01
5.3052556E-05 3.1844553E-01
5.4395580E-05 3.1844429E-01
5.5772603E-05 3.1844304E-01
5.7184485E-05 3.1844175E-01
5.8632109E-05 3.1844045E-01
6.0116379E-05 3.1843912E-01
6.1638223E-05 3.1843776E-01
6.3198592E-05 3.1843638E-01
6.4798462E-05 3.1843497E-01
6.6438832E-05 3.1843354E-01
6.8120727E-05 3.1843207E-01
6.9845200E-05 3.1843058E-01
7.1613327E-05 3.1842906E-01
7.3426213E-05 3.1842751E-01
7.5284993E-05 3.1842593E-01
7.7190827E-05 3.1842432E-01
7.9144906E-05 3.1842268E-01
8.1148453E-05 3.1842100E-01
8.3202719E-05 3.1841930E-01
8.5308988E-05 3.1841756E-01
8.7468576E-05 3.1841578E-01
8.9682834E-05 3.1841397E-01
9.1953145E-05 3.1841212E-01
9.4280928E-05 3.1841023E-01
9.6667638E-05 3.1840831E-01
9.9114766E-05 3.1840634E-01
1.0162384E-04 3.1840434E-01
1.0419644E-04 3.1840230E-01
1.0683415E-04 3.1840021E-01
1.0953864E-04 3.1839808E-01
1.1231160E-04 3.1839591E-01
1.1515474E-04 3.1839369E-01
1.1806987E-04 3.1839142E-01
1.2105878E-04 3.1838911E-01
1.2412336E-04 3.1838675E-01
1.2726552E-04 3.1838434E-01
1.3048722E-04 3.1838188E-01
1.3379048E-04 3.1837936E-01
1.3717735E-04 3.1837680E-01
1.4064996E-04 3.1837417E-01
1.4421048E-04 3.1837149E-01
1.4786114E-04 3.1836876E-01
1.5160420E-04 3.1836596E-01
1.5544202E-04 3.1836310E-01
1.5937699E-04 3.1836018E-01
1.6341157E-04 3.1835720E-01
1.6754829E-04 3.1835415E-01
1.7178972E-04 3.1835104E-01
1.7613852E-04 3.1834785E-01
1.8059741E-04 3.1834460E-01
1.8516917E-04 3.1834128E-01
1.8985666E-04 3.1833788E-01
1.9466281E-04 3.1833440E-01
1.9959062E-04 3.1833085E-01
2.0464318E-04 3.1832721E-01
2.0982364E-04 3.1832350E-01
2.1513524E-04 3.1831970E-01
2.2058129E-04 3.1831582E-01
2.2616521E-04 3.1831184E-01
2.3189047E-04 3.1830778E-01
2.3776067E-04 3.1830363E-01
2.4377946E-04 3.1829938E-01
2.4995061E-04 3.1829503E-01
2.5627798E-04 3.1829059E-01
2.6276552E-04 3.1828604E-01
2.6941728E-04 3.1828139E-01
2.7623742E-04 3.1827663E-01
2.8323021E-04 3.1827176E-01
2.9040001E-04 3.1826677E-01
2.9775130E-04 3.1826168E-01
3.0528868E-04 3.1825646E-01
3.1301686E-04 3.1825112E-01
3.2094066E-04 3.1824566E-01
3.2906505E-04 3.1824007E-01
3.3739509E-04 3.1823435E-01
3.4593599E-04 3.1822849E-01
3.5469309E-04 3.1822250E-01
3.6367186E-04 3.1821636E-01
3.7287791E-04 3.1821009E-01
3.8231700E-04 3.1820366E-01
3.9199502E-04 3.1819708E-01
4.0191803E-04 3.1819034E-01
4.1209221E-04 3.1818345E-01
4.2252393E-04 3.1817639E-01
4.3321971E-04 3.1816916E-01
4.4418624E-04 3.1816177E-01
4.5543035E-04 3.1815419E-01
4.6695909E-04 3.1814643E-01
4.7877965E-04 3.1813849E-01
4.9089942E-04 3.1813036E-01
5.0332597E-04 3.1812203E-01
5.1606707E-04 3.1811350E-01
5.2913068E-04 3.1810477E-01
5.4252496E-04 3.1809583E-01
5.5625828E-04 3.1808667E-01
5.7033922E-04 3.1807729E-01
5.8477658E-04 3.1806769E-01
5.9957939E-04 3.1805785E-01
6.1475688E-04 3.1804777E-01
6.3031854E-04 3.1803745E-01
6.4627410E-04 3.1802688E-01
6.6263352E-04 3.1801606E-01
6.7940703E-04 3.1800497E-01
6.9660510E-04 3.1799361E-01
7.1423849E-04 3.1798197E-01
7.3231820E-04 3.1797005E-01
7.5085553E-04 3.1795784E-01
7.6986206E-04 3.1794534E-01
7.8934967E-04 3.1793252E-01
8.0933054E-04 3.1791940E-01
8.2981714E-04 3.1790595E-01
8.5082227E-04 3.1789217E-01
8.7235906E-04 3.1787806E-01
8.9444096E-04 3.1786360E-01
9.1708177E-04 3.1784878E-01
9.4029562E-04 3.1783360E-01
9.6409702E-04 3.1781805E-01
9.8850084E-04 3.1780212E-01
1.0135223E-03 3.1778580E-01
1.0391771E-03 3.1776907E-01
1.0654812E-03 3.1775193E-01
1.0924510E-03 3.1773437E-01
1.1201035E-03 3.1771638E-01
1.1484558E-03 3.1769794E-01
1.1775256E-03 3.1767905E-01
1.2073312E-03 3.1765969E-01
1.2378912E-03 3.1763985E-01
1.2692246E-03 3.1761952E-01
1.3013510E-03 3.1759870E-01
1.3342904E-03 3.1757735E-01
1.3680635E-03 3.1755548E-01
1.4026914E-03 3.1753307E-01
1.4381956E-03 3.1751010E-01
1.4745983E-03 3.1748656E-01
1.5119223E-03 3.1746244E-01
1.5501908E-03 3.1743772E-01
1.5894279E-03 3.1741239E-01
1.6296579E-03 3.1738643E-01
1.6709060E-03 3.1735983E-01
1.7131979E-03 3.1733256E-01
1.7565601E-03 3.1730462E-01
1.8010196E-03 3.1727599E-01
1.8466042E-03 3.1724664E-01
1.8933424E-03 3.1721657E-01
1.9412633E-03 3.1718574E-01
1.9903968E-03 3.1715415E-01
2.0407737E-03 3.1712178E-01
2.0924253E-03 3.1708860E-01
2.1453839E-03 3.1705459E-01
2.1996826E-03 3.1701974E-01
2.2553553E-03 3.1698403E-01
2.3124367E-03 3.1694742E-01
2.3709625E-03 3.1690990E-01
2.4309691E-03 3.1687145E-01
2.4924940E-03 3.1683204E-01
2.5555757E-03 3.1679165E-01
2.6202534E-03 3.1675025E-01
2.6865676E-03 3.1670782E-01
2.7545597E-03 3.1666434E-01
2.8242720E-03 3.1661977E-01
2.8957481E-03 3.1657409E-01
2.9690326E-03 3.1652727E-01
3.0441711E-03 3.1647929E-01
3.1212106E-03 3.1643011E-01
3.2001992E-03 3.1637970E-01
3.2811860E-03 3.1632804E-01
3.3642217E-03 3.1627509E-01
3.4493580E-03 3.1622082E-01
3.5366481E-03 3.1616520E-01
3.6261463E-03 3.1610819E-01
3.7179085E-03 3.1604976E-01
3.8119919E-03 3.1598988E-01
3.9084553E-03 3.1592850E-01
4.0073586E-03 3.1586560E-01
4.1087637E-03 3.1580112E-01
4.2127338E-03 3.1573504E-01
4.3193336E-03 3.1566731E-01
4.4286297E-03 3.1559790E-01
4.5406901E-03 3.1552676E-01
4.6555847E-03 3.1545384E-01
4.7733851E-03 3.1537911E-01
4.8941649E-03 3.1530252E-01
5.0179991E-03 3.1522402E-01
5.1449650E-03 3.1514356E-01
5.2751418E-03 3.1506110E-01
5.4086104E-03 3.1497659E-01
5.5454542E-03 3.1488998E-01
5.6857582E-03 3.1480122E-01
5.8296100E-03 3.1471024E-01
5.9770991E-03 3.1461700E-01
6.1283175E-03 3.1452145E-01
6.2833591E-03 3.1442352E-01
6.4423207E-03 3.1432315E-01
6.6053012E-03 3.1422029E-01
6.7724020E-03 3.1411488E-01
6.9437272E-03 3.1400685E-01
7.1193835E-03 3.1389614E-01
7.2994800E-03 3.1378268E-01
7.4841291E-03 3.1366640E-01
7.6734454E-03 3.1354724E-01
7.8675469E-03 3.1342513E-01
8.0665543E-03 3.1329999E-01
8.2705913E-03 3.1317175E-01
8.4797849E-03 3.1304033E-01
8.6942652E-03 3.1290567E-01
8.9141656E-03 3.1276766E-01
9.1396227E-03 3.1262625E-01
9.3707767E-03 3.1248134E-01
9.6077714E-03 3.1233284E-01
9.8507539E-03 3.1218068E-01
1.0099875E-02 3.1202476E-01
1.0355290E-02 3.1186500E-01
1.0617158E-02 3.1170129E-01
1.0885640E-02 3.1153355E-01
1.1160904E-02 3.1136168E-01
1.1443121E-02 3.1118557E-01
1.1732465E-02 3.1100513E-01
1.2029117E-02 3.1082025E-01
1.2333261E-02 3.1063083E-01
1.2645084E-02 3.1043675E-01
1.2964782E-02 3.1023791E-01
1.3292551E-02 3.1003419E-01
1.3628596E-02 3.0982548E-01
1.3973124E-02 3.0961165E-01
1.4326349E-02 3.0939259E-01
1.4688490E-02 3.0916818E-01
1.5059772E-02 3.0893827E-01
1.5440424E-02 3.0870276E-01
1.5830683E-02 3.0846149E-01
1.6230789E-02 3.0821435E-01
1.6640991E-02 3.0796118E-01
1.7061542E-02 3.0770186E-01
1.7492703E-02 3.0743622E-01
1.7934740E-02 3.0716414E-01
1.8387926E-02 3.0688545E-01
1.8852543E-02 3.0660001E-01
1.9328877E-02 3.0630765E-01
1.9817222E-02 3.0600822E-01
2.0317880E-02 3.0570156E-01
2.0831160E-02 3.0538750E-01
2.1357380E-02 3.0506586E-01
2.1896863E-02 3.0473647E-01
2.2449943E-02 3.0439917E-01
2.3016961E-02 3.0405376E-01
2.3598266E-02 3.0370007E-01
2.4194217E-02 3.0333790E-01
2.4805181E-02 3.0296707E-01
2.5431534E-02 3.0258737E-01
2.6073662E-02 3.0219862E-01
2.6731960E-02 3.0180061E-01
2.7406834E-02 3.0139313E-01
2.8098697E-02 3.0097597E-01
2.8807975E-02 3.0054893E-01
2.9535105E-02 3.0011177E-01
3.0280532E-02 2.9966428E-01
3.1044715E-02 2.9920624E-01
3.1828122E-02 2.9873741E-01
3.2631234E-02 2.9825756E-01
3.3454544E-02 2.9776645E-01
3.4298555E-02 2.9726384E-01
3.5163784E-02 2.9674949E-01
3.6050762E-02 2.9622315E-01
3.6960030E-02 2.9568455E-01
3.7892146E-02 2.9513345E-01
3.8847678E-02 2.9456958E-01
3.9827210E-02 2.9399267E-01
4.0831340E-02 2.9340246E-01
4.1860682E-02 2.9279867E-01
4.2915861E-02 2.9218102E-01
4.3997522E-02 2.9154924E-01
4.5106323E-02 2.9090303E-01
4.6242939E-02 2.9024211E-01
4.7408060E-02 2.8956618E-01
4.8602396E-02 2.8887494E-01
4.9826671E-02 2.8816810E-01
5.1081628E-02 2.8744535E-01
5.2368029E-02 2.8670638E-01
5.3686652E-02 2.8595088E-01
5.5038296E-02 2.8517854E-01
5.6423779E-02 2.8438904E-01
5.7843939E-02 2.8358205E-01
5.9299632E-02 2.8275726E-01
6.0791738E-02 2.8191434E-01
6.2321156E-02 2.8105296E-01
6.3888807E-02 2.8017278E-01
6.5495635E-02 2.7927348E-01
6.7142606E-02 2.7835471E-01
6.8830709E-02 2.7741615E-01
7.0560957E-02 2.7645744E-01
7.2334387E-02 2.7547826E-01
7.4152061E-02 2.7447825E-01
7.6015066E-02 2.7345709E-01
7.7924516E-02 2.7241441E-01
7.9881550E-02 2.7134989E-01
8.1887334E-02 2.7026318E-01
8.3943064E-02 2.6915393E-01
8.6049961E-02 2.6802180E-01
8.8209277E-02 2.6686645E-01
9.0422293E-02 2.6568755E-01
9.2690319E-02 2.6448476E-01
9.5014698E-02 2.6325774E-01
9.7396803E-02 2.6200617E-01
9.9838039E-02 2.6072970E-01
1.0233984E-01 2.5942803E-01
1.0490369E-01 2.5810083E-01
1.0753108E-01 2.5674778E-01
1.1022356E-01 2.5536858E-01
1.1298271E-01 2.5396293E-01
1.1581013E-01 2.5253053E-01
1.1870748E-01 2.5107109E-01
1.2167644E-01 2.4958434E-01
1.2471875E-01 2.4807000E-01
1.2783616E-01 2.4652782E-01
1.3103049E-01 2.4495754E-01
1.3430357E-01 2.4335892E-01
1.3765731E-01 2.4173174E-01
1.4109363E-01 2.4007579E-01
1.4461450E-01 2.3839086E-01
1.4822196E-01 2.3667677E-01
1.5191805E-01 2.3493335E-01
1.5570490E-01 2.3316045E-01
1.5958467E-01 2.3135794E-01
1.6355954E-01 2.2952569E-01
1.6763180E-01 2.2766361E-01
1.7180373E-01 2.2577162E-01
1.7607769E-01 2.2384968E-01
1.8045609E-01 2.2189774E-01
1.8494138E-01 2.1991580E-01
1.8953609E-01 2.1790387E-01
1.9424277E-01 2.1586200E-01
1.9906406E-01 2.1379026E-01
2.0400261E-01 2.1168875E-01
2.0906118E-01 2.0955759E-01
2.1424256E-01 2.0739694E-01
2.1954959E-01 2.0520699E-01
2.2498518E-01 2.0298796E-01
2.3055232E-01 2.0074011E-01
2.3625404E-01 1.9846373E-01
2.4209343E-01 1.9615915E-01
2.4807366E-01 1.9382672E-01
2.5419794E-01 1.9146685E-01
2.6046959E-01 1.8907998E-01
2.6689194E-01 1.8666659E-01
2.7346844E-01 1.8422720E-01
2.8020257E-01 1.8176238E-01
2.8709790E-01 1.7927273E-01
2.9415807E-01 1.7675890E-01
3.0138677E-01 1.7422158E-01
3.0878779E-01 1.7166152E-01
3.1636499E-01 1.6907949E-01
3.2412228E-01 1.6647632E-01
3.3206366E-01 1.6385289E-01
3.4019322E-01 1.6121012E-01
3.4851510E-01 1.5854898E-01
3.5703353E-01 1.5587048E-01
3.6575283E-01 1.5317568E-01
3.7467738E-01 1.5046570E-01
3.8381164E-01 1.4774168E-01
3.9316016E-01 1.4500483E-01
4.0272756E-01 1.4225638E-01
4.1251856E-01 1.3949763E-01
4.2253795E-01 1.3672992E-01
4.3279060E-01 1.3395461E-01
4.4328146E-01 1.3117313E-01
4.5401558E-01 1.2838692E-01
4.6499807E-01 1.2559749E-01
4.7623415E-01 1.2280636E-01
4.8772911E-01 1.2001511E-01
4.9948833E-01 1.1722532E-01
5.1151727E-01 1.1443864E-01
5.2382147E-01 1.1165671E-01
5.3640657E-01 1.0888123E-01
5.4927830E-01 1.0611389E-01
5.6244245E-01 1.0335642E-01
5.7590492E-01 1.0061055E-01
5.8967167E-01 9.7878058E-02
6.0374878E-01 9.5160689E-02
6.1814239E-01 9.2460217E-02
6.3285871E-01 8.9778413E-02
6.4790408E-01 8.7117046E-02
6.6328488E-01 8.4477880E-02
6.7900759E-01 8.1862667E-02
6.9507878E-01 7.9273146E-02
7.1150508E-01 7.6711036E-02
7.2829322E-01 7.4178033E-02
7.4545000E-01 7.1675806E-02
7.6298230E-01 6.9205990E-02
7.8089708E-01 6.6770184E-02
7.9920136E-01 6.4369945E-02
8.1790226E-01 6.2006785E-02
8.3700695E-01 5.9682163E-02
8.5652268E-01 5.7397486E-02
8.7645678E-01 5.5154100E-02
8.9681662E-01 5.2953289E-02
9.1760967E-01 5.0796267E-02
9.3884343E-01 4.8684180E-02
9.6052549E-01 4.6618096E-02
9.8266348E-01 4.4599007E-02
1.0052651E+00 4.2627823E-02
1.0283381E+00 4.0705368E-02
1.0518902E+00 3.8832381E-02
1.0759294E+00 3.7009511E-02
1.1004635E+00 3.5237313E-02
1.1255004E+00 3.3516254E-02
1.1510482E+00 3.1846701E-02
1.1771147E+00 3.0228931E-02
1.2037082E+00 2.8663121E-02
1.2308366E+00 2.7149355E-02
1.2585081E+00 2.5687620E-02
1.2867308E+00 2.4277808E-02
1.3155127E+00 2.2919716E-02
1.3448622E+00 2.1613052E-02
1.3747873E+00 2.0357431E-02
1.4052963E+00 1.9152379E-02
1.4363972E+00 1.7997338E-02
1.4680984E+00 1.6891667E-02
1.5004079E+00 1.5834645E-02
1.5333339E+00 1.4825476E-02
1.5668846E+00 1.3863292E-02
1.6010681E+00 1.2947158E-02
1.6358925E+00 1.2076077E-02
1.6713659E+00 1.1248991E-02
1.7074963E+00 1.0464792E-02
1.7442918E+00 9.7223218E-03
1.7817602E+00 9.0203796E-03
1.8199096E+00 8.3577273E-03
1.8587478E+00 7.7330944E-03
1.8982825E+00 7.1451834E-03
1.9385216E+00 6.5926748E-03
1.9794727E+00 6.0742334E-03
2.0211435E+00 5.5885126E-03
2.0635414E+00 5.1341597E-03
2.1066740E+00 4.7098214E-03
2.1505485E+00 4.3141478E-03
2.1951723E+00 3.9457975E-03
2.2405526E+00 3.6034419E-03
2.2866964E+00 3.2857693E-03
2.3336107E+00 2.9914886E-03
2.3813024E+00 2.7193332E-03
2.4297782E+00 2.4680639E-03
2.4790448E+00 2.2364723E-03
2.5291086E+00 2.0233832E-03
2.5799762E+00 1.8276569E-03
2.6316537E+00 1.6481917E-03
2.6841472E+00 1.4839250E-03
2.7374628E+00 1.3338352E-03
2.7916063E+00 1.1969425E-03
2.8465834E+00 1.0723100E-03
2.9023996E+00 9.5904407E-04
2.9590603E+00 8.5629463E-04
3.0165708E+00 7.6325518E-04
3.0749362E+00 6.7916263E-04
3.1341614E+00 6.0329678E-04
3.1942511E+00 5.3497969E-04
3.2552100E+00 4.7357489E-04
3.3170424E+00 4.1848633E-04
3.3797526E+00 3.6915728E-04
3.4433448E+00 3.2506903E-04
3.5078227E+00 2.8573955E-04
3.5731901E+00 2.5072204E-04
3.6394506E+00 2.1960335E-04
3.7066075E+00 1.9200245E-04
3.7746640E+00 1.6756881E-04
3.8436232E+00 1.4598075E-04
3.9134878E+00 1.2694382E-04
3.9842605E+00 1.1018913E-04
4.0559438E+00 9.5471785E-05
4.1285399E+00 8.2569277E-05
4.2020508E+00 7.1279928E-05
4.2764786E+00 6.1421396E-05
4.3518250E+00 5.2829231E-05
4.4280914E+00 4.5355476E-05
4.5052792E+00 3.8867341E-05
4.5833896E+00 3.3245936E-05
4.6624237E+00 2.8385077E-05
4.7423821E+00 2.4190155E-05
4.8232657E+00 2.0577079E-05
4.9050747E+00 1.7471288E-05
4.9878095E+00 1.4806826E-05
5.0714702E+00 1.2525492E-05
5.1560568E+00 1.0576049E-05
5.2415690E+00 8.9134970E-06
5.3280064E+00 7.4984095E-06
5.4153685E+00 6.2963235E-06
5.5036545E+00 5.2771860E-06
5.5928636E+00 4.4148508E-06
5.6829947E+00 3.6866238E-06
5.7740465E+00 3.0728532E-06
5.8660178E+00 2.5565612E-06
5.9589070E+00 2.1231138E-06
6.0527126E+00 1.7599262E-06
6.1474326E+00 1.4562011E-06
6.2430652E+00 1.2026952E-06
6.3396082E+00 9.9151437E-07
6.4370595E+00 8.1593118E-07
6.5354167E+00 6.7022585E-07
6.6346774E+00 5.4954606E-07
6.7348389E+00 4.4978458E-07
6.8358986E+00 3.6747256E-07
6.9378535E+00 2.9968682E-07
7.0407008E+00 2.4396937E-07
7.1444373E+00 1.9825793E-07
7.2490599E+00 1.6082597E-07
7.3545653E+00 1.3023119E-07
7.4609502E+00 1.0527130E-07
7.5682109E+00 8.4946242E-08
7.6763440E+00 6.8425919E-08
7.7853457E+00 5.5022788E-08
7.8952124E+00 4.4168567E-08
8.0059401E+00 3.5394527E-08
8.1175249E+00 2.8314862E-08
8.2299629E+00 2.2612667E-08
8.3432498E+00 1.8028171E-08
8.4573816E+00 1.4348871E-08
8.5723541E+00 1.1401280E-08
8.6881628E+00 9.0440528E-09
8.8048036E+00 7.1622575E-09
8.9222718E+00 5.6626273E-09
9.0405632E+00 4.4696253E-09
9.1596730E+00 3.5221942E-09
9.2795968E+00 2.7710764E-09
9.4003300E+00 2.1766107E-09
9.5218677E+00 1.7069237E-09
9.6442053E+00 1.3364499E-09
9.7673381E+00 1.0447217E-09
9.8912612E+00 8.1538383E-10
1.0015970E+01 6.3539133E-10
1.0141459E+01 4.9435899E-10
1.0267724E+01 3.8403412E-10
1.0394760E+01 2.9787063E-10
1.0522561E+01 2.3068553E-10
1.0651124E+01 1.7838246E-10
1.0780442E+01 1.3772964E-10
1.0910511E+01 1.0618190E-10
1.1041326E+01 8.1738337E-11
1.1172882E+01 6.2828640E-11
1.1305173E+01 4.8222587E-11
1.1438195E+01 3.6958022E-11
1.1571943E+01 2.8283733E-11
1.1706411E+01 2.1614189E-11
1.1841595E+01 1.6493765E-11
1.1977489E+01 1.2568507E-11
1.2114088E+01 9.5639005E-12
1.2251387E+01 7.2673875E-12
1.2389381E+01 5.5146493E-12
1.2528065E+01 4.1788638E-12
1.2667434E+01 3.1623046E-12
1.2807482E+01 2.3897844E-12
1.2948206E+01 1.8035481E-12
1.3089599E+01 1.3592993E-12
1.3231656E+01 1.0231167E-12
1.3374373E+01 7.6906383E-13
1.3517745E+01 5.7733924E-13
1.3661766E+01 4.3284818E-13
1.3806432E+01 3.2410093E-13
1.3951737E+01 2.4236475E-13
1.4097677E+01 1.8101202E-13
1.4244247E+01 1.3502012E-13
1.4391441E+01 1.0058817E-13
1.4539255E+01 7.4843994E-14
1.4687684E+01 5.5620241E-14
1.4836724E+01 4.1283724E-14
1.4986368E+01 3.0605477E-14
1.5136613E+01 2.2661983E-14
1.5287453E+01 1.6760203E-14
1.5438885E+01 1.2380764E-14
1.5590902E+01 9.1349561E-15
1.5743501E+01 6.7322537E-15
1.5896677E+01 4.9557973E-15
1.6050425E+01 3.6439273E-15
1.6204740E+01 2.6762889E-15
1.6359618E+01 1.9633938E-15
1.6515054E+01 1.4387884E-15
1.6671044E+01 1.0531870E-15
1.6827584E+01 7.7008213E-16
1.6984668E+01 5.6246496E-16
1.7142292E+01 4.1037855E-16
1.7300452E+01 2.9909451E-16
1.7459143E+01 2.1775626E-16
1.7618362E+01 1.5837079E-16
1.7778103E+01 1.1506030E-16
1.7938362E+01 8.3507533E-17
1.8099136E+01 6.0545135E-17
1.8260419E+01 4.3852058E-17
1.8422209E+01 3.1729374E-17
1.8584499E+01 2.2934931E-17
1.8747287E+01 1.6561567E-17
1.8910568E+01 1.1947499E-17
1.9074339E+01 8.6104875E-18
1.9238594E+01 6.1995070E-18
1.9403331E+01 4.4593211E-18
1.9568544E+01 3.2045420E-18
1.9734231E+01 2.3006591E-18
1.9900386E+01 1.6501790E-18
2.0067007E+01 1.1825124E-18
2.0234090E+01 8.4660252E-19
2.0401630E+01 6.0555831E-19
2.0569624E+01 4.3275114E-19
2.0738068E+01 3.0897944E-19
2.0906958E+01 2.2041102E-19
2.1076291E+01 1.5709147E-19
2.1246062E+01 1.1186408E-19
2.1416269E+01 7.9588556E-20
2.1586908E+01 5.6576443E-20
2.1757975E+01 4.0183597E-20
2.1929466E+01 2.8516302E-20
2.2101378E+01 2.0219569E-20
2.2273708E+01 1.4324777E-20
2.2446452E+01 1.0140145E-20
2.2619607E+01 7.1720567E-21
2.2793169E+01 5.0686170E-21
2.2967135E+01 3.5791868E-21
2.3141502E+01 2.5254064E-21
2.3316266E+01 1.7804635E-21
2.3491424E+01 1.2542745E-21
2.3666973E+01 8.8290223E-22
2.3842909E+01 6.2100624E-22
2.4019230E+01 4.3646094E-22
2.4195932E+01 3.0652339E-22
2.4373013E+01 2.1510642E-22
2.4550468E+01 1.5084027E-22
2.4728296E+01 1.0569589E-22
2.4906493E+01 7.4007957E-23
2.5085055E+01 5.1782238E-23
2.5263981E+01 3.6204946E-23
2.5443267E+01 2.5295440E-23
2.5622909E+01 1.7660636E-23
2.5802906E+01 1.2321477E-23
2.5983255E+01 8.5904112E-24
2.6163952E+01 5.9849757E-24
2.6344995E+01 4.1668755E-24
2.6526381E+01 2.8990838E-24
2.6708107E+01 2.0156518E-24
2.6890170E+01 1.4004807E-24
2.7072568E+01 9.7240677E-25
2.7255298E+01 6.7473054E-25
2.7438358E+01 4.6787154E-25
2.7621745E+01 3.2421942E-25
2.7805455E+01 2.2452765E-25
2.7989488E+01 1.5538936E-25
2.8173839E+01 1.0747206E-25
2.8358507E+01 7.4283939E-26
2.8543489E+01 5.1312304E-26
2.8728783E+01 3.5422361E-26
2.8914385E+01 2.4437963E-26
2.9100295E+01 1.6849466E-26
2.9286508E+01 1.1610288E-26
2.9473024E+01 7.9953534E-27
2.9659839E+01 5.5026537E-27
2.9846951E+01 3.7848492E-27
3.0034358E+01 2.6017699E-27
3.0222057E+01 1.7874549E-27
3.0410047E+01 1.2272956E-27
3.0598325E+01 8.4219577E-28
3.0786889E+01 5.7760203E-28
3.0975736E+01 3.9591144E-28
3.1164865E+01 2.7122079E-28
3.1354272E+01 1.8569720E-28
3.1543957E+01 1.2707118E-28
3.1733917E+01 8.6906036E-29
3.1924150E+01 5.9404018E-29
3.2114654E+01 4.0583221E-29
3.2305426E+01 2.7710464E-29
3.2496465E+01 1.8910782E-29
3.2687768E+01 1.2898656E-29
3.2879335E+01 8.7935565E-30
3.3071161E+01 5.9902219E-30
3.3263247E+01 4.0837276E-30
3.3455589E+01 2.7761104E-30
3.3648186E+01 1.8544715E-30
3.3841036E+01 1.4787908E-30
@@ -0,0 +1,128 @@
# HIGH-ENERGY SCREENING FUNCTION (Q**2,F)
# IZ= 1, NUMBER OF ELECTRONS = 1, z_001.den
# ELECTRONS: E = 1.0000000E+06 eV
0.0000000E+00 4.9998193E-01
4.4296032E-07 4.9998207E-01
6.9212551E-07 4.9998214E-01
9.9666072E-07 4.9998224E-01
1.3565660E-06 4.9998235E-01
1.7718413E-06 4.9998248E-01
2.2424866E-06 4.9998262E-01
2.7685020E-06 4.9998279E-01
3.3498874E-06 4.9998297E-01
3.9866429E-06 4.9998316E-01
4.6787684E-06 4.9998338E-01
5.4262639E-06 4.9998361E-01
6.2291295E-06 4.9998386E-01
7.0873652E-06 4.9998413E-01
8.0009708E-06 4.9998441E-01
8.9699465E-06 4.9998471E-01
9.9942923E-06 4.9998503E-01
1.1074008E-05 4.9998537E-01
1.2209094E-05 4.9998572E-01
1.3399550E-05 4.9998609E-01
1.4645376E-05 4.9998648E-01
1.5946572E-05 4.9998689E-01
1.7303138E-05 4.9998731E-01
1.8715074E-05 4.9998775E-01
2.0182380E-05 4.9998821E-01
2.1705056E-05 4.9998868E-01
2.3283102E-05 4.9998917E-01
2.4916518E-05 4.9998968E-01
2.6605304E-05 4.9999021E-01
2.8349461E-05 4.9999075E-01
3.0148987E-05 4.9999132E-01
3.2003883E-05 4.9999189E-01
3.3914150E-05 4.9999249E-01
3.5879786E-05 4.9999310E-01
3.7900793E-05 4.9999373E-01
3.9977169E-05 4.9999438E-01
4.2108916E-05 4.9999505E-01
4.4296032E-05 4.9999573E-01
6.9212550E-05 5.0000350E-01
9.9666073E-05 5.0001301E-01
1.3565660E-04 5.0002424E-01
1.7718413E-04 5.0003721E-01
2.2424866E-04 5.0005190E-01
2.7685020E-04 5.0006832E-01
3.3498874E-04 5.0008647E-01
3.9866429E-04 5.0010636E-01
4.6787684E-04 5.0012797E-01
5.4262639E-04 5.0015130E-01
6.2291295E-04 5.0017637E-01
7.0873652E-04 5.0020317E-01
8.0009708E-04 5.0023169E-01
8.9699465E-04 5.0026194E-01
9.9942923E-04 5.0029391E-01
1.1074008E-03 5.0032761E-01
1.2209094E-03 5.0036304E-01
1.3399550E-03 5.0040019E-01
1.4645376E-03 5.0043907E-01
1.5946572E-03 5.0047967E-01
1.7303138E-03 5.0052200E-01
1.8715074E-03 5.0056605E-01
2.0182380E-03 5.0061182E-01
2.1705056E-03 5.0065931E-01
2.3283102E-03 5.0070852E-01
2.4916518E-03 5.0075946E-01
2.6605304E-03 5.0081211E-01
2.8349461E-03 5.0086649E-01
3.0148987E-03 5.0092258E-01
3.2003883E-03 5.0098039E-01
3.3914150E-03 5.0103992E-01
3.5879786E-03 5.0110116E-01
3.7900792E-03 5.0116412E-01
3.9977169E-03 5.0122880E-01
4.2108916E-03 5.0129519E-01
4.4296032E-03 5.0136329E-01
6.9212550E-03 5.0213830E-01
9.9666072E-03 5.0308346E-01
1.3565660E-02 5.0419754E-01
1.7718413E-02 5.0547907E-01
2.2424866E-02 5.0692635E-01
2.7685020E-02 5.0853752E-01
3.3498874E-02 5.1031047E-01
3.9866428E-02 5.1224292E-01
4.6787683E-02 5.1433238E-01
5.4262638E-02 5.1657617E-01
6.2291293E-02 5.1897147E-01
7.0873649E-02 5.2151524E-01
8.0009705E-02 5.2420431E-01
8.9699461E-02 5.2703535E-01
9.9942917E-02 5.3000488E-01
1.1074007E-01 5.3310927E-01
1.2209093E-01 5.3634479E-01
1.3399549E-01 5.3970758E-01
1.4645374E-01 5.4319367E-01
1.5946570E-01 5.4679898E-01
1.7303136E-01 5.5051937E-01
1.8715072E-01 5.5435059E-01
2.0182377E-01 5.5828833E-01
2.1705053E-01 5.6232823E-01
2.3283099E-01 5.6646586E-01
2.4916515E-01 5.7069677E-01
2.6605300E-01 5.7501647E-01
2.8349456E-01 5.7942044E-01
3.0148982E-01 5.8390416E-01
3.2003877E-01 5.8846308E-01
3.3914143E-01 5.9309268E-01
3.5879779E-01 5.9778844E-01
3.7900784E-01 6.0254587E-01
3.9977160E-01 6.0736050E-01
4.2108905E-01 6.1222788E-01
4.4296021E-01 6.1714363E-01
6.9212523E-01 6.6803744E-01
9.9666016E-01 7.1946109E-01
1.3565649E+00 7.6843037E-01
1.7718395E+00 8.1301211E-01
2.2424838E+00 8.5221484E-01
2.7684976E+00 8.8576757E-01
3.3498810E+00 9.1388030E-01
3.9866338E+00 9.3704060E-01
4.6787559E+00 9.5586375E-01
5.4262471E+00 9.7099210E-01
6.2291073E+00 9.8303418E-01
7.0873364E+00 9.9253465E-01
8.0009341E+00 9.9996504E-01
8.9699004E+00 1.0000000E+00
1.7939801E+01 1.0000000E+00

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