52 int main(
int argc,
char *argv[])
59 #include "initContinuityErrs.H" 61 #include "createFields.H" 70 IOobject::READ_IF_PRESENT,
77 #include "initCorrectPhi.H" 85 Info<<
"\nStarting time loop\n" <<
endl;
87 while (
pimple.run(runTime))
90 #include "CourantNo.H" 91 #include "setDeltaT.H" 95 const scalar timeBeforeMeshUpdate = runTime.elapsedCpuTime();
98 const bool topoChanged =
mesh.update();
102 Info<<
"Execution time for mesh.update() = " 103 << runTime.elapsedCpuTime() - timeBeforeMeshUpdate
109 Info<<
"Time = " << runTime.userTimeName() <<
nl <<
endl;
125 #include "correctPhi.H" 154 Info<<
"ExecutionTime = " << runTime.elapsedCpuTime() <<
" s" 155 <<
" ClockTime = " << runTime.elapsedClockTime() <<
" s"
pimpleNoLoopControl & pimple
virtual void correct()
Correct the fvModels.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual void preUpdateMesh()
Prepare for mesh update.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
const dimensionSet dimTime
Info<< "Reading field p\"<< endl;volScalarField p(IOobject("p", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Reading field U\"<< endl;volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);pressureReference pressureReference(p, simple.dict());mesh.schemes().setFluxRequired(p.name());Info<< "Reading field pa\"<< endl;volScalarField pa(IOobject("pa", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Reading field Ua\"<< endl;volVectorField Ua(IOobject("Ua", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);# 65 "/home/ubuntu/OpenFOAM-10/applications/solvers/incompressible/adjointShapeOptimisationFoam/createFields.H" 2label paRefCell=0;scalar paRefValue=0.0;setRefCell(pa, simple.dict(), paRefCell, paRefValue);mesh.schemes().setFluxRequired(pa.name());autoPtr< viscosityModel > viscosity(viscosityModel::New(mesh))
Info<< "Reading field U\"<< endl;volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);volScalarField rho(IOobject("rho", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), thermo.rho());volVectorField rhoU(IOobject("rhoU", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), rho *U);volScalarField rhoE(IOobject("rhoE", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), rho *(e+0.5 *magSqr(U)));surfaceScalarField pos(IOobject("pos", runTime.timeName(), mesh), mesh, dimensionedScalar(dimless, 1.0));surfaceScalarField neg(IOobject("neg", runTime.timeName(), mesh), mesh, dimensionedScalar(dimless, -1.0));surfaceScalarField phi("phi", fvc::flux(rhoU));Info<< "Creating turbulence model\"<< endl;autoPtr< compressible::momentumTransportModel > turbulence(compressible::momentumTransportModel::New(rho, U, phi, thermo))
Foam::fvModels & fvModels
Calculates and outputs the mean and maximum Courant Numbers.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
tmp< volScalarField > rAU
Execute application functionObjects to post-process existing results.
Creates and initialises the velocity field Uf if required.