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

Help Needed: Creating a UDF for Transient Simulation with k-ε Standard Dispersed Turb

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   May 18, 2023, 00:50
Smile UDF to transform water and gas to a third phase (froth) based on a if condition for a
  #1
New Member
 
Matias
Join Date: Nov 2021
Posts: 4
Rep Power: 4
matiyanez is on a distinguished road
Hello everyone,

I'm working on a transient simulation in Fluent using the k-ε standard dispersed turbulence model for a multiphase case (water, air, froth).

I take the reference for froth formation from the article:
"Numerical simulation of froth formation in aerated slurry coupled with population balance modelling, A. R. Sarhan, J. Naser & G. Brooks
To"
In my simulation, I need to calculate and obtain the volumetric fraction and density values for each cell at every time step, if the volumetric fraction of dispersed air in water is equal to or greater than 0.75, I want to create a third phase, which would be the foam phase. This means that the cell's content will transform from water and air to froth.

I'm seeking guidance on how to approach the creation of a User-Defined Function (UDF) that allows me to perform this calculation and make decisions based on the volumetric fraction to transform the cell into foam.

I would greatly appreciate it if anyone could provide me with examples, resources, tutorials, or any kind of guidance to help me get started with creating this UDF. I'm excited to learn and apply this in my multiphase simulation.

Thank you in advance for your valuable assistance!

Best regards, Matías

Last edited by matiyanez; May 19, 2023 at 14:36.
matiyanez is offline   Reply With Quote

 

Tags
multiphase flows, udf


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
Unable to compile UDF and run simulation on HPC (cluster) fan01 Fluent UDF and Scheme Programming 0 February 14, 2022 10:35
OpenFoam restarting simulation, stops at first Time loop syntex OpenFOAM Running, Solving & CFD 4 April 5, 2019 11:20
Problem with DPM simulation with particles injection and EXECUTE_AT_THE_END UDF. Ari Fluent UDF and Scheme Programming 4 May 31, 2016 08:51
Simulation with UDF for species mass fraction and velocity profile virgy Fluent UDF and Scheme Programming 8 February 7, 2012 04:30


All times are GMT -4. The time now is 02:26.