I thought about the same thing last week : how doing that?
As far as I know of geology, you have 3 kind of rocks :
- rocks coming from sedimentation
- rocks coming from lavas
- rocks coming from the first two types, transformed by physical processes (pressure and temperature)
My thinking of how doing that was the following :
1 - you start with a "granitic planet" : all plates are granite on the top, meaning magma which have slowly cool down on the top of a core of liquid magma
when going down in the earth, before reaching the mantle, the granite become a metamorphic rock. The layers of types of rocks depend of the temperature and pression. Then you have the liquid magma, but you don't care about it for your work.
At this moment, one question seems important : are there any moutains, seas, from events before you start your planet? Or is your earth flat, a perfect ball of granit, with no erosion?
If yoy have some relief, you can start some erosion there : you have rocks from sedimentation, and you have to decide if your world is with or without life
- without means only sedimentation from rocks erosion
- with means sedimentation from life remains (forming limestone)
I don't know what are the times recquired for forming rocks from sedimentation. You have to find some rule :
- for the seas with life, for knowing the height of limestone that can be formed for example (as long as there is a sea ... of course ...). Forests can become carbonatd rocks like coal, or petroleum.
- for the sedimentation from rocks, you have to simulate erosion, main rivers, sediment deposit
That's mean you have layers of rocks coming atop your granitic planet.
2 - plates start moving
then I think everything becomes very very complicated
plate moving away from each other : at the junction, basalt (volcanoes) come to the top, meaning layers of basalt at surface
plate with friction : the plates are pleated, meaning that your different layers of rocks make waves. Furthermore, there is a another metamorphic transformation due to the pressure. And magmas makes it ways to the surface (volcanos) meaning basaltic rocks.
The erosion still goes on, and sedimentation too, meaning that you have layers of rocks coming atop of what was before, and at a same time, the rocks under your surface become apparent (in mountains, meanings layers of differents kind of rocks for example)
My conclusion is that making a whole simulator is far away from my geological knowledges, and that the simulator should be very consuming in CPU time