Home Geant4 Physical Volume
Geant4 physical Volume PDF Print E-mail
Written by Willy Gerber   
Sunday, 22 February 2009 11:43

Constructed Solid Geometry (CSG) Solids
(Fromat and Images from following CERN page)

FormatImage
Box
G4Box(  
 const G4String&pName,
 G4doublepX,
 G4doublepY,
 G4doublepZ)


pNameBox names
pXhalf length in X
pYhalf length in Y
pZhalf length in Z


Cylindrical Section or Tube
G4Tubs(  
 const G4String&pName,
 G4doublepRMin,
 G4doublepRMax,
 G4doublepDz,
 G4doublepSPhi,
 G4doublepDPhi)


pRMinInner radius
pDzhalf length in z
pDPhithe angle of the segment in radians
pRMaxOuter radius
pSPhithe starting phi angle in radians


Cone or Conical section
G4Cons(  
 const G4String&pName,
 G4doublepRmin1,
 G4doublepRmax1,
 G4doublepRmin2,
 G4doublepRmax2,
 G4doublepDz,
 G4doublepSPhi,
 G4doublepDPhi)


pRmin1inside radius at -pDz
pRmin2inside radius at +pDz
pDzhalf length in z
pDPhithe angle of the segment in radians
pRmax1outside radius at -pDz
pRmax2outside radius at +pDz
pSPhistarting angle of the segment in radians


Parallelepiped
G4Para(  
 const G4String&pName,
 G4doubledx,
 G4doubledy,
 G4doubledz,
 G4doublealpha,
 G4doubletheta,
 G4doublephi)


dx,dy,dzHalf-length in x,y,z
alphaAngle formed by the y axis and by the plane joining the centre of the faces parallel to the z-x plane at -dy and +dy
thetaPolar angle of the line joining the centres of the faces at -dz and +dz in z
phiAzimuthal angle of the line joining the centres of the faces at -dz and +dz in z


Trapezoid
G4Trd(  
 const G4String&pName,
 G4doubledx1,
 G4doubledx2,
 G4doubledy1,
 G4doubledy2,
 G4doubledz)


dx1Half-length along x at the surface positioned at -dz
dx2Half-length along x at the surface positioned at +dz
dy1Half-length along y at the surface positioned at -dz
dy2Half-length along y at the surface positioned at +dz
dzHalf-length along z axis


Generic trapezoid
G4Trap(  
 const G4String&pName,
 G4doublepZ,
 G4doublepY,
 G4doublepX,
 G4doublepLTX)


pZLength along z
pYLength along y
pXLength along x at the wider side
pLTXLength along x at the narrower side (plTX<=pX)


G4Trap(  
 const G4String&pName,
 G4doublepDz,
 G4doublepTheta,
 G4doublepPhi,
 G4doublepDy1,
 G4doublepDx1,
 G4doublepDx2,
 G4doublepAlp1,
 G4doublepDy2,
 G4doublepDx3,
 G4doublepDx4,
 G4doublepAlp2)


pDx1Half x length of the side at y=-pDy1 of the face at -pDz
pDx2Half x length of the side at y=+pDy1 of the face at -pDz
pDzHalf z length
pThetaPolar angle of the line joining the centres of the faces at -/+pDz
pPhiAzimuthal angle of the line joining the centre of the face at -pDz to the centre of the face at +pDz
pDy1Half y length at -pDz
pDy2Half y length at +pDz
pDx3Half x length of the side at y=-pDy2 of the face at +pDz
pDx4Half x length of the side at y=+pDy2 of the face at +pDz
pAlp1Angle with respect to the y axis from the centre of the side (lower endcap)
pAlp2Angle with respect to the y axis from the centre of the side (upper endcap)


Sphere or Spherical Shell Section
G4Sphere(  
 const G4String&pName,
 G4doublepRmin,
 G4doublepRmax,
 G4doublepSPhi,
 G4doublepDPhi,
 G4doublepSTheta,
 G4doublepDTheta )


