CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

export calculated variable with cuttingPlane

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

LinkBack Thread Tools Search this Thread Display Modes
Old   June 16, 2014, 11:59
Default export calculated variable with cuttingPlane
Senior Member
Join Date: Jul 2012
Location: Trondheim, Norway
Posts: 113
Rep Power: 9
Eloise is on a distinguished road
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!

/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.2.2                                 |
|   \\  /    A nd           | Web:                      |
|    \\/     M anipulation  |                                                 |

    type            surfaces;
    functionObjectLibs ("");
    outputControl   outputTime;

    surfaceFormat   vtk;
    fields          ( U magU );

    interpolationScheme cellPoint;

            type            cuttingPlane;
            planeType       pointAndNormal;
                basePoint       (0 0 -5);
                normalVector    (0 0 1);
            interpolate     true;

// ************************************************************************* //
Eloise is offline   Reply With Quote


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
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 NUMECA 1 June 5, 2007 05:14

All times are GMT -4. The time now is 16:26.