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

help, a problem about C_UDSI_M1

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 8, 2012, 03:12
Default help, a problem about C_UDSI_M1
  #1
New Member
 
baojun
Join Date: Jun 2012
Posts: 1
Rep Power: 0
huntergold is on a distinguished road
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!
huntergold is offline   Reply With Quote

Old   September 30, 2012, 17:02
Default
  #2
New Member
 
Mukesh
Join Date: Sep 2012
Posts: 28
Rep Power: 4
er.mkumar is on a distinguished road
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).
er.mkumar is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 12:22.