|July 15, 2013, 03:32||
unsteady udf for concentration uds
Join Date: Apr 2013
Posts: 40Rep Power: 6
Hi to all,I want to write an uds for mass and the scalar is concentration,my unsteady term is -dC/dt that C is concentration(=density *mass fraction)
I studied udf manual about unsteady term udf for UDS,but I didn't understand its example,Should I write my udf as that example as below?
Is this example general?
Why this udf is used everywhere and for any uds????????
Where and how the variable of Concentration is specified in this udf??
#define rho 1000
DEFINE_UDS_UNSTEADY(uds_unsteady, cell, thread, i, apu, su)
real time_step, vol, rho, phi_old, phi_curr;
vol = C_VOLUME(cell,thread);
*apu = -rho*vol/time_step; /*central coefficient part*/
phi_old = C_STORAGE_R(cell,thread,SV_UDSI_M1(i));
phi_curr = C_UDSI(cell,thread,i);
*su = rho*vol*phi_old/time_step; /*source term part*/
Shouldn't I change any general thing in this udf?(I don't mean details as rho or etc.)
Help me plz
Last edited by email@example.com; July 15, 2013 at 06:25.
|Thread||Thread Starter||Forum||Replies||Last Post|
|unsteady inlet velocity udf||jill||FLUENT||8||February 10, 2015 07:04|
|using UDF in Fluent for unsteady cavitation||Pejman||Main CFD Forum||6||November 6, 2008 11:18|
|UDF Unsteady velocity profile||Rashad||FLUENT||0||February 27, 2008 15:57|
|UDF for unsteady spray||Fernando||FLUENT||4||May 9, 2006 08:47|
|UDF Adjust to redefine UDS Diffusivity||David harvey||FLUENT||4||February 27, 2004 08:47|