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   August 27, 2005, 13:17
Arvind Phate
Posts: n/a
Hi Friends,

Plz tell me how to define unsteady term for mass balance of solid(porous media (scalar is solid density)).I have tried with the uds below whether it is right or some problem is their plz guide me. DEFINE_UDS_UNSTEADY(uns_time_density, c, t, i, apu, su) { float physical_dt,vol,rho,phi_old;

if(!Data_Valid_P()) return 0.0; physical_dt = RP_Get_Real("physical-time-step"); vol = C_VOLUME(c,t); rho = C_R_M1(c,t); *apu = -rho*vol / physical_dt*1;/*implicit part*/ phi_old = C_STORAGE_R(c,t,SV_UDSI_M1(1)); *su = rho*vol*phi_old/physical_dt*1;/*explicit part*/ } when i am compiling it with other udf's all are working but the below mentioned error is being diplayed.anyway finally it is getting loaded too. warning C4098: 'uns_time_density' : 'void' function returning a value plz help me out............. thanks in advance

  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

Similar Threads
Thread Thread Starter Forum Replies Last Post
UDS Flux Function Choice Yang Chung FLUENT 1 November 17, 2015 02:14
unsteady UDS PriyankaJoshi FLUENT 7 December 13, 2012 02:27
Doubts UDS Flux, UDS Unsteady for VOF model kel85uk FLUENT 0 March 17, 2010 09:53
Error with the unsteady flamelet Model Christoph_84 FLUENT 0 February 25, 2010 12:06
about unsteady uds term Frank FLUENT 23 May 2, 2002 03:46

All times are GMT -4. The time now is 14:04.