1 if(planeMapping && targetPatchNamePresent && cut.cut())
3 //Map variables U, phi & k
4 //Info << typeInfo("isoLESmodel") << endl;
5 //Info << "SGS model" << sgsModel.type() << endl;
7 scalarField planek(cutCells.size());
8 scalarField planeNuTilda(cutCells.size());
9 vectorField planeU(cutCells.size());
11 forAll(cutCells, cCellsI)
13 if(sgsModel.type() == "SpalartAllmaras")
15 planeNuTilda[cCellsI] = sgsModel.nuTilda()()[cutCells[cCellsI]];
19 planek[cCellsI] = sgsModel.k()()[cutCells[cCellsI]];
21 planeU[cCellsI] = U[cutCells[cCellsI]];
24 if(sgsModel.type() == "SpalartAllmaras")
26 Info << "Mapping NuTilda." << endl;
27 sgsModel.nuTilda()().boundaryField()[targetPatchNumber] ==
28 interPatch.faceInterpolate(planeNuTilda)();
32 Info << "Mapping k." << endl;
33 sgsModel.k()().boundaryField()[targetPatchNumber] ==
34 interPatch.faceInterpolate(planek)();
37 U.boundaryField()[targetPatchNumber] ==
38 interPatch.faceInterpolate(planeU)();
40 /* sgsModel.k()().boundaryField()[targetPatchNumber] ==
41 toPatchInter.pointToFaceInterpolate
43 interPatch.pointInterpolate
45 planePatchInter.faceToPointInterpolate
52 U.boundaryField()[targetPatchNumber] ==
53 toPatchInter.pointToFaceInterpolate
55 interPatch.pointInterpolate
57 planePatchInter.faceToPointInterpolate
68 mesh.Sf().boundaryField()[targetPatchNumber]
69 & U.boundaryField()[targetPatchNumber]
74 mesh.Sf().boundaryField()[targetPatchNumber] &
78 U.boundaryField()[targetPatchNumber] ==
79 U.boundaryField()[targetPatchNumber] * (Qbar/Q);
81 Info << "Mass flux correction factor: " << (Qbar/Q) << endl;
83 phi.boundaryField()[targetPatchNumber] ==
85 mesh.Sf().boundaryField()[targetPatchNumber] &
86 U.boundaryField()[targetPatchNumber]