mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
COMP: Updated to compile with Clang 3.7.1
This commit is contained in:
committed by
Andrew Heather
parent
0c64622341
commit
9aff74aaaf
@ -57,8 +57,8 @@
|
||||
|
||||
|
||||
const areaVectorField& Ns = aMesh.faceAreaNormals();
|
||||
areaVectorField Gs = g - Ns*(Ns & g);
|
||||
areaScalarField Gn = mag(g - Gs);
|
||||
areaVectorField Gs(g - Ns*(Ns & g));
|
||||
areaScalarField Gn(mag(g - Gs));
|
||||
|
||||
// Mass source
|
||||
areaScalarField Sm
|
||||
|
||||
@ -86,7 +86,7 @@ int main(int argc, char *argv[])
|
||||
UsEqn.relax();
|
||||
solve(UsEqn == - fac::grad(ps*h)/rhol + ps*fac::grad(h)/rhol);
|
||||
|
||||
areaScalarField UsA = UsEqn.A();
|
||||
areaScalarField UsA(UsEqn.A());
|
||||
|
||||
Us = UsEqn.H()/UsA;
|
||||
Us.correctBoundaryConditions();
|
||||
|
||||
@ -41,8 +41,10 @@ scalar velMag = 0.0;
|
||||
|
||||
if (aMesh.nInternalEdges())
|
||||
{
|
||||
edgeScalarField SfUfbyDelta =
|
||||
aMesh.edgeInterpolation::deltaCoeffs()*mag(phis);
|
||||
edgeScalarField SfUfbyDelta
|
||||
(
|
||||
aMesh.edgeInterpolation::deltaCoeffs()*mag(phis)
|
||||
);
|
||||
|
||||
CoNum = max(SfUfbyDelta/aMesh.magLe())
|
||||
.value()*runTime.deltaT().value();
|
||||
@ -57,4 +59,5 @@ Info<< "Courant Number mean: " << meanCoNum
|
||||
<< " max: " << CoNum
|
||||
<< " velocity magnitude: " << velMag << endl;
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
Reference in New Issue
Block a user