import math


def mass_flow(row):
    """Calculate the mass flow."""
    l = row.column_length
    w = row.column_width
    a = math.pi / 4 * row.column_width ** 2
    p = row.porosity
    p_vs = row.influent_pore_volumes
    return l * w * a * p * p_vs