FreeFOAM The Cross-Platform CFD Toolkit
rhoBoundaryTypes.H
Go to the documentation of this file.
1 const volScalarField::GeometricBoundaryField& pbf = p.boundaryField();
3 
4 forAll(rhoBoundaryTypes, patchi)
5 {
6  if (rhoBoundaryTypes[patchi] == "waveTransmissive")
7  {
8  rhoBoundaryTypes[patchi] = zeroGradientFvPatchScalarField::typeName;
9  }
10  else if (pbf[patchi].fixesValue())
11  {
12  rhoBoundaryTypes[patchi] = fixedRhoFvPatchScalarField::typeName;
13  }
14 }
15 
16 // ************************ vim: set sw=4 sts=4 et: ************************ //