|
[Sponsors] |
September 23, 2011, 14:14 |
Quick UDS question
|
#1 |
New Member
Luke Holsen
Join Date: Jun 2011
Posts: 12
Rep Power: 15 |
If I impose a constant value for a UDS at the inlet then the units are kM/m^3 ?
The UDS diffusivity is the diffusion coefficient* density of the material? Do I input the calculated value? Thanks for the help! |
|
September 23, 2011, 16:18 |
|
#2 | |
Senior Member
|
Quote:
UDS diffusivity is equal to (fluid density*diffusion coefficient of scalar in that fluid); this parameter should be set in FLUENT.
__________________
Amir |
||
September 25, 2011, 18:18 |
|
#3 |
New Member
Luke Holsen
Join Date: Jun 2011
Posts: 12
Rep Power: 15 |
Thank you for your response. I am still slightly confused. When I go to the materials section and open the create/edit materials window. The option says UDS DIffusivity ( kg/m-s). When you click edit it says coefficient, which would be m^2/s correct? There are no units listed on that input window.
|
|
September 26, 2011, 04:06 |
|
#4 | |
Senior Member
|
Quote:
Bests,
__________________
Amir |
||
September 26, 2011, 09:16 |
|
#5 |
New Member
Luke Holsen
Join Date: Jun 2011
Posts: 12
Rep Power: 15 |
OK, So then the scalar would be in kg/m^3 to maintain consistent units?
|
|
September 26, 2011, 09:28 |
|
#6 | |
Senior Member
|
Quote:
c can have any dimension. (you have to set ) Bests,
__________________
Amir |
||
September 26, 2011, 09:31 |
|
#7 |
New Member
Luke Holsen
Join Date: Jun 2011
Posts: 12
Rep Power: 15 |
OK, thank you for the quick response and all the help!
|
|
September 26, 2011, 11:18 |
|
#8 |
New Member
Luke Holsen
Join Date: Jun 2011
Posts: 12
Rep Power: 15 |
Thank you Amir for all your help. You are actually the one who helped me last suggesting the interpolate function and seem to be the one who knows the most about UDS.
I am trying to replicate this equation as my source term: Conc NO = (Rnomax* Conc.Oxygen)/(Conc. Oxygen + KmeNOS) I am getting numbers with my source code but they do not match up with some previous models. Does this look correct to you? #include "udf.h" /************************************************** **************************************** This UDF calculates Source Terms for the Lumen, Endothelium, Vascular Wall, and Tissue Layer ************************************************** ******************************************/ /*** Species numbers ***/ #define Oxygen 0 #define NO 1 /************************************************** **************************************** Endothelium Source Terms: NO Generation and O2 Consumption ************************************************** ******************************************/ /*** Define Variables for Calculation ***/ #define RNOmax 0.000054; /*Maximum eNOS Production Rate (54 uM/s )->(M/s)*/ #define KmeNOS 4.7; /*Michaelis-Menten reaction kinetics term (4.7 Torr)*/ DEFINE_SOURCE( Endothelium_NOGen, c, t, dS, eqn) { real con, concNO; concNO=((RNOmax*C_UDSI(c,t,Oxygen))/(C_UDSI(c,t,Oxygen)+(KmeNOS))); return concNO; } |
|
September 26, 2011, 14:20 |
|
#9 |
Senior Member
|
Dear Luke,
I think there is a problem in your formula! The dimensions are not compatible; e.g., you've added Conc. Oxygen and KmeNOS which have different dimensions and also the whole dimension doesn't reduce to concentration! Maybe there are some unit multiplication factors which have dimension! (Conc. Oxygen + KmeNOS*1); check that. Bests,
__________________
Amir |
|
September 26, 2011, 15:10 |
|
#10 |
New Member
Luke Holsen
Join Date: Jun 2011
Posts: 12
Rep Power: 15 |
Well it is a partial pressure, Henry's Law, using a Michaelis-Meneten reaction source term. So the "concentration" is really a pressure in Torr. I noted it wrong in the code and never fixed it. I really just wanted to know if the coding was correct because and would replicate the equation. I am new to C and this is my first code. Matlab is where the extent of my coding ability lies. Thank you very much for all your help! I truly appreciate it!
|
|
September 26, 2011, 17:21 |
|
#11 | |
Senior Member
|
Quote:
Bests,
__________________
Amir |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Please help student, quick question, CFD prices?? | quiksilver | Main CFD Forum | 2 | April 30, 2010 20:09 |
UDS question | Z | FLUENT | 5 | April 2, 2005 15:45 |
A good question about UDS | Z | FLUENT | 1 | March 31, 2005 16:14 |
UDS question | Z | FLUENT | 1 | March 31, 2005 16:08 |
UDS Question | Z | FLUENT | 0 | March 25, 2005 07:20 |