Rheolef  7.1
an efficient C++ finite element environment
cavity_3d.h
Go to the documentation of this file.
1 struct cavity {
26  static space velocity_space (const geo& omega, string approx) {
27  space Xh (omega, approx, "vector");
28  Xh.block("top"); Xh.block("bottom");
29  Xh.block("left"); Xh.block("right");
30  if (omega.dimension() == 3) {
31  Xh.block("back"); Xh.block("front");
32  }
33  return Xh;
34  }
35  static field velocity_field (const space& Xh, Float alpha=1) {
36  field uh (Xh, 0.);
37  uh[0]["top"] = alpha;
38  return uh;
39  }
40  static space streamf_space (geo omega, string approx) {
41  string valued = (omega.dimension() == 3) ? "vector" : "scalar";
42  space Ph (omega, approx, valued);
43  Ph.block("top"); Ph.block("bottom");
44  Ph.block("left"); Ph.block("right");
45  if (omega.dimension() == 3) {
46  Ph.block("back"); Ph.block("front");
47  }
48  return Ph;
49  }
50  static field streamf_field (space Ph) {
51  return field(Ph, 0);
52  }
53 };
bdf::alpha
Float alpha[pmax+1][pmax+1]
Definition: bdf.icc:28
field
see the field page for the full documentation
cavity::streamf_field
static field streamf_field(space Ph)
Definition: cavity_3d.h:50
space
see the space page for the full documentation
cavity::streamf_space
static space streamf_space(geo omega, string approx)
Definition: cavity_3d.h:40
cavity
Definition: cavity.h:25
Float
see the Float page for the full documentation
cavity::velocity_space
static space velocity_space(const geo &omega, string approx)
Definition: cavity_3d.h:26
cavity::velocity_field
static field velocity_field(const space &Xh, Float alpha=1)
Definition: cavity_3d.h:35
geo
see the geo page for the full documentation