pRminInner radius
pRmaxOuter radius
pSPhiStarting Phi angle of the segment in radians
pDPhiDelta Phi angle of the segment in radians
pSThetaStarting Theta angle of the segment in radians
pDThetaDelta Theta angle of the segment in radians


Full Solid Sphere
G4Orb(  
 const G4String&pName,
 G4doublepRmax)


pRmaxOuter radius

Torus
G4Torus(  
 const G4String&pName,
 G4doublepRmin,
 G4doublepRmax,
 G4doublepRtor,
 G4doublepSPhi,
 G4doublepDPhi)


pRminInside radius
pRmaxOutside radius
pRtorSwept radius of torus
pSPhiStarting Phi angle in radians (fSPhi+fDPhi<=2PI, fSPhi>-2PI)
pDPhiDelta angle of the segment in radians


Polycons
G4Polycone(  
 const G4String&pName,
 G4doublephiStart,
 G4doublephiTotal,
 G4intnumZPlanes,
 const G4doublezPlane[],
 const G4doublerInner[],
 const G4doublerOuter[])


G4Polycone(  
 const G4String&pName,
 G4doublephiStart,
 G4doublephiTotal,
 G4intnumRZ,
 const G4doubler[],
 const G4doublez[])


phiStartInitial Phi starting angle
phiTotalTotal Phi angle
numZPlanesNumber of z planes
numRZNumber of corners in r,z space
zPlanePosition of z planes
rInnerTangent distance to inner surface
rOuterTangent distance to outer surface
rr coordinate of corners
zz coordinate of corners


Polyhedra
G4Polyhedra(  
 const G4String&pName,
 G4doublephiStart,
 G4doublephiTotal,
 G4intnumSide,
 G4intnumZPlanes,
 const G4doublezPlane[],
 const G4doublerInner[],
 const G4doublerOuter[] )


G4Polyhedra(  
 const G4String&pName,
 G4doublephiStart,
 G4doublephiTotal,
 G4intnumSide,
 G4intnumRZ,
 const G4doubler[],
 const G4doublez[] )


phiStartInitial Phi starting angle
phiTotalTotal Phi angle
numSideNumber of sides
numZPlanesNumber of z planes
numRZNumber of corners in r,z space
zPlanePosition of z planes
rInnerTangent distance to inner surface
rOuterTangent distance to outer surface
rr coordinate of corners
zz coordinate of corners


Tube with an elliptical cross section
G4EllipticalTube(  
 const G4String&pName,
 G4doubleDx,
 G4doubleDy,
 G4doubleDz)


DxHalf length X
DyHalf length Y
DzHalf length Z


General Ellipsoid
G4Ellipsoid(  
 const G4String&pName,
 G4doublepxSemiAxis,
 G4doublepySemiAxis,
 G4doublepzSemiAxis,
 G4doublepzBottomCut=0,
 G4doublepzTopCut=0)


pxSemiAxisSemiaxis in X
pySemiAxisSemiaxis in Y
pzSemiAxisSemiaxis in Z
pzBottomCutlower cut plane level, z
pzTopCutupper cut plane level, z


Cone with Elliptical Cross Section
G4EllipticalCone(  
 const G4String&pName,
 G4doublepxSemiAxis,
 G4doublepySemiAxis,
 G4doublezMax,
 G4doublepzTopCut)


pxSemiAxisSemiaxis in X
pySemiAxisSemiaxis in Y
zMaxHeight of elliptical cone
pzTopCutupper cut plane level


Paraboloid, a solid with parabolic profile
G4Paraboloid(  
 const G4String&pName,
 G4doubleDz,
 G4doubleR1,
 G4doubleR2)


DzHalf length Z
R1Radius at -Dz
R2Radius at +Dz greater than R1


