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 equation as source term

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By vinerm

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 12, 2020, 02:25
Default surface tension equation as source term
  #1
New Member
 
Ghazi
Join Date: Apr 2020
Posts: 3
Rep Power: 6
MohammedGhazi is on a distinguished road
Hi everyone,

I want to write a UDF for the surface tension equation(source term in the momentum equation of the VOF model ) as the attached file.
Can anyone help me with that?
Attached Files
File Type: docx Surface tension.docx (36.5 KB, 76 views)
MohammedGhazi is offline   Reply With Quote

Old   April 13, 2020, 05:27
Default Surface Tension
  #2
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 36
vinerm will become famous soon enough
What is the objective behind writing this UDF? Both, CSF and CSS, models for surface tension force modeling are available as inbuilt models in Fluent.
MohammedGhazi likes this.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   April 13, 2020, 05:53
Post
  #3
New Member
 
Ghazi
Join Date: Apr 2020
Posts: 3
Rep Power: 6
MohammedGhazi is on a distinguished road
Quote:
Originally Posted by vinerm View Post
What is the objective behind writing this UDF? Both, CSF and CSS, models for surface tension force modeling are available as inbuilt models in Fluent.
Dear Sir,

I tried to simulate steam condensation phenomena inside a tube, I came to know from different literature that existing modules of ANSYS FLUENT are not well versed to model two-phase flow simulation i.e. specifically when it comes to steam [properties & state both varies with process parameters], therefore, I activated the source terms in mass and energy equation, and I want to activate the surface tension force in the momentum equation to the VOF modeling to straightforward my work.

Greetings
MohammedGhazi
MohammedGhazi is offline   Reply With Quote

Old   April 13, 2020, 07:11
Default Udf
  #4
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 36
vinerm will become famous soon enough
Surface tensions models are meant for only multiphase flows; single phase does not have a surface, consequently no surface tension or its requirement for modeling

Anyway, if you want to include source term, then you need to use DEFINE_SOURCE macro. Look at the following for the examples

https://www.afs.enea.it/project/nept...udf/node49.htm

Since the source needs to be applied only at the free surface, you need to check for the cells containing free surface, i.e., cells with C_VOF for any of the phases between some acceptable values, say, between 0.3 and 0.7. A more sophisticated approach is to check for its gradient to identify the cells containing the free surface but checking the value of C_VOF also works good. And then, just apply the source term in the cells matching the criterion.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   March 23, 2021, 22:00
Default
  #5
Member
 
Venkat Ganesh
Join Date: May 2020
Location: Cincinnati, Ohio
Posts: 49
Rep Power: 6
Venky_94 is on a distinguished road
Quote:
Originally Posted by MohammedGhazi View Post
Dear Sir,

I tried to simulate steam condensation phenomena inside a tube, I came to know from different literature that existing modules of ANSYS FLUENT are not well versed to model two-phase flow simulation i.e. specifically when it comes to steam [properties & state both varies with process parameters], therefore, I activated the source terms in mass and energy equation, and I want to activate the surface tension force in the momentum equation to the VOF modeling to straightforward my work.

Greetings
MohammedGhazi
Hey where you able to successfully write a UDF for the source term? I'm stuck with the source term udf as I'm facing issues with handling the vector and scalars involved.
Venky_94 is offline   Reply With Quote

Reply

Tags
surface tension, udf, vof modeling


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
Source Term due to evaporation in energy transport equation styleworker OpenFOAM Programming & Development 3 September 7, 2022 04:09
How to add Source term (2) for PYROLYSIS - reactingOneDim Kummi OpenFOAM 10 April 12, 2021 22:11
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 04:30
[swak4Foam] Installation Problem with OF 6 version Aurel OpenFOAM Community Contributions 14 November 18, 2020 17:18
Source term for EVAPORATION in Energy Equ. - technical difficulty ? Kummi OpenFOAM 1 September 9, 2019 10:32


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