pyg4ometry.geant4.solid.TwistedBox¶
Classes¶
Constructs a box that is twisted though angle twisted angle |
Module Contents¶
- class pyg4ometry.geant4.solid.TwistedBox.TwistedBox(name, twistedangle, pDx, pDy, pDz, registry, lunit='mm', aunit='rad', nstack=None, refine=0, addRegistry=True)¶
Bases:
pyg4ometry.geant4.solid.SolidBase.SolidBase,pyg4ometry.geant4.solid.TwistedSolid.TwistedSolidConstructs a box that is twisted though angle twisted angle
- Parameters:
name (str) – of the solid
twistedangle (float, Constant, Quantity, Variable, Expression) – twist angle, must be less than pi/2
pDx (float, Constant, Quantity, Variable, Expression) – length in x
pDy (float, Constant, Quantity, Variable, Expression) – length in y
pDz (float, Constant, Quantity, Variable, Expression) – length in z
refine (int) – number of steps to iteratively smoothen the mesh by doubling the number of vertices at every step
registry (Registry) – for storing solid
lunit (str) – length unit (nm,um,mm,m,km) for solid
aunit (str) – angle unit (rad,deg) for solid
nstack (int) – Not written
- twistedAngle¶
- pDx¶
- pDy¶
- pDz¶
- lunit¶
- aunit¶
- nstack¶
- refine¶
- dependents = []¶
- varNames = ['twistedAngle', 'pDx', 'pDy', 'pDz']¶
- varUnits = ['aunit', 'lunit', 'lunit', 'lunit']¶
- __repr__()¶
- __str__()¶
- checkParameters()¶
- makeLayers(p1, p2, p3, p4, pDz, theta, nstack)¶
- mesh_old()¶
- makeLayerEdge(pDx, pDy, pTwistedAngle=0, nx=20, ny=20)¶
- mesh()¶