wallShearStress.C
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 #include "fvCFD.H"
00034 #include "incompressible/singlePhaseTransportModel/singlePhaseTransportModel.H"
00035 #include "RASModel.H"
00036
00037
00038
00039 int main(int argc, char *argv[])
00040 {
00041 timeSelector::addOptions();
00042 #include "setRootCase.H"
00043 #include "createTime.H"
00044 instantList timeDirs = timeSelector::select0(runTime, args);
00045 #include "createMesh.H"
00046
00047 forAll(timeDirs, timeI)
00048 {
00049 runTime.setTime(timeDirs[timeI], timeI);
00050 Info<< "Time = " << runTime.timeName() << endl;
00051 mesh.readUpdate();
00052
00053 #include "createFields.H"
00054
00055 volSymmTensorField Reff(RASModel->devReff());
00056
00057 volVectorField wallShearStress
00058 (
00059 IOobject
00060 (
00061 "wallShearStress",
00062 runTime.timeName(),
00063 mesh,
00064 IOobject::NO_READ,
00065 IOobject::AUTO_WRITE
00066 ),
00067 mesh,
00068 dimensionedVector
00069 (
00070 "wallShearStress",
00071 Reff.dimensions(),
00072 vector::zero
00073 )
00074 );
00075
00076 forAll(wallShearStress.boundaryField(), patchi)
00077 {
00078 wallShearStress.boundaryField()[patchi] =
00079 (
00080 -mesh.Sf().boundaryField()[patchi]
00081 /mesh.magSf().boundaryField()[patchi]
00082 ) & Reff.boundaryField()[patchi];
00083 }
00084
00085 wallShearStress.write();
00086 }
00087
00088 Info<< "End" << endl;
00089
00090 return 0;
00091 }
00092
00093
00094
Copyright © 2000-2009 OpenCFD Ltd