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

How to calculate free-surface area in a computational cell

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 21, 2017, 05:49
Question How to calculate free-surface area in a computational cell
  #1
New Member
 
Join Date: Aug 2017
Posts: 20
Rep Power: 5
cfdstar is on a distinguished road
hi experts,

I am working on a two-phase (gas-liquid) flow problem using the VOF method. I need to calculate the surface area of the free-surface in a computational cell. I am wondering if there is any macro for this purpose. If not, how can I calculate this surface area?
cfdstar is offline   Reply With Quote

Old   December 22, 2017, 04:25
Default
  #2
New Member
 
Doruk Yelkenci
Join Date: Apr 2017
Posts: 20
Rep Power: 5
doruk is on a distinguished road
I am currently working on a similar case. I am trying to find the surface normal.
They way I see it is very difficult to get it by using ansys fluent. There are no macros except C_VOF which only gives you the volume fraction of the cell. Even tough ansys fluent calculates these values we need (area, normal, curvature of the area etc) they dont let us use them in udf. You have to calculate them again in your own way then use them.

I suggest you to find some papers about how to calculate these values.
doruk is offline   Reply With Quote

Old   December 22, 2017, 13:10
Default Calculate the interfacial area density using C_VOF_G
  #3
DEd
Member
 
Daniel Edebro
Join Date: Feb 2016
Location: Gothenburg
Posts: 39
Rep Power: 6
DEd is on a distinguished road
You can calculate the interfacial area density by first calculating the gradient of VOF.

The macro is called "C_VOF_G"

The surface area is calculated by taking the absolute value of the components of this.
DEd is offline   Reply With Quote

Old   December 22, 2017, 15:38
Default
  #4
New Member
 
Join Date: Aug 2017
Posts: 20
Rep Power: 5
cfdstar is on a distinguished road
Thanks for your replies. As far as I know, the macro "C_VOF_G"[x] returns the gradients of the VOF function in different directions. A normal to the free-surface can be found by the magnitude of the VOF function.

My problem is how to calculate the free-surface area in a computational cell.
cfdstar is offline   Reply With Quote

Old   December 22, 2017, 16:21
Default
  #5
DEd
Member
 
Daniel Edebro
Join Date: Feb 2016
Location: Gothenburg
Posts: 39
Rep Power: 6
DEd is on a distinguished road
Check out this thread

How to get the surface area between two phases in VOF model
DEd is offline   Reply With Quote

Old   March 12, 2018, 02:05
Default
  #6
New Member
 
xiatiantian
Join Date: Dec 2017
Posts: 5
Rep Power: 4
xiatt is on a distinguished road
Quote:
Originally Posted by DEd View Post
You can calculate the interfacial area density by first calculating the gradient of VOF.

The macro is called "C_VOF_G"

The surface area is calculated by taking the absolute value of the components of this.
Hi DEd,
Could you tell me how to use the macro "C_VOF_G"? When I load the macro by UDF, it always has the error:
received a fatal signal (Segmentation fault)
xiatt is offline   Reply With Quote

Old   July 12, 2018, 13:24
Default
  #7
New Member
 
Join Date: Aug 2017
Posts: 20
Rep Power: 5
cfdstar is on a distinguished road
Quote:
Originally Posted by xiatt View Post
Hi DEd,
Could you tell me how to use the macro "C_VOF_G"? When I load the macro by UDF, it always has the error:
received a fatal signal (Segmentation fault)
Dear Xiatt,

You should prevent the solver from freeing up memory. You can do that by answering "yes" to “Keep temporary solver memory from being freed?” from /solve/set/expert.

I hope it helps.
cfdstar 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
how to calculate water average velocity in free surface models hmasenger CFX 22 October 30, 2019 19:28
Simulating fire in a tunnel luca1992 OpenFOAM 14 August 16, 2017 13:50
target cell size for the internal free surface laurent98 NUMECA 2 August 6, 2014 05:48
Cells with t below lower limit Purushothama Siemens 2 May 31, 2010 21:58
Surface area of free surface jaswi OpenFOAM Post-Processing 0 July 25, 2007 14:34


All times are GMT -4. The time now is 09:45.