|
[Sponsors] |
Udf velocity inlet profile with multiphase mixture (ansys fluent) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 23, 2020, 19:12 |
Udf velocity inlet profile with multiphase mixture (ansys fluent)
|
#1 |
New Member
Engineering_Student
Join Date: Nov 2020
Posts: 2
Rep Power: 0 |
We are two undergraduate students seeking for help!!!
We are trying to simulate a laminar flux through a 3D pipe (25 cm long, 2 cm of diameter) consisting of a multiphase flux (air and water). We want to implement a UDF for the velocity inlet consisting of several time-dependent square pulses. In our ideal scenario, the pipe is initially full of air and water is injected from the inlet periodically (every injection is a square pulse) and the amount of water decreases with each interval. To do so, we have written the following code, but it does not seem to work. COULD ANYONE HELP PELASE?? HOW CAN WE SOLVE IT??? THANK YOU VERY MUCH IN ADVANCE! -------------- #include "udf.h DEFINE_PROFILE(inlet_velocity, t, i) { real current_time; face_t f; current_time = CURRENT_TIME; begin_f_loop(f, t) { if ((current_time < 2) | (current_time > 9 & current_time<14) | (current_time > 21 & current_time<25) | (current_time > 32 & current_time<37) | (current_time > 44 & current_time<49)) { F_PROFILE(f, t, i)=0; } else if (current_time >= 2 & current_time<=9) { F_PROFILE(f, t, i)=1*0.08; } else if (current_time >= 14 & current_time<=21) { F_PROFILE(f, t, i)=0.75*0.08; } else if (current_time >= 25 & current_time<=32) { F_PROFILE(f, t, i)=0.5*0.08; } else if (current_time >= 37 & current_time<44) { F_PROFILE(f, t, i)=0.25*0.08; } } end_f_loop(f, t) } |
|
Tags |
ansys fluent, multiphase mixture model, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OLAFLOW] The OLAFLOW Thread | Phicau | OpenFOAM Community Contributions | 457 | March 27, 2024 00:59 |
A CFX-POST error (ver 14.5.7) | wangyflp88 | CFX | 2 | July 22, 2017 00:17 |
Ansys Fluent 17 UDF Velocity Profile Update. | Phil-M | Fluent UDF and Scheme Programming | 4 | October 17, 2016 09:05 |
Multiphase flow - incorrect velocity on inlet | Mike_Tom | CFX | 6 | September 29, 2016 01:27 |
logarithmic velocity profile for velocity inlet in Fluent | amarendernag | FLUENT | 3 | August 25, 2012 05:44 |