744 class(GwtDspType) :: this
746 integer(I4B) :: nodes, n, m, idiag, ipos
747 real(DP) :: clnm, clmn, dn, dm
748 real(DP) :: vg1, vg2, vg3
749 integer(I4B) :: ihc, isympos
750 integer(I4B) :: iavgmeth
751 real(DP) :: satn, satm, topn, topm, botn, botm
752 real(DP) :: hwva, cond, cn, cm, denom
753 real(DP) :: anm, amn, thksatn, thksatm
759 nodes =
size(this%d11)
761 if (this%fmi%ibdgwfsat0(n) == 0) cycle
762 idiag = this%dis%con%ia(n)
763 do ipos = this%dis%con%ia(n) + 1, this%dis%con%ia(n + 1) - 1
766 m = this%dis%con%ja(ipos)
770 isympos = this%dis%con%jas(ipos)
771 this%dispcoef(isympos) = dzero
772 if (this%fmi%ibdgwfsat0(m) == 0) cycle
775 hwva = this%dis%con%hwva(isympos)
776 clnm = this%dis%con%cl1(isympos)
777 clmn = this%dis%con%cl2(isympos)
778 ihc = this%dis%con%ihc(isympos)
779 topn = this%dis%top(n)
780 topm = this%dis%top(m)
781 botn = this%dis%bot(n)
782 botm = this%dis%bot(m)
785 satn = this%fmi%gwfsat(n)
786 satm = this%fmi%gwfsat(m)
791 call this%dis%connection_normal(n, m, ihc, vg1, vg2, vg3, ipos)
792 dn =
hyeff(this%d11(n), this%d22(n), this%d33(n), &
793 this%angle1(n), this%angle2(n), this%angle3(n), &
794 vg1, vg2, vg3, iavgmeth)
795 dm =
hyeff(this%d11(m), this%d22(m), this%d33(m), &
796 this%angle1(m), this%angle2(m), this%angle3(m), &
797 vg1, vg2, vg3, iavgmeth)
802 clnm = satn * (topn - botn) * dhalf
803 clmn = satm * (topm - botm) * dhalf
807 if (satn == dzero)
then
809 else if (n > m .and. satn < done)
then
814 if (satm == dzero)
then
816 else if (m > n .and. satm < done)
then
832 thksatn = (topn - botn) * satn
833 thksatm = (topm - botm) * satm
841 if (satn == dzero .or. satm == dzero)
then
850 if (clnm > dzero) cn = dn * anm / clnm
852 if (clmn > dzero) cm = dm * amn / clmn
854 if (denom > dzero)
then
855 cond = cn * cm / denom
861 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...