Info << "Reading field p\n" << endl;
volScalarField p
(
IOobject
"p",
runTime.timeName(),
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh
);
Info<< "Reading field Urel\n" << endl;
volVectorField Urel
"Urel",
Info<< "Reading/calculating face flux field phi\n" << endl;
surfaceScalarField phi
"phi",
IOobject::READ_IF_PRESENT,
linearInterpolate(Urel) & mesh.Sf()
label pRefCell = 0;
scalar pRefValue = 0.0;
setRefCell(p, mesh.solutionDict().subDict("SIMPLE"), pRefCell, pRefValue);
mesh.schemesDict().setFluxRequired(p.name());
singlePhaseTransportModel laminarTransport(Urel, phi);
autoPtr<incompressible::RASModel> turbulence
incompressible::RASModel::New(Urel, phi, laminarTransport)
Info<< "Creating SRF model\n" << endl;
autoPtr<SRF::SRFModel> SRF
SRF::SRFModel::New(Urel)
// Create Uabs as a permanent field to make it available for on-the-fly
// post-processing operations
volVectorField Uabs
"Uabs",
IOobject::NO_READ,
Urel + SRF->U()