Rock expansion and compaction at the marker scale in gas producing reservoirs