Optimisation of Large Voxels Construction of Different Voxel Types

Hello there!

I am looking for any advice on building 30x30x30 voxels. There are 2 types of voxels of the same size with different complex daughter volume. The two type of voxels are chosen through probability to build each voxel of the 30x30x30 voxels.

Currently, I am using G4PVPlacement. However, it takes too much time to build the geometry.

I also notice that I cannot use G4PVParameterised in this case since there are two type of voxels.

Does anyone has any alternative solution to this? Thank you in advance for your help. Any idea is greatly appreciated.

Geant4 Version: Geant4 V11.1.3
Operating System: Windows WSL Ubuntu 22.04.4 LTS
_Compiler/Version: _
CMake Version: cmake-3.29.6


Please check that the last parameter in G4PVPlacement is set to false.

Dear Mr Tcherniaev,

Yes, the last parameter in G4PVPlacement was set to false.