Skip to main content
. 2022 Aug 19;145(1):011004. doi: 10.1115/1.4054983
Function ReformingBondMassFraction
    //Implement Eq. (2.25)
    Let m=number of generations
    If (m =0) Let fm1(tn+1)=1
    Else Let fm1(tn+1)=F(Ξm(tn+1))
    For u =0 to m – 1
   fm1(tn+1) =
       fu1(tu)g(F(tu),tn+1tu)     Return fm1(tn+1)
Function NewGeneration
    //Implement Sec. 2.2.4
    Let fm1(tn+1)=
    ReformingBondMassFraction
    If fm1(tn+1)<wmin Return false
    //Implement Sec. 2.2.2
    Evaluate ΔF=F(tn+1)·F1(tm)
    Evaluate e from Eq. (2.27)
    If e>emin Return True
    Return False
Function CullGenerations
    //Implement Sec. 2.2.3
    Let m=number of generations
    If m <3 Return
    Let w0(tn+1)=g(U(t0),tn+1t0)
    If w0(tn+1)<wmin Let w1(tn+1)=f0(t1)g(U(t1),tn+1t1)
    Update t1, f0(t1), U(t1)
      and F(Ξm(t1)) per Eq. (2.28)
      Pop t0, U(t0), f(t0)
      and F(Ξm(t0)) out of
       tu+1, fu(tu+1), U(tu+1)
      and F(Ξm(tu+1)) stacks
   Return