錬金術したい(G4Material / G4Element / G4Isotope

1#include "G4Material.hh"
2#include "G4Element.hh"
3
4G4Element *N = new G4Element("Nitrogen", "N", z=7., a=14.01*g/mole);
5G4Element *O = new G4Element("Oxygen", "O", z=8., a=16.00*g/mole);
6
7G4Material *Air = new G4Material("Air", density=1.29*mg/cm3, nelements=2);
8Air->AddElement(N, 70.*perCent);
9Air->AddElement(O, 30.*perCent);

NISTのデータベースにない物質も作れます。 G4MaterialG4ElementG4Isotopeなどを使って自分で作成する必要があります。 上記のサンプルでは、酸素と窒素だけで構成された「空気」を作成してみました。

注釈

NISTのデータベースにG4_AIRがあります。 窒素75.5%、酸素23.2%、アルゴン1%、炭素0.01%の構成となっています。 通常はこちらを使うのがよいと思います。