/search.css" rel="stylesheet" type="text/css"/> /search.js">
Functions | |
def | Radioact |
def Radioact::Radioact | ( | stage = 'null' , |
|
name = 'K40_gds' , |
|||
volume = '/dd/Structure/AD/db-gds1' , |
|||
nuclide = "K40" , |
|||
abundance = 3.01e17 , |
|||
strategy = "AvoidDaughters" , |
|||
material = "StainlessSteel" , |
|||
fillvolumes = "lvPmtHemiVacuum" , |
|||
start_time = 0 |
|||
) |
Configure GenDecay generator Originally created by Qing. Modified from MDC09b/runIBD15 by Zhe Dec. 13, 2010
Definition at line 4 of file Radioact.py.
00013 : 00014 ''' 00015 Configure GenDecay generator 00016 Originally created by Qing. 00017 Modified from MDC09b/runIBD15 by Zhe Dec. 13, 2010 00018 ''' 00019 00020 # set up Gnrtr itself 00021 from Gnrtr.GnrtrConf import Gnrtr 00022 gnrtr = Gnrtr(name) 00023 00024 gnrtr.GenTools = [ "GtDecayerator/"+name+"Gen", 00025 "GtPositionerTool/"+name+"Pos", 00026 "GtTransformTool/"+name+"Tra"] 00027 00028 gnrtr.TimeStamp = start_time 00029 gnrtr.GenName = name 00030 00031 # set up each tools 00032 from GenDecay.GenDecayConf import GtDecayerator 00033 from GenTools.GenToolsConf import GtPositionerTool, GtTransformTool 00034 00035 #generator 00036 gen=GtDecayerator(name+'Gen') 00037 gen.ParentNuclide = nuclide 00038 gen.ParentAbundance = abundance 00039 gen.SecularEquilibrium = True 00040 gen.CorrelationTime = 1*units.second 00041 00042 # Set up positioner 00043 pos=GtPositionerTool(name+'Pos',Volume=volume) 00044 pos.Strategy = strategy 00045 if pos.Strategy == 'VolumeType': 00046 pos.FillVolumes = [fillvolumes] 00047 if pos.Strategy == 'Material': 00048 pos.FillMaterials = [material] 00049 pos.Mode = "Uniform" 00050 pos.Spread = 25*units.m 00051 pos.Position = [0,0,0*units.m] 00052 00053 # transform 00054 tra=GtTransformTool(name+'Tra',Volume=volume) 00055 00056 return gnrtr