57 GeometricField<Type, fvPatchField, volMesh>& vf,
70 int main(
int argc,
char *argv[])
77 #include "createControl.H" 78 #include "createFields.H" 80 #include "initContinuityErrs.H" 87 Info<<
"\nStarting time loop\n" <<
endl;
91 Info<<
"Time = " << runTime.timeName() <<
nl <<
endl;
99 mesh.fieldRelaxationFactor(
"alpha")
109 tmp<fvVectorMatrix>
tUEqn 137 while (
simple.correctNonOrthogonal())
147 if (
simple.finalNonOrthogonalIter())
153 #include "continuityErrs.H" 160 U.correctBoundaryConditions();
179 tmp<fvVectorMatrix> tUaEqn
182 - adjointTransposeConvection
200 HbyAa = rAUa*UaEqn.H();
206 while (
simple.correctNonOrthogonal())
213 paEqn.setReference(paRefCell, paRefValue);
216 if (
simple.finalNonOrthogonalIter())
218 phia = phiHbyAa - paEqn.flux();
229 Ua.correctBoundaryConditions();
238 Info<<
"ExecutionTime = " 239 << runTime.elapsedCpuTime()
autoPtr< compressible::turbulenceModel > turbulence
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
fvMatrix< scalar > fvScalarMatrix
#define forAll(list, i)
Loop across all elements in list.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
void constrainPressure(volScalarField &p, const RhoType &rho, const volVectorField &U, const surfaceScalarField &phiHbyA, const RAUType &rhorAU, const MRFType &MRF)
Ostream & endl(Ostream &os)
Add newline and flush stream.
tmp< GeometricField< Type, fvPatchField, volMesh > > Sp(const volScalarField &sp, const GeometricField< Type, fvPatchField, volMesh > &vf)
tmp< fvVectorMatrix > tUEqn(fvm::ddt(rho, U)+fvm::div(phi, U)+MRF.DDt(rho, U)+turbulence->divDevRhoReff(U)==fvOptions(rho, U))
zeroCells(alpha, inletCells)
const labelList & inletCells
GeometricField< vector, fvPatchField, volMesh > volVectorField
tmp< GeometricField< Type, fvPatchField, volMesh > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
bool adjustPhi(surfaceScalarField &phi, const volVectorField &U, volScalarField &p)
Adjust the balance of fluxes to obey continuity.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
singlePhaseTransportModel laminarTransport(U, phi)
List< label > labelList
A List of labels.
tmp< volVectorField > constrainHbyA(const tmp< volVectorField > &tHbyA, const volVectorField &U, const volScalarField &p)
dimensionedScalar zeroAlpha("0", dimless/dimTime, 0.0)
Declare and initialise the cumulative ddjoint continuity error.
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
dimensionedScalar alphaMax(laminarTransport.lookup("alphaMax"))
const dictionary & simple
fvMatrix< vector > fvVectorMatrix
Calculates and prints the continuity errors.
dimensionedScalar lambda(laminarTransport.lookup("lambda"))
tmp< surfaceScalarField > flux(const volVectorField &vvf)
Return the face-flux field obtained from the given volVectorField.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Execute application functionObjects to post-process existing results.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
volScalarField rAU(1.0/UEqn.A())