从代码上解释更好说:
scalarField U(-phi/patch().magSf()); //其中的phi你要给定(指定通量),然后即可计算出速度U的大小(模) vectorField n(patch().nf()); //面的法向 if (phiName.dimensions() == dimVelocity*dimArea) { // volumetric flow-rate operator==(n*U); //速度 } else if (phiName.dimensions() == dimDensity*dimVelocity*dimArea) { const fvPatchField<scalar>& rhop = patch().lookupPatchField<volScalarField, scalar>(rhoName_); // mass flow-rate operator==(n*U/rhop); //速度你看下/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel的速度边界条件设置。