Home Geant4 gdml Format
Geant4 physical Volume-gdml PDF Print E-mail
Written by Willy Gerber   
Thursday, 14 May 2009 19:58

Constructed Solid Geometry (CSG) Solids - GDML format
(Format and Images from following GDML Manual)

FormatImage
box (G4Box)
<box  
 name = "boxExample" 
 x = "20" 
 y = "10" 
 z = "30" 
 lunit= "cm" /> 


nameBox name
xDimension in X
yDimension in Y
zDimension in Z
lunitUnit of x, y and z


cone (G4Cons)
<cone   
 name = "conExample" 
 rmin1 = "10" 
 rmax1 = "15" 
 rmin2 = "15" 
 rmax2 = "25" 
 z = "30" 
 startphi = "1" 
 deltaphi = "4" 
 aunit = "rad" 
 lunit = "mm" /> 


nameCone name
rmin1Inner radius at base of cone
rmax1Outer radius at base of cone
rmin2Inner radius at top of cone
rmax2Outer radius at top of cone
zHeight of cone segment
startphiStart angle of the segment
deltaphiAngle of the segment
aunitunit of startphi and deltaphi
lunitunit of rmin1, rmax1, rmin2, rmax2 and z


ellipsoid (G4Ellipsoid)
<ellipsoid   
 name = "ellExample" 
 ax = "10" 
 by = "15" 
 cz = "20" 
 zcut1 = "0" 
 zcut2 = "4" 
 lunit = "mm" /> 


nameEllipsoid name
axx semi axis
byy semi axis
czz semi axis
zcut1cutting the bottom part of the shape off
zcut2cutting the upper part of the shape off
lunitunit of ax, by, cz, zcut1 and zcut2


eltube (G4EllipticalTube)
<eltube   
 name = "eltExample" 
 dx = "10" 
 dy = "15" 
 dz = "20" 
 lunit = "mm" /> 


nameElliptical tube name
dxx semi axis
dyy semi axis
dzz semi axis
lunitunit of dx, dy and dz


elcone (G4EllipticalCone)
<elcone   
 name = "elcExample" 
 dx = "5" 
 dy = "10" 
 zmax = "2" 
 zcut = "0.5" 
 lunit = "mm" /> 


nameEllipsoid Cone name
dxSemiaxis in X
dySemiaxis in Y
zmaxTotal z length without cut
zcutUpper cut in Z
lunitunit of dx, dy, zmax and zcut


orb (G4Orb)
<orb   
 name = "orbExample" 
 r = "10" 
 lunit = "mm" /> 


nameOrb name
rOuter radius
lunitUnit of r


paraboloid (G4Paraboloid)
<paraboloid   
 name = "parExample" 
 rlo = "10" 
 rhi = "15" 
 dz = "20" 
 lunit = "mm" /> 


nameparaboloid name
rloRadius at -z
rhiRadius at +z greater than rlo
dzz length
lunitunit of rmin1, rmax1, rmin2, rmax2 and z


para (G4Para)
<para   
 name = "parExample" 
 x = "10" 
 y = "15" 
 z = "20" 
 alpha = "1" 
 theta = "0.5" 
 phi = "1.2" 
 aunit = "rad" 
 lunit = "mm" /> 


nameparallelepiped name
xLength in x
yLength in y
zLength in z
alphaAngle between x and z planes
thetaPolar angle of the line joining the centres of the faces at –z and +z in z
phiAzimuthal angle of the line joining the centres of the faces at -dz and +dz in z
aunitunit of alpha, theta and phi
lunitunit of x, y and z


polycone (G4Polycone)
<polycone   
 name = "polExample" 
 startphi = "1" 
 deltaphi = "4" 
 aunit = "rad" 
 lunit = "mm"> 
 <zplane rmin="1" rmax="9" z="10" /> 
 <zplane rmin="3" rmax="5" z="12" /> 
</polycone>  


namepolycone name
startphiStart angle of the segment – if not given 0.0 is defaulted
deltaphiAngle of the segment
aunitunit of startphi and deltaphi
lunitunit of rmin, rmax and z
zz coordinate of the plane
rminInner radius of cone at this point – if not given 0.0 is defaulted
rmaxOuter radius of cone at this point


polyhedra (G4Polyhedra)
<polyhedra   
 name = "polExample" 
 startphi = "1" 
 deltaphi = "4" 
 aunit = "rad" 
 lunit = "mm"> 
 <zplane rmin="1" rmax="9" z="10" /> 
 <zplane rmin="3" rmax="5" z="12" /> 
</polyhedra>  

namepolyhedra name
startphiStart angle of the segment
deltaphiAngle of the segment
aunitunit of startphi and deltaphi
lunitunit of rmin, rmax and z
zz coordinate of the plane
rminInner radius of cone at this point – if not given 0.0 is defaulted
rmaxOuter radius of cone at this point


sphere (G4Sphere)

<sphere   
 name = "polExample" 
 rmin = "1" 
 rmax = "4" 
 deltaphi = "1" 
 deltatheta = "1" 
 aunit = "rad" 
 lunit = "mm" /> 
namesphere name
rminInner radius
rmaxOuter radius
deltaphiDelta Phi angle of the segment in radians
deltathetaDelta Theta angle of the segment in radians
aunitUnit of startphi and deltaphi
lunitUnit of rmin and rmax


torus (G4Torus)

<torus   
 name = "torExample" 
 rmin = "1" 
 rmax = "4" 
 deltaphi = "3" 
 startphi = "1" 
 aunit = "rad" 
 lunit = "mm" /> 
nametorus name
rminInner radius
rmaxOuter radius
deltaphiDelta Phi angle of the segment in radians
startphiInitial Phi starting angle
aunitUnit of startphi and deltaphi
lunitUnit of rmin and rmax


