|
[Sponsors] |
May 29, 2008, 10:35 |
Expression for two domains
|
#1 |
Guest
Posts: n/a
|
Hi there,
Using Expression, how can I define a volume averaged mass fraction at two domains? For one domain, the Expression I used is like this: "volumeAve(Water Vapour at 25 C.Mass fraction)@One domain" I want to measure the same quantity at both One domain and Two domain. Thanks. |
|
May 29, 2008, 14:33 |
Re: Expression for two domains
|
#2 |
Guest
Posts: n/a
|
You want a single number giving the average over 2 domains, right? You just need to recall that if WholeDomain is formed from the combination of Domain1 and Domain2 (and assuming that Domain1 and Domain2 do not overlap) then mathematics says that:
(Integral over WholeDomain) = (Integral over Domain1) + (Integral over Domain2) That's generally true, so now just apply this rule to computing a volume average in CFX over the combined domain. Then you find: (Volume Average over WholeDomain) = (Integral of (Variable) over WholeDomain) / (Volume of WholeDomain)= (volumeInt(Variable)@Domain1 + volumeInt(Variable)@Domain2) / (volume()Domain1 + volume()Domain2) So the answer is, in CFX terms: (volumeInt(Variable)@Domain1 + volumeInt(Variable)@Domain2) / (volume()Domain1 + volume()Domain2) I hope that makes sense! Obviously my "Variable" needs to be replaced with your mass fraction variable, etc and my domain names "Domain1" and "Domain2" need to be changed to be your real domain names. Andy |
|
May 30, 2008, 12:21 |
Re: Expression for two domains
|
#3 |
Guest
Posts: n/a
|
Good tip, Andy. Thanks for it.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem About Running Fluent In Linux | mitra | FLUENT | 18 | June 20, 2019 03:11 |
How to install CGNS under windows xp? | lzgwhy | Main CFD Forum | 1 | January 11, 2011 19:44 |
CGNS lib and Fortran compiler | manaliac | Main CFD Forum | 2 | November 29, 2010 07:25 |
expression with variable domains | jpshulf | CFX | 3 | November 14, 2008 18:46 |
Lift, Drag Vs time chart,calculations | Jamesd69climber | CFX | 8 | February 17, 2005 18:23 |