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

define_profile

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By mvee

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 20, 2014, 00:14
Default define_profile
  #1
Senior Member
 
Vaze
Join Date: Jun 2009
Posts: 172
Rep Power: 17
mvee is on a distinguished road
Hi

Inside define_profile in order to define profile kind of BC, I have looped all over the faces through begin_f_loop and put print statement to check how many times the face loop is executing. I have total 29 faces hence my face loop should execute 29 times only while it is executing more than 29 times. Code is like:

DEFINE_PROFILE(name, t, i)
{
face_t f;
begin_f_loop(f,t)
{
Message("loop executed\n");
}
end_f_loop(f,t)
}

Can anybody tell me the reason?

Regards
Mvee
mvee is offline   Reply With Quote

Old   February 20, 2014, 05:51
Default
  #2
Senior Member
 
Vaze
Join Date: Jun 2009
Posts: 172
Rep Power: 17
mvee is on a distinguished road
Hi

begin_f_loop should come out after looping over the 29 faces. But instead of looping it once all over the faces, it is looping more than once.
Is it clear?

You can also try this by printing message.

Thank you
Mvee
Mike Romeo likes this.
mvee 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



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