const volVectorField& U = mesh().U(); const scalar inletVelocity = 1.0; const vector inletVelocityVector(inletVelocity, 0, 0); U.boundaryField()[patchI].patchInternalField() = inletVelocityVector;
const scalarField& p = mesh().p(); p.boundaryField()[patchI] = p.boundaryField()[patchI-1];Package library: OpenFOAM