Bases: penelopetools.api.input.penelope.distribution._Angular
Store the parameters for an azimuthal angular distribution (NBPH).
Parameters: | bins (int) – number of bins [default=1] |
---|
Creates a _Angular from lines of a IN file.
Parameters: | lines – lines |
---|
Creates a _Angular from a XML element.
Parameters: | element – XML element |
---|
Bases: penelopetools.api.input.penelope.option.Option
Store the parameters for an energy distribution (NBE).
Parameters: |
|
---|
Number of bins in the distribution. The number of bins must be equal or greater than 1 and less than the maximum number of allowed bins (1000).
The value is stored in a magnitude.Magnitude.
Upper limit of the energy interval (in eV). The energy must be between 0 and 1e6 eV. If the energy attribute is deleted, the beam energy of the source is used.
The value is stored in a magnitude.Magnitude.
Lower limit of the energy interval (in eV). The energy must be between 0 and 1e6 eV.
The value is stored in a magnitude.Magnitude.
Creates a Energy from lines of a IN file.
Parameters: | lines – lines |
---|
Returns a HTML representation of this option.
Returns the lines of this option to create a IN file.
Returns a XML representation of this option.
Validates if the upper limit is greater than the lower limit. Raises ValueError
Bases: penelopetools.api.input.penelope.distribution._Angular
Store the parameters for a polar angular distribution (NBTH).
Parameters: | bins (int) – number of bins [default=90] |
---|
Creates a _Angular from lines of a IN file.
Parameters: | lines – lines |
---|
Creates a _Angular from a XML element.
Parameters: | element – XML element |
---|
Bases: penelopetools.api.input.penelope.option.Option
Store the parameters for the spatial distribution. A spatial distribution is a 3D box with a number of bins that records the energy absorbed inside the box.
Parameters: |
|
---|
Upper limit of the energy interval (in eV). The energy must be between 0 and 1e6 eV. If the energy attribute is deleted, the beam energy of the source is used.
The value is stored in a magnitude.Magnitude.
Lower limit of the energy interval (in eV). The energy must be between 0 and 1e6 eV.
The value is stored in a magnitude.Magnitude.
Creates a Spatial from lines of a IN file.
Parameters: | lines – lines |
---|
Returns a HTML representation of this option.
Returns the lines of this option to create a IN file.
Returns a XML representation of this option.
Validates if the upper limits are greater than the lower limits. Raises ValueError
Number of bins in the x direction. The number of bins must be equal or greater than 1 and less than the maximum number of allowed bins (100).
The value is stored in a magnitude.Magnitude.
Upper limit of the box in the x direction (cm). The value is stored in a magnitude.Magnitude.
Low limit of the box in the x direction (cm). The value is stored in a magnitude.Magnitude.
Number of bins in the y direction. The number of bins must be equal or greater than 1 and less than the maximum number of allowed bins (100).
The value is stored in a magnitude.Magnitude.
Upper limit of the box in the y direction (cm). The value is stored in a magnitude.Magnitude.
Low limit of the box in the y direction (cm). The value is stored in a magnitude.Magnitude.
Number of bins in the z direction. The number of bins must be equal or greater than 1 and less than the maximum number of allowed bins (100).
The value is stored in a magnitude.Magnitude.
Upper limit of the box in the z direction (cm). The value is stored in a magnitude.Magnitude.
Low limit of the box in the z direction (cm). The value is stored in a magnitude.Magnitude.