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

How to sample including value of boundary points

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 14, 2017, 17:29
Default How to sample including value of boundary points
  #1
TML
New Member
 
TIAN
Join Date: Apr 2017
Posts: 2
Rep Power: 0
TML is on a distinguished road
Hello,

I am running a 2D annular flow case, and I am trying to get velocity distribution at a certain location using sample utility. The problem is that the result gives by sample does not include the boundary point which should be (0 0 0) for a no-slip wall. I have tried cellPoint, cellPointFace, and cellPatchConstrained for the interpolationScheme, but none of them works.

This is my sampleDict:

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

setFormat csv;


interpolationScheme cellPatchConstrained;


fields
(
Ux
);

sets
(
lineX1
{
type uniform;
axis y;

start (0.06 0.02 0); //inner wall
end (0.06 0.03 0); //outer wall
nPoints 40;
}

);
//************************************************** * //

Any help is appreciated!

Last edited by TML; April 17, 2017 at 10:34.
TML is offline   Reply With Quote

Old   April 15, 2017, 01:09
Default
  #2
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
You let sample calculate the values at a very short perpendicular line which doesn't contain your (0 0 0 ) point.
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 is offline   Reply With Quote

Old   April 17, 2017, 10:33
Default
  #3
TML
New Member
 
TIAN
Join Date: Apr 2017
Posts: 2
Rep Power: 0
TML is on a distinguished road
Quote:
Originally Posted by piu58 View Post
You let sample calculate the values at a very short perpendicular line which doesn't contain your (0 0 0 ) point.
Thanks for the reply.

But my start and end point are on the inner and outer wall of the annular cylinder respectively, which should contain the (0 0 0) velocity.
TML is offline   Reply With Quote

Old   April 17, 2017, 13:27
Default
  #4
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
Please keep in mind: The velocity is modeled, and the last calculated value is the one of the first cell beyond the boundary. Values inside this cell (toward the boundary) are extrapolated.
Beside this it depends form your wall function which velocity you get near the boundary. There is a contradiction between capturing the behavior of the flow very near the boundary and the overall approach of the boundary layer: Both can only covered with DNS.

It may be en-lighting of you look at the velocity at every cell around the cylinder and next the cell toward the flow.
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 is offline   Reply With Quote

Reply

Tags
sample


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
CFD analaysis of Pelton turbine amodpanthee CFX 31 April 19, 2018 18:02
Out File does not show Imbalance in % Mmaragann CFX 5 January 20, 2017 10:20
Velocity vector in impeller passage ngoc_tran_bao CFX 24 May 3, 2016 21:16
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 18:57
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 09:38


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