Public Member Functions | |
def | __init__ |
def | tools |
Public Attributes | |
radioact |
Configure GenDecay generator
Definition at line 32 of file Radioactivity.py.
def Radioactivity::Radioact::__init__ | ( | self, | ||
name = None , |
||||
volume = None , |
||||
nuclide = None , |
||||
abundance = None , |
||||
strategy = None , |
||||
material = None , |
||||
fillvolumes = None | ||||
) |
Definition at line 35 of file Radioactivity.py.
00043 : 00044 00045 from GenDecay.Helpers import Decay 00046 00047 radioact = Decay(name) 00048 radioact.decay.ParentNuclide = nuclide 00049 radioact.decay.ParentAbundance = abundance 00050 radioact.decay.SecularEquilibrium = True 00051 radioact.decay.CorrelationTime = 0.01*units.second 00052 00053 radioact.positioner.Volume = volume 00054 radioact.positioner.Position = [0, 0, 0] 00055 radioact.positioner.Mode = "Uniform" 00056 radioact.positioner.Spread = 20*units.m 00057 radioact.positioner.Strategy = strategy 00058 if radioact.positioner.Strategy == 'VolumeType': 00059 radioact.positioner.FillVolumes = [fillvolumes] 00060 if radioact.positioner.Strategy == 'Material': 00061 radioact.positioner.FillMaterials = [material] 00062 00063 radioact.transformer.Volume = volume 00064 00065 self.radioact = radioact 00066 def tools(self):
def Radioactivity::Radioact::tools | ( | self | ) |
Definition at line 57 of file Radioactivity.py.