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

Help! How to output slice data during run time?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 7, 2014, 23:44
Default Help! How to output slice data during run time?
  #1
Member
 
Jack
Join Date: Dec 2011
Posts: 94
Rep Power: 14
ripperjack is on a distinguished road
Hi foamers,

I want to output some slices during run time, e.g., a x-z plane of velocity at y=1.0 in a channel. I can do it after the simulation using the "sample" utility, but that way I have to output the whole fields every time step, which makes the output data very huge. So is there a way to output just some slices during run time? (may be adding sth in controlDict?) Many thanks in advance!

Regards,
ripperjack is offline   Reply With Quote

Old   August 8, 2014, 05:45
Default
  #2
New Member
 
Blaž Mikuž
Join Date: Sep 2011
Location: Ljubljana
Posts: 29
Rep Power: 15
bmikuz is on a distinguished road
Hi ripperjack

use function object sampling -> surfaces. For example:
for a z-cut of velocity field just append this text at the bottom of controlDict:

HTML Code:
functions
{ 
    my_surfaces
    {    
    type        surfaces;
    interpolationScheme cellPoint;
    functionObjectLibs ( "libsampling.so" );
    enabled         true; // this is just a switch on/off for that function
    outputControl   timeStep; 
    outputInterval  2; // the surface will be stored every 2nd time step (for example)
    surfaceFormat    vtk;    
    surfaces
    (
        zCut
        {
        // Cutingplane using iso surface
        type            cuttingPlane;
        planeType       pointAndNormal;
        pointAndNormalDict
        {
            basePoint       (0.0 0.0 0.12);
            normalVector    (0.0 0.0 1.0);
        }
        interpolate     true;       
        }
    );

    fields
    (
    U
    );
    }
}
In this case you will find the z-planes of velocities in the postProcessing/my_surfaces directory, which will be filled on-the-fly during the runing of simulation.
bmikuz 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
Extrusion with OpenFoam problem No. Iterations 0 Lord Kelvin OpenFOAM Running, Solving & CFD 8 March 28, 2016 11:08
AMI interDyMFoam for mixer nu problem danny123 OpenFOAM Programming & Development 8 September 6, 2013 02:34
plot over time fferroni OpenFOAM Post-Processing 7 June 8, 2012 07:56
Orifice Plate with a fully developed flow - Problems with convergence jonmec OpenFOAM Running, Solving & CFD 3 July 28, 2011 05:24
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 18:07


All times are GMT -4. The time now is 21:54.