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

How to plot variable (alpha1) on cuttingPlane (runtime postprocessing)

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 24, 2013, 13:30
Default How to plot variable (alpha1) on cuttingPlane (runtime postprocessing)
  #1
Member
 
Join Date: Oct 2012
Posts: 30
Rep Power: 4
pythag0ra5 is on a distinguished road
Hey guys,

i want to use the runtime postprocessing capabilities of OpenFOAM. Therefore, i modified my controlDict-file, it looks like:

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.1.1                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

libs
(
    "libOpenFOAM.so"
    "libincompressibleTurbulenceModel.so"
    "libincompressibleRASModels.so"
);

application     interFoam;

startFrom       latestTime;

startTime       0;

stopAt          endTime;

endTime         120;

deltaT          0.001;

writeControl    adjustableRunTime;

writeInterval   0.05;

purgeWrite      0;

writeFormat     ascii;

writePrecision  6;

writeCompression uncompressed;

timeFormat      general;

timePrecision   6;

runTimeModifiable yes;

adjustTimeStep  yes;

maxCo           0.5;
maxAlphaCo      0.5;

maxDeltaT       1;

functions
{
    #include "cuttingPlane"
}

// ************************************************************************* //
The cuttingPlane-file looks like:

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

cuttingPlane
{
    type            surfaces;
    functionObjectLibs ("libsampling.so");
    outputControl   outputTime;

    surfaceFormat   vtk;
    fields          ( alpha1 );

    interpolationScheme cellPoint;

    surfaces
    (
        zNormal
        {
            type            cuttingPlane;
            planeType       pointAndNormal;
            pointAndNormalDict
            {
                basePoint       (0 0 8);
                normalVector    (0 0 1);
            }
            interpolate     true;
        }
    );
}

// ************************************************************************* //
After a certain time-step, i checked the resulting vtk-file in paraview together with the foam-file. Unfortunately, the result of the cuttingPlane looks like nonsense :

Here is the complete domain i want to simulate:



Here you can see the domain again (this time with wireframe-representation) together with the cuttingPlane. The position of the cuttingPlane obviously seems to be correct, but the result makes no sense (for me):



Do you have a hint for me?

Best regards!
pythag0ra5 is offline   Reply With Quote

Old   September 26, 2013, 08:46
Default
  #2
Member
 
Join Date: Oct 2012
Posts: 30
Rep Power: 4
pythag0ra5 is on a distinguished road
Just for your information, i think this is a known bug in OpenFoam 2.2.0. I tried it again with OpenFoam 2.2.1, and now it works!

Best regards!
pythag0ra5 is offline   Reply With Quote

Reply

Tags
alpha1, cuttingplane, interfoam, runtime postprocessing

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Plot XY of a variable vs. 3D curve Fer FLUENT 2 July 11, 2012 00:30
Plot variable vs timestep Sans CFX 3 May 29, 2008 18:55
Plot variable for the cylindrical sector Cristiano FLUENT 0 April 4, 2008 09:34
plot variable against length of polyline Francesco CFX 0 April 4, 2006 11:49
Postprocessing: two scales on one plot Julie CD-adapco 0 October 16, 2004 05:29


All times are GMT -4. The time now is 00:57.