makeGraphs.H
Go to the documentation of this file.
2 (
3  IOobject
4  (
5  "R",
6  runTime.timeName(),
7  mesh,
8  IOobject::NO_READ,
9  IOobject::AUTO_WRITE
10  ),
11  turbulence->R()
12 );
13 
14 runTime.write();
15 
16 const word& gFormat = runTime.graphFormat();
17 
18 makeGraph(y, flowDirection & U, "Uf", gFormat);
19 
20 makeGraph(y, turbulence->nu(), gFormat);
22 makeGraph(y, turbulence->epsilon(), gFormat);
23 
27 
28 makeGraph(y, sqrt(mag(R.component(symmTensor::XX))), "u", gFormat);
29 makeGraph(y, sqrt(mag(R.component(symmTensor::YY))), "v", gFormat);
30 makeGraph(y, sqrt(mag(R.component(symmTensor::ZZ))), "w", gFormat);
31 makeGraph(y, R.component(symmTensor::XY), "uv", gFormat);
32 
33 makeGraph(y, mag(fvc::grad(U)), "gammaDot", gFormat);
runTime
engineTime & runTime
Definition: createEngineTime.H:13
gFormat
const word & gFormat
Definition: makeGraphs.H:16
turbulence
Info<< "Reading field U\n"<< 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("pos", dimless, 1.0));surfaceScalarField neg(IOobject("neg", runTime.timeName(), mesh), mesh, dimensionedScalar("neg", dimless, -1.0));surfaceScalarField phi("phi", fvc::flux(rhoU));Info<< "Creating turbulence model\n"<< endl;autoPtr< compressible::turbulenceModel > turbulence(compressible::turbulenceModel::New(rho, U, phi, thermo))
Definition: createFields.H:94
Foam::fac::grad
tmp< GeometricField< typename outerProduct< vector, Type >::type, faPatchField, areaMesh >> grad(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
Definition: facGrad.C:56
Foam::volSymmTensorField
GeometricField< symmTensor, fvPatchField, volMesh > volSymmTensorField
Definition: volFieldsFwd.H:65
flowDirection
vector flowDirection
Definition: createFields.H:41
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:6
U
U
Definition: pEqn.H:72
Foam::sqrt
dimensionedScalar sqrt(const dimensionedScalar &ds)
Definition: dimensionedScalar.C:144
Foam::mag
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
makeGraph
makeGraph(y, flowDirection &U, "Uf", gFormat)
wallNormal
vector wallNormal(Zero)
y
scalar y
Definition: LISASMDCalcMethod1.H:14
R
volSymmTensorField R(IOobject("R", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), turbulence->R())