CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

how to exit begin_c_loop mannually

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 18, 2013, 01:27
Default how to exit begin_c_loop mannually
  #1
New Member
 
Leon Chen
Join Date: Aug 2012
Location: ShenZhen, China
Posts: 9
Rep Power: 13
759599290 is on a distinguished road
hi everyone, here is my question: I want to assign an udm on some specified cells, so I think I should use begin_c_loop. but the number of the cells in my case is so large ant only one of them should be assigned with udm. I wonde if there are any ways to realize such a function: when i get the udm assigned, the loop ends automatically.

thread_loop_c(t,d)
{
begin_c_loop(c,t)
{
C_CENTROID(x,c,t);
if(x[0]>5.0 && x[0]<5.1)
{
C_UDMI(c,t,0)=5.0;
what code should i write here to end this whole loop?
}
}
end_c_loop(c,t);
}

Thanks a lot for any help.
759599290 is offline   Reply With Quote

Reply

Tags
exit loop

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
back pressure at exit for supersonic flow BigFrank FLUENT 6 April 24, 2014 16:13
[swak4Foam] Error bulding swak4Foam sfigato OpenFOAM Community Contributions 18 August 22, 2013 13:41
[swak4Foam] Installing swak4Foam to OpenFOAM in mac Kaquesang OpenFOAM Community Contributions 22 January 21, 2013 12:51
duct modeling with exit closed (v=0) geetha sri FLUENT 0 July 11, 2012 10:49
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 21:30


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