Bases: object
Structure for the particle_type of collisions for each primary particle.
Parameters: | particle_type – particle_type of particle (use ELECTRON, PHOTON or POSITRON) |
---|---|
Particle_type particle_type: | |
int |
Examples:
>>> collisionType = CollisionTypes().HARD_ELASTIC_COLLISION
>>> print collisionType
>>> 2
Bases: object
Constructor of an interaction forcing for a given body, particle and type of collision.
Parameters: |
|
---|
Type of collision. A value between 1 and 8. See Collisions for the definitions.
Forcing value. If negative the foring value is adjusted based on the interaction volume. The value is stored in a magnitude.Magnitude.
Creates a InteractionForcing from lines of a IN file.
Parameters: | lines – lines |
---|
Creates a InteractionForcing from a XML element.
Parameters: | element – XML element |
---|
Id of the body/module. The id must be greater or equal to 1.
Type of particle. The particle can either be a ELECTRON, PHOTON or POSITRON.
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 the interaction forcing to check if the upper limit is greater than the lower limit. Raises ValueError
Upper limit of the weighting factor of the interaction forcing. The value must be between 0.0 and 1.0. The value is stored in a magnitude.Magnitude.
Lower limit of the weighting factor of the interaction forcing. The value must be between 0.0 and 1.0. The value is stored in a magnitude.Magnitude.
Bases: list, penelopetools.api.input.penelope.option.Option
Store the interaction forcings of a simulation job in a list object.
Parameters: | data (list) – list of InteractionForcing.InteractionForcing |
---|
Appends an InteractionForcing to the list of interactionForcings.
Removes all the interaction forcings from the list.
Extends the list of interaction forcings by another list of interaction forcings.
Creates a InteractionForcings from lines of a IN file.
Parameters: | lines – lines |
---|
Creates a InteractionForcings from a XML element.
Parameters: | element – XML element |
---|
Inserts an interaction forcing at index.
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 every interaction forcing in the list. Raises: ValueError
Applies a set of interaction forcings interactionforcings to all modules in the geometry.
The interaction forcings in the given set are duplicated for each module.
Parameters: |
|
---|---|
Return type: |