COMP: avoid ambiguous construct from tmp - solvers/ DNS

This commit is contained in:
Mark Olesen
2010-12-21 09:48:26 +01:00
parent 43ec00e50c
commit 7b5bff1a9e
3 changed files with 6 additions and 4 deletions

View File

@ -85,7 +85,7 @@ int main(int argc, char *argv[])
for (int corr=1; corr<=1; corr++) for (int corr=1; corr<=1; corr++)
{ {
volScalarField rAU = 1.0/UEqn.A(); volScalarField rAU(1.0/UEqn.A());
U = rAU*UEqn.H(); U = rAU*UEqn.H();
phi = (fvc::interpolate(U) & mesh.Sf()) phi = (fvc::interpolate(U) & mesh.Sf())

View File

@ -12,8 +12,10 @@
) )
); );
volVectorField force = volVectorField force
U/dimensionedScalar("dt", dimTime, runTime.deltaTValue()); (
U/dimensionedScalar("dt", dimTime, runTime.deltaTValue())
);
Kmesh K(mesh); Kmesh K(mesh);
UOprocess forceGen(K, runTime.deltaTValue(), turbulenceProperties); UOprocess forceGen(K, runTime.deltaTValue(), turbulenceProperties);

View File

@ -1,6 +1,6 @@
if (runTime.outputTime()) if (runTime.outputTime())
{ {
volVectorField gradT = fvc::grad(T); volVectorField gradT(fvc::grad(T));
volScalarField gradTx volScalarField gradTx
( (