Bashfoth-Adams Fitting

droppy.bafits.bashforth_adams(t, y, a, b)

Rate of change of point on droplet profile with respect to the parametric angle ϕ.

Parameters
  • t – Parameteric angle ϕ

  • y – (x, z) point on the droplet profile

  • a – capillary length in units px

  • b – radius of curvature at apex in units of px

Returns

rate of change of each x and z with respect to ϕ

droppy.bafits.fit_bashforth_adams(data, a=0.1, b=3)

Calculates the best-fit capillary length and curvature at the apex given the provided data for the points on the edge of the droplet

Parameters
  • data – list of (x, y) points of the droplet edges

  • a – initial guess of capillary length

  • b – initial guess of curvature at the apex

Returns

solution structure from scipy.opt.minimize

droppy.bafits.sim_bashforth_adams(h, a=1, b=1, all_the_way=False)

Simulates the full profile of the Bashforth-Adams droplet from the apex

Starts at x = +-1e-5, z = 0 and integrates to z = h along the curve defined by the bashforth-adams function

Parameters
  • h – Height of the droplet in px

  • a – Capillary length of the fluid

  • b – Curvature at the apex

  • all_the_way – Boolean to determine whether to stop at z==h or ϕ==180

Returns

List of ϕ and (x, z) coordinates where the solver executed