MODFLOW 6 version 6.9.0.dev0
USGS Modular Hydrologic Model
Loading...
Searching...
No Matches
CompactionUtil.f90
Go to the documentation of this file.
1!> @brief Relations for compacting porous materials
2!!
3!! Conversions between porosity and void ratio, the change in thickness and
4!! porosity of a compacting layer, and the skeletal storage factor.
5!<
7 use kindmodule, only: dp
8 use constantsmodule, only: dzero, done
9
10 implicit none
11 private
12
15 public :: compact_layer
16 public :: adjust_eff_stress
17 public :: storage_factor
18
19contains
20
21 !> @brief Calculate the void ratio from the porosity
22 !<
23 pure function porosity_to_void_ratio(theta) result(void_ratio)
24 ! -- dummy variables
25 real(dp), intent(in) :: theta !< porosity
26 ! -- return
27 real(dp) :: void_ratio
28 !
29 void_ratio = theta / (done - theta)
30 end function porosity_to_void_ratio
31
32 !> @brief Calculate the porosity from the void ratio
33 !<
34 pure function void_ratio_to_porosity(void_ratio) result(theta)
35 ! -- dummy variables
36 real(dp), intent(in) :: void_ratio !< void ratio
37 ! -- return
38 real(dp) :: theta
39 !
40 theta = void_ratio / (done + void_ratio)
41 end function void_ratio_to_porosity
42
43 !> @brief Update the thickness and porosity of a layer after compaction
44 !!
45 !! The solid thickness, thick / (1 + void ratio), is unchanged.
46 !<
47 pure subroutine compact_layer(comp, thick, theta)
48 ! -- dummy variables
49 real(dp), intent(in) :: comp !< compaction
50 real(dp), intent(inout) :: thick !< initial and current thickness
51 real(dp), intent(inout) :: theta !< initial and current porosity
52 ! -- local variables
53 real(dp) :: strain
54 real(dp) :: void_ratio
55 !
56 ! -- initialize variables
57 strain = dzero
58 void_ratio = porosity_to_void_ratio(theta)
59 !
60 ! -- calculate strain
61 if (thick > dzero) strain = -comp / thick
62 !
63 ! -- update void ratio, theta, and thickness
64 void_ratio = void_ratio + strain * (done + void_ratio)
65 theta = void_ratio_to_porosity(void_ratio)
66 thick = thick - comp
67 end subroutine compact_layer
68
69 !> @brief Calculate the effective stress at elevation z from its value at z0
70 !<
71 pure function adjust_eff_stress(es0, z0, z, sgs) result(es)
72 ! -- dummy variables
73 real(dp), intent(in) :: es0 !< effective stress at elevation z0
74 real(dp), intent(in) :: z0 !< elevation of es0
75 real(dp), intent(in) :: z !< elevation to calculate the effective stress at
76 real(dp), intent(in) :: sgs !< saturated specific gravity
77 ! -- return
78 real(dp) :: es
79 !
80 es = es0 - (z - z0) * (sgs - done)
81 end function adjust_eff_stress
82
83 !> @brief Calculate the skeletal storage factor, 1 / ((1 + void ratio) es)
84 !!
85 !! Returns zero if the effective stress is zero.
86 !<
87 pure function storage_factor(es, theta) result(fact)
88 ! -- dummy variables
89 real(dp), intent(in) :: es !< effective stress
90 real(dp), intent(in) :: theta !< porosity
91 ! -- return
92 real(dp) :: fact
93 ! -- local variables
94 real(dp) :: denom
95 !
96 fact = dzero
97 denom = es * (done + porosity_to_void_ratio(theta))
98 if (denom /= dzero) then
99 fact = done / denom
100 end if
101 end function storage_factor
102
103end module compactionutilmodule
Relations for compacting porous materials.
pure real(dp) function, public void_ratio_to_porosity(void_ratio)
Calculate the porosity from the void ratio.
pure real(dp) function, public porosity_to_void_ratio(theta)
Calculate the void ratio from the porosity.
pure subroutine, public compact_layer(comp, thick, theta)
Update the thickness and porosity of a layer after compaction.
pure real(dp) function, public adjust_eff_stress(es0, z0, z, sgs)
Calculate the effective stress at elevation z from its value at z0.
pure real(dp) function, public storage_factor(es, theta)
Calculate the skeletal storage factor, 1 / ((1 + void ratio) es).
This module contains simulation constants.
Definition Constants.f90:9
real(dp), parameter dzero
real constant zero
Definition Constants.f90:65
real(dp), parameter done
real constant 1
Definition Constants.f90:76
This module defines variable data types.
Definition kind.f90:8