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

export calculated variable with cuttingPlane

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 16, 2014, 10:59
Default export calculated variable with cuttingPlane
  #1
Senior Member
 
Eloïse
Join Date: Jul 2012
Location: Trondheim, Norway
Posts: 113
Rep Power: 13
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!
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;
        }
    );
}


// ************************************************************************* //
Eloise 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
How to export single variable of a single surface? zeitistgeld CFX 6 September 26, 2009 06:37
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 19:08
Export patch profile johndeas OpenFOAM Running, Solving & CFD 5 January 25, 2008 04:27
Problems with additional variable Krishna Premi CFX 1 October 29, 2007 08:19
how to export calculated values to a file colin Fidelity CFD 1 June 5, 2007 04:14


All times are GMT -4. The time now is 06:07.