53 area = gSum(Lfield[0].
mesh().magSf().boundaryField()[
p]);
54 u_lf = gSum(liftfield[k].
mesh().magSf().boundaryField()[
p] *
55 liftfield[k].boundaryField()[
p]).component(l) / area;
57 "The lift cannot be computed. Please, check your inletIndex definition");
59 for (label j = 0; j < Lfield.size(); j++)
63 u_bc = gSum(Lfield[j].
mesh().magSf().boundaryField()[
p] *
64 Lfield[j].boundaryField()[
p]).component(l) / area;
65 volVectorField C(
"U", Lfield[j] - liftfield[k]*u_bc / u_lf);
66 omfield.append(C.clone());
70 u_bc = gSum(omfield[j].
mesh().magSf().boundaryField()[
p] *
71 omfield[j].boundaryField()[
p]).component(l) / area;
72 volVectorField C(
"U", omfield[j] - liftfield[k]*u_bc / u_lf);
73 omfield.set(j, C.clone());
89 area = gSum(Lfield[0].
mesh().magSf().boundaryField()[
p]);
90 t_lf = gSum(liftfield[k].
mesh().magSf().boundaryField()[
p] *
91 liftfield[k].boundaryField()[
p]) / area;
93 for (label j = 0; j < Lfield.size(); j++)
97 t_bc = gSum(Lfield[j].
mesh().magSf().boundaryField()[
p] *
98 Lfield[j].boundaryField()[
p]) / area;
99 volScalarField C(Lfield[0].name(), Lfield[j] - liftfield[k]*t_bc / t_lf);
100 omfield.append(C.clone());
104 t_bc = gSum(omfield[j].
mesh().magSf().boundaryField()[
p] *
105 omfield[j].boundaryField()[
p]) / area;
106 volScalarField C(Lfield[0].name(), omfield[j] - liftfield[k]*t_bc / t_lf);
107 omfield.set(j, C.clone());