Simulating Calculation of the Variations of Organic Matter Abundance and Hydrocarbon-generating Potential during Geological Processes