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

How to trigger the fieldAverage functionality after a specific time in OF5.0

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 3 Post By tomf

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 8, 2017, 21:40
Default How to trigger the fieldAverage functionality after a specific time in OF5.0
  #1
New Member
 
Oliver Pasqual
Join Date: Nov 2016
Posts: 5
Rep Power: 9
MPJntu is on a distinguished road
Dear Foamers,

Recently, I want to obtain the field average of a specific field (e.g., U and p). This can be achieved through the functionality of 'fieldAverage1' in the 'ControlDict'.
To discard the startup effect, the simulation data of previous 5s should be discarded for the averaging operation in my case.

How can I achieve this specific feature?

Code:
functions
{
	fieldAverage1
	{
		type                fieldAverage;
		libs                ("libfieldFunctionObjects.so");

		writeControl    writeTime;

		restartOnRestart    false;
		restartOnOutput     false;
		periodicRestart     false;
		restartPeriod       0.002;	

		fields
		(
			U
			{
				mean        on;
				prime2Mean  on;
				base        time;
			}

			p
			{
				mean        on;
				prime2Mean  on;
				base        time;
			}
         }
}
Any comments are highly appreciated!
Thanks.
Pasqual
MPJntu is offline   Reply With Quote

Old   November 10, 2017, 05:01
Default
  #2
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 646
Rep Power: 32
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf
Any functionObject can be started using timeStart and ended by timeEnd:
Code:
timeStart           5;
timeEnd             10;
source:
cfd direct web page
cryabroad, bentkj and jadidi.cfd like this.

Last edited by tomf; November 10, 2017 at 05:02. Reason: alignment
tomf is offline   Reply With Quote

Old   November 11, 2017, 07:22
Default
  #3
New Member
 
Oliver Pasqual
Join Date: Nov 2016
Posts: 5
Rep Power: 9
MPJntu is on a distinguished road
Quote:
Originally Posted by tomf View Post
Any functionObject can be started using timeStart and ended by timeEnd:
Code:
timeStart           5;
timeEnd             10;
source:
cfd direct web page
Dear Tom,

Extremely appreciated for your kind information. following your suggestion, it has been solved.

Thank you again.
Pasqual
MPJntu is offline   Reply With Quote

Reply

Tags
controldict., fieldaverage, openfoam 5.0


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
bash script for pseudo-parallel usage of reconstructPar kwardle OpenFOAM Post-Processing 42 May 7, 2024 23:17
courant number increases to rather large values 6863523 OpenFOAM Running, Solving & CFD 22 July 5, 2023 23:48
pressure in incompressible solvers e.g. simpleFoam chrizzl OpenFOAM Running, Solving & CFD 13 March 28, 2017 05:49
Compression stoke is giving higher pressure than calculated nickjuana CFX 62 May 19, 2015 13:32
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 bookie56 OpenFOAM Installation 8 August 13, 2011 04:03


All times are GMT -4. The time now is 20:04.