This file is indexed.

/usr/share/doc/rheolef-doc/examples/stokes_contraction_bubble.cc is in rheolef-doc 6.5-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#include "rheolef.h"
using namespace rheolef;
using namespace std;
#include "poiseuille.h"

int main(int argc, char**argv) {
  environment rheolef (argc, argv);
  geo  omega (argv[1]);
  space X1h (omega, "P1", "vector");
  space Bh  (omega, "bubble", "vector");
  space Qh  (omega, "P1");
  space Wh  (omega["upstream"], "P1");
  X1h.block ("wall");
  X1h.block ("upstream");
  X1h[1].block ("axis");
  X1h[1].block ("downstream");
  trial u1 (X1h), ub (Bh), p (Qh);
  test  v1 (X1h), vb (Bh), q (Qh);
  form mp = integrate (p*q);
  form b1 = integrate (-div(u1)*q);
  form bb = integrate (-div(ub)*q);
  form a1 = integrate (2*ddot(D(u1),D(v1)));
  form_option_type fopt;
  fopt.invert = true;
  form inv_ab = integrate (2*ddot(D(ub),D(vb)), fopt);
  form c = bb*inv_ab*trans(bb);
  field u1h (X1h, 0), ph (Qh, 0);
  string sys_coord = omega.coordinate_system_name();
  Float cr = omega.xmax()[1];
  u1h[0]["upstream"] = interpolate (Wh, u_poiseuille(cr,sys_coord));
  solver_abtb stokes (a1.uu(), b1.uu(), c.uu(), mp.uu());
  stokes.solve (-(a1.ub()*u1h.b()), -(b1.ub()*u1h.b()),
                u1h.set_u(),        ph.set_u());
  dout << catchmark("inv_lambda") << 0 << endl
       << catchmark("u")  << u1h
       << catchmark("p")  << ph;
}