1 const volScalarField::GeometricBoundaryField& pbf = p.boundaryField();
2 wordList rhoBoundaryTypes = pbf.types();
4 forAll(rhoBoundaryTypes, patchi)
6 if (rhoBoundaryTypes[patchi] == "waveTransmissive")
8 rhoBoundaryTypes[patchi] = zeroGradientFvPatchScalarField::typeName;
10 else if (pbf[patchi].fixesValue())
12 rhoBoundaryTypes[patchi] = fixedRhoFvPatchScalarField::typeName;