CFD Online URL
[Sponsors]
Home > Forums > OpenFOAM Post-Processing

Velocity profiles near walls?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   April 23, 2009, 05:01
Question Velocity profiles near walls?
  #1
New Member
 
Join Date: Mar 2009
Posts: 28
Rep Power: 7
Hectux is on a distinguished road
Hi,

I ran in the last days some simulations in pipe geometries.
In ParaView I to wanted to plot the velovity profiles (y: Velovity, x: Radius).
In the center of the tube everything worked great. But near the walls I had a region where the velocity was everywhere the same.

I thought I had a problem with my simulation. So I took the tutorial cavity for icoFoam, altered it a bit to see the profile well and ran it.
The same profile. In the centre was everything good and nearer to the walls I had a jump to the wall velocity. Actually I expected a smooth raise of the velocity to the wall.

In my simulation the geometry is much smaller and the region near the wall therefore much bigger than here. Thats not what I expected or what it should be.

I attached the two pictures with the profiles and marked the regions.


Thanks for help.
Attached Images
File Type: png cavity.png (26.5 KB, 33 views)
File Type: png cavity2.png (10.9 KB, 35 views)
Hectux is offline   Reply With Quote

Old   April 23, 2009, 10:03
Default
  #2
New Member
 
Join Date: Mar 2009
Posts: 28
Rep Power: 7
Hectux is on a distinguished road
Problem solved....almost.

When I use Sample from OpenFoam and import the Data to Excel I get a good smooth profile. Do not know why ParaView creates such profiles.

Any sugestions why?
Hectux is offline   Reply With Quote

Old   April 23, 2009, 11:09
Default
  #3
Senior Member
 
santos's Avatar
 
Jose Luis Santos
Join Date: Mar 2009
Location: Portugal
Posts: 212
Rep Power: 8
santos is on a distinguished road
Send a message via Skype™ to santos
Hi Hectux,

Try to increase the number of points in the x-y plot, and see if it helps.

Regards,
Jose Santos
santos is offline   Reply With Quote

Old   April 23, 2009, 15:37
Default
  #4
New Member
 
Join Date: Mar 2009
Posts: 28
Rep Power: 7
Hectux is on a distinguished road
Yes. Thats probably the problem. But I cannot find the funkction to increase the number of points.

With SampleDict it was no problem to set 10 oder 500 points.
Hectux is offline   Reply With Quote

Old   April 23, 2009, 19:27
Default
  #5
Member
 
Nugroho Adi
Join Date: Mar 2009
Location: norway
Posts: 79
Rep Power: 7
mahaputra is on a distinguished road
Dear Hectux

could you please teach step by step, how you work with SampleDict to plot your xy velocity profile?

im facing a similar case.

please give me help
mahaputra is offline   Reply With Quote

Old   April 24, 2009, 05:46
Default
  #6
New Member
 
Join Date: Mar 2009
Posts: 28
Rep Power: 7
Hectux is on a distinguished road
Ok.

First there is an example file of SampleDict in $FOAM_UTILITIES/postProcessing/sampling/sample
There is a complete SampleDict file with every functions. You will find a better description in the UsersGuide of OpenFOAM.

The SampleDict is saved in the system folder. Often you have to create a file on your own:

My SampleDict is quite simple but it works well for me:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object sampleDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

interpolationScheme cellPoint;

setFormat raw;

sets
(
profile
{
type uniform;
axis y;
start (0 -5e-4 2e-3);
end (0 5e-4 2e-3);
nPoints 500;
}
);

surfaces
();

fields
(
U
);

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

What it does: Creates a line with evenly distributed 500 points. Start point (0 -5e-4 2e-3) end points (0 5e-4 2e-3).
Thats a cut through the center of my pipe.

With fields: U

I get a file which I can import to e.g. Excel or Spreadsheet.

So I have 4 colums. First: The coordinates of my points, second: Ux component of the velocity vector in that point, third: Uy, fourth Uz.

I had to change the punctuation from "." to "," in Excel but that should be no problem, I think ;-)
Hectux is offline   Reply With Quote

Old   April 24, 2009, 09:35
Default
  #7
Senior Member
 
santos's Avatar
 
Jose Luis Santos
Join Date: Mar 2009
Location: Portugal
Posts: 212
Rep Power: 8
santos is on a distinguished road
Send a message via Skype™ to santos
Quote:
Originally Posted by Hectux View Post
Yes. Thats probably the problem. But I cannot find the funkction to increase the number of points.

With SampleDict it was no problem to set 10 oder 500 points.
I guess you missed it.. If you look in the Properties tab of ProbeLine filter, at the bottom you have the Resolution option with a default of 100. Try to change this value to see if it helps.

Regards,
Jose Santos
santos is offline   Reply With Quote

Old   April 24, 2009, 19:33
Default
  #8
Member
 
Nugroho Adi
Join Date: Mar 2009
Location: norway
Posts: 79
Rep Power: 7
mahaputra is on a distinguished road
Dear Hectux

thanks for your tutorial, thousand thanks.

regarding plotting, maybe you can use xmgrace tool

sudo apt-get install xmgrace

this software really easy to use compare excell (at least for me)
mahaputra is offline   Reply With Quote

Old   May 20, 2009, 10:37
Default help with xmgrace
  #9
lth
Member
 
lth's Avatar
 
lth
Join Date: Mar 2009
Location: Madison, WI, USA
Posts: 31
Blog Entries: 31
Rep Power: 7
lth is on a distinguished road
Hello Hectux,

I read your post and have not been able to get xmgrace to plot anything. I installed and when I run a sampledict and have sets files filled, I run xmgrace and the postprocessing window opens, however, i am not able to bring up any plots? Can you say what is needed to get the data showing?

Thanks for any advice, Lori Holmes
lth is offline   Reply With Quote

Old   May 21, 2009, 10:42
Default
  #10
New Member
 
Join Date: Mar 2009
Posts: 28
Rep Power: 7
Hectux is on a distinguished road
Sorry, I am not using xmgrace. I am still using Excel.

I suggest you write mahaputra an private message.
Hectux is offline   Reply With Quote

Old   May 21, 2009, 10:49
Default
  #11
Member
 
Nugroho Adi
Join Date: Mar 2009
Location: norway
Posts: 79
Rep Power: 7
mahaputra is on a distinguished road
Hei lth


follow this :

Use: Data/Import/ASCII. Choose the logs directory and remove '.dat' from the filter. Then you can plot whatever you like in the logs directory.


hope this help

cheers
mahaputra is offline   Reply With Quote

Old   May 21, 2009, 10:51
Default
  #12
Member
 
Nugroho Adi
Join Date: Mar 2009
Location: norway
Posts: 79
Rep Power: 7
mahaputra is on a distinguished road
Quote:
Originally Posted by lth View Post
Hello Hectux,

I read your post and have not been able to get xmgrace to plot anything. I installed and when I run a sampledict and have sets files filled, I run xmgrace and the postprocessing window opens, however, i am not able to bring up any plots? Can you say what is needed to get the data showing?

Thanks for any advice, Lori Holmes
see this one:


Residual plotting
mahaputra is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Velocity Profiles Sal FLUENT 3 August 2, 2007 10:06
Variables Definition in CFX Solver 5.6 R P CFX 2 October 26, 2004 03:13
Velocity profiles Rex FLUENT 4 July 23, 2002 20:35
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 10:11
Velocity profiles merac FLUENT 2 May 23, 2001 05:54


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