~ubuntu-branches/ubuntu/trusty/rheolef/trusty-proposed

« back to all changes in this revision

Viewing changes to doc/usrman/axisymetric.tex

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Prud'homme
  • Date: 2010-06-12 09:08:59 UTC
  • Revision ID: james.westby@ubuntu.com-20100612090859-8gpm2gc7j3ab43et
Tags: upstream-5.89
ImportĀ upstreamĀ versionĀ 5.89

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
\section{Axisymetric geometries}
 
2
% -----------------------------
 
3
 
 
4
\label{sec-axi}
 
5
\cindex{axisymetric geometry}
 
6
\cindex{polar coordinate system}
 
7
\cindex{weighted functional space}
 
8
\clindex{geo}
 
9
\fiindex{\file{.geo} mesh}
 
10
 
 
11
The coordinate system is associated to the geometry description,
 
12
stored together with the mesh in the \file{.geo}:
 
13
\begin{verbatim}
 
14
        mkgeo_grid -t 10 -rz > square-rz.geo
 
15
        more square-rz.geo
 
16
\end{verbatim}
 
17
Note the additional line in the header:
 
18
\begin{verbatim}
 
19
        ...
 
20
        coordinate_system rz
 
21
        ...
 
22
\end{verbatim}
 
23
% The \code{geo} class also provides a way to specify the coordinates system
 
24
% at run-time:
 
25
% \begin{verbatim}
 
26
%     omega.set_coordinate_system ("rz");
 
27
% \end{verbatim}
 
28
Here \code{"rz"} means that the coordinate system $(x_0,x_1)= (r,z)$.
 
29
Notes that the coordinate system $(z,r)$ is also supported
 
30
but not fully tested yet:
 
31
it may also be implemented by a suitable coordinate swap.
 
32
The \code{"cartesian"} argument string is also supported 
 
33
and means that the usual coordinate system may be used.
 
34
In the \code{"rz"} case, the $L^2$ functional space is equipped with the
 
35
following weighted scalar product
 
36
\[
 
37
        (f,g) = \int_\Omega f(r,z) \, g(r,z) \, r \, dr dz
 
38
\]
 
39
and all usual bilinear forms are now implemented by using this weight.
 
40
 
 
41
By this way, a program source code can handle both cartesian
 
42
and axisymetric systems: only the input geometry makes the
 
43
difference.
 
44
\begin{verbatim}
 
45
    myprog square.geo
 
46
    myprog square-rz.geo
 
47
\end{verbatim}
 
48
Thus, the coordinate system can be chosen at run time and
 
49
we can expect an efficient source code reduction.
 
50
 
 
51
\cindex{Poiseuille flow}
 
52
Two complete examples
 
53
\code{stokes-poiseuille.cc}
 
54
and
 
55
\code{stokes-poiseuille-bubble.cc}
 
56
are provided in the \code{example} directory.
 
57
        \exindex{stokes-poiseuille.cc}
 
58
        \exindex{stokes-poiseuille-bubble.cc}
 
59
These examples are related to the Poiseuille flow
 
60
of a fluid either between parallel planes (cartesian)
 
61
or in a pipe (axisymetric).
 
62
The first example implements the Taylor-Hood approximation
 
63
while the second one uses the bubble-stabilized P1-P1 approximation.
 
64
 
 
65