CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   Problem with writing fields with foamToVTK (https://www.cfd-online.com/Forums/openfoam-post-processing/121766-problem-writing-fields-foamtovtk.html)

Kirils August 5, 2013 06:26

Problem with writing fields with foamToVTK
 
2 Attachment(s)
Hello everyone!

I'm very new at OpenFOAM and I can't solve the following problem. Please help me or send a link to solution (I tried but couldn't find it).

I had run 2D axially symmetrical calculations based on chtMultiRegionFoam tutorial (see the case attached). Mesh is very simple, hand-written in blockMeshDict. Then I created two regions using setSet. When I launch chtMultiRegionFoam, it seems that calculation are OK with no errors. Then I write "foamToVTK -time 500" and it still seems to be OK. I get the following on screen:

Code:

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

Create mesh for time = 500

Time: 500

    Internal  : "/home/kirill/openfoam/KS_test/8_wedges_from_BlockMesh_multiRegion/VTK/8_wedges_from_BlockMesh_multiRegion_5000.vtk"
    Original cells:200 points:451  Additional cells:0  additional points:0

    Patch    : "/home/kirill/openfoam/KS_test/8_wedges_from_BlockMesh_multiRegion/VTK/top_faces/top_faces_5000.vtk"
    Patch    : "/home/kirill/openfoam/KS_test/8_wedges_from_BlockMesh_multiRegion/VTK/bottom_faces/bottom_faces_5000.vtk"
    Patch    : "/home/kirill/openfoam/KS_test/8_wedges_from_BlockMesh_multiRegion/VTK/side_faces/side_faces_5000.vtk"
    Patch    : "/home/kirill/openfoam/KS_test/8_wedges_from_BlockMesh_multiRegion/VTK/axial_faces/axial_faces_5000.vtk"
    Patch    : "/home/kirill/openfoam/KS_test/8_wedges_from_BlockMesh_multiRegion/VTK/wedge_faces/wedge_faces_5000.vtk"
End

But the problem is: when I open .vtk file with ParaView, I cannot see temperature field. I see only what is shown in attached screenshot - cellID and cellNormals. Still, in the folder "500" there is normal "T" file with good values.

Can anyone please help me, how to display temperature field in ParaView?

Kirils September 10, 2013 09:22

Solution
 
The problem is solved. ParaView was working wrong because of bad mesh - not every hexagon had exactly six boundary faces.


All times are GMT -4. The time now is 19:23.