conv_t
|
PHREEQC-BASIC |
conv_t(<str::unit>) |
|
MY-BASIC |
conv_t(<str::unit>) |
To convert the value of a parameter or variable to or from the units defined in the Time Information dialogue window of the HYDRUS GUI:
- conv_t() is used to convert the parameter value to the value for the units defined in the Time Information dialogue window of the HYDRUS GUI.
- 1/conv_t() is used to convert a variable value (with units defined in the Time Information dialogue window of the HYDRUS GUI) to other units.
Note that the time unit in the geochemical calculations is the same as defined in the Time Information dialogue window of the HYDRUS GUI. Time steps (e.g. in kinetics) and variables have thus this unit instead of the standard unit seconds in the stand-alone PHREEQC code.
Return value: conversion value
Arguments
|
unit |
str: variable defining the unit
|
Examples
For a parameter par with unit [T-1]:
par / conv_t("d") will convert par that is defined in days-1 to the unit defined in the Time Information dialogue window of the HYDRUS GUI.
par * conv_t("d") will convert par from the unit defined in the Time Information dialogue window of the HYDRUS GUI to days-1.
|
[MyBASIC] rate = 0.02 / conv_t("min") k = hyd_cond() * conv_t("hour") |
The first line changes a rate coefficient with a value of 0.02 / min. If the unit defined in the Time Information dialogue window of the HYDRUS GUI is in seconds, conv_t("min") equals 60 and the value of 0.02 is divided by 60.
The second line gets the hydraulic conductivity [L/T-1] which has the units defined in the Time Information dialogue window of the HYDRUS GUI and converts it to the unit of interest (hours). If seconds is defined in the Time Information dialogue window of the HYDRUS GUI, conv_t("hour")has the value of 3600.