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/)
-   -   How to interpolate values in probesDict (https://www.cfd-online.com/Forums/openfoam-post-processing/163219-how-interpolate-values-probesdict.html)

dinolsky November 25, 2015 08:08

How to interpolate values in probesDict
 
Hello everyone,

I would like to know how can we use a interpolation scheme in probesDict. Currently i use probes utility to extract velocitiy component inside a cylinder. My probes location are placed at a equal distance of 1mm inside the cylinder. And i have like around 1000 location inside the calinder. The problem i face now is, The cell size in the volume mesh are large and at some location two prob point are at the same cell. Due to this i have two prob with the same velocity values. I belive these values are not interpolated and the same cell values are writen for both the probe location. I learnt from http://www.cfd-online.com/Forums/ope...tml#post574910 that we can use interpolation schems in probes dict. I would like to know from any one who can post a syntx, about how can we use a interpolation schemes in probesDict.

#Note: My problem is same like http://www.cfd-online.com/Forums/sta...same-cell.html this thread. But i am using probes utility in openfoam. And the values are not interpolated.

Thanks,
Dinesh

stathisk March 23, 2016 04:00

hello!

you can add the following line in your probesDict file:
interpolationScheme cellPointFace;


You can find more information at:
/applications/utilities/postProcessing/sampling/sample/sampleDict

cheers

shang November 29, 2017 14:13

Quote:

Originally Posted by stathisk (Post 591220)
hello!

you can add the following line in your probesDict file:
interpolationScheme cellPointFace;


You can find more information at:
/applications/utilities/postProcessing/sampling/sample/sampleDict

cheers

Hi Stathis,

Can I use the interpolationScheme syntax in controlDict as well?

Regards,
Yeru

stathisk November 30, 2017 03:56

Hi Yeru,

Yes, you can.
You can add something like this to your controlDict:

Code:

YeruSampling
    {
      type sets;
      interpolationScheme cellPointFace;
      setFormat      raw;
      sets
      (
          lineZ
          {
              type    uniform;
              axis    z;
              start  (0 0 1);
              end    (0 0 5);
              nPoints 41;
          }
      );
      fields          ( p );
    }

Regards,
Stathis

shang November 30, 2017 04:55

Morning Stathis,

Thanks for that, can I do the same thing for probes in controlDict?

Regards,
Yeru

stathisk November 30, 2017 05:28

Sure, it's applicable to probes as well.

Kind regards,
Stathis


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