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

UDF to update C_T(c,t) with Unsteady Flamelet Values

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   October 6, 2012, 11:14
Default UDF to update C_T(c,t) with Unsteady Flamelet Values
  #1
New Member
 
Brendan
Join Date: Oct 2012
Posts: 10
Rep Power: 13
clarkie_49 is on a distinguished road
Hi all,

First, before realising that i required a UDF, i originally posted something similar to this post in the Fluent section. So i'm sorry for the double(ish) post, but i now believe that my issue is more relevant to this section of the forum.

What i would like to do is update all cell values C_T(c,t) from a steady flamelet solution, with the "mean temperature" values after running the unsteady flamelet solution (Note: this is a post processing step on top of a steady RANS solution). The "Mean Temperature" data can be found listed under the "unsteady flamelet" drop down box when creating contours; and when you export or write this data it has the heading of "ufla-t" with no "SV" prefix.

I have had a play around with creating a UDF (only my 2nd UDF) and i believe that the code below is something like what i want. However, the values from "C_UFLA_TEMP_NUM(c,t)" are not what i require. I'm hoping that somebody on here can steer me in the right direction in to find where this "ufla-t" / "Mean Temperature" data is stored within fluent and how i can access it.

Thanks


#include "udf.h"
#include "sg_mem.h"

DEFINE_ON_DEMAND(on_demand_temp_update)
{
Domain *d; /*declare domain pointer since it is not passed as an argument to the DEFINE macro */
real temp;
Thread *t;
cell_t c;
d = Get_Domain(1); /*Get the domain using Fluent utility */

/* Loop over all cell threads in the domain */
thread_loop_c(t,d)
{
/* Update static temperature values with those from unsteady solution */
/* Loop over all cells */
begin_c_loop(c,t)
{
temp = C_UFLA_TEMP_NUM(c,t);
C_T(c,t) = temp;
}
end_c_loop(c,t)
}
}
clarkie_49 is offline   Reply With Quote

 


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
unsteady case, how to update the porosity? ylw2010 Fluent UDF and Scheme Programming 0 May 3, 2012 23:36
using UDF in Fluent for unsteady cavitation Pejman Main CFD Forum 6 November 6, 2008 10:18
unsteady flamelet models dean Main CFD Forum 2 October 5, 2005 19:22
Unsteady Flamelet modelling Les Denpre Main CFD Forum 0 August 8, 2005 09:46
printing values from udf!!! Shekhar FLUENT 2 January 13, 2004 11:49


All times are GMT -4. The time now is 17:43.