|Message: Logical volume mass calculation -- non-identical results?||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
I have a geometry with a number of duplicated components, each of which is relatively complex in internal structure, including sensitive detectors. In order to assign unique copy-numbers to each of the SDs across my whole geometry, I instantiate and place multiple copies, rather than doing parametrized placements or something similar.
To help support our engineering effort, I just added diagnostic output of each component's mass during the Construct() process. This gave me a bit of a surprise, as the supposedly "identical" objects (all generated via the same function, over and over again) have different masses!
For example, the innermost component is a cylindrical puck with flats taken off the sides. The code to construct it is:
G4VSolid* zipShape = new G4Tubs("ZipDisk", 0, ZipRad, ZipThick/2., 0, 360*deg) ;
G4Box* zipCutBox = new G4Box("ZipCutBox", ZipAxis1Len/2., ZipAxis2Len/2., (ZipThick+tolerance)/2.); zipShape = new G4IntersectionSolid("ZipShape", zipShape, zipCutBox);
G4LogicalVolume* logicalZip = new G4LogicalVolume(zipShape, mat, "LogicalZip", 0, 0, 0);
where "mat" is typically germanium ("G4_Ge" from the NIST database).
Imagine my surprise when my diagnostic messages started printing:
ZIP mass 0.598565 kg ZIP mass 0.597912 kg ZIP mass 0.59815 kg ZIP mass 0.598027 kg ZIP mass 0.598105 kg ZIP mass 0.597936 kg
and so on. All 84 values were different! All pretty close to 0.6 kg, as I'd expect for the dimensions, but not identical.
Does the G4LogicalVolume::GetMass() function have difficulty with Boolean solids? If so, is there some guidance on what problems to expect (e.g., are subtracted solids worse than intersections or unions?), and of what magnitude?
|Inline Depth:||Outline Depth:||Add message:|