Message: Materials for G4OpticalPhoton simulation Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Materials for G4OpticalPhoton simulation 

Forum: Geometry
Date: 08 Aug, 2017
From: <herr_apa>


I'm simulating G4OpticalPhotons in a voxelized geometry. The only relevant processes are absorption, reflection and scattering. When building the geometry, I create a G4Material with a corresponding G4MaterialPropertiesTable for each voxel. Since I don't care about any high-energy processes, most of the information stored in the G4Material class is never used. The materials are only meaningfully different in terms of their G4MaterialPropertiesTables.

1) How do I create the materials in the most memory-efficient way? My present approach is to create all materials using the same base material, so that some information is shared. Can I do better?

2) Disregarding memory efficiency, how do I create the geometry in the FASTEST way (in terms of user time)? Because I have so many voxels and so many materials, the program spends ages in G4ProductionCutsTable::ScanAndSetCouple during initialization. It's an unfortunate bottleneck seeing as production cuts are not relevant in this simulation.

3) Can two materials use the same G4MaterialPropertiesTable?

4) Can two G4MaterialPropertiesTables use the same G4MaterialPropertyVector? It looks like a PropertiesTable assumes ownership of all its PropertyVectors and deletes them in the destructor, but unless I'm missing something, a G4Material never deletes its PropertiesTable. If the user is responsible for deleting PropertiesTables, then I could just let them leak and delete the PropertyVectors myself. DOes that sound reasonable?

Thanks in advance!

// Anders

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: Materials for G4OpticalPhoton simulation   (Makoto Asai - 08 Aug, 2017)
(_ None: Re: Materials for G4OpticalPhoton simulation   (herr_apa - 09 Aug, 2017)
 Add Message Add Message
to: "Materials for G4OpticalPhoton simulation"

 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 ]