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

UDF to check the volume fraction of secondary phase

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   May 5, 2020, 17:45
Default UDF to check the volume fraction of secondary phase
  #1
New Member
 
shivam salokhe
Join Date: Feb 2017
Posts: 10
Rep Power: 9
sshivam is on a distinguished road
Hello Everyone,

I am trying to write a UDF code that enables us to check the volume fraction of the secondary phase in a given cell zone while using the volume of fluid method. Also, I need to store the related time value when the volume fraction of the secondary phase in a cell zone becomes 1. Total I have 4 different cell zones.


Thanks,
Shivam
sshivam is offline   Reply With Quote

Old   May 6, 2020, 01:34
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
read Ansys FLuent Customization manual,
look for VOF Multiphase Model Macro

you may store the time moment when C_VOF == 1 into user-defined memory (however, it depends on why do you need it and how are you going to use these data)
Sto likes this.
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Old   May 6, 2020, 05:25
Default Checking volume fraction
  #3
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
As Alexander suggested, you can use C_VOF macro to fetch value of volume fraction for any of the phase. However, you need to decide about when do you want to run such a function. If you run it, say, every time-step, then it is possible that a cell is full of secondary phase at one time but only partially filled with secondary phase at next instant. So, you have to have a logic that you wish to use to assign a marker of 1 or 0. You will have to use User-Defined Memory to save this marker. One you are clear about this logic, code is fairly simple.
__________________
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

Reply

Tags
fluent - udf - parallel, vof multiphase

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 access the Phase volume fraction in Expressions dinhanh CFX 2 April 29, 2018 08:08
UDF for secondary phase volume fraction assignment sirpolar Fluent UDF and Scheme Programming 0 October 17, 2014 09:25
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 15:11
interDyMFoam - change in volume fraction gopala OpenFOAM Running, Solving & CFD 0 April 27, 2009 11:46
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 15:00


All times are GMT -4. The time now is 05:30.