CODE OUTLINE

Obtain Fixed Input Parameters

Begin daily loop [580-2850]:

Begin hourly loop [1213-2550]:

Begin Main Convergence Loop [1420-1770]:

"Solving the leaf energy budget, which involves radiative, sensible and latent heat exchanges, requires a knowledge of the radiative, temperature, humidity and wind environments adjacent to the leaf. Environmental conditions adjacent to leaves are obtained from one-dimensional radiation (deWit 1965) and turbulent transfer equations (Goudriaan 1977) which in turn need the collective results of the leaf energy budgets for all the leaves. Therefore leaf energy budgets and vertical profile equations must be solved simultaneously." (Norman 1989)

Begin PSI Convergence Loop [1420-1570]:

Begin Leaf Temperature Convergence Loop [1430-1480]:

End Leaf Temperature Convergence Loop

End PSI Convergence Loop

End Main Convergence Loop

End Hourly Loop (go to next hour)

End Daily Loop (go to next day)