pyg4ometry.geant4.solid.GenericPolycone
#
Module Contents#
Classes#
Constructs a solid of rotation using an arbitrary 2D surface defined by a series of (r,z) coordinates. |
- class pyg4ometry.geant4.solid.GenericPolycone.GenericPolycone(name, pSPhi, pDPhi, pR, pZ, registry, lunit='mm', aunit='rad', nslice=None, addRegistry=True)#
Bases:
pyg4ometry.geant4.solid.SolidBase.SolidBase
Constructs a solid of rotation using an arbitrary 2D surface defined by a series of (r,z) coordinates.
- Parameters:
name (str) – of solid
pSPhi (float, Constant, Quantity, Variable, Expression) – angle phi at start of rotation
pDPhi (float, Constant, Quantity, Variable, Expression) – angle Phi at end of rotation
pR (list of float, Constant, Quantity, Variable, Expression) – r coordinate
pZ (list of float, Constant, Quantity, Variable, Expression) – z coordinate
registry (Registry) – for storing solid
lunit (str) – length unit (nm,um,mm,m,km) for solid
aunit (str) – angle unit (rad,deg) for solid
nslice (int) – number of phi elements for meshing
- __repr__()#
Return repr(self).
- __str__()#
Return str(self).
- checkParameters()#
- mesh()#