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

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

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 24, 2013, 14:30
Default How to plot variable (alpha1) on cuttingPlane (runtime postprocessing)
  #1
Member
 
Join Date: Oct 2012
Posts: 32
Rep Power: 14
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, 09:46
Default
  #2
Member
 
Join Date: Oct 2012
Posts: 32
Rep Power: 14
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


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
Plot XY of a variable vs. 3D curve Fer FLUENT 2 July 11, 2012 01:30
Plot variable vs timestep Sans CFX 3 May 29, 2008 19:55
Plot variable for the cylindrical sector Cristiano FLUENT 0 April 4, 2008 10:34
plot variable against length of polyline Francesco CFX 0 April 4, 2006 12:49
Postprocessing: two scales on one plot Julie Siemens 0 October 16, 2004 06:29


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