next up previous contents
Next: Results Up: Model Implementation Previous: Model Comparison

Grid Orientation

  It is important to insure that the model is independent of the grid orientation, particularly since, as discussed is section 5.1.6, the orientation of the grid can affect the change in each distribution function and whether four or six of the seven distribution functions are changed. As noted in section 5.1.6 a change in some of the tex2html_wrap_inline13989 at one time-step will produce a change in all the tex2html_wrap_inline13989 at the next time-step. The dependence on the grid orientation was tested using a 64 by 64 grid which was set up with the x-axis along the direction of tex2html_wrap_inline13709 . A new set of perpendicular axis x' and y' were defined so that the x-axis and the x'-axis intersect at an angle, tex2html_wrap_inline12063 . A square box 40 lu by 40 lu was then superimposed on the grid, the edges of the square being parallel to the directions of the x'- and y'-axis. All points outside this square where then defined as boundary sites. This is shown in figure 5-3.

   figure4913
Figure 5-3: A box, at angle tex2html_wrap_inline12063 to the x-axis, superimposed on the regular grid and the co-ordinate systems. The hashed area is filled with boundary sites.

The non-boundary sites inside the 40 by 40 lu tilted square were filled with particles with tex2html_wrap_inline15225 and velocity zero and gravity was applied in the direction of the -y'-axis. Thus the vertical direction tex2html_wrap_inline15265 is in the direction of the y'-axis. This was done for tex2html_wrap_inline12123 , tex2html_wrap_inline15271 , tex2html_wrap_inline15273 , tex2html_wrap_inline15275 , tex2html_wrap_inline15277 and tex2html_wrap_inline15279 . The density variation with height was then found in the following ways:

When tex2html_wrap_inline12123 the density was measured in a horizontal line (parallel to the y-axis) above the boundary, as was done in the previous section. Density values were found at heights with separation tex2html_wrap_inline13639 lu.

When tex2html_wrap_inline12131 the density was measure in a horizontal line (parallel to the x-axis). Density values were found at heights with separation 1 lu.

When tex2html_wrap_inline15291 , tex2html_wrap_inline15273 , tex2html_wrap_inline15275 and tex2html_wrap_inline15277 the horizontal direction (parallel to the y'-axis) does not lie along a grid direction. The following method was used to find the density at given heights above the boundary.

  1. Let a be in index labelling the data points.
  2. Calculate the gradient, m, of a line through the origin O, see figure 5-3, parallel to the y'-axis.
  3. Start at the origin O with co-ordinates (x,y) = (0,0).
  4. Given a point calculate its distance from the origin, d.
  5. Calculate the gradient tex2html_wrap_inline12163 of the line ((0,0),(x+1,y)) and gradient tex2html_wrap_inline12165 of the line tex2html_wrap_inline15321 .
  6. Move to the point (x+1,y) if tex2html_wrap_inline12163 is closer to m or to the point tex2html_wrap_inline15329 of tex2html_wrap_inline12165 is closer to m.
  7. If the density at the point is zero (the point is a boundary site) then let D = d.
  8. If the density is non-zero (the point is a non-boundary site) retrieve a set of values tex2html_wrap_inline15337 and tex2html_wrap_inline15339 .
  9. Repeat steps 4 - 8 until there are no points left.

This gives a set of data tex2html_wrap_inline15341 for a = 1, 2, ...,N where the value of N depends on the angle tex2html_wrap_inline12063 . This is illustrated in figure 5-4

   figure4928
Figure 5-4: Part of the hexagonal grid is shown. The thick solid line represents the line through O with gradient m, the thick dashed line represents the `bottom' boundary and the solid dots represent the sites which are considered as lying nearest to the thick solid line. Point P is the last of these point which is still within the boundary.

where the thick solid line represents the line through O with gradient m, the thick dashed line represents the `bottom' boundary and the solid dots represent the sites which are considered as lying nearest to the thick solid line. Point P is the last of these point which is within the boundary so the distance D is the length of OP. For some values of tex2html_wrap_inline12063 the line parallel to the y'-axis, passing through O', see figure 5-3, also passes through the fluid and the density at various heights above the boundary can be found along this line. Similar results were obtained for both methods confirming that the angle of the box and the angle at which gravity is acting are consistent.




next up previous contents
Next: Results Up: Model Implementation Previous: Model Comparison

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