mvtsa.datasets.simulate_ph_cstr#

mvtsa.datasets.simulate_ph_cstr(base_flow=None, T=600, dt=0.25, acid_flow=1.0, volume=2.0, c_acid=0.01, c_base=0.01, noise=0.01, random_state=None)[source]#

pH neutralization of a strong acid by a strong base in a continuous stirred tank (the pH case study of Bankó, 2015, Ch. 4).

Component balances of the acid- and base-derived ions, \(V\dot x_a=F_ac_a-(F_a+F_b)x_a\), \(V\dot x_b=F_bc_b-(F_a+F_b)x_b\), and the charge balance \([H^+]-K_w/[H^+]+x_b-x_a=0\) give a static titration curve whose slope – the process gain – changes by orders of magnitude around neutrality, so the local dynamics differ between operating ranges.

Parameters:
base_flowarray (T,), optional

Base (NaOH) flow rate profile; default: random steps around the neutralization point.

Returns:
Xarray (T, 2)

Columns [F_base, pH].

Examples using mvtsa.datasets.simulate_ph_cstr#

Dynamic PCA segmentation

Dynamic PCA segmentation

Operating regions of a pH neutralization process

Operating regions of a pH neutralization process