|
[Sponsors] |
April 26, 2017, 11:27 |
2D Pressure_drop Udf
|
#1 |
New Member
Join Date: Mar 2017
Posts: 9
Rep Power: 9 |
Heey guys
I've the following function which describes the pressurel-drop as a function of velocity U in my manifold. The pressure-drop function is experimentally achieved through small channels. deltaP=164*U^2+1529U. I want to implement this pressure-drop function into my system. Is my user defined function correct? #include "udf.h" #define C1 164.70 #define C2 1529 DEFINE_SOURCE (xmom_source, c, t, dS, eqn) { real x[ND_ND]; real con, source; C_CENTROID(x,c,t); source = pow(C1*C_U(c, t),2)+C2*C_U(c,t); dS[eqn] = 2*C1*C_U(c, t)+C2; return source; } I've uploaded the picture of my manifold:] |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF Compilation Error - Loading Library - COMMON Problem! Help! | robtheslob | Fluent UDF and Scheme Programming | 8 | July 24, 2015 01:53 |
Parallelize UDF? Which kind of UDF? | Lilly | FLUENT | 5 | March 25, 2014 03:05 |
Help! Delete the UDM codes in the UDF | Messi | Fluent UDF and Scheme Programming | 2 | January 28, 2014 10:01 |
UDF parallel error: chip-exec: function not found????? | shankara.2 | Fluent UDF and Scheme Programming | 1 | January 16, 2012 23:14 |
UDF, UDF, UDF, UDF | Luc SEMINEL | Main CFD Forum | 0 | November 25, 2002 05:01 |