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

Trouble with Sample output file

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 11, 2009, 19:59
Default Trouble with Sample output file
  #1
lth
Member
 
lth's Avatar
 
lth
Join Date: Mar 2009
Location: Madison, WI, USA
Posts: 37
Blog Entries: 45
Rep Power: 17
lth is on a distinguished road
I am using the solidDisplacement tutorial, but when I run sample, it runs, but there is no Sample output file. Are there problems with the sample utility. Anyone know how to resolve this. In the end, I'm trying to export raw data from paraFoam.

Thank you, Lori Holmes
lth is offline   Reply With Quote

Old   April 23, 2009, 09:33
Default
  #2
New Member
 
maja ondracka
Join Date: Apr 2009
Location: Slovenia
Posts: 17
Rep Power: 16
maja is on a distinguished road
Hi, I need to calculate massflow average of total pressure on the outlet and on the inlet. I am trying to use sample utility to get phi on these two patches. I put a sampleDict into the system directory. When I run sample, there are no errors reported and it works fine with U and p, but I do not get phi. I do not get mag(U) or any Ucomponents either. What shoul I do?
Thanks for help!
maja is offline   Reply With Quote

Old   April 23, 2009, 10:06
Default
  #3
Senior Member
 
santos's Avatar
 
Jose Luis Santos
Join Date: Mar 2009
Location: Portugal
Posts: 215
Rep Power: 18
santos is on a distinguished road
Send a message via Skype™ to santos
Hi Maja,

As far as I know, the sample utility does not work for patches.

Please try the following:
patchAverage phi inlet && patchAverage phi outlet

Regards,
Jose Santos
santos is offline   Reply With Quote

Old   April 23, 2009, 10:46
Default
  #4
New Member
 
maja ondracka
Join Date: Apr 2009
Location: Slovenia
Posts: 17
Rep Power: 16
maja is on a distinguished road
Thanks Jose for your quick reply!
On one of the previous discussions (http://www.cfd-online.com/Forums/ope...ampledict.html) I found:
surfaces
(
leftWall
{
type patch;
patchName leftWall;
interpolate true;
triangulate true;
}
);

I wrote a similar thing:
surfaces
(
outlet
{
type patch;
patchName outlet;
interpolate true;
triangulate false;
}
);

fields
(
U.component(2)
phi
mag(U)
U
p
);

I only get U and p.
Unfortunately I need patchAverage (phi*ptot)
Any better idea?

Thanks a lot for your help, Maja
maja is offline   Reply With Quote

Old   June 1, 2009, 22:50
Thumbs up
  #5
New Member
 
Subodh Kumar
Join Date: Apr 2009
Location: India
Posts: 9
Rep Power: 17
Subodh is on a distinguished road
Send a message via Yahoo to Subodh
Hi Maja,

You are right, I had not tested it before. I just tried to sample for phi, and it does not work. I tried with p, U and phi. As you stated it only work for p and U. I also need phi because i want to calculate mass average. Do you come across any solution or workaround.

Thanks
Subodh
Subodh is offline   Reply With Quote

Old   June 2, 2009, 02:00
Default
  #6
New Member
 
maja ondracka
Join Date: Apr 2009
Location: Slovenia
Posts: 17
Rep Power: 16
maja is on a distinguished road
Hi Subodh,
Unfortunately I have not find a solution to this problem yet. I only realized that sample works only with vector fields, which phi is not. If you look at the phi file that you get at each timestep after solving the case, you can see it is calculated on face centers and not on cell centers like velocity, for example. From these files I also found out it is not calculated on the patches, which is probably the reason why sample does not work for patches, as Jose said.
But anyway I need to calculate a mass average of total pressure on the inlet and on the outlet which I need for calculating the efficiency of a water turbine. So, I am still working on it. If you find out anything, I would be very glad to hear.

Regards, Maja



Quote:
Originally Posted by Subodh View Post
Hi Maja,

You are right, I had not tested it before. I just tried to sample for phi, and it does not work. I tried with p, U and phi. As you stated it only work for p and U. I also need phi because i want to calculate mass average. Do you come across any solution or workaround.

Thanks
Subodh
maja is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 10:23
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 06:51
How to save macro results in the output file? Peggy FLUENT 0 May 21, 2007 03:36
Input and Output file Alex Munoz FLUENT 0 April 6, 2003 22:18
Reduce output file size!! Jonac CFX 1 September 15, 2000 03:24


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