pyg4ometry.geant4.solid.TwistedTrap¶
Classes¶
Constructs a general trapezoid with a twist around one axis. |
Module Contents¶
- class pyg4ometry.geant4.solid.TwistedTrap.TwistedTrap(name, twistedAngle, pDz, pTheta, pDPhi, pDy1, pDx1, pDx2, pDy2, pDx3, pDx4, pAlp, registry, lunit='mm', aunit='rad', nstack=None, addRegistry=True)¶
Bases:
pyg4ometry.geant4.solid.SolidBase.SolidBase,pyg4ometry.geant4.solid.TwistedSolid.TwistedSolidConstructs a general trapezoid with a twist around one axis.
- Parameters:
name (str) – of the solid
twistedAngle – angle of twist (<90 deg)
pDz (float, Constant, Quantity, Variable, Expression) – length along z
pDx1 (float, Constant, Quantity, Variable, Expression) – length along x of the side at y=-pDy1/2
pDx2 (float, Constant, Quantity, Variable, Expression) – length along x of the side at y=+pDy1/2
pTheta (float, Constant, Quantity, Variable, Expression) – polar angle of the line joining the centres of the faces at -/+pDz/2
pPhi (float, Constant, Quantity, Variable, Expression) – azimuthal angle of the line joining the centres of the faces at -/+pDz/2
pDy1 (float, Constant, Quantity, Variable, Expression) – length at -pDz/2
pDy2 (float, Constant, Quantity, Variable, Expression) – length at +pDz/2
pDx3 (float, Constant, Quantity, Variable, Expression) – length of the side at y=-pDy2 of the face at +pDz/2
pDx4 (float, Constant, Quantity, Variable, Expression) – length of the side at y=+pDy2 of the face at +pDz/2
pAlp (float, Constant, Quantity, Variable, Expression) – angle wrt the y axi from the centre of the side
registry (Registry) – for storing solid
lunit (str) – length unit (nm,um,mm,m,km) for solid
aunit (str) – angle unit (rad,deg) for solid
- twistedAngle¶
- pDz¶
- pTheta¶
- pDPhi¶
- pDy1¶
- pDx1¶
- pDx2¶
- pDy2¶
- pDx3¶
- pDx4¶
- pAlp¶
- lunit¶
- aunit¶
- nstack¶
- dependents = []¶
- varNames = ['twistedAngle', 'pDz', 'pTheta', 'pDPhi', 'pDy1', 'pDx1', 'pDx2', 'pDy2', 'pDx3', 'pDx4', 'pAlp']¶
- varUnits = ['aunit', 'lunit', 'aunit', 'aunit', 'lunit', 'lunit', 'lunit', 'lunit', 'lunit', 'lunit', 'aunit']¶
- checkParameters()¶
- __repr__()¶
- __str__()¶
- makeLayers(pl1, pl2, pl3, pl4, pu1, pu2, pu3, pu4, pDz, twist, theta, nsl)¶
- mesh()¶