pttools.bubble.check

Validation tools

Functions

pttools.bubble.check.check_physical_params(params)

Checks that \(v _\text{wall}\) = params[0], \(\alpha_n\) = params[1] values are physical, i.e. \(0 < v _\text{wall} < 1\), \(\alpha_n < \alpha_{n,\max(v _\text{wall})}\)

Parameters:

params (Tuple[float, float] | Tuple[float, float, str, Tuple[float, ...]])

Return type:

None

pttools.bubble.check.check_wall_speed(v_wall)

Checks that \(v _\text{wall}\) values are all physical: \((0 < v _\text{wall} < 1)\).

Parameters:

v_wall (float | float64 | ndarray | List[float])

pttools.bubble.check.find_most_negative_vals(vals, *args)
Parameters:

vals (float | float64 | ndarray)

Return type:

List[float | None]