|
[Sponsors] |
Please help me ( udf for regulation the mass flow rate at the inlet ) |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
saad
Join Date: Apr 2015
Posts: 6
Rep Power: 0 ![]() |
Hello friends I really need your help
I am trying to control the injection of the mass flow rate at a velocity inlet using a UDF. In fact I want to have the same mass flow rate at the inlet and at the outlet-pressour. So I need to put a condition at my velocity-inlet like if the two mass flow rates are not equal it has to stop injecting ( water ) until they ll be equal I begun by this UDF, it only needs the regulation part #include "udf.h" DEFINE_EXECUTE_AT_END(measure_mass_flow) { Domain *d; real flow=0.; face_t f; Thread *t; t= Lookup_Thread(d, 12); d = Get_Domain(1); thread_loop_f(t,d) { begin_f_loop(f,t) { flow+=F_FLUX(f,t); } end_f_loop(f,t) } printf("MASS Flow Rate: %g\n",flow); flow=0.; } |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Species mass flow inlet | lorenz | FLUENT | 3 | March 15, 2012 07:26 |
UDF for inlet mass flow rate | rahulsuresh89 | Fluent UDF and Scheme Programming | 1 | October 16, 2010 17:06 |
mass flow rate inlet udf | alikami | Fluent UDF and Scheme Programming | 3 | June 4, 2010 13:47 |
Mass Flow Inlet | Pravir Kumar Rai | FLUENT | 0 | February 19, 2003 14:03 |
Mass Flow Inlet | Pravir Kumar Rai | FLUENT | 0 | February 17, 2003 19:23 |