|
[Sponsors] |
Help! How to output slice data during run time? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 8, 2014, 00:44 |
Help! How to output slice data during run time?
|
#1 |
Member
Jack
Join Date: Dec 2011
Posts: 94
Rep Power: 14 |
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, |
|
August 8, 2014, 06:45 |
|
#2 |
New Member
Blaž Mikuž
Join Date: Sep 2011
Location: Ljubljana
Posts: 29
Rep Power: 15 |
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 ); } } |
|
|
|
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 12:08 |
AMI interDyMFoam for mixer nu problem | danny123 | OpenFOAM Programming & Development | 8 | September 6, 2013 03:34 |
plot over time | fferroni | OpenFOAM Post-Processing | 7 | June 8, 2012 08:56 |
Orifice Plate with a fully developed flow - Problems with convergence | jonmec | OpenFOAM Running, Solving & CFD | 3 | July 28, 2011 06:24 |
Could anybody help me see this error and give help | liugx212 | OpenFOAM Running, Solving & CFD | 3 | January 4, 2006 19:07 |