View Issue Details

IDProjectCategoryView StatusLast Update
0001091OpenFOAMBugpublic2013-11-27 15:24
Reporteruser258Assigned Touser4 
PrioritynoneSeverityfeatureReproducibilityalways
Status resolvedResolutionfixed 
PlatformLinuxOSSuSEOS Version11.2
Summary0001091: foamToVTK flag for handling older files
DescriptionWhen using foamToVTK to convert faceSets, I've encountered that the old VTK directory is automatically deleted, which is usually not what one wants.

This is clearly happening due to line 402..422 in the foamToVTK.C file.

The removal of the VTK directory can be prevented by cheating and using the "-time 0" option.

The simplest featurefix would be to add a "-keep" flag, because it is probably undesirable to change default behavior.
Steps To ReproduceIn the cavity case, with supplied topoSetDict, it can easily be checked using


$ blockMesh
$ topoSet
$ ls -1 constant/polyMesh/sets
set1
set2
$ foamToVTK -faceSet set1
$ ls -1 VTK
set1
$ foamToVTK -faceSet set2
$ ls -1 VTK
set2
Additional InformationI checked the 2.2.x source-code and I am convinced that the issue will happen there as well.
TagsNo tags attached.

Activities

user258

2013-11-22 10:53

 

topoSetDict (1,262 bytes)   
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.1.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      topoSetDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //


actions
(
     {
          name    set1;
          type    faceSet;
          action  new;
          source  boxToFace;
          sourceInfo
          {
              box (0.24 -1 -1) (0.26 1 1);
          }
      }
     {
          name    set2;
          type    faceSet;
          action  new;
          source  boxToFace;
          sourceInfo
          {
              box (-1 0.24 -1) (1 0.26 1);
          }
      }
);

// ************************************************************************* //
topoSetDict (1,262 bytes)   

user4

2013-11-27 15:24

  ~0002667

Makes sense. Fixed in fadb316.

Thanks for reporting.

Issue History

Date Modified Username Field Change
2013-11-22 10:53 user258 New Issue
2013-11-22 10:53 user258 File Added: topoSetDict
2013-11-27 15:24 user4 Note Added: 0002667
2013-11-27 15:24 user4 Status new => resolved
2013-11-27 15:24 user4 Fixed in Version => 2.2.x
2013-11-27 15:24 user4 Resolution open => fixed
2013-11-27 15:24 user4 Assigned To => user4