Skip to content

Commit

Permalink
CourantNo: Removed check for nInternalFaces which is not correct in g…
Browse files Browse the repository at this point in the history
…eneral in parallel
  • Loading branch information
Henry Weller committed May 31, 2017
1 parent 59bd947 commit 8d2e5ec
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/dynamicFvMesh/include/meshCourantNo.H
Expand Up @@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
Expand Down Expand Up @@ -32,7 +32,6 @@ Description
scalar meshCoNum = 0.0;
scalar meanMeshCoNum = 0.0;

if (mesh.nInternalFaces())
{
scalarField sumPhi
(
Expand Down
Expand Up @@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
Expand Down Expand Up @@ -32,12 +32,10 @@ Description
scalar CoNum = 0.0;
scalar meanCoNum = 0.0;

if (mesh.nInternalFaces())
{
scalarField sumPhi
(
fvc::surfaceSum(mag(phi))().primitiveField()
/ rho.primitiveField()
fvc::surfaceSum(mag(phi))().primitiveField()/rho.primitiveField()
);

CoNum = 0.5*gMax(sumPhi/mesh.V().field())*runTime.deltaTValue();
Expand Down
3 changes: 1 addition & 2 deletions src/finiteVolume/cfdTools/incompressible/CourantNo.H
Expand Up @@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
Expand Down Expand Up @@ -32,7 +32,6 @@ Description
scalar CoNum = 0.0;
scalar meanCoNum = 0.0;

if (mesh.nInternalFaces())
{
scalarField sumPhi
(
Expand Down

0 comments on commit 8d2e5ec

Please sign in to comment.