View Issue Details

IDProjectCategoryView StatusLast Update
0001885OpenFOAM[All Projects] Bugpublic2016-07-01 14:50
ReporterSahasAssigned Tohenry 
PrioritylowSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
PlatformLinuxOSCentOSOS Version6.7
Product Version 
Fixed in Version 
Summary0001885: vtkUnstructuredToFoam fails on complex grids
DescriptionvtkUnstructuredToFoam gives bad mesh when trying to import relatively complex grid (which is not obtained by blockMesh), e.g. flange in tutorials
Steps To Reproducecd $WM_PROJECT_DIR/tutorials/basic/laplacianFoam/flange
./Allrun.sh
foamToVTK -ascii -time 0
vtkUnstructuredToFoam VTK/flange_0.vtk
checkMesh

Output ->
Checking geometry...
    Overall domain bounding box (-0.0260093 -0.0275 -0.02375) (0.0260093 0.0225 0.00225014)
    Mesh (non-empty, non-wedge) directions (1 1 1)
    Mesh (non-empty) directions (1 1 1)
 ***Boundary openness (-1.62503e-16 -0.000546461 -0.0167988) possible hole in boundary description.
 ***Open cells found, max cell openness: 1, number of open cells 460
  <<Writing 460 non closed cells to set nonClosedCells
    Minimum face area = 7.80544e-08. Maximum face area = 6.439e-06. Face area magnitudes OK.
    Min volume = 2.42682e-11. Max volume = 1.15669e-08. Total volume = 1.54165e-05. Cell volumes OK.
    Mesh non-orthogonality Max: 180 average: 24.5372
 ***Number of non-orthogonality errors: 526.
  <<Writing 526 non-orthogonal faces to set nonOrthoFaces
 ***Error in face pyramids: 1200 faces are incorrectly oriented.
  <<Writing 674 faces with incorrect orientation to set wrongOrientedFaces
    Max skewness = 1.32499 OK.
    Coupled point location match (average 0) OK.

Failed 4 mesh checks.

You can run "touch flange.foam && paraview flange.foam" and see strange "holes" in the mesh
TagsNo tags attached.

Activities

MattijsJ

2016-07-01 13:33

reporter  

vtkUnstructuredReader.C (28,202 bytes)

MattijsJ

2016-07-01 13:34

reporter   ~0006484

vtkUnstructuredToFoam was using incorrect prism point ordering. Attached version fixes this.

henry

2016-07-01 14:50

manager   ~0006485

Resolved in OpenFOAM-dev by commit 138879b25e40fe6953a26796f610973165ad2e82
Resolved in OpenFOAM-4.x by commit eb17a6f189689589e427dd279c848616ae609dc1

Issue History

Date Modified Username Field Change
2015-10-30 14:43 Sahas New Issue
2016-07-01 13:33 MattijsJ File Added: vtkUnstructuredReader.C
2016-07-01 13:34 MattijsJ Note Added: 0006484
2016-07-01 14:50 henry Note Added: 0006485
2016-07-01 14:50 henry Status new => resolved
2016-07-01 14:50 henry Fixed in Version => 4.x
2016-07-01 14:50 henry Resolution open => fixed
2016-07-01 14:50 henry Assigned To => henry