CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

vtkWrite fileName

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   October 31, 2019, 08:10
Default vtkWrite fileName
Join Date: Sep 2014
Posts: 32
Rep Power: 8
yongxiang is on a distinguished road
Hello OFers,

i am using the vtkWrite utility to write out part of the domain for postProcessing. It works, but the generated vtk file is assigned a name with number at end. In my case, I would prefer to identify the vtk file with time step. An expample is follows.

Re620eta1_Reference2D_00028984.vtk ( unrelevant number)

Re620eta1_Reference2D_1.1.vtk (prefered with time step 1.1s)

does anyone how to setup the vtkWrite file? My vtkwrite file is follows:

    type    vtkWrite;
    libs    ("");
    log     true;

     boundary    false;

    interpolate true;
    directory       "VTK1";
    // Fields to output (words or regex)
    fields      (U_TS);

    //- Write cell ids as field - Default=true
    writeIds    false;
    legacy  true;
    //- Write more frequent than fields
    writeControl    runTime;
    writeInterval   0.1;
     useTimeName true;  // does not work! This works with foamToVtk, but not working in runtime vtk write utility
    // Region of interest

            action  add;
            source  box;
            box     (-0.1 0 -0.01) (1.95 0.1 0.01);

yongxiang is offline   Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error message when using DBFI jeroendemto STAR-CCM+ 1 February 22, 2020 13:26
Star 13.06.012 mismatched types in mpi error server reset cdimock72 STAR-CCM+ 0 April 14, 2019 12:19
Star ccm+ non newtonian error miyendisbey STAR-CCM+ 1 May 12, 2017 16:10
Heat Transfer Error Message darsonli STAR-CCM+ 0 September 22, 2014 22:00
Error VolumeFractionLevel1 savr1484 STAR-CCM+ 3 February 4, 2014 01:55

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