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 Cp

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 16, 2014, 05:36
Default UDF for Cp
  #1
New Member
 
Join Date: Jul 2014
Posts: 6
Rep Power: 12
stef_pasc is on a distinguished road
Hi everybody!

I am using fluent 15.0 and I want to add a Cp to the material properties.
I wrote this simple code:

DEFINE_SPECIFIC_HEAT(define_cp, T, Tref, h, yi)
{
real cap;

cap=1000.;
*h = cap*(T-Tref);
return cap;
}

then I compile my file.c and I notice that I all defining functions are well compiled (define_property, define_adjust etc.) but define_specific_heat does not appear.

Can somebody help me please???

Stefano
stef_pasc is offline   Reply With Quote

Old   September 17, 2014, 02:45
Default
  #2
Sun
Senior Member
 
Sun's Avatar
 
Join Date: Nov 2010
Posts: 103
Rep Power: 16
Sun is on a distinguished road
it looks fine according to the example here.
Have you tried to compile/interpret it individually without other functions? or maybe check if you have already enabled the energy equation (i know it sounds silly! but this things happen)
cheers!
Sun is offline   Reply With Quote

Old   June 2, 2015, 04:38
Default
  #3
New Member
 
sachin chandroth
Join Date: May 2015
Posts: 1
Rep Power: 0
sachin_c is on a distinguished road
what is cap?
sachin_c is offline   Reply With Quote

Old   June 2, 2015, 06:34
Default
  #4
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
Quote:
Originally Posted by sachin_c View Post
what is cap?
In the example above 1000.
pakk 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
Dynamic Mesh UDF Qureshi FLUENT 7 March 23, 2017 08:37
Source Term UDF VS Porous Media Model pchoopanya Fluent UDF and Scheme Programming 1 August 28, 2013 07:12
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 FLUENT 0 November 25, 2002 05:03
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 05:01


All times are GMT -4. The time now is 16:50.