Coder Social home page Coder Social logo

solution.equalize syntax about phreeqpython HOT 2 CLOSED

uliw avatar uliw commented on August 26, 2024
solution.equalize syntax

from phreeqpython.

Comments (2)

AbelHeinsbroek avatar AbelHeinsbroek commented on August 26, 2024

Hi,

The solution.equalize method has the following parameters:

phases, to_si=[0], in_phase=[10], with_chemical=[None]

The in_phase parameter describes the amount of phase available.

To achieve your example above you thus need to write:

sol.equalize("Geothite", 0, 1.04e-3)

which will generate the following block of PHREEQC code

USE SOLUTION 0
EQUILIBRIUM PHASES 1
Geothite 0 0.00104
SAVE SOLUTION 0
END

When in doubt you can always enable debug mode using pp.ip.debug=True to see what PhreeqPython is sending to PHREEQC.

from phreeqpython.

uliw avatar uliw commented on August 26, 2024

ah ok!. pp.ip.debug is a godsend, Thx!

from phreeqpython.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.