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

22 lines
494 B
C++
Raw Normal View History

2017-07-25 12:19:11 -04:00
#include "catima/catima.h"
#include <iostream>
using std::cout;
using std::endl;
int main(){
2019-10-08 13:50:45 -04:00
catima::Material graphite = catima::get_material(6);
catima::Material P10 = catima::get_material(catima::material::P10);
2017-07-25 12:19:11 -04:00
cout<<"Material info"<<endl;
cout<<"Molar Mass = "<<graphite.M()<<endl;
cout<<"density = "<<graphite.density()<<endl;
cout<<"Material info"<<endl;
2019-10-08 13:50:45 -04:00
cout<<"Molar Mass = "<<P10.M()<<endl;
cout<<"density = "<<P10.density()<<endl;
2017-07-25 12:19:11 -04:00
return 0;
}