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

Sample utility only samples pressure?! (not velocity)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 14, 2012, 09:03
Default Sample utility only samples pressure?! (not velocity)
  #1
New Member
 
Join Date: Oct 2011
Posts: 14
Rep Power: 14
cfddwarf is on a distinguished road
Hello!
Iam currently trying to postsrocess my results and for this I would like to use the sample utility.
However it doesnt sample the velocity!? Ive tried mag(U) in fields or only u and it doesnt work. The files for the pressure are created. Does anyone have any idea what the reason could be? Do I HAVE to run foamCalc before? Ive tried running
foamCalc mag U before, this worked. Any help would be appreciated!


My sampledict file looks as follows:


interpolationScheme cellPoint;

setFormat raw;

sets
(
line1
{
type uniform;
axis y;
start ( 0.0002 0.00001 0 );
end ( 0.0002 0.0029 0 );
nPoints 50;
}

line2
{
type uniform;
axis y;
start ( -0.0004 0.00001 0 );
end ( -0.0004 0.0029 0 );
nPoints 50;
}

line3
{
type uniform;
axis y;
start ( 0.0002 0.00001 0.0002 );
end ( 0.0002 0.0029 0.0002);
nPoints 50;
}
line4
{
type uniform;
axis y;
start ( 0 0.00001 0.0005 );
end ( 0 0.0029 0.0005 );
nPoints 50;
}
);

surfaces ();

fields (u
p);
cfddwarf is offline   Reply With Quote

Old   May 14, 2012, 12:31
Default
  #2
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28
mturcios777 will become famous soon enough
Most of FOAM is case sensitive. What happens when you sample "U" instead of "u"? Or is the field as it is written in the solver you are using called "u", or is this an artifact of copying your sampleDict into the forum?
mturcios777 is offline   Reply With Quote

Old   May 14, 2012, 12:36
Default
  #3
New Member
 
Join Date: Oct 2011
Posts: 14
Rep Power: 14
cfddwarf is on a distinguished road
ok, problem solved. foamCalc mag U has to be done first and in the sample dict file it has to be specified as "magU"
cfddwarf is offline   Reply With Quote

Reply


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
Pressure Inlet VS velocity Inlet difference Mohsin FLUENT 9 January 4, 2021 10:34
Pressure BC for combustion chamber Giuki FLUENT 1 July 19, 2011 11:35
Sample utility not working in OpenFoam1.5 dev titio OpenFOAM Post-Processing 1 December 10, 2009 02:38
what the result is negatif pressure at inlet chong chee nan FLUENT 0 December 29, 2001 05:13
how to print the results from CFX-4.2 cfd_99 Main CFD Forum 5 June 21, 1999 09:23


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