Skip to main content
. 2022 Aug 19;145(1):011004. doi: 10.1115/1.4054983
Function update
Let m=number of generations
   If (m =0) Or ( tn+1>tm1)   If NewGeneration is True
     Push tn+1tm onto tu+1 stack
     Push U(tn+1) onto Uu+1 stack
     //Implement Sec. 2.3
     Update Ξm(U(tn+1)) using Eq. (2.31)
     Push F(Ξm(U(tn+1)))
     onto Fu+1 stack
     Push fm1(tm)=
     ReformingBondMassFraction
     onto fu+1 stack
     Call CullGenerations
    Else if tn+1=tm
     Update previously pushed
      U(tm), F(Ξm(U(tm))) and fm1(tm)
Function Ψr
    Let m=number of generations
    If m =0 Return Ψr=Ψre(F(tn+1))+Ψ0a(F(tn+1))
    Let Ψr=Ψre(F(tn+1))
    For u =0 to m – 1
     Evaluate wu1(tn+1)=fu1(tu)g(F(tu),tn+1tu)
     Evaluate Fu1(tn+1)=F(tn+1)·U1(tu1)
     Evaluate Ψr+= wu1(t)Ψ0a(Fu1(tn+1))
    Return Ψr