|
[Sponsors] |
July 8, 2009, 22:04 |
How to calculate the curvature in UDF
|
#1 |
New Member
Xinqiang Xu
Join Date: Mar 2009
Posts: 5
Rep Power: 17 |
Hi,
I use VOF model to simulate the liquid-vapor two phase flow. I want to get the interface curvature by udf, but I don't know how to write the equation (showed as attachment) in udf. If you know how to deal with this, could you give me some suggestion? Thanks Xinqiang |
|
January 4, 2013, 04:48 |
|
#2 |
New Member
Join Date: Aug 2011
Posts: 3
Rep Power: 15 |
I have same problem too I want to implement disjoining pressure and I need surface curvature of each cell
|
|
January 24, 2013, 21:06 |
|
#3 |
New Member
anonymous
Join Date: Jan 2011
Posts: 23
Rep Power: 15 |
You could access the curvature by the following
- Use solve>set>expert option for keeping the temporary memory from being freed [yes] - Then Use SV_C_TMP_0 in the udf to access the value of curvature. ( This would give you the value of secondary phase curvature) - Not always safe as this is the temporary variable and you access the values being last stored in this variable. So check before using it. |
|
February 10, 2013, 20:39 |
|
#4 | |
Senior Member
Ehsan Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18 |
Quote:
I suppose that there might be another way, Saving C_VOF(c,t) into C_UDSI and extracting gradient by C_UDSI_G Goodluck |
||
February 15, 2013, 06:17 |
|
#5 |
New Member
anonymous
Join Date: Jan 2011
Posts: 23
Rep Power: 15 |
Volume fraction is discontinuous, therefore you would require to smoothen the volume fraction field before the calculation of gradient and curvature.
|
|
July 29, 2013, 15:32 |
|
#6 |
Member
Shashank
Join Date: Apr 2011
Posts: 74
Rep Power: 15 |
Is there a way to calculate curvature apart from using the SV_C_TMP_0 macro? I'm sure there must be a way to calculate divergence of the unit normal vector to the liquid-vapor interface.
|
|
January 22, 2016, 21:08 |
|
#7 |
Member
cfd^2
Join Date: Mar 2013
Posts: 31
Rep Power: 13 |
What is the real meaning of the macro SV_C_TMP_0? Does it directly access the interface curvature? I did not find details about this macro...
|
|
February 11, 2019, 07:28 |
Documentation for SV_C_TEMP_0
|
#8 | |
New Member
cfdnemo
Join Date: Jan 2019
Posts: 1
Rep Power: 0 |
Quote:
|
||
December 16, 2022, 02:54 |
curvature
|
#9 | |
New Member
sunfuqi
Join Date: Dec 2022
Posts: 2
Rep Power: 0 |
Quote:
|
||
December 16, 2022, 03:28 |
|
#10 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
probably you may use C_TMP_C0(c,t) macro to access to SV_C_TMP_0
however, I have no idea what's inside from source Code:
/* SV_C_TMP_0 temporary storage, used extensively now for setting c_tmp value based on area average of face value. */ SV_C_TMP_0, SV_C_TMP_1, /* temporary storage for sum of fluxes */ SV_C_TMP_2, SV_C_TMP_3, /* temporary storage used for residual scaling */ SV_C_TMP_V_0, /* cell tmp vector storage for smoothed vof grad*/ SV_F_TMP_0, /* temporary real on faces */ SV_F_TMP_1, /* temporary real on faces */
__________________
best regards ****************************** press LIKE if this message was helpful |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to calculate the area of a boundary in UDF? | peter | FLUENT | 2 | May 31, 2021 21:54 |
UDF in z curvature | leo | FLUENT | 0 | October 17, 2008 12:06 |
I need UDF help. | S.Whitney | FLUENT | 0 | October 15, 2007 12:29 |
how to calculate electrical potential with UDF? | josh | FLUENT | 4 | January 24, 2006 12:34 |
How to calculate the mass flow rate with UDF ? | HP | FLUENT | 0 | January 10, 2005 20:38 |