|
[Sponsors] |
June 8, 2012, 03:12 |
help, a problem about C_UDSI_M1
|
#1 |
New Member
baojun
Join Date: Jun 2012
Posts: 1
Rep Power: 0 |
Hello, guys, I am modeling adsorption bed, and have to calculate the adsorption mass as:q(n)=q(n-1)+k*(C-q(n-1))*dt, the code is:
DEFINE_ADJUST(q_adsorption,domain) { Thread *t; cell_t c; thread_loop_c(t,domain) { if(NULL!=THREAD_STORAGE(t,SV_UDS_I(q_ads))&&NULL!= T_STORAGE_R_NV(t,SV_UDSI_M1(q_ads))) { begin_c_loop(c,t) { real physical_dt; physical_dt=RP_Get_Real("physical-time-step"); C_UDSI(c,t,q_ads)=C_UDSI_Ml(c,t,q_ads)+0.001*physi cal_dt*(0.5-C_UDSI_Ml(c,t,q_ads)); } end_c_loop(c,t) } } } but there is an error: C_UDSI_Ml: undeclared variable could anyone help me? thank you very much! |
|
September 30, 2012, 17:02 |
|
#2 |
New Member
Mukesh
Join Date: Sep 2012
Posts: 28
Rep Power: 13 |
I think there is a typo error the macro for getting property in previous time-step is C_UDSI_M1(c,t,0) and not C_UDSI_Ml(c,t,0).
|
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF compiling problem | Wouter | Fluent UDF and Scheme Programming | 6 | June 6, 2012 04:43 |
Gambit - meshing over airfoil wrapping (?) problem | JFDC | FLUENT | 1 | July 11, 2011 05:59 |
natural convection problem for a CHT problem | Se-Hee | CFX | 2 | June 10, 2007 06:29 |
Adiabatic and Rotating wall (Convection problem) | ParodDav | CFX | 5 | April 29, 2007 19:13 |
Is this problem well posed? | Thomas P. Abraham | Main CFD Forum | 5 | September 8, 1999 14:52 |