View Issue Details

IDProjectCategoryView StatusLast Update
0003069OpenFOAMBugpublic2018-09-06 16:49
Reportersose Assigned Tohenry  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionno change required 
Summary0003069: possible sign error in fvc::surfaceSum
DescriptionPossibly the sign use in the sum of the face flux in fvc::surfaceSum is not correct, please see below.

template<class Type>
tmp<GeometricField<Type, fvPatchField, volMesh>>
surfaceSum
(
    const GeometricField<Type, fvsPatchField, surfaceMesh>& ssf
)
{
... current implementation
    forAll(owner, facei)
    {
        vf[owner[facei]] += ssf[facei];
        vf[neighbour[facei]] += ssf[facei];
    }

... correction
    forAll(owner, facei)
    {
        vf[owner[facei]] += ssf[facei];
        vf[neighbour[facei]] -= ssf[facei];
    }
}
TagsNo tags attached.

Activities

henry

2018-09-06 16:49

manager   ~0010049

surfaceSum sums the face values into the cell.

Issue History

Date Modified Username Field Change
2018-09-06 13:45 sose New Issue
2018-09-06 16:49 henry Assigned To => henry
2018-09-06 16:49 henry Status new => closed
2018-09-06 16:49 henry Resolution open => no change required
2018-09-06 16:49 henry Note Added: 0010049