Functions | |
GQuark | compact_error_quark (void) |
int | compact (Sed_column s) |
int compact | ( | Sed_column | s | ) |
Compact a column of sediment
Compact a column of sediment. The amount that a cell of sediment is compacted depends upon the load paced on it from the sediment vertically above it. That is,
where is porosity,
is closest-packed porosity,
is the overlying load, and
is the compaction coefficient.
Each cell of sediment keeps track of the thickness that it would be if it was not compacted. So, to compact a column of sediment we act only on the uncompacted thickness of each cell. This way we don't have to worry about compacting sediment that has already been compacted. Also, if a compacted cell of sediment is thicker than before compaction, then overlying sediment has been removed and the thickness of the cell is not changed.
s | A Sed_column to compact |
Definition at line 67 of file compact.c.
Referenced by main(), run_compaction(), and thread_compact().