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 }
rhoHbyAf
surfaceVectorField rhoHbyAf("rhoHbyAf", fvc::interpolate(rho) *fvc::interpolate(U)+rhorAUf *fvc::interpolate(fvc::grad(p)))
rhorAUfbf
surfaceScalarField::Boundary & rhorAUfbf
Definition: resetBoundaries.H:14
rAU
tmp< volScalarField > rAU
Definition: initCorrectPhi.H:1
Foam::FieldField
A field of fields is a PtrList of fields with reference counting.
Definition: FieldField.H:53
HbyA
HbyA
Definition: pcEqn.H:74
rhoHbyAfbf
surfaceVectorField::Boundary & rhoHbyAfbf
Definition: resetBoundaries.H:15
forAll
forAll(U.boundaryField(), patchi)
Definition: resetBoundaries.H:17
rho
rho
Definition: readInitialConditions.H:88
rhorAUf
surfaceScalarField rhorAUf("rhorAUf", fvc::interpolate(rho *rAU))
U
U
Definition: pEqn.H:72
rhoHbyA_orig
const Foam::FieldField< Foam::fvsPatchField, vector > rhoHbyA_orig(fvc::interpolate(rho.boundaryField() *HbyA.boundaryField()))
Foam::fac::interpolate
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.