
[Sponsors] 
May 20, 2005, 10:12 
unsteady UDS

#1 
Guest
Posts: n/a

In the example about unsteady UDS given in Fluent 6.2 Manual
DEFINE_UDS_UNSTEADY(uns_time,c,t,i,apu,su) { real physical_dt, vol, rho, phi_old; physical_dt = RP_Get_Real("physicaltimestep"); vol = C_VOLUME(c,t); rho = C_R_M1(c,t); *apu = rho*vol / physical_dt;/*implicit part*/ phi_old = C_STORAGE_R(c,t,SV_UDSI_M1(i)); *su = rho*vol*phi_old/physical_dt;/*explicit part*/ } Can anybody please explain what the macro C_STORAGE_R does and what the argument SV_UDSI_M1(i) is all about? Does i correspond to the user defined scalar? Also how do you declare the userdefined scalars in your UDF? (or, is it necessary, since you already do it in Define>Userdefined>Scalars) Thanx, Priya. 

May 20, 2005, 10:43 
Re: unsteady UDS

#2 
Guest
Posts: n/a

C_STORAGE_R is the macro that stores the value of a cell variable. SV_UDSI_M1 is the stored value of previous time step.
Once you have activated the UDS in FLUENT, you solve it ,just like any other transport equations, during the calculation and so its related face and cell values are there in the domain. You can have access to it through related UDS macros(eg. C_UDSI or F_UDSI) in any UDF you design. Regards, Umesh 

May 20, 2005, 14:01 
Re: unsteady UDS

#3 
Guest
Posts: n/a

Thanx a ton, Umesh
Some more queries regarding the usage of UDS 1. The Fluent manual states that the units for the source term for a UDS, while UDS Transport Modeling, should be the same as that of the UDS itself. In my case (solidliquid adsorption), the UDS is solid phase species concentration (q). I write the source term as k * a * (CCeq) where C and Ceq are in g/L and the product K * a, has the units of 1/sec, with the result that the source term has the units g/L.sec. How do I overcome this? (with respect to the statement in the above paragraph) Please help, Priya. 

May 20, 2005, 14:03 
Re: unsteady UDS

#4 
Guest
Posts: n/a

q has the units of g/L
Priya. 

May 20, 2005, 16:09 
Re: unsteady UDS

#5 
Guest
Posts: n/a

Hi Priya,
Yes, the units have to be same and the source term is always per unit volume. Each term in UDS should have units of (Kg)(Scalar_variable)/(m^3s). Means, your source term, i think, should be k*a*rho*(CCeq). Things will be fine with that.Pl. double check. regards, US 

May 21, 2005, 04:11 
Re: unsteady UDS

#6 
Guest
Posts: n/a

Hi Umesh,
But Section 7.28.1 of User's Manual in Fluent 6.2 version states the following, "UserDefined Scalar Sources To define a source for a userdefined scalar transport equation, specify the User defined scalarn term. (There will be one for each userdefined scalar you have defined.) The units for a userdefined scalar source will be the appropriate SI units for the scalar quantity" So the units for the UDS source term (UDS in my case is the solid phase species concentration 'q' in g/L) should be g/L itself and not (Kg)(Scalar_variable)/(m^3s).What do you say? But then if this is the case and you go for transient term in UDS Transport modeling where you have a d(rho.phik)/dt (where phik is the UDS,Look up Equation 11.21 of UDF manual) term that clearly has the units of (Kg)(Scalar_variable)/(m^3s).Since all the terms in an equation should have the same units,what should be the units for my UDS source term? What is this contradiction in the manual?Or is it that I have interpreted it in a wrong way?Please help me out Priya. 

May 23, 2005, 11:50 
Re: unsteady UDS

#7 
Guest
Posts: n/a

Hi,
You are right about what manual says. But if I mention it more precisely then it is, "The units for a userdefined scalar source should be the appropriate SI units based on the SI units for relevant Scalar quantity". The DEFINE_SOURCE for your UDS must return value to Fluent in SI unit. So when you calculate your UDS source it should be using values of k, a , C etc. in SI that in turn returns source term in SI value. In total, all the terms in your equation should have same units. The sorce term value should be per unit volume. Means, your UDS source also should have Kg*scalar_SI_unit/(m^3s) if it is used as a transport equation. Hope this helps. Best regards, US 

December 13, 2012, 02:27 

#8  
Member
Indrajit
Join Date: Nov 2012
Posts: 33
Rep Power: 4 
Quote:
Please tell me if C_STORAGE_R stores only the value of cell variable or the cell variable value*density, since _R generally refers to density calculations. Indrajit 

Thread Tools  
Display Modes  


Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
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 
UDS Flux Function Choice  Yang Chung  FLUENT  0  August 10, 2008 06:57 
UDS UNSTEADY  Arvind Phate  FLUENT  0  August 27, 2005 13:17 
about unsteady uds term  Frank  FLUENT  23  May 2, 2002 03:46 