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

Uds_unsteady

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 3, 2012, 19:57
Default Uds_unsteady
  #1
New Member
 
vaseem akram shaik
Join Date: Oct 2012
Posts: 12
Rep Power: 13
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.

DEFINE_UDS_UNSTEADY(my_uds_unsteady,c,t,i,apu,su)
{
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

Reply


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



All times are GMT -4. The time now is 00:09.