|
[Sponsors] |
June 16, 2014, 11:59 |
export calculated variable with cuttingPlane
|
#1 |
Senior Member
Eloïse
Join Date: Jul 2012
Location: Trondheim, Norway
Posts: 113
Rep Power: 14 |
Hello Foamers,
In OpenFoam 2.2.2, I'm trying to sample surfaces at the end of my simulations. I didn't managed to setup the sampleDict in 2.2.2 version to extract variables on a surfaces so I'm trying another approach: I use the cuttingPlane function in my controlDict (see below). However, I need to extract both solved variables (like U) and unsolved variables which can be calculated through post-processing commands (like magU). If I write both variables in the cuttingPlane function, only U is printed. Do you know how to have a variable such as magU exported from cuttingPlane function? Or how the sampleDict should be written in OF2.2.2 in order to extract a surface? Thanks for your help! Regards, Eloïse Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.2.2 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ cuttingPlane { type surfaces; functionObjectLibs ("libsampling.so"); outputControl outputTime; surfaceFormat vtk; fields ( U magU ); interpolationScheme cellPoint; surfaces ( z_5m { type cuttingPlane; planeType pointAndNormal; pointAndNormalDict { basePoint (0 0 -5); normalVector (0 0 1); } interpolate true; } ); } // ************************************************************************* // |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to export single variable of a single surface? | zeitistgeld | CFX | 6 | September 26, 2009 07:37 |
OpenFOAM on MinGW crosscompiler hosted on Linux | allenzhao | OpenFOAM Installation | 127 | January 30, 2009 20:08 |
Export patch profile | johndeas | OpenFOAM Running, Solving & CFD | 5 | January 25, 2008 05:27 |
Problems with additional variable | Krishna Premi | CFX | 1 | October 29, 2007 09:19 |
how to export calculated values to a file | colin | Fidelity CFD | 1 | June 5, 2007 05:14 |