CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > CFX

cfx patching

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

Like Tree1Likes
  • 1 Post By Gert-Jan

LinkBack Thread Tools Search this Thread Display Modes
Old   September 28, 2022, 06:57
Default cfx patching
New Member
Join Date: Sep 2022
Posts: 4
Rep Power: 3
BUAA LSM is on a distinguished road
How do we initialize the domain? I have a cylindrical domain with oil and water. I want to initialize the outer ring of the field with water and the inner ring with oil. There is a patch option in Fluent that we can use to select a portion of the field and then initialize it. Is there a similar feature in CFX? thank you
BUAA LSM is offline   Reply With Quote

Old   September 29, 2022, 03:25
Senior Member
Join Date: Oct 2012
Location: Europe
Posts: 1,823
Rep Power: 27
Gert-Jan will become famous soon enough
If you have two domains then you can initialize per domain. However, two domains require two different mesh volumes which will be connected through an interface. If you study mixing oil and water, then it is better to not have an interface.
The option that remains is to write a CEL-expression which captures your initial distirbution with a step-function using the radius of the cilinder. Something like:

Radius = sqrt(x^2+y^2)
mf_ini = step(Radius/1[m]-0.15)

Your mf_ini will be 0 where radius is between 0 and 0.15. mf_ini will be 1 above 0.15.
The division by 1[m] is to make input for the step function dimensionless.
Using this mf_ini can be used to initialise your mass fractions.

When defining the expressions, there is a tab allowing you to plot the expressions. This helps to understand what you are defining.
BUAA LSM likes this.
Gert-Jan is offline   Reply With Quote

Old   September 29, 2022, 03:44
New Member
Join Date: Sep 2022
Posts: 4
Rep Power: 3
BUAA LSM is on a distinguished road
Thank you very much for your help. I understand.
BUAA LSM is offline   Reply With Quote


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
Fluent Meshing for CFX opinions siw CFX 1 April 25, 2022 06:55
Ask for help: CFX solution error novice_han CFX 3 December 6, 2021 07:10
CFX pressure in Simulations problem nasdak CFX 1 April 14, 2010 13:22
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 19:08
PhD using CFX Rui CFX 9 May 28, 2007 05:59

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