openfoam/applications/utilities/postProcessing/miscellaneous/postChannel/readFields.H
mattijs e424059208 ENH: glboal file handling: initial commit
Moved file path handling to regIOobject and made it type specific so
now every object can have its own rules. Examples:
- faceZones are now processor local (and don't search up anymore)
- timeStampMaster is now no longer hardcoded inside IOdictionary
  (e.g. uniformDimensionedFields support it as well)
- the distributedTriSurfaceMesh is properly processor-local; no need
  for fileModificationChecking manipulation.
2016-01-25 13:03:15 +00:00

113 lines
2.1 KiB
C

IOobject UMeanHeader
(
"UMean",
runTime.timeName(),
mesh,
IOobject::MUST_READ
);
if (!UMeanHeader.typeHeaderOk<volVectorField>(true))
{
Info<< " No UMean field" << endl;
continue;
}
volVectorField UMean
(
UMeanHeader,
mesh
);
volSymmTensorField UPrime2Mean
(
IOobject
(
"UPrime2Mean",
runTime.timeName(),
mesh,
IOobject::MUST_READ
),
mesh
);
volScalarField Rxx(UPrime2Mean.component(symmTensor::XX));
volScalarField Ryy(UPrime2Mean.component(symmTensor::YY));
volScalarField Rzz(UPrime2Mean.component(symmTensor::ZZ));
volScalarField Rxy(UPrime2Mean.component(symmTensor::XY));
volScalarField pPrime2Mean
(
IOobject
(
"pPrime2Mean",
runTime.timeName(),
mesh,
IOobject::MUST_READ
),
mesh
);
/*
volScalarField epsilonMean
(
IOobject
(
"epsilonMean",
runTime.timeName(),
mesh,
IOobject::MUST_READ
),
mesh
);
volScalarField nuMean
(
IOobject
(
"nuMean",
runTime.timeName(),
mesh,
IOobject::MUST_READ
),
mesh
);
volScalarField gammaDotMean
(
IOobject
(
"gammaDotMean",
runTime.timeName(),
mesh,
IOobject::MUST_READ
),
mesh
);
volScalarField nuPrime2
(
IOobject
(
"nuPrime",
runTime.timeName(),
mesh,
IOobject::MUST_READ
),
mesh
);
volScalarField nuPrime = sqrt(mag(nuPrime2 - sqr(nuMean)));
volScalarField gammaDotPrime2
(
IOobject
(
"gammaDotPrime",
runTime.timeName(),
mesh,
IOobject::MUST_READ
),
mesh
);
volScalarField gammaDotPrime = sqrt(mag(gammaDotPrime2 -sqr(gammaDotMean)));
*/