|
[Sponsors] |
October 9, 2020, 21:26 |
Mass flow dependent pressure profile.
|
#1 |
New Member
Join Date: Aug 2020
Posts: 1
Rep Power: 0 |
Hi All,
New here but trying to interpret a UDF to read mass flow rate at the outlet of a 25m long pipe and pass that on to a function for the pressure inlet. Pressure (Pa) = -13.33 * flow rate (kg/s) +200 I am really struggling to get my UDF to even interpret. at current I am faced with a parse error at line 28 for the code below: /************************************************** ************************** unsteady.c UDF for specifying a transient pressure profile dependant on mass flow rate ************************************************** **************************/ #include "udf.h" Domain *d; Thread *t; face_t f; float q; DEFINE_EXECUTE_AT_END(mass_flow_rate) { thread_loop_c(t,d) { q = F_FLUX(f,t); } } DEFINE_PROFILE(fan_inlet,thread,position) { begin_f_loop(f,thread) { F_PROFILE(f,thread, position) = -13.33 * q + 200; { end_f_loop(f,thread) } Any help would be greatly appreciated. Thanks |
|
Tags |
flow rate, mass, parse error, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
boundary condition with pressure AND mass flow rate | tsi07 | FLUENT | 3 | April 14, 2022 13:32 |
Table bounds warnings at: END OF TIME STEP | CFXer | CFX | 4 | July 17, 2020 00:44 |
Target Mass Flow Rate option for Pressure Outlet | Tianyi | STAR-CCM+ | 11 | October 23, 2019 07:56 |
choked mass flow value | pamstad | CFX | 2 | October 2, 2019 04:02 |
mass flow inlet and pressure outlet with target mass flow rate | Zigainer | FLUENT | 13 | October 26, 2018 06:58 |