Go to the documentation of this file.
44 void calcIncompressible
52 #include "createPhi.H"
56 autoPtr<incompressible::RASModel> model
63 forAll(wallShearStress.boundaryField(), patchI)
65 wallShearStress.boundaryField()[patchI] =
67 -
mesh.Sf().boundaryField()[patchI]
68 /
mesh.magSf().boundaryField()[patchI]
69 ) & Reff.boundaryField()[patchI];
91 if (!rhoHeader.headerOk())
97 Info<<
"Reading field rho\n" <<
endl;
105 autoPtr<compressible::RASModel> model
107 compressible::New<compressible::RASModel>
118 forAll(wallShearStress.boundaryField(), patchI)
120 wallShearStress.boundaryField()[patchI] =
122 -
mesh.Sf().boundaryField()[patchI]
123 /
mesh.magSf().boundaryField()[patchI]
124 ) & Reff.boundaryField()[patchI];
129 int main(
int argc,
char *argv[])
131 timeSelector::addOptions();
140 runTime.setTime(
timeDirs[timeI], timeI);
141 Info<<
"Time = " << runTime.timeName() <<
endl;
187 calcCompressible(
mesh, runTime,
U, wallShearStress);
191 calcIncompressible(
mesh, runTime,
U, wallShearStress);
199 Info<<
"Writing wall shear stress to field " << wallShearStress.name()
202 wallShearStress.
write();
Info<< "Reading thermophysical properties\n"<< endl;autoPtr< psiThermo > pThermo(psiThermo::New(mesh))
autoPtr< BasicCompressibleTurbulenceModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleTurbulenceModel::transportModel &transport, const word &propertiesName)
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
#define forAll(list, i)
Loop across all elements in list.
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
Ostream & endl(Ostream &os)
Add newline and flush stream.
List< instant > instantList
List of instants.
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
const word dictName("particleTrackDict")
IOobject UHeader("U", runTime.timeName(), mesh, IOobject::MUST_READ)
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
GeometricField< symmTensor, fvPatchField, volMesh > volSymmTensorField
virtual Ostream & write(const token &)=0
Write next token to stream.
int main(int argc, char *argv[])
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Creates and initialises the face-flux field phi.
GeometricField< vector, fvPatchField, volMesh > volVectorField
static instantList timeDirs
singlePhaseTransportModel laminarTransport(U, phi)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Foam::argList args(argc, argv)