Overview of script functions
Syntax PHREEQC & HPx related script functions
|
PHREEQC BASIC INTERPRETER |
MY-BASIC |
PYTON |
FUNCTION |
GROUP |
|
|
|
|
|
|
||
|
abs(flt) |
abs(flt) |
|
Absolute value |
Mathematical functions |
|
|
|
|
|
|
|
|
|
calc_value(str[,flt,flt,flt,...]) |
calc_value(str[,flt,flt,flt,...]) |
|
Execute script str defined with calculate_values Additional variables can be given. |
Global Variables |
|
|
calc_arg(int) |
calc_arg(int) |
|
Return the int argument defined wit calc_value |
Global Variables |
|
|
- |
calc_out(flt[,flt,filt,...] |
|
Save additional output in a vector during a calc_value script |
Global Variables |
|
|
- |
calc_res(int) |
|
Get the int additional saved value from a calc_value script |
Global Variables |
|
|
cell_no |
cell_no() |
|
Cell or solution number |
||
|
change_por(flt[,int]) |
change_por(flt[,int]) |
|
Change the porosity |
||
|
change_por0(flt[,int]) |
change_por0(flt[,int]) |
|
Change the initial porosity |
||
|
change_sfcond(flt[,int]) |
change_sfcond(flt[,int]) |
|
Change the scaling factor of the hydraulic conductivity |
||
|
change_sfcond0(flt[,int]) |
change_sfcond0(flt[,int]) |
|
Change the initial scaling factor of the hydraulic conductivity |
||
|
change_sfwater(flt[,int]) |
change_sfwater(flt[,int]) |
|
Change scaling factor of water content |
||
|
change_sfwater0(flt[,int]) |
change_sfwater0(flt[,int]) |
|
Change initial scaling factor of water content |
||
|
equi(str) |
equi(str) |
|
Moles of equilibrium phases |
||
|
exists(int[,int]) |
existsval(int[,int]) |
|
Check if there is a variable at the sequence of identifiers |
Global Variables |
|
|
|
|
|
|
|
|
|
get(int[,int]) |
getval(int[,int]) |
|
Get a value that is stored at the sequence of identfiers |
Global Variables |
|
|
get_node(str[,int]) |
get_node(str[,int]) |
|
Get value of a variable at a chemical entitiy or node |
||
|
get_nodeexist(str[,int]) |
get_nodeexist(str[,int]) |
|
Check if variable at a chemical entity exist |
||
|
|
|
get_var |
Get value of a global variable |
|
|
|
get_varexist(str) |
get_varexist(str) |
|
Check if variable exists |
||
|
- |
gasn_vol |
|
Get the gas volume |
|
|
|
- |
modify(str,str,str,flt) |
|
Change a selected property of a reactant |
||
|
- |
openf(string) |
|
Open a file for writing (limited use) |
Output |
|
|
|
- |
|
Write output in phreeqc.out |
Output |
|
|
|
punch_def(str,{str|flt}) |
|
Punch a record at the end of a datablock |
||
|
put(flt, int,[int]) |
putval(flt, int,[int]) |
|
Store a variable at the sequence of identifiers |
Global Variables |
|
|
put_node(str,flt[,int ]) |
|
|
Store a variable at a chemical entity or node |
||
|
str$ |
str |
|
Convert a number to a string |
|
|
|
|
strf |
|
|
|
|
|
- |
string.find(str,str) |
|
Find a substring in a string |
||
|
sys(str[,txt,txt,txt,txt]) |
sys(str[,str,str,str,str]) |
|
Summed values and details of geochemical speciation |
||
|
- |
string.comparenocase(str,str) |
|
Compare two strings (case insensitive) |
String functions |
|
|
- |
string.find(str,str) |
|
Search for a substring in a larger string |
String functions |
|
|
transprop(int|str[,int]) |
transprop(int|str[,int]) |
|
Physical parameter defined in HYDRUS GUI |
||
|
update_sfwater(flt[,int]) |
update_sfwater(flt[,int]) |
|
Updates the scaling factor for the water content based on porosity |
||
|
- |
writes(string) |
|
Screen output |
Output |
|
|
- |
write(string) |
|
Write output in phreeqc.out |
Output |