trd (G4Trd)
<trd   
 name = "trdExample" 
 x1 = "9" 
 x2 = "8" 
 y1 = "6" 
 y2 = "5" 
 z = "10" 
lunitunit of x1, x2, y1, y2 and z



nametrapezoid name
x1Length along x at the surface positioned at -z
x2Length along x at the surface positioned at +z
y1Length along y at the surface positioned at -z
y2Length along y at the surface positioned at +z
zLength along z axis
lunitUnit of rmin and rmax


trap (G4Trap)
<trap   
 name = "trdExample" 
 z = "10" 
 theta = "1" 
 phi = "2" 
 y1 = "15" 
 x1 = "10" 
 x2 = "10" 
 alpha1 = "1" 
 y2 = "15" 
 x3 = "10" 
 x4 = "10" 
 alpha2 = "1" 
 aunit = "rad" 
 lunit = "mm" /> 

namegeneric trapezoid name
zLength along z axis
thetaPolar angle of the line joining the centres of the faces at -/+pDz
phiAzimuthal angle of the line joining the centre of the face at -pDz to the centre of the face at
x1Length along x at side y = -y1 of the face at -z
y1Length along y at the face -z
alpha1Angle with respect to the y axis from the centre of side at y = -y1 to centre of y = +y1 of the face at -z
x2Length along x at side y = +y1 of the face at -z
y2Length along y at the face +z
x3Length along x at side y = -y1 of the face at +z
x4Length along x at side y = +y1 of the face at +z
alpha2Angle with respect to the y axis from the centre of side at y = -y2 to centre of y = +y2 of the face at +z
aunitunit of theta and phi
lunitunit of x1, y1, x2, y2, x3 and x4


hype (G4Hype)
<hype   
 name = "trdExample" 
 rmin = "1" 
 rmax = "2" 
 z = "20" 
 inst = "3" 
 outst = "4" 
 lunit = "mm" /> 

namehyperbolic profile name
rminInner radius
rmaxOuter radius
zLength in z
instInner stereo angle in radians
outstOuter stereo angle in radians
lunitUnit of rmin, rmax and z


twistedbox (G4TwistedBox)
<twistedbox   
 name = "twiExample" 
 PhiTwist = "1" 
 x = "30" 
 y = "30" 
 z = "30" 
 aunit = "rad" 
 lunit = "mm" /> 

nametwistedbox name
PhiTwistTwist angle
xx length
yy length
zz length
aunitUnit of PhiTwist
lunitUnit of x, y and z


twistedtrd (G4TwistedTrd)
<twistedtrd   
 name = "twiExample" 
 PhiTwist = "1" 
 x1 = "9" 
 x2 = "8" 
 y1 = "6" 
 y2 = "5" 
 z = "10" 
 aunit = "rad" 
 lunit = "mm" /> 

nametwistedtrd name
PhiTwistTwisted angle
x1x length at the surface positioned at -dz
x2x length at the surface positioned at +dz
y1y length at the surface positioned at -dz
y2y length at the surface positioned at +dz
zz length
aunitUnit of PhiTwist
lunitUnit of x1, x2, y1, y2 and z


twistedtrap (G4TwistedTrap)
<twistedtrap   
 name = "twiExample" 
 PhiTwist = "1" 
 z = "10" 
 Theta = "1" 
 Phi = "2" 
 x1 = "10" 
 y1 = "15" 
 x2 = "10" 
 y2 = "15" 
 x3 = "10" 
 x4 = "10" 
 Alph = "1" 
 aunit = "rad" 
 lunit = "mm" /> 

nametwistedtrd name
PhiTwistTwisted angle
zLength along z axis
ThetaPolar angle to faces joining at -/+z
PhiAzimuthal angle of line joining centre of –z face to centre of +z face
x1Length along x at side y = -y1 of the face at -z
y1Length along y at the face -z
x2Length along x at side y = +y1 of the face at -z
y2Length along y at the face +z
x3Length along x at side y = -y1 of the face at +z
x4Length along x at side y = +y1 of the face at +z
AlphAngle with respect to the y axis from the centre of the side
aunitunit of Theta, Phi and Alph
lunitunit of z, x1, y1, x2, y2, x3 and x4


twistedtubs (G4TwistedTubs)
<twistedtubs   
 name = "twiExample" 
 endinnerrad = "1" 
 endouterrad = "4" 
 zlen = "20" 
 phi = "3" 
 twistedangle = "1" 
 aunit = "rad" 
 lunit = "mm" /> 

nametwistedtube name
endinnerradInner radius at endcap
endouterradOuter radius at endcap
zlenz length
phiPhi angle of a segment
twistedangleTwisted angle
aunitunit of phi and twistedangle
lunitunit of endinnerrad, endouterrad and zlen


xtru (G4ExtrudedSolid)
<xtru   
 name = "xtrExample" 
 lunit = "mm"> 
 <twoDimVertex x="3" y="9" /> 
 <twoDimVertex x="1" y="5" /> 
 <twoDimVertex x="2" y="4" /> 
 <section zOrder="1" zPosition="2" xOffset="5" yOffset="3" scalingFactor="3"/> 
 <section zOrder="2" zPosition="5" xOffset="3" yOffset="5" scalingFactor="1"/> 
</xtru>  

namextru name
lunitunit of x, y, xOffset and yOffset
xx coordinate of the vertex
yy coordinate of the vertex
zOrderIndex of the section, must be between 0 and n-1 where n is the number of sections
zPositionDistance from the plane z=0
xOffsetx offset from centre point of original plane
yOffsety offset from centre point of original plane
scalingFactorproportion to original blueprint


Last Updated ( Friday, 15 May 2009 12:51 )
 
Copyright © 2010 gPhysics. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.