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

using UDS in DEFINE_SPECIFIC_HEAT

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 26, 2010, 08:05
Default using UDS in DEFINE_SPECIFIC_HEAT
  #1
New Member
 
Lorreine
Join Date: Aug 2010
Posts: 4
Rep Power: 6
cypsela is on a distinguished road
Hey all,

I'm currently having a problem with using DEFINE_SPECIFIC_HEAT.

From the UDF guide, the macro should be defined by
DEFINE_SPECIFIC_HEAT(name, T, Tref, h,yi)

Hˇwever for my work, instead of yi, I would like to use the mass fraction entered separately as User Defined Scalars. And to access the UDS I use C_UDSI(c,t,i) of course.

Since c and t is not defined in the parentheses, i included
cell_t c;
Thread *t;
in the macro. Still, it doesnt allow me to get the values of C_UDSI(c,t,i) that I need for my calculations.

Am I doing it wrongly or is there another way to actually get the UDS values to be used in my DEFINE_SPECIFIC_HEAT?
Language used is C.
Thanks loads!
cypsela is offline   Reply With Quote

Old   June 25, 2012, 12:21
Default
  #2
Member
 
Join Date: Feb 2011
Posts: 38
Rep Power: 5
highhopes is on a distinguished road
I too need an answer to this question. I am desperately trying to find a way to find the specific heat capacity of a mixture.
highhopes is offline   Reply With Quote

Reply

Tags
cell, thread, user defined function, user defined scalar

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Doubts UDS Flux, UDS Unsteady for VOF model kel85uk FLUENT 0 March 17, 2010 09:53
set UDS value at interior BC Simon FLUENT 0 December 12, 2008 13:14
UDS Flux Function Choice Yang Chung FLUENT 0 August 10, 2008 06:57
Associating profile files for the UDS though a UDF Bharath FLUENT 0 December 1, 2006 15:58
ODD: no UDS flux across interior boundary Bob FLUENT 1 February 25, 2002 19:15


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