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

Some guidance is needed about UDF macros

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 2, 2012, 06:06
Default Some guidance is needed about UDF macros
  #1
Member
 
Join Date: Feb 2011
Posts: 62
Rep Power: 15
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, 04:20
Default
  #2
Super Moderator
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,427
Rep Power: 49
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
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, 10:41
Default
  #3
Member
 
Join Date: Feb 2011
Posts: 62
Rep Power: 15
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


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
accessing solver data with UDF macros Dushan FLUENT 1 April 22, 2017 22:05
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
udf error in some macros Asghari FLUENT 0 August 7, 2006 02:10
Macros for writing UDF for porosity umesh FLUENT 1 June 13, 2003 05:20


All times are GMT -4. The time now is 15:07.