CFD Online URL
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

Calculate mean wind speed

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 21, 2010, 05:37
Default Calculate mean wind speed
  #1
New Member
 
Alice
Join Date: Nov 2009
Posts: 16
Rep Power: 7
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, 06:29
Default
  #2
New Member
 
Alice
Join Date: Nov 2009
Posts: 16
Rep Power: 7
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, 12:42
Default
  #3
Member
 
edison
Join Date: May 2009
Location: Australia
Posts: 33
Rep Power: 7
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.
Incompressible LES tutorial (oodles) - time averaged statistics
Have you worked out it?Waiting to hear your latest statues.
Edison_Ge is offline   Reply With Quote

Old   September 6, 2010, 13:22
Default postAverage
  #4
Senior Member
 
Eelco van Vliet
Join Date: Mar 2009
Location: The Netherlands
Posts: 119
Rep Power: 8
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

using fieldAverage library to average postprocessing
eelcovv 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
CFD analysis on wind turbine rotor Ken (Wind Turbine CFD Super Rookie) Main CFD Forum 42 July 18, 2011 23:11
How to find RPM from wind speed in Floworks? Matco FloEFD, FloWorks & FloTHERM 21 March 22, 2010 17:18
Problems with finding normalized mean wind speed Alicelin OpenFOAM Running, Solving & CFD 7 January 18, 2010 04:51
Wind Tunnel Testing Francesco Nicolosi Main CFD Forum 0 November 25, 2008 13:55
Atmospheric Wind Profile - Inlet Subroutine Roger CD-adapco 3 December 12, 2002 11:00


All times are GMT -4. The time now is 10:29.