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

cfx patching

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Gert-Jan

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 28, 2022, 06:57
Default cfx patching
  #1
New Member
 
shamiaoluo
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
Default
  #2
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,827
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
Default
  #3
New Member
 
shamiaoluo
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

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
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 10:55.