CFD Online Logo CFD Online URL
Home > Forums > CFX

Expression for two domains

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

LinkBack Thread Tools Display Modes
Old   May 29, 2008, 09:35
Default Expression for two domains
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.


  Reply With Quote

Old   May 29, 2008, 13:33
Default Re: Expression for two domains
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.


  Reply With Quote

Old   May 30, 2008, 11:21
Default Re: Expression for two domains
Posts: n/a
Good tip, Andy. Thanks for it.
  Reply With Quote


Thread Tools
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem About Running Fluent In Linux mitra FLUENT 14 February 16, 2016 13:07
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

All times are GMT -4. The time now is 02:48.