|
[Sponsors] |
July 19, 2016, 05:43 |
Subdomain initialisation?
|
#1 |
New Member
Join Date: May 2013
Posts: 5
Rep Power: 12 |
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! |
|
July 19, 2016, 06:01 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,700
Rep Power: 143 |
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. |
|
July 19, 2016, 06:33 |
|
#3 | |
New Member
Join Date: May 2013
Posts: 5
Rep Power: 12 |
Quote:
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! |
||
July 19, 2016, 06:39 |
|
#4 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,700
Rep Power: 143 |
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. |
|
July 19, 2016, 06:42 |
|
#5 |
New Member
Join Date: May 2013
Posts: 5
Rep Power: 12 |
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! |
|
|
|
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 |