|
[Sponsors] |
April 12, 2020, 02:25 |
surface tension equation as source term
|
#1 |
New Member
Ghazi
Join Date: Apr 2020
Posts: 3
Rep Power: 6 |
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? |
|
April 13, 2020, 05:27 |
Surface Tension
|
#2 |
Senior Member
|
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.
__________________
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. |
|
April 13, 2020, 05:53 |
|
#3 | |
New Member
Ghazi
Join Date: Apr 2020
Posts: 3
Rep Power: 6 |
Quote:
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 |
||
April 13, 2020, 07:11 |
Udf
|
#4 |
Senior Member
|
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. |
|
March 23, 2021, 22:00 |
|
#5 | |
Member
Venkat Ganesh
Join Date: May 2020
Location: Cincinnati, Ohio
Posts: 49
Rep Power: 6 |
Quote:
|
||
Tags |
surface tension, udf, vof modeling |
|
|
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 |