|
[Sponsors] |
February 6, 2018, 04:54 |
vtkUnstructuredToFoam in OpenFOAM
|
#1 |
Member
Vishwesh Ravi Shrimali
Join Date: Aug 2017
Posts: 43
Rep Power: 9 |
Hi
I have a question regarding the OpenFOAM pre-processing utility - vtkUnstructuredToFoam. Now, if I understand it correctly, this utility takes a vtk Unstructured file as input and then converts it into a Polymesh. Now, I ran a simulation using OpenFOAM and then saved the data at a particular time step (t = 0.35) in vtm format using paraView. This vtm file had all the info, mesh, U, alpha.water, etc. Again, I opened the corresponding vtu file in ParaView and saved it in vtk format. This file had all the data: U, alpha.water, points, faces, etc. Now if I run vtkUnstructuredToFoam utility. I only get the polymesh without the boundary conditions, U, alpha.water and other parameter. But if I check the log file: Code:
/*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 3.0.x | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : 3.0.x Exec : vtkUnstructuredToFoam data_vtk.vtk Date : Feb 06 2018 Time : 14:10:26 Host : "cgscd000ggb3t92" PID : 4422 Case : /data/cfd_ext/Student_Interns_2017/vishwesh/damBreak/data nProcs : 1 sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster allowSystemOperations : Allowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Header : "# vtk DataFile Version 4.0" Title : "vtk output" dataType : "ASCII" line:4 tag:DATASET geomType : UNSTRUCTURED_GRID line:5 tag:POINTS Reading 4746 numbers representing 4746 coordinates. line:1589 tag:CELLS Reading 2268 cells or faces. line:3859 tag:CELL_TYPES Read 2268 cells;0 faces. line:6129 tag:CELL_DATA line:6130 tag:SCALARS Reading scalar p of type float from lookup table line:6385 tag:VECTORS Reading vector U of type float line:7143 tag:FIELD dataName:FieldData numArrays:5 Reading field alpha.water of 2268 tuples of rank 1 Reading field epsilon of 2268 tuples of rank 1 Reading field k of 2268 tuples of rank 1 Reading field nut of 2268 tuples of rank 1 Reading field p_rgh of 2268 tuples of rank 1 line:8414 tag:POINT_DATA line:8415 tag:SCALARS Reading scalar p of type float from lookup table line:8945 tag:VECTORS Reading vector U of type float line:10529 tag:FIELD dataName:FieldData numArrays:5 Reading field alpha.water of 4746 tuples of rank 1 Reading field epsilon of 4746 tuples of rank 1 Reading field k of 4746 tuples of rank 1 Reading field nut of 4746 tuples of rank 1 Reading field p_rgh of 4746 tuples of rank 1 Read points:4746 cellShapes:2268 faces:0 lines:0 Cell fields: Read 1 vectorField fields: Size Name ---- ---- 2268 U Read 6 scalarField fields: Size Name ---- ---- 2268 nut 2268 alpha.water 2268 k 2268 p_rgh 2268 p 2268 epsilon Point fields: Read 1 vectorField fields: Size Name ---- ---- 4746 U Read 6 scalarField fields: Size Name ---- ---- 4746 nut 4746 alpha.water 4746 k 4746 p_rgh 4746 p 4746 epsilon Other fields: --> FOAM Warning : From function polyMesh::polyMesh(... construct from shapes...) in file meshes/polyMesh/polyMeshFromShapeMesh.C at line 625 Found 4744 undefined faces in mesh; adding to default patch. Writing mesh ... End Thanks in advance for the help. |
|
January 19, 2021, 10:05 |
|
#2 |
New Member
anon
Join Date: Jul 2017
Posts: 1
Rep Power: 0 |
Hi Vishwesh, sorry to respond to a long-dead post, but did you have any luck with vtkUnstructuredToFoam? I have a similar problem, I'm trying to transfer field data into OF. The only other work-around I can think of would be to write a Python or bash script to read the field data and format it correctly for my OF boundary condition file.
|
|
Tags |
openfoam 3.0.x, vtk |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Frequently Asked Questions about Installing OpenFOAM | wyldckat | OpenFOAM Installation | 3 | November 14, 2023 12:58 |
OpenFOAM Foundation releases OpenFOAMŪ 3.0.0 | CFDFoundation | OpenFOAM Announcements from OpenFOAM Foundation | 1 | November 7, 2015 16:16 |
OpenFOAM Foundation Releases OpenFOAM v2.3.0 | opencfd | OpenFOAM Announcements from OpenFOAM Foundation | 3 | December 23, 2014 04:43 |
Suggestion for a new sub-forum at OpenFOAM's Forum | wyldckat | Site Help, Feedback & Discussions | 20 | October 28, 2014 10:04 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 19:07 |