Message: Re: define mixture with gdml Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: define mixture with gdml 

Forum: Geometry
Re: Question define mixture with gdml (panda)
Date: 07 Sep, 2017
From: Witek Pokorski <Witek Pokorski>


if you want to create a mixture of materials, the 'fraction' tag calls the


method, which

has the signature

  void AddMaterial(G4Material* material,			//the material
                   G4double   fraction);			//fractionOfMass

so, the answer is mass fraction.

You can also create a mixture of elements by using the 'composite' tag, and in that case the method that would be called will be:

G4Material::AddElement, with the signature:

  void AddElement(G4Element* element,				//the element
                  G4int      nAtoms);				//nb of atoms in
		    						// a molecule

(so no mass fraction, but number of atoms).

Cheers, Witek

 Add Message Add Message
to: "Re: define mixture with gdml"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews

[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]