Hello,
I am new to Geant4 and encountered a problem while creating a world box within specific size.
What i did was copying the basic example B1 from the main folder and pasting to another folder, deleting all the elements of the Construct() function inside B1DetectorConstruction.cc, and trying to create a new model.
Below is the world box i was trying to create.
G4Box * world = new G4Box("world", 15* um, 15* um, 2000 * um );
G4Material* Air = nist->FindOrBuildMaterial("G4_AIR");
G4LogicalVolume* lworld = new G4LogicalVolume(world, Air, "world");
G4VPhysicalVolume* pworld = new G4PVPlacement(0, G4ThreeVector(), lworld,
"world", 0, false, 0, false);
return pworld;
The build process ended successfully. The “make” process inside the build folder was also successful, but when i tried to execute the ./exampleB1 , I always got a “core dump”.
This error does not occur when the unit is changed to e.g., 15 cm, or if the size is smaller e.g., 15 nm.
I tried to avoid the error by using 15 * 1000 * nm, but it also didn’t work.
I didn’t get any error message at all and have been trying to solve the problem for couple hours, yet can’t think of any solution.
Is there any configuration elsewhere that i perhaps have to set, to make the size works?
I would really appreciate for tips and help for this matter
Thank you,
Jay
p.s.: am using Geant4 10.5