MODFLOW 6  version 6.7.0.dev3
USGS Modular Hydrologic Model
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. More...
 
real(dp) function value (this, c, n)
 Evaluate the isotherm at a given node. More...
 
real(dp) function derivative (this, c, n)
 Evaluate derivative of the isotherm at a given node. More...
 

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)