From 0bf1587872f891cc9d7e05da22f6c7618b311a19 Mon Sep 17 00:00:00 2001 From: mattijs Date: Thu, 28 Jan 2010 11:50:52 +0000 Subject: [PATCH 1/3] BUG: cell/face/pointSet should be read from facesInstance, not pointsInstance. This comes up when displaying sets on moving meshes. The topology does not change so the set should stay the same. --- .../PV3FoamReader/vtkPV3Foam/vtkPV3FoamUpdateInfo.C | 8 ++++++++ src/meshTools/sets/topoSets/topoSet.C | 8 ++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/applications/utilities/postProcessing/graphics/PV3Readers/PV3FoamReader/vtkPV3Foam/vtkPV3FoamUpdateInfo.C b/applications/utilities/postProcessing/graphics/PV3Readers/PV3FoamReader/vtkPV3Foam/vtkPV3FoamUpdateInfo.C index 2bed6fabd4..63148a0410 100644 --- a/applications/utilities/postProcessing/graphics/PV3Readers/PV3FoamReader/vtkPV3Foam/vtkPV3FoamUpdateInfo.C +++ b/applications/utilities/postProcessing/graphics/PV3Readers/PV3FoamReader/vtkPV3Foam/vtkPV3FoamUpdateInfo.C @@ -408,6 +408,14 @@ void Foam::vtkPV3Foam::updateInfoSets meshDir_/"sets" ); + if (debug) + { + Info<< " Foam::vtkPV3Foam::updateInfoSets read " + << objects.names() << " from " + << dbPtr_().findInstance(meshDir_, "faces", IOobject::READ_IF_PRESENT) + << endl; + } + arrayRangeCellSets_.reset( arraySelection->GetNumberOfArrays() ); arrayRangeCellSets_ += addToSelection diff --git a/src/meshTools/sets/topoSets/topoSet.C b/src/meshTools/sets/topoSets/topoSet.C index aa95197146..67d9bc4202 100644 --- a/src/meshTools/sets/topoSets/topoSet.C +++ b/src/meshTools/sets/topoSets/topoSet.C @@ -141,7 +141,7 @@ Foam::fileName topoSet::topoSet::localPath const word& name ) { - return mesh.pointsInstance()/polyMesh::meshSubDir/"sets"/name; + return mesh.facesInstance()/polyMesh::meshSubDir/"sets"/name; } @@ -362,7 +362,7 @@ topoSet::topoSet IOobject ( name, - mesh.pointsInstance(), + mesh.facesInstance(), polyMesh::meshSubDir/"sets", mesh, r, @@ -402,7 +402,7 @@ topoSet::topoSet IOobject ( name, - mesh.pointsInstance(), + mesh.facesInstance(), polyMesh::meshSubDir/"sets", mesh, NO_READ, @@ -426,7 +426,7 @@ topoSet::topoSet IOobject ( name, - mesh.pointsInstance(), + mesh.facesInstance(), polyMesh::meshSubDir/"sets", mesh, NO_READ, From 4b0c5233a9a71483335f3dfccfd60f265b773b31 Mon Sep 17 00:00:00 2001 From: mattijs Date: Thu, 28 Jan 2010 11:55:06 +0000 Subject: [PATCH 2/3] STYLE: 80 char line length --- .../PV3FoamReader/vtkPV3Foam/vtkPV3FoamUpdateInfo.C | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/applications/utilities/postProcessing/graphics/PV3Readers/PV3FoamReader/vtkPV3Foam/vtkPV3FoamUpdateInfo.C b/applications/utilities/postProcessing/graphics/PV3Readers/PV3FoamReader/vtkPV3Foam/vtkPV3FoamUpdateInfo.C index dbd0b65d88..001db69e20 100644 --- a/applications/utilities/postProcessing/graphics/PV3Readers/PV3FoamReader/vtkPV3Foam/vtkPV3FoamUpdateInfo.C +++ b/applications/utilities/postProcessing/graphics/PV3Readers/PV3FoamReader/vtkPV3Foam/vtkPV3FoamUpdateInfo.C @@ -412,7 +412,12 @@ void Foam::vtkPV3Foam::updateInfoSets { Info<< " Foam::vtkPV3Foam::updateInfoSets read " << objects.names() << " from " - << dbPtr_().findInstance(meshDir_, "faces", IOobject::READ_IF_PRESENT) + << dbPtr_().findInstance + ( + meshDir_, + "faces", + IOobject::READ_IF_PRESENT + ) << endl; } From e931525a0f5c669d970e409d294e1b20c0268fd2 Mon Sep 17 00:00:00 2001 From: mattijs Date: Thu, 28 Jan 2010 12:19:17 +0000 Subject: [PATCH 3/3] BUG: sets relating to geometry (most mesh errors) should be written to pointsInstance. For now also dump topology related sets to pointsInstance since otherwise paraFoam cannot see them (only looks at first 'sets' directory when searching back) --- .../mesh/manipulation/checkMesh/checkGeometry.C | 13 +++++++++++++ .../mesh/manipulation/checkMesh/checkTopology.C | 8 ++++++++ 2 files changed, 21 insertions(+) diff --git a/applications/utilities/mesh/manipulation/checkMesh/checkGeometry.C b/applications/utilities/mesh/manipulation/checkMesh/checkGeometry.C index 0adcd30927..44ad601a02 100644 --- a/applications/utilities/mesh/manipulation/checkMesh/checkGeometry.C +++ b/applications/utilities/mesh/manipulation/checkMesh/checkGeometry.C @@ -47,6 +47,7 @@ Foam::label Foam::checkGeometry(const polyMesh& mesh, const bool allGeometry) Info<< " <