|
[Sponsors] |
UDF to check the volume fraction of secondary phase |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 5, 2020, 17:45 |
UDF to check the volume fraction of secondary phase
|
#1 |
New Member
shivam salokhe
Join Date: Feb 2017
Posts: 10
Rep Power: 9 |
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 |
|
May 6, 2020, 01:34 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
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)
__________________
best regards ****************************** press LIKE if this message was helpful |
|
May 6, 2020, 05:25 |
Checking volume fraction
|
#3 |
Senior Member
|
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. |
|
Tags |
fluent - udf - parallel, vof multiphase |
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |