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

how to extract properties in a patch at a certain time domain?

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 6, 2013, 03:44
Default how to extract properties in a patch at a certain time domain?
  #1
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
hi all
I need to obtain an average of pressure,velocity and temperature at a patch at last for example 100 time steps.how can i do this?i should add a sampledict at first before starting to run(if yes what codes should add to controldict?) or can it be done after running?if latter what are the codes?
Thanks for advices.
immortality is offline   Reply With Quote

Old   January 7, 2013, 00:19
Default
  #2
Senior Member
 
mkraposhin's Avatar
 
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 21
mkraposhin is on a distinguished road
you can use patchAverage utility with keys -latestTime (for latest time slice) or key -time .... (to set time range)
mkraposhin is offline   Reply With Quote

Old   January 7, 2013, 03:34
Default
  #3
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
thanks.could you give an example?is it correct? patchAverage rightside -time .003 .004
Then where the property is assign?
immortality is offline   Reply With Quote

Old   January 7, 2013, 06:46
Default
  #4
Senior Member
 
mkraposhin's Avatar
 
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 21
mkraposhin is on a distinguished road
--- "patchAverage -time '0.01,0.02' alpha1 heated" to see patch average 'heated' of field 'alpha1' for times 0.01 and 0.02


--- "patchAverage -time '0.01:0.02' alpha1 heated" to see patch average 'heated' of field 'alpha1' for times in range from 0.01 to 0.02 (including boundaries)
mkraposhin is offline   Reply With Quote

Old   January 7, 2013, 07:25
Default
  #5
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
thanks alot!
So if we want average of for example pressure on all the cells of a patch only in one time step it's trueatchAverage -time '.01' p rightpatch
Isn't it?
What you mean about all boundaries in the case of time range?
immortality is offline   Reply With Quote

Old   January 7, 2013, 11:42
Default
  #6
Senior Member
 
mkraposhin's Avatar
 
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 21
mkraposhin is on a distinguished road
i mean: from from time t1 to time t2, including time points t1 and t2
mkraposhin is offline   Reply With Quote

Old   January 7, 2013, 12:21
Default
  #7
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
grasped!thanks.is that correct what I said about one time step?does it give average of field over all the cells on the specified patch?
thanks again.
immortality is offline   Reply With Quote

Old   January 7, 2013, 16:23
Default
  #8
Senior Member
 
mkraposhin's Avatar
 
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 21
mkraposhin is on a distinguished road
no, it will return average of external faces values (not the same as cell values). but this is true for zeroGradient patches (because values at cell centres and face centres, belonging to patch are same)
mkraposhin is offline   Reply With Quote

Old   January 7, 2013, 17:16
Default
  #9
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
thank you very much dear matvej.
immortality is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Domain Imbalance HMR CFX 5 October 10, 2016 06:57
[Commercial meshers] Using starToFoam clo OpenFOAM Meshing & Mesh Conversion 33 September 26, 2012 05:04
[Other] StarToFoam error Kart OpenFOAM Meshing & Mesh Conversion 1 February 4, 2010 05:38
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 03:58
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 19:07


All times are GMT -4. The time now is 05:24.