Rheolef  7.1
an efficient C++ finite element environment
cavity.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  if (omega.dimension() == 3) {
30  Xh.block("back"); Xh.block("front");
31  Xh[1].block("left"); Xh[1].block("right");
32  } else {
33  Xh.block("left"); Xh.block("right");
34  }
35  return Xh;
36  }
37  static field velocity_field (const space& Xh, Float alpha=1) {
38  field uh (Xh, 0.);
39  uh[0]["top"] = alpha;
40  return uh;
41  }
42  static space streamf_space (geo omega, string approx) {
43  string valued = (omega.dimension() == 3) ? "vector" : "scalar";
44  space Ph (omega, approx, valued);
45  Ph.block("top"); Ph.block("bottom");
46  if (omega.dimension() == 3) {
47  Ph.block("back"); Ph.block("front");
48  } else {
49  Ph.block("left"); Ph.block("right");
50  }
51  return Ph;
52  }
53  static field streamf_field (space Ph) {
54  return field(Ph, 0);
55  }
56 };
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.h:53
space
see the space page for the full documentation
cavity::streamf_space
static space streamf_space(geo omega, string approx)
Definition: cavity.h:42
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.h:26
cavity::velocity_field
static field velocity_field(const space &Xh, Float alpha=1)
Definition: cavity.h:37
geo
see the geo page for the full documentation