EGSnrc C++ class library
Report PIRS-898 (2021)
Iwan Kawrakow, Ernesto Mainegra-Hing, Frederic Tessier, Reid Townson and Blake Walters
|
A conical shell shape. More...
#include <egs_conical_shell.h>
Public Member Functions | |
CSSSLayer (EGS_Float t, EGS_Float rit, EGS_Float rot, EGS_Float rib, EGS_Float rob, EGS_Float z) | |
EGS_Vector | getPoint (EGS_RandomGenerator *rndm) |
void | getRZEqualWidth (EGS_RandomGenerator *rndm, EGS_Float &r, EGS_Float &z) |
void | getRZRejection (EGS_RandomGenerator *rndm, EGS_Float &r, EGS_Float &z) |
EGS_Vector | getPointInCircleAtZ (EGS_RandomGenerator *rndm, EGS_Float r, EGS_Float z) |
EGS_Float | getRoAtZ (EGS_Float z) |
EGS_Float | getRiAtZ (EGS_Float z) |
A conical shell shape.
Samples random points within a stack of conical shells.
The input format is identical to the EGS_ConeStack geometry with the exception that the top radii
and bottom radii
inputs must have 1 (outer radius only, inner radius assumed to be 0) or 2 values (inner and outer radius).
Like the EGS_ConeStack, the top radii
input can be omitted for layers other than the first shell and the top radii
will be assumed to be equal to the bottom radii
of the previous layer.
An example shape specification looks like:
:start shape: library = egs_conical_shell midpoint = 0 0 -1 :start layer: thickness = 0.5 top radii = 0 1 bottom radii = 0.5 2 :stop layer: :start layer: thickness = 0.5 bottom radii = 0.25 1 :stop layer: :start layer: thickness = 0.5 bottom radii = 0.5 :stop layer: :start layer: thickness = 0.5 bottom radii = 2 :stop layer: :stop shape:
The above definition would create a shape equivalent to the active
media region of the geometry defined below:
:start geometry definition: :start geometry: library = egs_cones type = EGS_ConeStack name = stack axis = 0 0 -1 0 0 1 :start layer: thickness = 0.5 top radii = 0 1 bottom radii = 0.5 2 media = empty active :stop layer: :start layer: thickness = 0.5 bottom radii = 0.25 1 media = empty active :stop layer: :start layer: thickness = 0.5 bottom radii = 0 0.5 media = empty active :stop layer: :start layer: thickness = 0.5 bottom radii = 0 2 media = empty active :stop layer: :stop geometry: simulation geometry = stack :stop geometry definition:
Definition at line 175 of file egs_conical_shell.h.