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

Some guidance is needed about UDF macros

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 2, 2012, 05:06
Default Some guidance is needed about UDF macros
  #1
Member
 
Join Date: Feb 2011
Posts: 48
Rep Power: 6
highhopes is on a distinguished road
Dear Fluent users,

I need some guidance about basic UDF macros. I am calling it basic because many of these are only seen as arguments of some macros.
My curiosity arose from a need to define boundary condition for temperature using the macro BOUNDARY_SECONDARY_GRADIENT_SOURCE(source,n,dphi,d x,A_by_es,k). The example that inspired me was written for user defined scalars which goes like this: BOUNDARY_SECONDARY_GRADIENT_SOURCE(beta0, SV_UDSI_G(phi1),dG, es, A_by_es, gamma). Here, the macro I am curious about is SV_UDSI_G(phi1). I cannot figure what it is for or what it does. I cannot find any description either.
It seems that I need to use a macro of this sort to compute temperature or do a workaround but I think I cannot do further progress without detailed information about fluent macros. So any piece of advice or instruction about this issue is appreciated. Thanks to everyone in advance.
highhopes is offline   Reply With Quote

Old   July 3, 2012, 03:20
Default
  #2
Senior Member
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 1,097
Rep Power: 19
flotus1 will become famous soon enoughflotus1 will become famous soon enough
Lets see if I understood correctly:
You just want to read the temperature at cells or faces to use it in a UDF?

In this case, use

real T = F_T(f,t); //for face values
real T = C_T(c,t); //for cell values

If I got your wrong, just let me know.
flotus1 is offline   Reply With Quote

Old   July 3, 2012, 09:41
Default
  #3
Member
 
Join Date: Feb 2011
Posts: 48
Rep Power: 6
highhopes is on a distinguished road
Thank you for your response. However my purpose is not only to define a Dirichlet condition. What I am trying to do is to define the derivative of temperature at the boundary. Connectivity macros are recommended for this purpose. I could not find any explanation about SV_UDSI_G(phi1) or C_STORAGE_R_NV(c0,t0,n) that I found again in the definition of BOUNDARY_SECONDARY_GRADIENT_SOURCE.
highhopes is offline   Reply With Quote

Reply

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
URGENT HELP needed regarding UDF for droplet impact height and spreading values skel_1 FLUENT 0 November 28, 2011 16:45
What are UDF macros C_T_S , C_T_AP,...???? Asghari FLUENT 0 January 28, 2007 11:54
accessing solver data with UDF macros Dushan FLUENT 0 October 4, 2006 01:39
udf error in some macros Asghari FLUENT 0 August 7, 2006 01:10
Macros for writing UDF for porosity umesh FLUENT 1 June 13, 2003 04:20


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