Contents:
Function calculates the total source terms.
Parent simulation frame
Surface density to be used if not None
Total source terms of surface density