©
Kinetic setting
Computes the kinetics from differential equations (no fitting).
2024.Jul.03 13:22:23
File to upload (Optional) Such as dataKinetSet.xlsx (table of kinetics)
tf Time, final.
Kinetic data Data (matrix or 'csv').
Rate constants Kinetic rate constants.
Initial values Concentrations: initial.
Incumbent (∈ [1 .. 'n. of components']) Monte Carlo incumbent.
Points N. of points in plot (from 0)
Show values Show graph coordinates.

Computes the chemical kinetics of a reaction by integrating its kinetic equations, from given initial reactant concentrations. The reaction is A → B → C, with kinetic mechanism: a'(t) = −k1a, b'(t) = −k2b + k1a, c'(t) = k2b ([Winkel, 2011]). Integration is through Python 'scipy' module solver solve_ivp.

Files involved: P-kinetSet.php (this one), KinetSet.php, kinetSet.py.

Draws plots of the kinetics (compositions vs. time).


Python file (download): kinetSet.py

Computation structure — A PHP file (this page: 'P-kinetSet.php') calls (via 'action=...') an intermediate PHP file ('KinetSet.php'), which (through $_POST) sends the problem data as command line arguments to a Python script. This last does the computing, and makes 'system' call(s) to 'gnuplot', for the final (temporary) webpage.

Keywords: PHP, command line arguments, Python script, gnuplot.

References: Plate: KinetSetting

• (Wikipedia) PHP (from Personal Home Page)

• Python module 'scipy' solver scipy.integrate.solve_ivp, accessed 02-Oct-2023.

• Winkel, B. (pdf), 2011, International Journal of Mathematical Education in Science and Engineering, 42(1), 37–51. DOI  10.1080/0020739X.2010.500806.

• 1908-10-06: Sobolev, Sergei L'vovich (Соболев, Сергей Львович) (†1989-01-03, 80 yrs.).

 
 
Valid HTML 5! IST http://web.tecnico.ulisboa.pt/~mcasquilho/compute/explore/kinetSet/P-kinetSet.php
Created: 2023-10-06 — Last modified: 2024-06-18