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); |
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?
|
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 13:22. |