|
[Sponsors] |
Question about extracting volume averaged pressure value |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 28, 2012, 03:56 |
Question about extracting volume averaged pressure value
|
#1 |
Senior Member
Meimei Wang
Join Date: Jul 2012
Posts: 494
Rep Power: 16 |
Hi,
May I ask, in cfx-post, how to extract the volume averaged pressure value of a cylinder shape volume(like in the attached picture) from my fluid domain? Shall I still go 'Insert -> Location - Volume'? Thank you very much!
__________________
Best regards, Meimei Last edited by Anna Tian; November 29, 2012 at 04:25. |
|
November 28, 2012, 07:10 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,872
Rep Power: 144 |
The image was not attached.
|
|
November 29, 2012, 04:25 |
|
#3 |
Senior Member
Meimei Wang
Join Date: Jul 2012
Posts: 494
Rep Power: 16 |
The picture is already attached. It is just a small cylinder. And I only need to know the averaged pressure value in this volume. Thanks!
__________________
Best regards, Meimei |
|
November 29, 2012, 05:03 |
|
#4 |
Senior Member
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22 |
A search in the manual on volume average would give you: volumeAve(<var|Expression>)@<Location>
In your case it would be something like volumeAve(Pressure)@cylinder |
|
November 29, 2012, 10:32 |
|
#5 |
Senior Member
Meimei Wang
Join Date: Jul 2012
Posts: 494
Rep Power: 16 |
The problem is my fluid domain is not cylindrical. I need to put a cylinder there by myself so that I can extract only the value inside the cylinder. But how to put a cylinder into my fluid domain?
__________________
Best regards, Meimei |
|
November 29, 2012, 12:27 |
|
#6 |
Senior Member
Bruno
Join Date: Mar 2009
Location: Brazil
Posts: 277
Rep Power: 21 |
1. Take the equation of your cylinder, such as
2. Create an expression for the radius radius = sqrt(x^2 + y^2) 3. Create a other expressions to check whether you're inside the cylinder: insideCylinderZdir = if(radius < , yourvariable, 0) insideCylinder = if( zCylinderInf < z && z < zCylinderTop, insideCylinderZdir, 0 )where 'zCylinderInf' and 'zCylinderTop' are the extreme positions of your cylinder in it's axial direction. 4. Create an expression to average 'insideCylinder' over your entire domain: cylAve = volumeAve(insideCylinder)@domainThat should do it. Cheers. |
|
November 29, 2012, 12:47 |
|
#7 |
Senior Member
Meimei Wang
Join Date: Jul 2012
Posts: 494
Rep Power: 16 |
Quote:
Where should I add these expressions?
__________________
Best regards, Meimei |
|
November 29, 2012, 12:55 |
|
#8 |
Senior Member
Bruno
Join Date: Mar 2009
Location: Brazil
Posts: 277
Rep Power: 21 |
They should be added as CEL Expressions. CFX has lots of tutorials that address how to use them.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
mass flow in is not equal to mass flow out | saii | CFX | 12 | March 19, 2018 06:21 |
Pressure Outlet Guage pressure | Mohsin | FLUENT | 36 | April 29, 2016 18:16 |
On the damBreak4phaseFine cases | paean | OpenFOAM Running, Solving & CFD | 0 | November 14, 2008 22:14 |
what the result is negatif pressure at inlet | chong chee nan | FLUENT | 0 | December 29, 2001 06:13 |
Hydrostatic pressure in 2-phase flow modeling (long) | DS & HB | Main CFD Forum | 0 | January 8, 2000 16:00 |