mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Pe: Correct expressions for laminar flow (incompressible and compressible)
This commit is contained in:
@ -192,8 +192,12 @@ void Foam::calc(const argList& args, const Time& runTime, const fvMesh& mesh)
|
|||||||
mesh,
|
mesh,
|
||||||
IOobject::NO_READ
|
IOobject::NO_READ
|
||||||
),
|
),
|
||||||
mesh.surfaceInterpolation::deltaCoeffs()
|
mag(phi)
|
||||||
* (mag(phi)/mesh.magSf())*(runTime.deltaT()/nu)
|
/(
|
||||||
|
mesh.magSf()
|
||||||
|
* mesh.surfaceInterpolation::deltaCoeffs()
|
||||||
|
* nu
|
||||||
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -317,8 +321,12 @@ void Foam::calc(const argList& args, const Time& runTime, const fvMesh& mesh)
|
|||||||
mesh,
|
mesh,
|
||||||
IOobject::NO_READ
|
IOobject::NO_READ
|
||||||
),
|
),
|
||||||
mesh.surfaceInterpolation::deltaCoeffs()
|
mag(phi)
|
||||||
* (mag(phi)/(mesh.magSf()))*(runTime.deltaT()/mu)
|
/(
|
||||||
|
mesh.magSf()
|
||||||
|
* mesh.surfaceInterpolation::deltaCoeffs()
|
||||||
|
* mu
|
||||||
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -330,26 +338,6 @@ void Foam::calc(const argList& args, const Time& runTime, const fvMesh& mesh)
|
|||||||
<< abort(FatalError);
|
<< abort(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// can also check how many cells exceed a particular Pe limit
|
|
||||||
/*
|
|
||||||
{
|
|
||||||
label count = 0;
|
|
||||||
label PeLimit = 200;
|
|
||||||
forAll(PePtr(), i)
|
|
||||||
{
|
|
||||||
if (PePtr()[i] > PeLimit)
|
|
||||||
{
|
|
||||||
count++;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
Info<< "Fraction > " << PeLimit << " = "
|
|
||||||
<< scalar(count)/Pe.size() << endl;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
Info<< "Pe max : " << max(PePtr()).value() << endl;
|
Info<< "Pe max : " << max(PePtr()).value() << endl;
|
||||||
|
|
||||||
if (writeResults)
|
if (writeResults)
|
||||||
|
|||||||
Reference in New Issue
Block a user