|
[Sponsors] |
November 17, 2009, 01:57 |
Problem with a compiled ADJUST
|
#1 |
New Member
Join Date: Oct 2009
Posts: 2
Rep Power: 0 |
Dear all,
Using DEFINE_ADJUST, I am trying to limit the solution value of UDS(0) below a certain value. But the macro (listed below) is not adjusting the UDS as requested. Please lend me your experience on how to solve the problem DEFINE_ADJUST(adjust1,d) { Thread* tc; face_t f; cell_t c; Thread* tf; real c_max=0.0; c_max=24.00; thread_loop_c(tc,d) { { begin_c_loop(c,tc) { if(C_UDSI(c,tc,0) > c_max) {C_UDSI(c,tc,0)=c_max;} } end_c_loop(c,tc); } } thread_loop_f(tf,d) { if (THREAD_TYPE(tf)==THREAD_F_WALL) { begin_f_loop(f,tf) { if(F_UDSI(f,tf,0)> c_max) {F_UDSI(f,tf,0)=c_max;} } end_f_loop(f,tf); } } } |
|
November 25, 2009, 07:47 |
|
#2 |
Senior Member
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20 |
What error do you get?
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help! Compiled UDF problem 4 Wave tank tutorial | Shane | FLUENT | 1 | September 3, 2010 03:32 |
Incoherent problem table in hollow-fiber spinning | Gianni | FLUENT | 0 | April 5, 2008 11:33 |
PROBLEM WItH COMPILED UDF. | Nia | FLUENT | 5 | November 6, 2007 12:53 |
Adiabatic and Rotating wall (Convection problem) | ParodDav | CFX | 5 | April 29, 2007 20:13 |
Problem in Tutorial problem of fluent | Phanindra | FLUENT | 5 | April 17, 2007 10:57 |