Merge branch 'master' of ssh://git.code.sf.net/p/foam-extend/foam-extend-3.2
[foam-extend-3.2.git] / applications / solvers / compressible / rhopSonicFoam / rhoBoundaryTypes.H
blobf54d0663117644ae052f0100a36fc7f181f44f80
1 const volScalarField::GeometricBoundaryField& pbf = p.boundaryField();
2 wordList rhoBoundaryTypes = pbf.types();
4 forAll(rhoBoundaryTypes, patchi)
6     if
7     (
8         rhoBoundaryTypes[patchi] == "pressureTransmissive"
9     )
10     {
11         rhoBoundaryTypes[patchi] = zeroGradientFvPatchScalarField::typeName;
12     }
13     else if (pbf[patchi].fixesValue())
14     {
15         rhoBoundaryTypes[patchi] = fixedRhoFvPatchScalarField::typeName;
16     }
17     else
18     {
19         rhoBoundaryTypes[patchi] = gradientRhoFvPatchScalarField::typeName;
20     }