#include "catima/catima.h" #include using std::cout; using std::endl; int main(){ catima::Material graphite; graphite.add_element(12,6,1); // arguments are A,Z, stoichiometric number graphite.density(1.8); // density in g/cm3 graphite.thickness(2.0); // thickness in g/cm2 catima::Material water({ // material with 2 atoms {0,1,2}, // H - two atoms {0,8,1} // O - 1 atom }, 1.0 // density in g/cm3 ); water.density(1.0).thickness(2.0); catima::Projectile p(12,6); // define projectile, ie 12C cout<<"C->C\n"; for(double T:{20,50,100,600,1000}){ auto result = catima::calculate(p(T),graphite); cout<<"T "<H2O\n"; for(double T:{20,50,100,600,1000}){ auto result = catima::calculate(p,water,T); cout<<"T "<