View Issue Details

IDProjectCategoryView StatusLast Update
0002941OpenFOAMBugpublic2018-05-18 16:56
Reportertoliveira Assigned Tohenry  
PrioritylowSeveritymajorReproducibilityalways
Status closedResolutionno change required 
PlatformGNU/LinuxOSUbuntuOS Version16.04
Summary0002941: fvMeshSubset::subMesh().owner() does not return the list of all owners.
DescriptionfvMeshSubset::subMesh().owner() does not return the list of all owners. The list returned has nInternalFaces elements instead of nFaces.
Steps To ReproduceOne can verify the statement in the description by doing the following:

1 - in applications/utilities/mesh/manipulation/subsetMesh/subsetMesh.C, include after "subsetter.subMesh().write();":

    Info<< "subsetter.subMesh().owner().size() = " << subsetter.subMesh().owner().size() << endl;
    Info<< "subsetter.subMesh().objectRegistry::lookupObject<labelIOList>(owner).size() = " << subsetter.subMesh().objectRegistry::lookupObject<labelIOList>("owner").size() << endl;

2 - recompile subMeshSet
3 - use subMeshSet
4 - compare the values on the two Info messages.
Additional InformationfvMeshSubset::subMesh().owner() does not return the list of all owners but the correct, complete list of owners is written the the owner files by subsetMesh. The user that needs this list inside their application can get it using subsetter.subMesh().objectRegistry::lookupObject<labelIOList>(owner) .
TagsNo tags attached.

Activities

MattijsJ

2018-05-18 11:48

reporter   ~0009605

You can access the faceOwner() instead. (the lduAddressing::owner is the lduMesh wrapper of it and only covers the internal faces - the boundary owner cells are handled separately)

toliveira

2018-05-18 12:18

reporter   ~0009606

Thank you Mattijs. Now I realize it was my mistake in the choice of the method. owner() is indeed commented as :"//- Internal face owner". I am sorry for that.

Issue History

Date Modified Username Field Change
2018-05-17 18:36 toliveira New Issue
2018-05-18 11:48 MattijsJ Note Added: 0009605
2018-05-18 12:18 toliveira Note Added: 0009606
2018-05-18 16:56 henry Assigned To => henry
2018-05-18 16:56 henry Status new => closed
2018-05-18 16:56 henry Resolution open => no change required