CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   No run-time surface pressure from OpenFOAM 2.2.0 (https://www.cfd-online.com/Forums/openfoam-post-processing/124279-no-run-time-surface-pressure-openfoam-2-2-0-a.html)

Junhong October 1, 2013 06:59

No run-time surface pressure from OpenFOAM 2.2.0
 
Dear all,

I put the function (below) in controlDict, there is no data files produced in each folder (timestep). It works well in the earlier versions. Did you encounter such problem?

Thanks!
-----------------------------------------------------
left-wheel
{
type surfaces;
functionObjectLibs ( "libsampling.so" );
enabled true;
outputControl timeStep;
outputInterval 2;
surfaceFormat raw;
interpolationScheme cell;
fields
( p );
surfaces
(
left-wheel
{
type patch;
patches (left-wheel);
}
);
}
-----------------------------------------------

nimasam October 1, 2013 09:45

1- which solver do you use?
2- create a setup and post here.
3-if you think it is a bug, you can submit it in bug section

Junhong October 1, 2013 14:11

Thanks!

the version 2.2.0_b2 used. same as the bug described:

http://www.openfoam.org/mantisbt/view.php?id=813

how to solve it ?

the older version is fine for the same case.

Tobias Adam December 3, 2013 08:01

wallpressure
 
hello

Just try to google some alternative lines for the control dict.

Maybe these work better, after putting your information to the right positions?

Code:

wallPressure
      {
        type surfaces;
        functionObjectLibs ("libsampling.so");
        surfaceFormat raw; // vtk;
        outputControl timeStep;
        outputInterval 11;
        interpolationScheme cellPoint;

        fields (p);
      surfaces (BLADE
        {
          type patch;
      patches ("BLADE");
        interpolate true;
        triangulate false;
      } ); }

Iīm also looking for some other versions for this function, because I get the following error messages when I try to use it:

-
Code:

-> FOAM FATAL ERROR:
More than one patch accessing the same transform but not of the same sign.
patch:SYM1 transform:0 sign:1  current transforms:(1 0 0)

    From function Foam::label Foam::globalIndexAndTransform::addToTransformIndex
(
const label,
const label,
const bool
) const

    in file lnInclude/globalIndexAndTransformI.H at line 240.

But maybe it works for you^^

Best regards
Tobi

kkpal December 30, 2013 23:54

caught by the same problem!:(

Tobias Adam January 10, 2014 02:59

Hello Kai

What do you want to do with the surface data?
Maybe you donīt need this function, if you deactivate all patches and just activate the surface-patch in Paraview?

Thatīs what I needed for my plot of cp-values over the surface!

Greets Tobi

kkpal January 12, 2014 04:51

hi, Tobias
Thanks for your reply.
I intended to plot the drag and lift force coefficients along the 3D cylinder with time, so it is best I could use this funciton, or I have to write down the files to disk at a relatively small interval.
Recently I tried this function in another case and it magically worked. Maybe there was something wrong with the last case, but I was unable to figure out where:confused:
Anyway this function is running now and I am very happy with this.:D

kkpal January 21, 2014 06:55

Lately I found that this function is ubuntu-version dependent.
My OF version is 2.2.2 and this function works well on ubuntu 12.04 but not on 12.10.


All times are GMT -4. The time now is 04:25.