3 label patchID = mesh.boundaryMesh().findPatchID("loading");
7 FatalErrorIn(args.executable())
8 << "Can't find patch with name loading" << abort(FatalError);
13 DU.boundaryField()[patchID].type()
14 == fixedValueFvPatchVectorField::typeName
17 if (runTime.timeIndex() == 1)
19 DU.boundaryField()[patchID] == vector(0, -0.00025, 0);
23 DU.boundaryField()[patchID] == vector(0, 0, 0);
28 DU.boundaryField()[patchID].type()
29 == directionMixedFvPatchVectorField::typeName
32 directionMixedFvPatchVectorField& topPatchU =
33 refCast<directionMixedFvPatchVectorField>
35 DU.boundaryField()[patchID]
38 vectorField n = mesh.boundary()[patchID].nf();
40 topPatchU.valueFraction() = sqr(n);
42 if (runTime.timeIndex() == 1)
44 topPatchU.refValue() = vector(0, -0.00025, 0);
48 topPatchU.refValue() = vector(0, 0, 0);
53 FatalErrorIn(args.executable())
54 << "Bounary condition on " << DU.name()
56 << DU.boundaryField()[patchID].type()
57 << "for patch: " << mesh.boundaryMesh()[patchID].name()
59 << fixedValueFvPatchVectorField::typeName
67 label patchID = mesh.boundaryMesh().findPatchID("bottom");
71 FatalErrorIn(args.executable())
72 << "Can't find patch with name bottom" << abort(FatalError);
77 DU.boundaryField()[patchID].type()
78 == directionMixedFvPatchVectorField::typeName
81 directionMixedFvPatchVectorField& bottomPatchU =
82 refCast<directionMixedFvPatchVectorField>
84 DU.boundaryField()[patchID]
87 vectorField n = mesh.boundary()[patchID].nf();
89 bottomPatchU.valueFraction() = sqr(n);
91 bottomPatchU.refValue() = vector(0, 0, 0);