CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

vtkWrite fileName

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 31, 2019, 08:10
Default vtkWrite fileName
  #1
New Member
 
Join Date: Sep 2014
Posts: 27
Rep Power: 7
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:


Code:
subset
{
    type    vtkWrite;
    libs    ("libutilityFunctionObjects.so");
    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
    selection
    {

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

    }
}
yongxiang is offline   Reply With Quote

Reply

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+ 0 May 21, 2019 10:19
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 17:48.