next up previous contents
Next: Results Up: Vapour transport in Fastflo Previous: Implementation of unusual terms   Contents


The finite element mesh

Fastflo has two mesh generators for rectangular domains. The first, a C program called unit.c, uses a square grid (thereby limiting the domain aspect ratio to the quotient of two integers) and the second, a built-in, creates an unstructured grid from triangular elements. Neither of these is particularly satisfactory since a graded structured quadrilateral mesh is preferred for rectangular cavity flows (Cleary 1995b). The square mesh generator is easily adapted though, by simple stretching of the nodal coordinates while preserving connectivity. This could be achieved in Fasttalk, the language of Fastflo, or, as the mesh data file consists of simply formatted ascii, with a short C program. Here, unit.c was modified to include the stretching function recommended (originally for finite difference grids) by Vinokur (1983):

\begin{displaymath}
x = \frac{1}{2} \left\{ 1+\frac{\tanh
\left[ s
\left( \fra...
...- \frac{1}{2}
\right)
\right] }{\tanh \frac{s}{2}} \right\},
\end{displaymath} (5.5)

where $x'$ and $l'$ are the nodal coordinate and domain dimension of the unstretched mesh and $s$ is the stretching factor. The function can be applied with different values of $s$ to each of the coordinates, $x$ and $y$ (the values of $y$ being afterwards multiplied by $\mathcal A$). The function is plotted for various values of $s$ in figure 5.2.

Figure 5.2: Vinokur's (1983) symmetric stretching function.
\begin{figure}\centering\setlength{\unitlength}{1mm}\begin{picture}(100,87)
% pu...
...(0,0)[l]\{1\}\}
% put(55,38)\{ makebox(0,0)\{$s=0$\}\}
\end{picture}\end{figure}

The advantage of a nonuniform grid in this problem is that the mass fraction gradients near the vertical walls can be calculated more accurately with smaller elements, while a lesser number of elements overall is obtained by using larger elements in the core. Further, a very fine mesh can be used near the corners, where the velocity boundary conditions are singular--a problem first described by Jhaveri et al. (1981; §3.3.3), who also prescribed this remedy. An example of a mesh created by such a procedure is shown in figure 5.3.

Figure 5.3: A 16$\times$16 mesh for a domain of aspect ratio $\mbox{$\mathcal A$}=5$ with stretching factor $s=2$ in both directions.
\begin{figure}\centering\epsfig{file=mesh.ps, height=90mm, clip=, bbllx=52, bblly=132,
bburx=152, bbury=613}\end{figure}


next up previous contents
Next: Results Up: Vapour transport in Fastflo Previous: Implementation of unusual terms   Contents
Geordie McBain 2001-01-27