Skip to content

Commit

Permalink
Revert argon definition
Browse files Browse the repository at this point in the history
  • Loading branch information
kvjmistry committed Jun 17, 2024
1 parent 83dc31f commit 696b6e2
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions source/materials/MaterialsList.cc
Original file line number Diff line number Diff line change
Expand Up @@ -187,18 +187,13 @@ namespace materials {
G4Material* mat = G4Material::GetMaterial(name, false);

if (mat == 0) {
G4NistManager* nist = G4NistManager::Instance();

mat = new G4Material(name, ArgonDensity(pressure), 1,
kStateGas, temperature, pressure);

G4Element* Ar = new G4Element(name, "Ar", 1);
G4Element* Ar = nist->FindOrBuildElement("Ar");

G4int massNumber = 40;
G4double abundance = 100*perCent;
G4String isotopeName = "Ar" + std::to_string(massNumber);
G4Isotope* isotope = new G4Isotope(isotopeName, 18, massNumber, 39.962383123*g/mole);
Ar->AddIsotope(isotope, abundance);

mat->AddElement(Ar,1);
}

Expand Down

0 comments on commit 696b6e2

Please sign in to comment.