|
[Sponsors] |
April 1, 2016, 06:53 |
Can I change flow direction using UDF?
|
#1 |
New Member
Tzung
Join Date: Apr 2016
Posts: 3
Rep Power: 10 |
Hi,
I want to use mass flow inlet boundary condition to create unsteady inflow and outflow. The mass flow rate can't be negative. Can I use UDF to define flow direction in Mass Flow Inlet Boundary Conditions Panel? Thank you advance Tzung |
|
April 1, 2016, 07:24 |
|
#2 |
Senior Member
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13 |
Just change the flow direction in this panel.
|
|
April 1, 2016, 14:05 |
|
#3 |
New Member
Tzung
Join Date: Apr 2016
Posts: 3
Rep Power: 10 |
Hi Bruno,
The mass flow inlet just accepts the positive mass flow rate. If I want to create outflow or inflow, as you mention, I have to specify the flow direction. I want to simulate an unsteady problem, however, it needs to dynamically change the flow direction. Can I do so through the Mass Flow Inlet Panel? or I have to do so using UDF, can I? Best Regards, Tzung |
|
April 4, 2016, 06:19 |
|
#4 | |
Senior Member
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13 |
Quote:
You can either do it manually by changing it whenever you want or by using a UDF with dependence on time. |
||
April 6, 2016, 23:49 |
|
#5 |
New Member
Tzung
Join Date: Apr 2016
Posts: 3
Rep Power: 10 |
Hi Bruno,
I can successfully change the flow direction. Thanks for your help a lot! Can I ask you some questions? How can I read experiment data to specify the flow rate at Mass Flow Inlet BC using UDF? I use "fscanf", but it does work correctly. 1. Should I fopen data file outside or inside DEFINE_PROFILE? 2. Should I fscanf data file outside or inside DEFINE_PROFILE? 3. Should I fclose data file at Exit? I am not sure whether if I miss something else. Or you can provide a UDF example? Sincerely, Tzung |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ERROR: Flow direction on the boundaries must not be tangential to the boundary. | turbomax | CFX | 3 | October 27, 2024 07:19 |
UDF problems with porous flow | Nicolastheterminator | Fluent UDF and Scheme Programming | 0 | April 8, 2014 10:12 |
UDF for perpertual velocity step change | romanpicisan | Fluent UDF and Scheme Programming | 0 | February 17, 2014 05:55 |
Do Pressure Inlet Flow Direction Components Need to Be Normalized? | ScottN | FLUENT | 0 | September 21, 2010 10:18 |
Help please UDF flow direction | val17lr | FLUENT | 2 | September 4, 2010 06:30 |