CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (http://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   Sample utility only samples pressure?! (not velocity) (http://www.cfd-online.com/Forums/openfoam-post-processing/101786-sample-utility-only-samples-pressure-not-velocity.html)

cfddwarf May 14, 2012 09:03

Sample utility only samples pressure?! (not velocity)
 
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);

mturcios777 May 14, 2012 12:31

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?

cfddwarf May 14, 2012 12:36

ok, problem solved. foamCalc mag U has to be done first and in the sample dict file it has to be specified as "magU"


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