23 angle1, angle2, angle3, dispcoef)
29 integer(I4B),
dimension(:),
intent(in) :: ibdsat
30 real(dp),
dimension(:),
intent(in) :: sat
31 real(dp),
dimension(:),
intent(in) :: d11
32 real(dp),
dimension(:),
intent(in) :: d22
33 real(dp),
dimension(:),
intent(in) :: d33
34 real(dp),
dimension(:),
intent(in) :: angle1
35 real(dp),
dimension(:),
intent(in) :: angle2
36 real(dp),
dimension(:),
intent(in) :: angle3
37 real(dp),
dimension(:),
intent(inout) :: dispcoef
39 integer(I4B) :: nodes, n, m, ipos
40 real(dp) :: clnm, clmn, dn, dm
41 real(dp) :: vg1, vg2, vg3
42 integer(I4B) :: ihc, isympos
43 integer(I4B) :: iavgmeth
44 real(dp) :: satn, satm
45 real(dp) :: cond, cn, cm, denom
46 real(dp) :: hwva, anm, amn
53 if (ibdsat(n) == 0) cycle
54 do ipos =
dis%con%ia(n) + 1,
dis%con%ia(n + 1) - 1
57 isympos =
dis%con%jas(ipos)
58 dispcoef(isympos) =
dzero
59 if (ibdsat(m) == 0) cycle
61 clnm =
dis%con%cl1(isympos)
62 clmn =
dis%con%cl2(isympos)
63 ihc =
dis%con%ihc(isympos)
68 call dis%connection_normal(n, m, ihc, vg1, vg2, vg3, ipos)
69 dn =
hyeff(d11(n), d22(n), d33(n), &
70 angle1(n), angle2(n), angle3(n), &
71 vg1, vg2, vg3, iavgmeth)
72 dm =
hyeff(d11(m), d22(m), d33(m), &
73 angle1(m), angle2(m), angle3(m), &
74 vg1, vg2, vg3, iavgmeth)
76 hwva =
dis%con%hwva(isympos)
87 if (satn ==
dzero)
then
89 else if (n > m .and. satn <
done)
then
92 if (satm ==
dzero)
then
94 else if (m > n .and. satm <
done)
then
108 if (clnm >
dzero) cn = dn * anm / clnm
110 if (clmn >
dzero) cm = dm * amn / clmn
112 if (denom >
dzero)
then
113 cond = cn * cm / denom
117 dispcoef(isympos) = cond
This module contains simulation constants.
@ dis
DIS6 discretization.
real(dp), parameter dhalf
real constant 1/2
real(dp), parameter dzero
real constant zero
real(dp), parameter done
real constant 1
This module contains stateless conductance functions.
real(dp) function, public flow_area(ihc, hwva, top, bot, sat, topc, botc)
Calculate the saturated flow area of a cell for a connection.
General-purpose hydrogeologic functions.
real(dp) function, public hyeff(k11, k22, k33, ang1, ang2, ang3, vg1, vg2, vg3, iavgmeth)
Calculate the effective horizontal hydraulic conductivity from an ellipse using a specified direction...
This module defines variable data types.
Dispersion coefficients shared by solute dispersion and heat conduction.
subroutine, public calc_dispcoef(dis, ibdsat, sat, d11, d22, d33, angle1, angle2, angle3, dispcoef)
Calculate the dispersion coefficient for each connection.