752 class(GwtDspType) :: this
754 integer(I4B) :: nodes, n, m, idiag, ipos
755 real(DP) :: clnm, clmn, dn, dm
756 real(DP) :: vg1, vg2, vg3
757 integer(I4B) :: ihc, isympos
758 integer(I4B) :: iavgmeth
759 real(DP) :: satn, satm, topn, topm, botn, botm
760 real(DP) :: hwva, cond, cn, cm, denom
761 real(DP) :: anm, amn, thksatn, thksatm
767 nodes =
size(this%d11)
769 if (this%fmi%ibdgwfsat0(n) == 0) cycle
770 idiag = this%dis%con%ia(n)
771 do ipos = this%dis%con%ia(n) + 1, this%dis%con%ia(n + 1) - 1
774 m = this%dis%con%ja(ipos)
778 isympos = this%dis%con%jas(ipos)
779 this%dispcoef(isympos) = dzero
780 if (this%fmi%ibdgwfsat0(m) == 0) cycle
783 hwva = this%dis%con%hwva(isympos)
784 clnm = this%dis%con%cl1(isympos)
785 clmn = this%dis%con%cl2(isympos)
786 ihc = this%dis%con%ihc(isympos)
787 topn = this%dis%top(n)
788 topm = this%dis%top(m)
789 botn = this%dis%bot(n)
790 botm = this%dis%bot(m)
793 satn = this%fmi%gwfsat(n)
794 satm = this%fmi%gwfsat(m)
799 call this%dis%connection_normal(n, m, ihc, vg1, vg2, vg3, ipos)
800 dn =
hyeff(this%d11(n), this%d22(n), this%d33(n), &
801 this%angle1(n), this%angle2(n), this%angle3(n), &
802 vg1, vg2, vg3, iavgmeth)
803 dm =
hyeff(this%d11(m), this%d22(m), this%d33(m), &
804 this%angle1(m), this%angle2(m), this%angle3(m), &
805 vg1, vg2, vg3, iavgmeth)
810 clnm = satn * (topn - botn) * dhalf
811 clmn = satm * (topm - botm) * dhalf
815 if (satn == dzero)
then
817 else if (n > m .and. satn < done)
then
822 if (satm == dzero)
then
824 else if (m > n .and. satm < done)
then
840 thksatn = (topn - botn) * satn
841 thksatm = (topm - botm) * satm
849 if (satn == dzero .or. satm == dzero)
then
858 if (clnm > dzero) cn = dn * anm / clnm
860 if (clmn > dzero) cm = dm * amn / clmn
862 if (denom > dzero)
then
863 cond = cn * cm / denom
869 this%dispcoef(isympos) = cond
This module contains stateless conductance functions.
real(dp) function, public staggered_thkfrac(top, bot, sat, topc, botc)
Calculate the thickness fraction for staggered grids.
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...