|
[Sponsors] |
how to extract properties in a patch at a certain time domain? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 6, 2013, 03:44 |
how to extract properties in a patch at a certain time domain?
|
#1 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
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. |
|
January 7, 2013, 00:19 |
|
#2 |
Senior Member
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 21 |
you can use patchAverage utility with keys -latestTime (for latest time slice) or key -time .... (to set time range)
|
|
January 7, 2013, 03:34 |
|
#3 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
thanks.could you give an example?is it correct? patchAverage rightside -time .003 .004
Then where the property is assign? |
|
January 7, 2013, 06:46 |
|
#4 |
Senior Member
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 21 |
--- "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) |
|
January 7, 2013, 07:25 |
|
#5 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
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? |
|
January 7, 2013, 11:42 |
|
#6 |
Senior Member
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 21 |
i mean: from from time t1 to time t2, including time points t1 and t2
|
|
January 7, 2013, 12:21 |
|
#7 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
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. |
|
January 7, 2013, 16:23 |
|
#8 |
Senior Member
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 21 |
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)
|
|
January 7, 2013, 17:16 |
|
#9 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
thank you very much dear matvej.
|
|
|
|
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 |