Distribute: Distribute properties in an input buffer.

Description Usage Arguments Details Value Author(s)

Description

Function to distribute different values of one property (concentration, temperature, mineral phase,...) properties in an input buffer.

Usage

1
2
Distribute(input, prop, values, newname = NULL, first = NULL,
  wholeline = TRUE)

Arguments

input

The initial input buffer.

prop

The property whose values need to be distributed.

values

The numerical value(s) to distribute across the SOLUTIONS.

newname

Optional name of a property which is not initially present in the input buffer.

first

The first block which will be passed to RepSol if needed

wholeline

logical. if TRUE, comments after the properties (i.e. "as HCO3") get also distributed.

Details

The number of SOLUTIONs in the input buffer must be 1 or equal to length(values). If the input buffer contains only one SOLUTION, and length(values)>1, then the new input gets automatically replicated length(values) times by RepSol. For KINETICS use DistributeKin.

Value

A new input buffer upon which Rphree can be run.

Author(s)

MDL


Rphree documentation built on May 2, 2019, 6:09 p.m.