CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (http://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   Problems while using the sample post-procesing tool (http://www.cfd-online.com/Forums/openfoam-post-processing/66052-problems-while-using-sample-post-procesing-tool.html)

svens July 3, 2009 16:41

Problems while using the sample post-procesing tool
 
Hello together.

I have got a problem while using the post-processing tool sample.

With my the settings in sampleDict:

Code:

FoamFile
{
    version    2.0;
    format      ascii;
    class      dictionary;
    object      sampleDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

interpolationScheme cell;

setFormat    raw;

sets
(
    pos1   
      {
          type    midPoint;
          axis    y;
          start    (  0.00000000000000        0.000000      0.000000    );
          end      (  0.00000000000000      0.1000000      0.000000    );
      }
    pos2   
      {
          type    midPoint;
          axis    y;
          start    (  0.408163265306122        0.000000      0.000000    );
          end      (  0.408163265306122      0.1000000      0.000000    );
      }
         
.......

    pos49 
      {
          type    midPoint;
          axis    y;
          start    (  19.5918367346939        0.000000      0.000000    );
          end      (  19.5918367346939      0.1000000      0.000000    );
      }
    pos50 
      {
          type    midPoint;
          axis    y;
          start    (  20.0000000000000        0.000000      0.000000    );
          end      (  20.0000000000000      0.1000000      0.000000    );
      }
);


surfaces
();

fields
(
  T
  U
);

// ************************************************************************* /

I'm using a geometry with 40 cells in the y-dimension.
Therefore I thought that there have to be 40 output values at every defined sample position.
Sadly I received just 39 values at some certain points the value of the last (the 40.) cell is missing in that cases.


Has anyone the same problem? How can I fix it? Is there probably a better way to output defined data than the sample tool?


Thanks a lot - svens

flying July 4, 2009 08:14

Hey!

I wish this could be helpful for you.

http://www.cfd-online.com/Forums/ope...tml#post219114

svens July 4, 2009 20:49

Hey flying - thanks for your reply!

Working with shell-scripts is a really amazing option which I did not considered so far.

Sadly it won't solve my problem cause the sample tool have to be executed before as well...

flying July 5, 2009 05:16

I am sorry that this is the only information I could provide. I don't have any other idea on it.

Good luck!

Heesei August 27, 2010 08:42

Hey Svens

Did you find out in the meanwhile why the value in the last cell is missing?

I have the same problem now and I don't know what to do to get the values for all cells.


Cheers,

Irina

And September 2, 2010 11:13

Hello to the OpenFOAM community.

I'm experiencing a problem when using the sample utility distributed in OpenFOAM 1.6.x.

I would like to draw the streamwise component Ux along the y direction for the pitzDaily3D tutorial in non reacting conditions. The sampleDict has the following entries:

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

interpolationScheme cell;

setFormat raw;

sets
(
internalField
{
type uniform;
axis y;
start ( 0.01 -0.025 0 );
end ( 0.01 0.025 0 );
nPoints 100;
}
);

surfaces ();

fields ( U );


// ************************************************** *********************** //


The sample utility seems to work properly when it is invoked:


// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Time = 0

Time = 0.05

Time = 0.1

Time = 0.15

Time = 0.2

Time = 0.25

Time = 0.3

Time = 0.35

Time = 0.4

Time = 0.45

anyway the files internalField.xy created in the "/sets/[0-0.45]" folders a

I tried also to compute the single velocity component by selecting in the keyword fields:

fields ( U.component(0) )

but the result is the same. Does anyone can help me to fix this problem ?

Regards

Andrea


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