pyg4ometry.geant4.solid.Sphere¶
Classes¶
Constructs a section of a spherical shell. |
Module Contents¶
- class pyg4ometry.geant4.solid.Sphere.Sphere(name, pRmin, pRmax, pSPhi, pDPhi, pSTheta, pDTheta, registry, lunit='mm', aunit='rad', nslice=None, nstack=None, addRegistry=True)¶
Bases:
pyg4ometry.geant4.solid.SolidBase.SolidBaseConstructs a section of a spherical shell.
- Parameters:
name (str) – of object in registry
pRmin (float, Constant, Quantity, Variable) – inner radius of the shell
pRmax (float, Constant, Quantity, Variable) – outer radius of the shell
pSPhi (float, Constant, Quantity, Variable) – starting phi angle in radians
pSTheta (float, Constant, Quantity, Variable) – starting theta angle in radians
pDPhi (float, Constant, Quantity, Variable) – delta phi angle in radians
pDTheta (float, Constant, Quantity, Variable) – delta theta angle in radians
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
nstack (int) – number of theta elements for meshing
- pRmin¶
- pRmax¶
- pSPhi¶
- pDPhi¶
- pSTheta¶
- pDTheta¶
- nslice¶
- nstack¶
- lunit¶
- aunit¶
- dependents = []¶
- varNames = ['pRmin', 'pRmax', 'pSPhi', 'pDPhi', 'pSTheta', 'pDTheta']¶
- varUnits = ['lunit', 'lunit', 'aunit', 'aunit', 'aunit', 'aunit']¶
- checkParameters()¶
- __repr__()¶
- __str__()¶
- mesh()¶
working off 0 < phi < 2pi 0 < theta < pi