PyNE C++
Functions | Variables
decaygen Namespace Reference

Functions

def genfiles (nucs, short=1e-8, sf=False, dummy=False)
 
def genchains (chains, sf=False)
 
def k_a (chain, short=1e-8)
 
def kbexpr (k, b)
 
def ensure_cse (a_i, b, cse)
 
def b_from_a (cse, a_i)
 
def chainexpr (chain, cse, b, bt, short=1e-8)
 
def gencase (nuc, idx, b, short=1e-8, sf=False)
 
def elems (nucs)
 
def gencases (nucs)
 
def genelemfuncs (nucs, short=1e-8, sf=False)
 
def load_default_nucs ()
 
def upload (ns)
 
def build (hdr='decay.h', src='decay.cpp', nucs=None, short=1e-8, sf=False, dummy=False)
 
def main ()
 

Variables

 ENV = jinja2.Environment(undefined=jinja2.StrictUndefined)
 
string autogenwarn
 
 HEADER = ENV.from_string(.strip())
 
 SOURCE = ENV.from_string(.strip())
 
 ELEM_FUNC = ENV.from_string(.strip())
 
string BREAK = ' break;'
 
string CHAIN_STMT = ' out[{0}] += {1};'
 
string CHAIN_EXPR = '(it->second) * ({0})'
 
string EXP_EXPR = 'exp2({a:e}*t)'
 
string KEXP_EXPR = '{k:e}*'
 
string B_STMT = 'double b{b} = {exp};'
 
string B_EXPR = 'b{b}'
 
string KB_EXPR = '{k:e}*'
 

Detailed Description

This file generates a static C++ decayer function for use with PyNE.
It is suppossed to be fast.

Variable Documentation

string decaygen.autogenwarn
Initial value:
1 = """
2 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
3 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
4 // WARNING
5 // This file has been auto generated
6 // Do not modify directly. You have
7 // been warned. This is that warning
8 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
9 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10 """