Skip to content

Defining unrecognized solids for the PHREEQC wrapper #302

@YitongPan1

Description

@YitongPan1

Description

Problem
The current wrapper only recognizes solid phases defined in PHREEQC.dat. As a result, users cannot introduce new solid phases that are not already present in the database, which limits extensibility for custom minerals.

Expected Behavior
The system should provide a mechanism to define new solid phases at runtime, without requiring direct modification of PHREEQC.dat.

Proposed Solution
Introduce an interface for defining user-specified solid phases with the following properties:

Required parameters

  • chemical_name: Name of the solid
  • dissolution_reaction: Stoichiometric dissolution reaction of the solid
  • log_k: Equilibrium constant of the dissolution reaction

Optional parameters

  • delta_h: Enthalpy change of the dissolution reaction
  • V_m: Molar volume of the solid phase

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions