Fitting foam simulation model parameters to data