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

Trouble with Sample output file

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 11, 2009, 20:59
Default Trouble with Sample output file
  #1
lth
Member
 
lth's Avatar
 
lth
Join Date: Mar 2009
Location: Madison, WI, USA
Posts: 31
Blog Entries: 31
Rep Power: 7
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, 10:33
Default
  #2
New Member
 
maja ondracka
Join Date: Apr 2009
Location: Slovenia
Posts: 17
Rep Power: 7
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, 11:06
Default
  #3
Senior Member
 
santos's Avatar
 
Jose Luis Santos
Join Date: Mar 2009
Location: Portugal
Posts: 212
Rep Power: 8
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, 11:46
Default
  #4
New Member
 
maja ondracka
Join Date: Apr 2009
Location: Slovenia
Posts: 17
Rep Power: 7
maja is on a distinguished road
Thanks Jose for your quick reply!
On one of the previous discussions (SampleDict) 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, 23:50
Thumbs up
  #5
New Member
 
Subodh Kumar
Join Date: Apr 2009
Location: India
Posts: 9
Rep Power: 7
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, 03:00
Default
  #6
New Member
 
maja ondracka
Join Date: Apr 2009
Location: Slovenia
Posts: 17
Rep Power: 7
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
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
Version 15 on Mac OS X gschaider OpenFOAM Installation 120 December 2, 2009 11:23
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51
How to save macro results in the output file? Peggy FLUENT 0 May 21, 2007 04:36
Input and Output file Alex Munoz FLUENT 0 April 6, 2003 23:18
Reduce output file size!! Jonac CFX 1 September 15, 2000 04:24


All times are GMT -4. The time now is 02:39.