1
0
Fork 0
mirror of https://github.com/gwm17/catima.git synced 2024-11-26 20:18:51 -05:00
catima/examples/ls_coefficients.cpp

28 lines
646 B
C++
Raw Normal View History

2017-07-27 05:39:44 -04:00
/**
* this example program print out Lindhard - Soerrensen coefficients for 238U
*/
#include "catima/catima.h"
#include "catima/storage.h"
#include <iostream>
using std::cout;
using std::endl;
int main(){
catima::Projectile p(238,92); // define projectile, ie 12C
cout<<"projectile 238U\n";
auto energies = catima::EnergyTable<50>(2,5); // get energy table, energies log distributed between 10^2 and 10000^5;
for(double T:energies){
auto ls = catima::bethek_lindhard(p(T));
auto lsX = catima::bethek_lindhard_X(p(T));
cout<<"T "<<T<<", Delta LS = "<<ls<<", X = "<<lsX<<endl;
}
return 0;
}