Skip to content

[CL] Assign chemical fomula alternative to a component

renchao.lu requested to merge renchao-lu/ogs:AsFunction into master

As titled, this pull request allows to assign chemical formula alternative to a component. As its result, the given chemical formula will be added in the generated phreeqc input file when defining water composition, followed by the molarity of the component. The below gives an application example. One may write in the prj file as follows,

<components>
    <component chemical_formula = "HCO3">Synthetica</component>
    <component>Syntheticb</component>
    <component>Syntheticc</component>
    <component chemical_formula = "Fe(2)">Syntheticd</component>
</components>

What appears in the phreeqc input file may look like

SOLUTION xxx
Synthetica 0.001 as HCO3
  1. Feature description was added to the changelog
  2. Tests covering your feature were added?
  3. Any new feature or behavior change was documented?
Edited by renchao.lu

Merge request reports