MODFLOW 6 version 6.9.0.dev0
USGS Modular Hydrologic Model
Loading...
Searching...
No Matches
freundlichisothermmodule::freundlichisothermtype Interface Referenceabstract

Freundlich isotherm implementation of IsothermType. More...

Inheritance diagram for freundlichisothermmodule::freundlichisothermtype:
Inheritance graph
Collaboration diagram for freundlichisothermmodule::freundlichisothermtype:
Collaboration graph

Public Member Functions

procedure derivative (this, c, n)
 Evaluate derivative of the isotherm at a given node.
type(freundlichisothermtype) function constructor (kf, a)
 Constructor for Freundlich isotherm.
procedure(derivative_if), deferred derivative (this, c, n)

Public Attributes

real(dp), dimension(:), pointer kf => null()
 Freundlich constant.
real(dp), dimension(:), pointer a => null()
 Freundlich exponent.

Detailed Description

Sorbed concentration is cs = Kf*c^a.

However, this expression has a singularity at c = 0 when a < 1, leading to infinite derivative. To avoid this, the Freundlich isotherm is modified as follows.

Modified Sorbed concentration is cs = Kf*(c + eps)^a - Kf*eps^a where eps = (K/(a*Kf))^(1/(a-1)) and K is a large constant (default 10). This ensures that the derivative at c = 0 is below K.

Definition at line 23 of file FreundlichIsotherm.f90.

Member Function/Subroutine Documentation

◆ constructor()

type(freundlichisothermtype) function freundlichisothermmodule::freundlichisothermtype::constructor ( real(dp), dimension(:), intent(in), pointer kf,
real(dp), dimension(:), intent(in), pointer a )

Definition at line 39 of file FreundlichIsotherm.f90.

40 type(FreundlichIsothermType) :: isotherm
41 ! -- dummy
42 real(DP), pointer, dimension(:), intent(in) :: Kf
43 real(DP), pointer, dimension(:), intent(in) :: a
44 ! -- local
45 isotherm%Kf => kf
46 isotherm%a => a
47

◆ derivative() [1/2]

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

Definition at line 28 of file FreundlichIsotherm.f90.

Here is the call graph for this function:

◆ derivative() [2/2]

procedure(derivative_if), deferred isotherminterfacemodule::isothermtype::derivative ( class(isothermtype), intent(in) this,
real(dp), dimension(:), intent(in) c,
integer(i4b), intent(in) n )
pure virtualinherited
Parameters
[in]thisisotherm object
[in]cconcentration array
[in]nnode index

Definition at line 13 of file IsothermInterface.f90.

Member Data Documentation

◆ a

real(dp), dimension(:), pointer freundlichisothermmodule::freundlichisothermtype::a => null()

Definition at line 25 of file FreundlichIsotherm.f90.

◆ kf

real(dp), dimension(:), pointer freundlichisothermmodule::freundlichisothermtype::kf => null()

Definition at line 24 of file FreundlichIsotherm.f90.


The documentation for this interface was generated from the following file: