CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

2D Pressure_drop Udf

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 26, 2017, 10:27
Default 2D Pressure_drop Udf
  #1
New Member
 
Join Date: Mar 2017
Posts: 9
Rep Power: 9
Rashed is on a distinguished road
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:]
Attached Images
File Type: jpg Unavngivet.jpg (77.6 KB, 7 views)
Rashed is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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 00:53
Parallelize UDF? Which kind of UDF? Lilly FLUENT 5 March 25, 2014 02:05
Help! Delete the UDM codes in the UDF Messi Fluent UDF and Scheme Programming 2 January 28, 2014 09:01
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 22:14
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 04:01


All times are GMT -4. The time now is 17:21.