Tube with a hyperbolic profile
G4Hype(  
 const G4String&pName,
 G4doubleinnerRadius,
 G4doubleouterRadius,
 G4doubleinnerStereo,
 G4doubleouterStereo,
 G4doublehalfLenZ)


innerRadiusInner radius
outerRadiusOuter radius
innerStereoInner stereo angle in radians
outerStereoOuter stereo angle in radians
halfLenZHalf length in Z


Tetrahedra
G4Tet(  
 const G4String&pName,
 G4ThreeVectoranchor,
 G4ThreeVectorp2,
 G4ThreeVectorp3,
 G4ThreeVectorp4,
 G4bool*degeneracyFlag=0)


anchorAnchor point
p2Point 2
p3Point 3
p4Point 4
degeneracyFlagFlag indicating degeneracy of points


Extruded Polygon
G4ExtrudedSolid(  
 const G4String&pName,
 std::vectorpolygon,
 std::vectorzsections)


G4ExtrudedSolid(  
 const G4String&pName,
 std::vectorpolygon,
 G4doublehz,
 G4TwoVectoroff1,
 G4doublescale1,
 G4TwoVectoroff2,
 G4doublescale2)


polygonthe vertices of the outlined polygon defined in clock-wise order
zsectionsthe z-sections defined by z position in increasing order
hzHalf length in Z
off1, off2Offset of the side in -hz and +hz respectively
scale1, scale2Scale of the side in -hz and +hz respectively


Box Twisted
G4TwistedBox(  
 const G4String&pName,
 G4doubletwistedangle,
 G4doublepDx,
 G4doublepDy,
 G4doublepDz)


twistedangleTwist angle
pDxHalf x length
pDyHalf y length
pDzHalf z length


Trapezoid Twisted along One Axis
G4TwistedTrap(  
 const G4String&pName,
 G4doubletwistedangle,
 G4doublepDxx1,
 G4doublepDxx2,
 G4doublepDy,
 G4doublepDz)


G4TwistedTrap(  
 const G4String&pName,
 G4doubletwistedangle,
 G4doublepDz,
 G4doublepTheta,
 G4doublepPhi,
 G4doublepDy1,
 G4doublepDx1,
 G4doublepDx2,
 G4doublepDy2,
 G4doublepDx3,
 G4doublepDx4,
 G4doublepAlph)


twistedangleTwisted angle
pDx1Half x length at y=-pDy
pDx2Half x length at y=+pDy
pDyHalf y length
pDzHalf z length
pThetaPolar angle of the line joining the centres of the faces at -/+pDz
pDy1Half y length at -pDz
pDx1Half x length at -pDz, y=-pDy1
pDx2Half x length at -pDz, y=+pDy1
pDy2Half y length at +pDz
pDx3Half x length at +pDz, y=-pDy2
pDx4Half x length at +pDz, y=+pDy2
pAlphAngle with respect to the y axis from the centre of the side


Twisted Trapezoid with x and y dimensions varying along z
G4TwistedTrd(  
 const G4String&pName,
 G4doublepDx1,
 G4doublepDx2,
 G4doublepDy1,
 G4doublepDy2,
 G4doublepDz,
 G4doubletwistedangle)


pDx1Half x length at the surface positioned at -dz
pDx2Half x length at the surface positioned at +dz
pDy1Half y length at the surface positioned at -dz
pDy2Half y length at the surface positioned at +dz
pDzHalf z length
twistedangleTwisted angle


Tube Section Twisted along Its Axis
G4TwistedTubs(  
 const G4String&pName,
 G4doubletwistedangle,
 G4doubleendinnerrad,
 G4doubleendouterrad,
 G4doublehalfzlen,
 G4doubledphi)


twistedangleTwisted angle
endinnerradInner radius at endcap
endouterradOuter radius at endcap
halfzlenHalf z length
dphiPhi angle of a segment


Last Updated ( Sunday, 22 February 2009 12:01 )
 
Copyright © 2012 gPhysics. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.