Python代写 | Simulate Soil Consolidation Assignment


Consolidation is the gradual changes in volume of a partly or fully saturated soil when subject to a
sustained load. The changes are mainly due to the removal of gases, �uids and organic matter from
the soil. We simplify our model to consider this matter as water.
A sample of soil shows the particles arranged with voids between them.
Soil can be composed of many minerals, primary silica, but clay, sand, shale, rock. Some of these
have more water content than others. Water is present within soil and we can assume water is an
incompressible �uid, where any pressure applied will cause the water to move to a lower pressure.
The water is e�ectively squeezed out of the soil very slowly.
Soil consolidation has a huge impact on the planning and construction of buildings throughout
history. The leaning tower of Pisa is a great example to showcase the importance of soil consolidation
design/assignments/the-tilt-of-the-tower-of-pisa-why-and-how ].

The purpose of the simulation is to determine:
how long consolidation will take for a given load and placement over a soil con�guration
how much water is displaced during consolidation
what are the changes in height of the soil after consolidation

Simulation Input and Output
functionality for �le input/output provided for you
The simulation will require information about the nature of the soil, the load, and the parameters
used to simulate. These are read from a �le using the three command line arguments.
$ <simulation parameters file path> <soil data file path> <output file pat

Your program will read in a �le for the simulation parameters from argument 1
Your program will read in a �le for the soil geometry and composition from argument 2
Your program will write to a �le for the results of the simulation from argument 3
For example:
$ tests/ tests/ sim_results_p1_s1.txt
Modelling of the problem
The modelling of soil consolidation in this assignment makes the following assumptions:
soil particles have no air
soil particles initially have a capacity to hold water and is considered full
for example, if clay can hold 40% water, then at the beginning of the simulation, the clay
particle holds 40% water.
water is an incompressible �uid
water moving out of a particle will cause the particle to compress
any amount of water removed from a particle cannot be reintroduced
soil particle categorisation is limited to Clay and Shale and only relevant to the initial conditions
bedrock is an incompressible particle and will always provide an equal and opposite reactive
The void particle is a simple characterisation of representing a lower pressure area and it is
assume to have no volume or capacity. A sand column could be represented as a lower
pressure region, but as a void it has no capacity.
We model a particle of soil