/usr/share/doc/rheolef-doc/examples/cavity.icc 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 | space cavity_space (const geo& omega_h, std::string approx) {
space Xh (omega_h, approx, "vector");
Xh.block("top"); Xh.block("bottom");
if (omega_h.dimension() == 3) {
Xh.block("back"); Xh.block("front");
Xh[1].block("left"); Xh[1].block("right");
} else {
Xh.block("left"); Xh.block("right");
}
return Xh;
}
field cavity_field (const space& Xh, Float alpha) {
field uh (Xh, 0.);
uh[0]["top"] = alpha;
return uh;
}
|