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

Surface Tension Coeff., Multiple interfaces

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

Like Tree1Likes
  • 1 Post By AlexanderZ

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 11, 2020, 15:20
Default Surface Tension Coeff., Multiple interfaces
  #1
Member
 
rupak504's Avatar
 
Lolita
Join Date: Aug 2016
Posts: 80
Rep Power: 6
rupak504 is on a distinguished road
hi,

I want to define surface tension as a function of temperature using UDF at one of the interfaces, but the problem is, I have three interfaces in my problem. How to identify the interfaces?

regards
rupak504 is offline   Reply With Quote

Old   July 13, 2020, 01:27
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 1,332
Rep Power: 20
AlexanderZ will become famous soon enough
probably you are using VOF (volume of fluid) model for your simulation.
In that case you don't have predefined interface, so you should find it (usually interface is a bunch of cell with values of C_VOF between 0 and 1)
Once interface is defined you can apply whatever you want to that cells
__________________
best regards


******************************
press LIKE if this message helped you

How to ask questions:
https://www.cfd-online.com/Forums/si...tml#post612025
AlexanderZ is offline   Reply With Quote

Old   July 13, 2020, 05:33
Default
  #3
Member
 
rupak504's Avatar
 
Lolita
Join Date: Aug 2016
Posts: 80
Rep Power: 6
rupak504 is on a distinguished road
Quote:
Originally Posted by AlexanderZ View Post
probably you are using VOF (volume of fluid) model for your simulation.
In that case you don't have predefined interface, so you should find it (usually interface is a bunch of cell with values of C_VOF between 0 and 1)
Once interface is defined you can apply whatever you want to that cells
There are three phases, A,B and C. And i want to define surface tension between phase A and phase B as a function of temperature (Non-linear) rest others are constant. Normally i can use this
HTML Code:
if (C_VOF(cell, A) != 0.0 && C_VOF(cell, A) != 1.0)
but since there will be 1 more interface (i.e. between phase A & phase C) where C_VOF of phase A lies between 0 and 1, it will employ the variable surface tension to that interface as well. Right?
rupak504 is offline   Reply With Quote

Old   July 13, 2020, 20:15
Default
  #4
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 1,332
Rep Power: 20
AlexanderZ will become famous soon enough
unfortunately, I have no experience.
But it looks like you should use something like subdomain

Ansys Fluent Customization manual -> sub_domain_loop

I think, this is a way for you to switch between phases
rupak504 likes this.
__________________
best regards


******************************
press LIKE if this message helped you

How to ask questions:
https://www.cfd-online.com/Forums/si...tml#post612025
AlexanderZ is offline   Reply With Quote

Reply

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
Surface tension driven flows: interFoam vs. multiphaseInterFoam dzordz OpenFOAM Programming & Development 2 October 31, 2018 22:26
How to add Surface Tension in cavitatingFoam solver jamestangx OpenFOAM Programming & Development 1 April 6, 2016 16:39
Help!! customize surface tension term in interFoam w051cxw OpenFOAM Programming & Development 5 February 12, 2016 14:56
Help!! customize surface tension term in interFoam w051cxw OpenFOAM Running, Solving & CFD 0 February 12, 2016 01:15
continuum surface tension model yukn Main CFD Forum 0 October 8, 2011 06:43


All times are GMT -4. The time now is 02:31.