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

VOF expression

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 20, 2021, 13:17
Default VOF expression
  #1
New Member
 
Giovanni Fazzone
Join Date: Feb 2021
Posts: 9
Rep Power: 5
fazzesco is on a distinguished road
Hi,
I am working on a axisymmetric multiphase simulation (in the picture), about the impact of a droplet over a wall with dynamic contact angle, defined by this expression:
IF(vrad>0,110[deg],65[deg])
Now, I want to define vrad (radial velocity) as the y velocity evaluated at the ymax. ymax is the max point over the wall where the phase 2 (water) is equal to 1.
I don't know how to write in Fluent expression vrad and ymax.

Can anyone familiar with the Fluent expression help me? Thank you
Attached Images
File Type: png Immagine 2021-03-20 181643.png (35.4 KB, 19 views)
fazzesco is offline   Reply With Quote

Old   March 22, 2021, 04:38
Smile doctor
  #2
New Member
 
Jia
Join Date: Mar 2021
Posts: 3
Rep Power: 5
Jiaxin* is on a distinguished road
could you share your UDF code, i have conducted relevant research before. I need to judge whether the logic is correct or not based on the statement before and after it and also the code can help me clearly understand your meanings. my email is 870254031@qq.com.
looking forward to your reply, because i also have some issues i'd like to discuss with you about droplet impacting.
Jiaxin* is offline   Reply With Quote

Old   March 22, 2021, 06:05
Default
  #3
New Member
 
Giovanni Fazzone
Join Date: Feb 2021
Posts: 9
Rep Power: 5
fazzesco is on a distinguished road
Quote:
Originally Posted by Jiaxin* View Post
could you share your UDF code, i have conducted relevant research before. I need to judge whether the logic is correct or not based on the statement before and after it and also the code can help me clearly understand your meanings. my email is 870254031@qq.com.
looking forward to your reply, because i also have some issues i'd like to discuss with you about droplet impacting.
I did not use an UDF, but the Fluent function Expression, cause I am bad in C programming.
fazzesco is offline   Reply With Quote

Old   March 22, 2021, 06:21
Default
  #4
New Member
 
Jia
Join Date: Mar 2021
Posts: 3
Rep Power: 5
Jiaxin* is on a distinguished road
Quote:
Originally Posted by fazzesco View Post
I did not use an UDF, but the Fluent function Expression, cause I am bad in C programming.
how do you realize the function of dynamic contact angle without UDF?
if you use the VOF function, could you share the expression in detial?
Jiaxin* is offline   Reply With Quote

Old   March 23, 2021, 07:03
Default
  #5
New Member
 
Giovanni Fazzone
Join Date: Feb 2021
Posts: 9
Rep Power: 5
fazzesco is on a distinguished road
In latest Fluent version there is the function "expression" (https://www.ansys.com/blog/tips-and-...nsys-fluent-ui).
For instance, what I am trying to do, is using the IF function.
IF(<expr>,<vector>,<vector>)
If the first term is true, the output value is the first vector, if it is false, the output value is the second vector.
IF(vrad>0,110[deg],65[deg]) so, if radial velocity is positive, the DCA is equal tto the advancing value (110° in my case), else is receding (65°).

Unfortunately, I have not already found an efficient condition for the IF function.
fazzesco is offline   Reply With Quote

Old   March 23, 2021, 07:50
Default
  #6
New Member
 
Jia
Join Date: Mar 2021
Posts: 3
Rep Power: 5
Jiaxin* is on a distinguished road
dear friend,
i have known your meaning, which attract me to discuss with you.
i still have some questions:
1) i have read the link you gave, but i don't find the definition of "IF" function in the website, which is the most important to know. you'd better screenshot the definition of "IF" function from the HELP file. or you could tell me which version of the software, i will download the help file to find the definition.
2) your simulation is related to multiphase flow,water phase and vapor phase, so the definition of radial velocity is not clear, the software can't discern what is water, automatically. could you tell me where to set the dynamic contact angle in the software by screenshot?
3) i have the UDF about the dynamic contact angle, if you want, i could share it with you. but i still don't understand some codes in the UDF.
Jiaxin* is offline   Reply With Quote

Old   March 23, 2021, 14:48
Default
  #7
New Member
 
Giovanni Fazzone
Join Date: Feb 2021
Posts: 9
Rep Power: 5
fazzesco is on a distinguished road
1) I am using the 2021 R1 version. I link the screenshot of IF statement from guide, but it is not different from what i wrote before.
2) In the software version that I am using, you can create some Named expressions (last menu in Setup). Then, when you select the contact angle between phases, you select the expression you created.
3) Please, yes share with me your UDF. Did you write it?
My email is giovanni.fazzone@mail.polimi.it
Attached Images
File Type: png Cattura.PNG (30.8 KB, 14 views)
fazzesco 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
Outlet boundary condition in interFoam Andrea_85 OpenFOAM Running, Solving & CFD 51 July 20, 2017 14:31
writing execFlowFunctionObjects immortality OpenFOAM Post-Processing 30 September 15, 2013 07:16
How to install CGNS under windows xp? lzgwhy Main CFD Forum 1 January 11, 2011 19:44
CGNS lib and Fortran compiler manaliac Main CFD Forum 2 November 29, 2010 07:25
Lift, Drag Vs time chart,calculations Jamesd69climber CFX 8 February 17, 2005 18:23


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