Skip to content

[Simulation question]: Problem in Definition of Volumetric Source #42

Discussion options

You must be logged in to vote

Instead of volumetric, use TOPAS-nBio's VolumeOrSurface see here.

s:So/mySource/Type = "VolumeOrSurface"
s:So/mySource/Component = "myComponent"
s:So/mySource/DistributePrimariesAtVolumeRegion = "surface"
s:So/mySource/DirectPrimariesTo = "inside"

But for focusing strictly on the z-axis, then you have to change the code a bit. For that, in line 112 of TsGeneratorUniformlyRandomAtVolume.cc set (e.g., all at x=0, y=0 uniformly along z-axis):

insideVolume = G4ThreeVector(0,0,z);

Best.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by SFR1993
Comment options

You must be logged in to vote
2 replies
@JoseRamosMendez
Comment options

@SFR1993
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Science questions
2 participants