View Issue Details

IDProjectCategoryView StatusLast Update
0000796OpenFOAMBugpublic2013-03-26 20:15
Reporteruser626Assigned Touser4 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Platformx64OSUbuntuOS Version12.04
Summary0000796: snappyHexMesh complain about header missin on paraview generated vtk edges
Descriptionas per http://www.openfoam.org/version2.2.0/pre-processing.php, i've exported edges in paraview 3.12.0 as ascii vtk.

snappyhexmesh set up like this:

features
    (
        


        {
            file "casing.vtk";
            level 5;
        }

and


 nFeatureSnapIter 10;
//- Detect (geometric) features by sampling the surface
        implicitFeatureSnap false; //true;

        //- Use castellatedMeshControls::features
        explicitFeatureSnap true;

        //- Detect features between multiple surfaces
        // (only for explicitFeatureSnap, default = false)
        multiRegionFeatureSnap true;
}

complain that the file is missing the correct header:

/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.2.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.2.0-5be49240882f
Exec : snappyHexMesh
Date : Mar 21 2013
Time : 22:03:50
Host : "vieri-desktop"
PID : 8860
Case : /home/vieri/Desktop/testing
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Read mesh in = 0 s

Overall mesh bounding box : (-2 -2 -2) (12 2 2)
Relative tolerance : 1e-06
Absolute matching distance : 1.50997e-05

Reading refinement surfaces.
Read refinement surfaces in = 2.71 s

Reading refinement shells.
Read refinement shells in = 0 s

Setting refinement level of surface to be consistent with shells.
Checked shell refinement in = 3.24 s

Reading features.
--> FOAM Warning :
    From function IOobject::readHeader(Istream&)
    in file db/IOobject/IOobjectReadHeader.C at line 89
    Reading "/home/vieri/Desktop/testing/constant/triSurface/casing.vtk" at line 1
    First token could not be read or is not the keyword 'FoamFile'

Check header is of the form:

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.2.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version 2.0;
    format ascii;
    class featureEdgeMesh;
    location "constant/triSurface";
    object casing.vtk;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //



--> FOAM FATAL IO ERROR:
problem while reading header for object casing.vtk

file: /home/vieri/Desktop/testing/constant/triSurface/casing.vtk at line 1.

    From function regIOobject::readStream()
    in file db/regIOobject/regIOobjectRead.C at line 95.

FOAM exiting



also, take care that in paraview 3.14.1 it is no longer possible to export as vtk.




Additional Informationas an addition, when sHM is run in parallel after a decomposition, it request the edges file to be present in 0/processorN/constant/triSurface/ for every processor.

this does not happen for just the surfaces stl and without edges the meshing proceed smoothly in parallel
TagsMesh, snappyHexMesh

Activities

user4

2013-03-26 20:15

  ~0002074

fixed in 4e92c59d99af30e63e8b0c166f236167a291a4b3.

Should read in .vtk files and run in parallel without any copying.

Thanks for reporting.

Issue History

Date Modified Username Field Change
2013-03-21 14:02 user626 New Issue
2013-03-21 14:03 user626 Tag Attached: Mesh
2013-03-21 14:04 user626 Tag Attached: snappyHexMesh
2013-03-26 20:15 user4 Note Added: 0002074
2013-03-26 20:15 user4 Status new => resolved
2013-03-26 20:15 user4 Fixed in Version => 2.2.x
2013-03-26 20:15 user4 Resolution open => fixed
2013-03-26 20:15 user4 Assigned To => user4