CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Calculate mean wind speed

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 21, 2010, 04:37
Default Calculate mean wind speed
  #1
New Member
 
Alice
Join Date: Nov 2009
Posts: 16
Rep Power: 16
Alicelin is on a distinguished road
Dear all,

I just executed turbFoam and got the U values for every time step. Now I want to find out the mean wind speed so I want to ask if there's any command that can calculate the time-averaged wind speed?

Thanks!

Alice
Alicelin is offline   Reply With Quote

Old   January 21, 2010, 05:29
Default
  #2
New Member
 
Alice
Join Date: Nov 2009
Posts: 16
Rep Power: 16
Alicelin is on a distinguished road
Sorry just want to mention that I've added the following thing into controlDict:

function
{
fieldAverage1
{
// Type of functionObject
type fieldAverage;
// Where to load it from (if not already in solver)
functionObjectLibs ("libfieldAverage.so");
// Whether to perform a clean restart, or start from previous
// averaging into if available
cleanRestart true;
// Whether to reset the averaged fields after they have been written.
// Used to average over only the preceding write interval for transient cases.
resetOnOutput true;
// Fields to be averaged - runTime modifiable
fields
(
U
{
mean on;
prime2Mean on;
base time;
}
p
{
mean on;
prime2Mean on;
base time;
}
Unorm
{
mean on;
prime2Mean on;
base time;
}
);
}
}

********************************************
and I've executed turbFoam but seems nothing new can be found in the results

Can anyone help me with the problem?

Alice
Alicelin is offline   Reply With Quote

Old   September 6, 2010, 11:42
Default
  #3
Member
 
edison
Join Date: May 2009
Location: Australia
Posts: 35
Rep Power: 16
Edison_Ge is on a distinguished road
Quote:
Originally Posted by Alicelin View Post
Sorry just want to mention that I've added the following thing into controlDict:

function
{
fieldAverage1
{
// Type of functionObject
type fieldAverage;
// Where to load it from (if not already in solver)
functionObjectLibs ("libfieldAverage.so");
// Whether to perform a clean restart, or start from previous
// averaging into if available
cleanRestart true;
// Whether to reset the averaged fields after they have been written.
// Used to average over only the preceding write interval for transient cases.
resetOnOutput true;
// Fields to be averaged - runTime modifiable
fields
(
U
{
mean on;
prime2Mean on;
base time;
}
p
{
mean on;
prime2Mean on;
base time;
}
Unorm
{
mean on;
prime2Mean on;
base time;
}
);
}
}

********************************************
and I've executed turbFoam but seems nothing new can be found in the results

Can anyone help me with the problem?

Alice
Hi, Alice,
I've been stuck in the same problem. By searching the forum, I think the magic of averaging function lies in set it before running the simulation. Anyway, I have got time to test it.
http://www.cfd-online.com/Forums/ope...tatistics.html
Have you worked out it?Waiting to hear your latest statues.
Edison_Ge is offline   Reply With Quote

Old   September 6, 2010, 12:22
Default postAverage
  #4
Senior Member
 
Eelco van Vliet
Join Date: Mar 2009
Location: The Netherlands
Posts: 124
Rep Power: 19
eelcovv is on a distinguished road
Hi Alice

I have been searching for the same utility to be able to do the averaging of the data fields in time after that you have run the simulation. This is handy in case that you forgot to switch on the averaging during the run, or that you want to do an average over a shorter time period in case that the beginning of the simulation was not conveger yet.

Anyway, I ended up with writing my own utility which basically does what you want. Please have a look at the thread below. The utility is at the bottom of the page. Note that you still need to set the fields properly in the system/controlDict file

Cheers,

Eelco

http://www.cfd-online.com/Forums/ope...rocessing.html
eelcovv is offline   Reply With Quote

Reply


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
CFD analysis on wind turbine rotor Ken (Wind Turbine CFD Super Rookie) Main CFD Forum 45 February 9, 2016 14:07
How to find RPM from wind speed in Floworks? Matco FloEFD, FloWorks & FloTHERM 21 March 22, 2010 15:18
Problems with finding normalized mean wind speed Alicelin OpenFOAM Running, Solving & CFD 7 January 18, 2010 03:51
Wind Tunnel Testing Francesco Nicolosi Main CFD Forum 0 November 25, 2008 12:55
Atmospheric Wind Profile - Inlet Subroutine Roger Siemens 3 December 12, 2002 10:00


All times are GMT -4. The time now is 18:55.