|
[Sponsors] |
July 13, 2015, 12:46 |
.vtk .png conversion using python
|
#1 |
New Member
Jishen Zhang
Join Date: Jun 2014
Location: Vigo, Spain
Posts: 12
Rep Power: 11 |
Dear Foamers,
I try to generate some images on pressure & velocity values in the flow field. I use sampleDict to have the vtk file but I could not convert vtk to png/jpeg file. Could anyone help me please? Here's my sampleDict file: /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.3.1 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "system"; object sampleDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // interpolationScheme cellPoint; surfaceFormat vtk; functionObjectLibs ("libsampling.so"); surfaces ( outputName { type plane; basePoint (0 0 0); normalVector (1 0 0); triangulate false; } ); fields (p,U); // ************************************************** *********************** // |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] compile error in dynamicMesh and thermophysicalModels libraries | NickG | OpenFOAM Installation | 3 | December 30, 2019 00:21 |
CFD by anderson, chp 10.... supersonic flow over flat plate | varunjain89 | Main CFD Forum | 18 | May 11, 2018 07:31 |
[Commercial meshers] star-ccm mesh to O\/F | DLC | OpenFOAM Meshing & Mesh Conversion | 77 | September 19, 2016 09:25 |
[OpenFOAM] paraview v4 - building with python - OF2.3.0, PVv4, Python 2.7 | aylalisa | ParaView | 4 | June 13, 2014 08:52 |
CentFOAM Python Script Installation: Error | socon009 | OpenFOAM Installation | 2 | May 26, 2012 09:36 |