|
[Sponsors] |
April 11, 2009, 19:59 |
Trouble with Sample output file
|
#1 |
Member
|
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 |
|
April 23, 2009, 09:33 |
|
#2 |
New Member
maja ondracka
Join Date: Apr 2009
Location: Slovenia
Posts: 17
Rep Power: 16 |
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! |
|
April 23, 2009, 10:06 |
|
#3 |
Senior Member
|
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 |
|
April 23, 2009, 10:46 |
|
#4 |
New Member
maja ondracka
Join Date: Apr 2009
Location: Slovenia
Posts: 17
Rep Power: 16 |
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 |
|
June 1, 2009, 22:50 |
|
#5 |
New Member
|
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 |
|
June 2, 2009, 02:00 |
|
#6 | |
New Member
maja ondracka
Join Date: Apr 2009
Location: Slovenia
Posts: 17
Rep Power: 16 |
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:
|
||
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |