next up previous contents
Next: The Contribution to e Up: The Wave Period and Previous: The Wave Period and

The Curve Fitting Process

  During the simulations the height of the interface, above the bottom boundary, was found every forty time-steps at the centre of the wave, tex2html_wrap_inline12305 . The height of the wave was taken to be the height of the highest site containing the denser fluid. This gives a time series record of the wave height at the centre which was then fitted to a curve of the form

  equation6103

This was done using a modified Gauss-Newton algorithm [82, 83] where the parameters tex2html_wrap_inline16211 and c are the parameters found by the fitting process. The sum of the square of the deviation of the data from the fitted curve, e, was also computed and this gives a measure of the accuracy of the cure fitting process and the fitted parameters. The two parameters in which we are interested are the frequency tex2html_wrap_inline12301 and the damping parameter tex2html_wrap_inline12303 . The fitted parameter c should correspond to the mwl tex2html_wrap_inline15643 which was used in initialising the wave. In practice it is shifted slightly, particularly when tex2html_wrap_inline12095 is large and the interface has a significant thickness. The curve fitting process was applied using an equation of the form

equation6108

where tex2html_wrap_inline15643 is fixed and the other parameters are found as before. The results obtained for tex2html_wrap_inline12301 and tex2html_wrap_inline12303 were found to be within 1% of their previous values. The value of e was increased by tex2html_wrap_inline16235 , where N is the number of points. This means that e is no longer a good measure of the goodness of fit of the other parameters. Thus it was decided to include c in the set of fitted parameters. Similarly the value of A should be related to the initial deformation amplitude. It is, however, slightly different, again due to the interface thickness. If A is fixed, in equation (7.1), to an incorrect value there is little effect on tex2html_wrap_inline12301 but a significant effect on tex2html_wrap_inline12303 . If A is set too large the value found for tex2html_wrap_inline12303 can be seen to be too large, the values of the fitted curve being greater then the data points for small times and smaller than the data points for large times. If A is set too small the value of tex2html_wrap_inline12303 is correspondingly too small. Thus it is important that A has the correct value and this is best achieved by allowing it to be found by the fitting routine. A phase difference tex2html_wrap_inline14603 is also included in equation (7.1). This accounts for any discrepancy in the initialisation procedure. The main error in the initialisation is the profile of the density and the order parameter at the interface. The values found for tex2html_wrap_inline14603 were no larger then 1% of tex2html_wrap_inline16265 suggesting that the initialisation method is adequate. The average value found for e from over a hundred different waves, each with either 1,000 or 900 data points, was found to be 85. This corresponds to an RMS difference between the data and the fitted curve of 0.31 lattice units.




next up previous contents
Next: The Contribution to e Up: The Wave Period and Previous: The Wave Period and

James Buick
Tue Mar 17 17:29:36 GMT 1998