mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: avoid ambiguous construct from tmp - utils/ pre+post processing
This commit is contained in:
@ -104,7 +104,7 @@ int main(int argc, char *argv[])
|
||||
// Calculate nut
|
||||
tmp<volScalarField> tnut = turbulence->nut();
|
||||
volScalarField& nut = tnut();
|
||||
volScalarField S = mag(dev(symm(fvc::grad(U))));
|
||||
volScalarField S(mag(dev(symm(fvc::grad(U)))));
|
||||
nut = sqr(kappa*min(y, ybl))*::sqrt(2)*S;
|
||||
|
||||
if (args.optionFound("writenut"))
|
||||
|
||||
@ -47,7 +47,7 @@ License
|
||||
);
|
||||
|
||||
Info<< "Calculating wall distance field" << endl;
|
||||
volScalarField y = wallDist(mesh).y();
|
||||
volScalarField y(wallDist(mesh).y());
|
||||
|
||||
// Set the mean boundary-layer thickness
|
||||
dimensionedScalar ybl("ybl", dimLength, 0);
|
||||
|
||||
Reference in New Issue
Block a user