globalProperties.H
Go to the documentation of this file.
1 {
2  Info<< "k(" << runTime.timeName() << ") = "
3  << 3.0/2.0*average(magSqr(U)).value() << endl;
4 
5  Info<< "epsilon(" << runTime.timeName() << ") = "
6  << (0.5*nu*average(magSqr(twoSymm(fvc::grad(U))))).value() << endl;
7 
8  Info<< "U.f(" << runTime.timeName() << ") = "
9  << 181.0*average(U & force).value() << endl;
10 }
dimensioned< scalar > magSqr(const dimensioned< Type > &)
messageStream Info
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:251
dimensionedSymmTensor twoSymm(const dimensionedSymmTensor &dt)
tmp< GeometricField< Type, fvPatchField, volMesh > > average(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
Area-weighted average a surfaceField creating a volField.
Definition: fvcAverage.C:46
volScalarField & nu
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
Definition: fvcGrad.C:52
U
Definition: pEqn.H:82