Go to the documentation of this file.
60 GeometricField<Type, fvPatchField, volMesh>& vf,
66 vf[
cells[i]] = pTraits<Type>::zero;
73 int main(
int argc,
char *argv[])
82 #include "createFields.H"
84 #include "initContinuityErrs.H"
91 Info<<
"\nStarting time loop\n" <<
endl;
95 Info<<
"Time = " << runTime.timeName() <<
nl <<
endl;
103 mesh.fieldRelaxationFactor(
"alpha")
113 tmp<fvVectorMatrix>
UEqn
142 while (
simple.correctNonOrthogonal())
152 if (
simple.finalNonOrthogonalIter())
158 #include "continuityErrs.H"
165 U.correctBoundaryConditions();
184 tmp<fvVectorMatrix> UaEqn
187 - adjointTransposeConvection
204 HbyAa = rAUa*UaEqn().H();
214 while (
simple.correctNonOrthogonal())
221 paEqn.setReference(paRefCell, paRefValue);
224 if (
simple.finalNonOrthogonalIter())
226 phia = phiHbyAa - paEqn.flux();
237 Ua.correctBoundaryConditions();
246 Info<<
"ExecutionTime = "
247 << runTime.elapsedCpuTime()
bool adjustPhi(surfaceScalarField &phi, const volVectorField &U, volScalarField &p)
Adjust the balance of fluxes to obey continuity.
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
List< label > labelList
A List of labels.
#define forAll(list, i)
Loop across all elements in list.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
const labelList & inletCells
tmp< surfaceScalarField > interpolate(const RhoType &rho)
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
Ostream & endl(Ostream &os)
Add newline and flush stream.
simpleMatrix< scalar > A(Nc)
Simple relative velocity model.
tmp< GeometricField< Type, fvPatchField, volMesh > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
zeroCells(alpha, inletCells)
Declare and initialise the cumulative ddjoint continuity error.
fvMatrix< scalar > fvScalarMatrix
autoPtr< compressible::turbulenceModel > turbulence
tmp< fvVectorMatrix > UEqn(fvm::div(phi, U)+MRF.DDt(U)+turbulence->divDevReff(U)==fvOptions(U))
int main(int argc, char *argv[])
GeometricField< scalar, fvPatchField, volMesh > volScalarField
dimensionedScalar zeroAlpha("0", dimless/dimTime, 0.0)
dimensionedScalar alphaMax(laminarTransport.lookup("alphaMax"))
GeometricField< vector, fvPatchField, volMesh > volVectorField
Calculates and prints the continuity errors.
volScalarField rAU("rAU", 1.0/UEqn().A())
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
singlePhaseTransportModel laminarTransport(U, phi)
const dictionary & simple
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
tmp< GeometricField< Type, fvPatchField, volMesh > > Sp(const volScalarField &sp, const GeometricField< Type, fvPatchField, volMesh > &vf)
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
dimensionedScalar lambda(laminarTransport.lookup("lambda"))