/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Classes | Functions
GenDecay::Helpers Namespace Reference

Classes

class  Decay

Functions

def configure

Function Documentation

def GenDecay::Helpers::configure (   argv = [])
Configure for use as a Job Option Module

Definition at line 81 of file Helpers.py.

00082                       :
00083     '''
00084     Configure for use as a Job Option Module
00085     '''
00086 
00087     from optparse import OptionParser
00088 
00089     nuclide='U-238'
00090 
00091     parser = OptionParser(usage=configure.__doc__)
00092     parser.add_option('-n','--nuclide',default='U-238',type='string',
00093                       help='Set name of nuclide (def: "U-238")')
00094     parser.add_option('-t','--correlation-time',default=1,
00095                       type='float',
00096                       help='Decay correlation time in seconds (def: 1)')
00097     parser.add_option('-a','--abundance',default=5.0e16, type='float',
00098                       help='Abundance = concentration*grams*N_a/A (def=5.0e16)')
00099     parser.add_option('-e','--secular-equilibrium',default=True,
00100                       help='Assume secular equilibrium for uncorrelated decays (def=True)')
00101 
00102     parser.disable_interspersed_args()
00103     opts,args = parser.parse_args(args=argv)
00104     opts.correlation_time *= units.second
00105 
00106     import GenTools
00107     helper = Decay()
00108     helper.decay.CorrelationTime = opts.correlation_time
00109     helper.decay.ParentNuclide = opts.nuclide
00110     helper.decay.ParentAbundance = opts.abundance
00111     helper.decay.SecularEquilibrium = opts.secular_equilibrium
00112     #helper.OutputLevel = 2
00113     gtc = GenTools.Configure(genname="GenDecay",helper=helper)
00114 
00115     #GenTools.Dumper()
00116 
00117     return
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 10:21:06 for GenDecay by doxygen 1.7.4