|
[Sponsors] |
May 18, 2013, 01:27 |
how to exit begin_c_loop mannually
|
#1 |
New Member
Leon Chen
Join Date: Aug 2012
Location: ShenZhen, China
Posts: 9
Rep Power: 14 |
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. |
|
Tags |
exit loop |
|
|
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 |