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

UDF for thermal conductivity

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By pakk

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 15, 2014, 15:51
Default UDF for thermal conductivity
  #1
New Member
 
Bennia Ayoub
Join Date: Dec 2013
Location: Algeria
Posts: 6
Rep Power: 12
ayoub1989 is on a distinguished road
Dear Freinds...
i want to define thermal conductivity of nanofluid , I wrote UDF but when i interpreted to fluent, it show me a message "temp definition shadows previous definition" what's mean ?
PHP Code:
#include "udf.h"
#define k_np 40 /**thermal conductivity  for nanoparticle Al2O3******/
#define FI 0.02 /************volume fraction**************************/
DEFINE_PROPERTY(nanofluid_Conductivity,c,t)
{
real k_f;       /***thermal conductivity for fluid(water)***********/
real k_nf;      /******thermal conductivity  for nanofluid*********/
real temp C_T(c,t); /****temperature******/
k_f= -0.000008 * (temp temp) + ((0.0062 temp) - 0.5388); 
k_nf = (((k_np + (k_f) - (* (k_f k_np)) * FI)/(k_np + (k_f) + (k_f k_np) * FI))) * k_f;
return 
k_nf;

Any help i will be grateful

Last edited by ayoub1989; January 16, 2014 at 16:21.
ayoub1989 is offline   Reply With Quote

Old   January 16, 2014, 12:20
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
It means that the variable name "temp" is already in used somewhere else. Not in your file, but somewhere in Fluent's files.

This will probably not give a real problem, but to be sure, you could rename your variable name into something else.
ayoub1989 likes this.
pakk is offline   Reply With Quote

Old   January 16, 2014, 16:17
Default
  #3
New Member
 
Bennia Ayoub
Join Date: Dec 2013
Location: Algeria
Posts: 6
Rep Power: 12
ayoub1989 is on a distinguished road
thank you pakk , i renamed the variable and the UDF work without problem thanks again
ayoub1989 is offline   Reply With Quote

Old   January 20, 2014, 12:08
Default Nanofluid properties
  #4
New Member
 
Join Date: May 2013
Posts: 4
Rep Power: 13
salehorafi is on a distinguished road
did you use compile or interpret for the UDF? I'm trying to use UDF for properties in a similar case but didn't work with me
salehorafi is offline   Reply With Quote

Old   January 22, 2014, 04:46
Default
  #5
New Member
 
Bennia Ayoub
Join Date: Dec 2013
Location: Algeria
Posts: 6
Rep Power: 12
ayoub1989 is on a distinguished road
Quote:
Originally Posted by salehorafi View Post
did you use compile or interpret for the UDF? I'm trying to use UDF for properties in a similar case but didn't work with me
I used interpreted , compiled and the udf work perfectly here's my email to contact me : ayoubbennia@gmail.com
ayoub1989 is offline   Reply With Quote

Old   August 18, 2014, 06:15
Default
  #6
New Member
 
Bennia Ayoub
Join Date: Dec 2013
Location: Algeria
Posts: 6
Rep Power: 12
ayoub1989 is on a distinguished road
I used interpreted , compiled and the udf work perfectly
ayoub1989 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
I need one simple udf code for effective thermal conductivity of nanofluid mvf Fluent UDF and Scheme Programming 1 February 10, 2017 20:05
Anisotropic thermal conductivity UDF Kwiaci Fluent UDF and Scheme Programming 2 January 20, 2017 09:42
Thermal conductivity UDF jack.s Fluent UDF and Scheme Programming 4 February 29, 2012 12:57
UDF for effective thermal conductivity Rashmi FLUENT 1 November 6, 2007 21:08
Can wemodify effective thermal conductivity by UDF FengYun FLUENT 2 October 27, 2005 06:28


All times are GMT -4. The time now is 22:36.