CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT

UDF for inlet velocity alongwith UDF for properties

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   February 1, 2018, 09:17
Default UDF for inlet velocity alongwith UDF for properties
New Member
Akshayy Tiwari
Join Date: Apr 2017
Location: Allahabad, India
Posts: 2
Rep Power: 0
akshayy224 is on a distinguished road
I want to use velocity UDF alongwith UDF for temperature dependent thermal conductivity and viscosity. For that I've created following UDF:

/* UDF for specifying inlet velocity , nanofluid thermal conductivity and viscosity */

#include "udf.h"
#define Br 0.1
real ktc;
real temp = C_T(cell,thread);
return ktc;

real mu;
real temp = C_T(cell,thread);
return mu;

face_t f;
real temp = C_T(cell,thread);

F_PROFILE(f,thread,position) = pow(0.5035*Br*(pow(-0.155-2.1754*0.01*(pow(temp,-2)),-1)),0.5);

It is showing an Error: line 24:cell: undeclared variable i.e. in real temp = C_T(cell,thread);
I'm new in writing UDF and so I can't understand what FLUENT is indicating.
I'd be grateful if someone help me by rectifying it.
akshayy224 is offline   Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Velocity boundary condtion UDF help victoryv Fluent UDF and Scheme Programming 2 October 9, 2012 15:27
UDF velocity and temperature Raj FLUENT 3 February 1, 2009 18:29
Variables Definition in CFX Solver 5.6 R P CFX 2 October 26, 2004 02:13
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 09:11
UDF component in Cyliderical Velocity? Hongchan Kim FLUENT 3 April 24, 2001 12:20

All times are GMT -4. The time now is 18:57.