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

vtkWrite fileName

Register Blogs Community New Posts Updated Threads Search

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

Old   March 8, 2023, 04:38
Smile
  #2
F42
New Member
 
Join Date: Jun 2018
Posts: 20
Rep Power: 7
F42 is on a distinguished road
Did you find a solution?
I am having a similar problem.

I would be fine with the consecutive ordering (e.g. polyHedra_00000001). But when the simulation is stopped and restarted from last timeStep the "internal counter" is reset. vtkWrite starts with polyHedra_00000001 again thus overwriting the results from the first run...


Any suggestions are appreciated.
F42 is offline   Reply With Quote

Reply


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 12:26
Star 13.06.012 mismatched types in mpi error server reset cdimock72 STAR-CCM+ 0 April 14, 2019 11:19
Star ccm+ non newtonian error miyendisbey STAR-CCM+ 1 May 12, 2017 15:10
Heat Transfer Error Message darsonli STAR-CCM+ 0 September 22, 2014 21:00
Error VolumeFractionLevel1 savr1484 STAR-CCM+ 3 February 4, 2014 00:55


All times are GMT -4. The time now is 15:41.