iapws__capi_g704 Module

Module for IAPWS G704 : C API.


Uses

  • module~~iapws__capi_g704~~UsesGraph module~iapws__capi_g704 iapws__capi_g704 iso_c_binding iso_c_binding module~iapws__capi_g704->iso_c_binding iso_fortran_env iso_fortran_env module~iapws__capi_g704->iso_fortran_env module~iapws__g704 iapws__g704 module~iapws__capi_g704->module~iapws__g704 ieee_arithmetic ieee_arithmetic module~iapws__g704->ieee_arithmetic module~iapws__r283 iapws__r283 module~iapws__g704->module~iapws__r283 stdlib_kinds stdlib_kinds module~iapws__g704->stdlib_kinds module~iapws__r283->stdlib_kinds

Used by

  • module~~iapws__capi_g704~~UsedByGraph module~iapws__capi_g704 iapws__capi_g704 module~iapws__capi iapws__capi module~iapws__capi->module~iapws__capi_g704 module~iapws iapws module~iapws->module~iapws__capi

Functions

public function capi_gases(heavywater) result(list_gases) bind(C, name="iapws_g704_gases"))

Returns the list of available gases.

Arguments

Type IntentOptional Attributes Name
integer(kind=c_int), intent(in), value :: heavywater

Flag if D2O (1) is used or H2O(0).

Return Value type(c_ptr)

Available gases.

public pure function capi_ngases(heavywater) result(n) bind(C, name="iapws_g704_ngases"))

Returns the number of gases.

Arguments

Type IntentOptional Attributes Name
integer(kind=c_int), intent(in), value :: heavywater

Flag if D2O (1) is used or H2O(0).

Return Value integer(kind=c_int)

Number of gases.


Subroutines

public subroutine capi_kd(T, gas, heavywater, k, size_gas, size_T) bind(C,name="iapws_g704_kd")

Compute the vapor-liquid constant for a given temperature.

Arguments

Type IntentOptional Attributes Name
real(kind=c_double), intent(in) :: T(size_T)

Temperature in °C.

type(c_ptr), intent(in), value :: gas

Gas.

integer(kind=c_int), intent(in), value :: heavywater

Flag if D2O (1) is used or H2O(0).

real(kind=c_double), intent(inout) :: k(size_T)

Vapor-liquid constant. Filled with NaNs if gas not found.

integer(kind=c_int), intent(in), value :: size_gas

Size of the gas string.

integer(kind=c_size_t), intent(in), value :: size_T

Size of T and k.

public subroutine capi_kh(T, gas, heavywater, k, size_gas, size_T) bind(C,name="iapws_g704_kh")

Compute the henry constant for a given temperature.

Arguments

Type IntentOptional Attributes Name
real(kind=c_double), intent(in) :: T(size_T)

Temperature in °C.

type(c_ptr), intent(in), value :: gas

Gas.

integer(kind=c_int), intent(in), value :: heavywater

Flag if D2O (1) is used or H2O(0).

real(kind=c_double), intent(inout) :: k(size_T)

Henry constant. Filled with NaNs if gas not found.

integer(kind=c_int), intent(in), value :: size_gas

Size of the gas string.

integer(kind=c_size_t), intent(in), value :: size_T

Size of T and k.