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

Subdomain initialisation?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 19, 2016, 05:43
Default Subdomain initialisation?
  #1
New Member
 
Join Date: May 2013
Posts: 5
Rep Power: 12
masands is on a distinguished road
Hi,

I have 2 fluids in my model. I want a certain volume of the mesh to be only filled with Fluid A and the rest with Fluid B at initial conditions. Is that possible to do in CFX? The regions are overlapping so I can't use simple expressions. Can I do it using subdomains?

In Fluent, I could do this using the Patch Volume option.

Thanks!
masands is offline   Reply With Quote

Old   July 19, 2016, 06:01
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,700
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
I assume you are setting volume fraction or mass fractions.

You can define subdomains as any named region of mesh and define initial conditions based on that. Also with recent version of CFX you can use the inside()@region CEL command to tell when you are inside a mesh region which you can use to make initial conditions using CEL.
ghorrocks is offline   Reply With Quote

Old   July 19, 2016, 06:33
Default
  #3
New Member
 
Join Date: May 2013
Posts: 5
Rep Power: 12
masands is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
I assume you are setting volume fraction or mass fractions.

You can define subdomains as any named region of mesh and define initial conditions based on that. Also with recent version of CFX you can use the inside()@region CEL command to tell when you are inside a mesh region which you can use to make initial conditions using CEL.
Thanks! That's what I was hoping to do - define initial volume fractions

Could you just walk me through the steps? I've created a new subdomain (let's call it SubDomA). However, under "Default Domain" --> Initial Conditions, I don't see any options to select this subdomain. Can you do it this way?

Alternatively, like you said with expressions...
I'm a bit of noob with expressions but I'm guessing it would go like this:

InitVolFluidA = if(inside(SubDomA)@region, 1, 0))
InitVolFluidB = 1-InitVolFluidA

Then just set those expressions under domain, initialisation for each fluid. Would that do it?

Thanks a lot for your time!
masands is offline   Reply With Quote

Old   July 19, 2016, 06:39
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,700
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
I think the syntax is inside()@region, where region is the name of the region in the mesh. Look in the CFX reference guide for the syntax of these CEL commands and variable names.

You do not need to define fluid B. The automatic setting will just set it to 1-A.

You can also set initial conditions directly on the sub domain tab.
ghorrocks is offline   Reply With Quote

Old   July 19, 2016, 06:42
Default
  #5
New Member
 
Join Date: May 2013
Posts: 5
Rep Power: 12
masands is on a distinguished road
Ah Ok, got it. The subdomain tab itself does not have an initialisation option, however, I think I got it figured out using mesh regions and the inside() command. The command returns a '1' if true so I can just set ths expression as my initial condition directly.

Thanks a lot for your help!
masands is offline   Reply With Quote

Reply


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
I got sigFpe error after applying mapFields to a subdomain doctorWho OpenFOAM 0 July 4, 2016 20:30
subdomain that is just a portion of its parent h.mortezaee CFX 7 August 31, 2015 10:19
two subdomain in fluid domain does not word (CFX) maxwellandi CFX 4 November 28, 2012 15:45
Subdomain or Interfaces (CHT) sandeep_tu CFX 8 July 14, 2009 11:06
set temperature on subdomain, in transient mode nicolas CFX 0 August 16, 2006 06:42


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