resetBoundaries.H
Go to the documentation of this file.
1 {
2  // Keep standard formulation on domain boundaries to ensure compatibility
3  // with existing boundary conditions
5  (
6  fvc::interpolate(rho.boundaryField()*rAU.boundaryField())
7  );
8 
10  (
11  fvc::interpolate(rho.boundaryField()*HbyA.boundaryField())
12  );
13 
14  surfaceScalarField::Boundary& rhorAUfbf = rhorAUf.boundaryFieldRef();
15  surfaceVectorField::Boundary& rhoHbyAfbf = rhoHbyAf.boundaryFieldRef();
16 
17  forAll(U.boundaryField(), patchi)
18  {
19  if (!U.boundaryField()[patchi].coupled())
20  {
21  rhorAUfbf[patchi] = rhorAUf_orig[patchi];
22  rhoHbyAfbf[patchi] = rhoHbyA_orig[patchi];
23  }
24  }
25 }
forAll(U.boundaryField(), patchi)
static tmp< GeometricField< Type, faePatchField, edgeMesh > > interpolate(const GeometricField< Type, faPatchField, areaMesh > &tvf, const edgeScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
tmp< volScalarField > rAU
Definition: initCorrectPhi.H:1
HbyA
Definition: pcEqn.H:74
A field of fields is a PtrList of fields with reference counting.
Definition: FieldField.H:51
surfaceVectorField::Boundary & rhoHbyAfbf
U
Definition: pEqn.H:72
const Foam::FieldField< Foam::fvsPatchField, vector > rhoHbyA_orig(fvc::interpolate(rho.boundaryField() *HbyA.boundaryField()))
surfaceVectorField rhoHbyAf("rhoHbyAf", fvc::interpolate(rho) *fvc::interpolate(U)+rhorAUf *fvc::interpolate(fvc::grad(p)))
surfaceScalarField rhorAUf("rhorAUf", fvc::interpolate(rho *rAU))
surfaceScalarField::Boundary & rhorAUfbf