Introduction & Context

In many process‑engineering operations—such as polymer extrusion, food processing, and oil‑field transport—the fluids encountered do not obey the simple Newtonian relationship \(\tau = \mu \,\dot\gamma\). Their shear stress (\(\tau\)) varies with shear rate (\(\dot\gamma\)) in a non‑linear fashion, a behavior described as non‑Newtonian. Correctly characterising this relationship is essential for:

  • Designing pumps, mixers and pipelines that operate at the intended flow regime.
  • Predicting pressure drops and energy consumption.
  • Ensuring product quality by controlling shear‑sensitive processes.

Two of the most widely used empirical models for steady‑shear flow are the Bingham Plastic (linear with a yield stress) and the Power‑law (also called the Ostwald‑de Waele model). The Python script provided fits both models to a set of experimental \((\dot\gamma_i,\tau_i)\) data, evaluates the residual sum of squares (RSS) for each fit, and selects the model that best represents the material at the reference shear rate \(R_{\text{ref}}\).

Methodology & Formulas

The procedure follows a deterministic sequence that can be reproduced on paper or in any computational environment.

  1. Data definition
    For each experimental point \(i\) (where \(i = 1,\dots,N\)):
    • Shear stress: \(\tau_i\) (Pa)
    • Shear rate: \(\dot\gamma_i\) (s\(^{-1}\))
  2. Linear (Bingham) regression
    The Bingham model assumes a linear relationship with a yield stress: \[ \tau = \tau_0 + \mu_p \,\dot\gamma \] The ordinary‑least‑squares (OLS) estimates for the intercept \(\tau_0\) and slope \(\mu_p\) are: \[ \mu_p = \frac{N\sum (\dot\gamma_i \tau_i) - \left(\sum \dot\gamma_i\right)\!\left(\sum \tau_i\right)} {N\sum (\dot\gamma_i^2) - \left(\sum \dot\gamma_i\right)^2} \] \[ \tau_0 = \frac{\sum \tau_i - \mu_p \sum \dot\gamma_i}{N} \] The residual sum of squares for the linear fit is: \[ \text{RSS}_{\text{lin}} = \sum_{i=1}^{N} \left[\,\tau_i - \bigl(\tau_0 + \mu_p \dot\gamma_i\bigr)\,\right]^2 \]
  3. Log‑log (Power‑law) regression
    The Power‑law model expresses shear stress as: \[ \tau = K \,\dot\gamma^{\,n} \] Taking natural logarithms linearises the equation: \[ \ln \tau = \ln K + n \,\ln \dot\gamma \] Applying OLS to the transformed data \((\ln \dot\gamma_i,\ln \tau_i)\) yields: \[ n = \frac{N\sum (\ln \dot\gamma_i \,\ln \tau_i) - \left(\sum \ln \dot\gamma_i\right)\!\left(\sum \ln \tau_i\right)} {N\sum (\ln \dot\gamma_i)^2 - \left(\sum \ln \dot\gamma_i\right)^2} \] \[ \ln K = \frac{\sum \ln \tau_i - n \sum \ln \dot\gamma_i}{N} \] Hence the consistency index is \(K = e^{\ln K}\). The RSS for the Power‑law fit is: \[ \text{RSS}_{\text{pow}} = \sum_{i=1}^{N} \left[\,\tau_i - K \,\dot\gamma_i^{\,n}\,\right]^2 \]
  4. Model selection
    The model that yields the smaller RSS is chosen as the representative constitutive equation for the fluid:
    ConditionSelected Model
    \(\text{RSS}_{\text{lin}} < \text{RSS}_{\text{pow}}\) Bingham Plastic (\(\tau = \tau_0 + \mu_p \dot\gamma\))
    \(\text{RSS}_{\text{pow}} \le \text{RSS}_{\text{lin}}\) Power‑law (\(\tau = K \dot\gamma^{\,n}\))
  5. Reference shear‑rate evaluation
    A reference shear rate \(R_{\text{ref}}\) (commonly 50 s\(^{-1}\) in industry) is used to compute a single apparent viscosity for reporting:
    • If the Bingham model is selected: \[ \tau_{\text{ref}} = \tau_0 + \mu_p \,R_{\text{ref}} \]
    • If the Power‑law model is selected: \[ \tau_{\text{ref}} = K \,R_{\text{ref}}^{\,n} \]
    The apparent viscosity at the reference condition is then: \[ \mu_{\text{app}} = \frac{\tau_{\text{ref}}}{R_{\text{ref}}} \] and is often expressed in centipoise (cP): \[ \mu_{\text{app}}^{\text{cP}} = 1000\,\mu_{\text{app}} \]

The resulting parameters (\(\tau_0,\;\mu_p\) or \(K,\;n\)) together with the apparent viscosity \(\mu_{\text{app}}\) provide a concise, engineering‑ready description of the fluid’s rheology for design calculations, CFD input, and process control.