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

OpenFOAM sample utility

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

Like Tree4Likes
  • 4 Post By samsi

Reply
 
LinkBack Thread Tools Display Modes
Old   April 11, 2013, 13:22
Default OpenFOAM sample utility
  #1
Senior Member
 
Join Date: Nov 2012
Location: Bavaria
Posts: 144
Rep Power: 4
aylalisa is on a distinguished road
Hello,

could anybody give me an hint how to use sample utility correctly for all time steps?

I only would like to sample Ux from the velocity field U.

sampleDict-file

Quote:
setFormat raw;

surfaceFormat vtk;

interpolationScheme cellPoint;


fields
(
Ux
);


sets
(
lineX1
{
type uniform;
axis z;
start (1 0.125 0.01);
end (1 0.125 0.02);
nPoints 30;
}

);
If I use sample utility the folder sets is created, but contains only one time directory 0 including demanded Ux data. Other time directories, including Ux, are missing.

The help menu offers the option -time <range>.

sample -time :0.1-1.5: (and similar versions) don't work.



Aylalisa
aylalisa is offline   Reply With Quote

Old   April 14, 2013, 13:45
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,503
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Aylalisa,

A few questions:
  • Which OpenFOAM version are you using?
  • Try running:
    Code:
    sample -latestTime
    Did it work at least for the final time instance?
If you are using OpenFOAM 2.2.0 and the last time instance was not outputted either, then the problem might be related to this one: http://www.openfoam.org/mantisbt/view.php?id=813 - if this is the case, then you'll need to upgrade to OpenFOAM 2.2.x.


As for running for all time steps, I think is should be something like ("1.5" is the last time step):
Code:
sample -time :1.5
Or better yet:
Code:
sample -time 0:
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   April 16, 2013, 08:15
Default sample Ux
  #3
Senior Member
 
Join Date: Nov 2012
Location: Bavaria
Posts: 144
Rep Power: 4
aylalisa is on a distinguished road
Hello Bruno,

sample util works well if I sample U for all time steps or a range of time steps. All your recommended commands are fine.
I am not able to extract only Ux of velocity field U.
I have tried Ux, U(x), UX, U(1) and U.component(1) but do not receive the required result.

OpenFOAM version 2.1.1

Do you know the solution for my problem?

Thanks a lot!

Best regards,
Lisa

Quote:
Originally Posted by wyldckat View Post
Greetings Aylalisa,

A few questions:
  • Which OpenFOAM version are you using?
  • Try running:
    Code:
    sample -latestTime
    Did it work at least for the final time instance?
If you are using OpenFOAM 2.2.0 and the last time instance was not outputted either, then the problem might be related to this one: http://www.openfoam.org/mantisbt/view.php?id=813 - if this is the case, then you'll need to upgrade to OpenFOAM 2.2.x.


As for running for all time steps, I think is should be something like ("1.5" is the last time step):
Code:
sample -time :1.5
Or better yet:
Code:
sample -time 0:
Best regards,
Bruno
aylalisa is offline   Reply With Quote

Old   April 16, 2013, 10:31
Default
  #4
New Member
 
Join Date: Apr 2010
Posts: 13
Rep Power: 7
samsi is on a distinguished road
You have to create your components of the velocity vector before running sample utility with this command:
foamCalc components U
This will create Ux, Uy, Uz folders in your time directories. After that you can run the sample utility
samsi 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
sample utility problem And OpenFOAM Post-Processing 36 May 20, 2014 08:50
Using probe function or sample utility on a patch hfs OpenFOAM Post-Processing 0 October 19, 2012 06:47
New OpenFOAM Forum Structure jola OpenFOAM 2 October 19, 2011 06:55
Understanding the coordinates of sample utility vishwa OpenFOAM Post-Processing 4 March 25, 2010 13:51
Mathematical exact definition of mesh quality measures in OpenFOAM checkMesh utility albcem OpenFOAM Meshing Format & General Technical 1 October 31, 2008 05:12


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