CFD Online Logo CFD Online URL
Home > Forums > FLUENT


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

LinkBack Thread Tools Display Modes
Old   December 3, 2012, 20:57
Default Uds_unsteady
New Member
vaseem akram shaik
Join Date: Oct 2012
Posts: 12
Rep Power: 7
vsmkrm298 is on a distinguished road
Hi, I am solving an unsteady state problem in which the coefficient of unsteady term is different than the advective term, so i just need to multiply the default unsteady term with some number to get required unsteady term. I actually copied the same code from fluent udf manual and multiplied with that number. But my results are wrong. In the udf manual, why are we multiplying the unsteady term with volume(are we integrating it?, if yes, then do we need to integrate remaining terms also>?). I am posting my code also. Please help me.
Here s4 is some number which i need to multiply. Actually i tried by removing this term and adding a source term on right hand side, but solution is diverging. I still dont understand why are we integrating.

real physical_dt, vol, rho, phi_old;
physical_dt = CURRENT_TIMESTEP;
vol = C_VOLUME(c,t);
rho = C_R_M1(c,t);
*apu = -s4*rho*vol / physical_dt;
/*implicit part*/
phi_old = C_STORAGE_R(c,t,SV_UDSI_M1(i));
*su = s4*rho*vol*phi_old/physical_dt;
/*explicit part*/
vsmkrm298 is offline   Reply With Quote


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

All times are GMT -4. The time now is 23:16.