CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Expression for two domains

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

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

  Reply With Quote

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

  Reply With Quote

Old   May 30, 2008, 11:21
Default Re: Expression for two domains
  #3
Blee
Guest
 
Posts: n/a
Good tip, Andy. Thanks for it.
  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
Problem About Running Fluent In Linux mitra FLUENT 18 June 20, 2019 02:11
How to install CGNS under windows xp? lzgwhy Main CFD Forum 1 January 11, 2011 18:44
CGNS lib and Fortran compiler manaliac Main CFD Forum 2 November 29, 2010 06:25
expression with variable domains jpshulf CFX 3 November 14, 2008 17:46
Lift, Drag Vs time chart,calculations Jamesd69climber CFX 8 February 17, 2005 17:23


All times are GMT -4. The time now is 19:06.