Syntax PHREEQC & HPx related script functions


PHREEQC BASIC INTERPRETER

MY-BASIC

PYTON

FUNCTION

GROUP

See Online PHREEQC-3 manual





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

General Variables

change_por(flt[,int])

change_por(flt[,int])


Change the porosity

Flow-Transport-Geochemistry

change_por0(flt[,int])

change_por0(flt[,int])


Change the initial porosity

Flow-Transport-Geochemistry

change_sfcond(flt[,int])

change_sfcond(flt[,int])


Change the scaling factor of the hydraulic conductivity

Flow-Transport-Geochemistry

change_sfcond0(flt[,int])

change_sfcond0(flt[,int])


Change the initial scaling factor of the hydraulic conductivity

Flow-Transport-Geochemistry

change_sfwater(flt[,int])

change_sfwater(flt[,int])


Change scaling factor of water content

Flow-Transport-Geochemistry

change_sfwater0(flt[,int])

change_sfwater0(flt[,int])


Change initial scaling factor of water content

Flow-Transport-Geochemistry

equi(str)

equi(str)


Moles of equilibrium phases

Geochemistry

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

Global Variables

get_nodeexist(str[,int])

get_nodeexist(str[,int])


Check if variable at a chemical entity exist

Global Variables



get_var

Get value of a global variable


get_varexist(str)

get_varexist(str)


Check if variable exists

Global Variables

-

gasn_vol


Get the gas volume


-

modify(str,str,str,flt)


Change a selected property of a reactant

Flow-Transport-Geochemistry

-

openf(string)


Open a file for writing (limited use)

Output

print

-


Write output in phreeqc.out

Output


punch_def(str,{str|flt})


Punch a record at the end of a datablock

Global Variables

put(flt, int,[int])

putval(flt, int,[int])


Store a variable at the sequence of identifiers

Global Variables

put_node(str,flt[,int ])

put_node(str,flt[,int ])


Store a variable at a chemical entity or node

Global Variables

str$

str


Convert a number to a string



strf




-

string.find(str,str)


Find a substring in a string

String

sys(str[,txt,txt,txt,txt])

sys(str[,str,str,str,str])


Summed values and details of geochemical speciation

Geochemistry

-

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

Flow-Transport-Geochemistry

update_sfwater(flt[,int])

update_sfwater(flt[,int])


Updates the scaling factor for the water content based on porosity

Flow-Transport-Geochemistry

-

writes(string)


Screen output

Output

-

write(string)


Write output in phreeqc.out

Output