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

Correct connectivity macro use, F_C0(f,t)?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 10, 2011, 23:43
Default Correct connectivity macro use, F_C0(f,t)?
  #1
New Member
 
Join Date: May 2011
Posts: 18
Rep Power: 14
ximik is on a distinguished road
Hello all,

I was wondering if you could help me with the F_C0 and THREAD_T0(t) functions. Essentially, I have :

thread_loop_f(t,d)
{
if (t == Lookup_Thread(d, ID))
{
begin_f_loop(f,t)
{
F_UDMI(f,t,1) = 10000;

C_UDMI(F_C0(f,t),THREAD_T0(t),1) = F_UDMI(f,t,1);

}
}
}

in a DEFINE_EXECUTE_AT_END macro. Everything interprets fine, but when i test this in my energy source:

DEFINE_SOURCE(energy_source,c,t,dS,eqn)
{
real source;

source = C_UDMI(c,t,1);

return source;
}

the UDMI(1) is a 0 when I check it (viewing contours of UDMI(1)) via running a few iterations.

Any suggestions? Help is much appreciated.
ximik 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
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
Macro Trouble -Winows Explorer Crashes with Macro Martin Castillo FLUENT 1 July 25, 2007 04:18
Macro problem cfddummy Siemens 1 April 9, 2007 12:37
macro not function! guang ai Siemens 0 July 25, 2004 18:53
Call a macro from a macro Flav Siemens 2 July 1, 2004 05:42


All times are GMT -4. The time now is 21:23.