MODFLOW 6 version 6.9.0.dev0
USGS Modular Hydrologic Model
Loading...
Searching...
No Matches
linearisothermsmodule Module Reference

Data Types

interface  linearisothermtype
 Linear (Kd) isotherm implementation of IsothermType. More...

Functions/Subroutines

type(linearisothermtype) function constructor (kd)
 Constructor for Linear isotherm.
real(dp) function value (this, c, n)
 Evaluate the isotherm at a given node.
real(dp) function derivative (this, c, n)
 Evaluate derivative of the isotherm at a given node.

Function/Subroutine Documentation

◆ constructor()

type(linearisothermtype) function linearisothermsmodule::constructor ( real(dp), dimension(:), intent(in), pointer kd)
private
Parameters
[in]kddistribution coefficient

Definition at line 28 of file LinearIsotherm.f90.

29 ! -- return
30 type(LinearIsothermType) :: isotherm
31 ! -- dummy
32 real(DP), pointer, dimension(:), intent(in) :: Kd !< distribution coefficient
33 ! -- local
34
35 isotherm%Kd => kd
36
Here is the caller graph for this function:

◆ derivative()

real(dp) function linearisothermsmodule::derivative ( class(linearisothermtype), intent(in) this,
real(dp), dimension(:), intent(in) c,
integer(i4b), intent(in) n )
private
Returns
derivative d(value)/dc evaluated at c
Parameters
[in]cconcentration array
[in]nnode index

Definition at line 54 of file LinearIsotherm.f90.

55 ! -- return
56 real(DP) :: derv !< derivative d(value)/dc evaluated at c
57 ! -- dummy
58 class(LinearIsothermType), intent(in) :: this
59 real(DP), dimension(:), intent(in) :: c !< concentration array
60 integer(I4B), intent(in) :: n !< node index
61 ! -- local
62
63 derv = this%Kd(n)

◆ value()

real(dp) function linearisothermsmodule::value ( class(linearisothermtype), intent(in) this,
real(dp), dimension(:), intent(in) c,
integer(i4b), intent(in) n )
private
Returns
isotherm value
Parameters
[in]cconcentration array
[in]nnode index

Definition at line 41 of file LinearIsotherm.f90.

42 ! -- return
43 real(DP) :: val !< isotherm value
44 ! -- dummy
45 class(LinearIsothermType), intent(in) :: this
46 real(DP), dimension(:), intent(in) :: c !< concentration array
47 integer(I4B), intent(in) :: n !< node index
48
49 val = this%Kd(n) * c(n)