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

Define_Uds_Flux and mass flow rate

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 5, 2004, 10:20
Default Define_Uds_Flux and mass flow rate
  #1
paulina
Guest
 
Posts: n/a
I am confused about the way in which the DEFINE_UDS_FLUX should be written in UDF. I would like to change a mass flow rate from window: Define-User Defined-Scalars in option Flux Function. I have read Fluent help (10-2 and 4-87) but still I am not sure if the NV_DOT(psi_vec, A) is a full term of the mass flow rate which will be calculate or it is only the source term of the scalar transport equation?
  Reply With Quote

Old   July 7, 2004, 10:36
Default Re: Define_Uds_Flux and mass flow rate
  #2
kethireddy
Guest
 
Posts: n/a
hi this is used to customurise your flux function. yes ofcourse NV_DOT(psi_vec, A) is theoritically correct and returns mass flow rate. Did u try this example. I think you should get errror with overloading of arguments in thread ,i guess u r using fluent 6.1. Any way if it works out wrire me bye kethireddy
  Reply With Quote

Old   July 7, 2004, 17:08
Default Re: Define_Uds_Flux and mass flow rate
  #3
Paulina
Guest
 
Posts: n/a
Hello Kethireddy,

Yes, as you suspected I have used the Fluent 6.1.

Unfortunately, I have received an error when I tried to use the example of the procedure from Fluent instruction.

The error suggested that something has been made incorrect, but the message in the window wasn't precise.

I have made some changes in that procedure in spite of them, the procedure did not allow me to run the calculation.

The main goal of my work is modification the term of mass flow rate for the mixture. I have use the Mixture model.

I would like to be able to multiple the original term of the mass flow rate for the mixture model by some constant correction factor.

So, if you have more experience in writing such a procedure, I will be very grateful for any kind of help.

Paulina
  Reply With Quote

Old   July 8, 2004, 07:13
Default Re: Define_Uds_Flux and mass flow rate
  #4
kethireddy
Guest
 
Posts: n/a
hi how do you want to custumurised the flux term. Is it rho*v*constant or what. let me knoe clearly bye kamesh
  Reply With Quote

Old   July 8, 2004, 08:02
Default Re: Define_Uds_Flux and mass flow rate
  #5
paulina
Guest
 
Posts: n/a
Hello Kamesh,

Thank you for your interesting.

I am not sure in which way I should define the flux term. First, I have tried to add the original procedure from Fluent, but without any success. I have got an error message like: "Error: fluent 6.1.22 received a fatal signal (SEGMENTATION VIOLATION). Error Object: #f".

Them I have tried just to define the F_FLUX(f,t)=F_R(f,t)*F_W(F,t)*F_AREA(A,f,t), where F_W(f,t) is the velocity in Z-direction. In addition, in that case I cannot run the calculation. I suspect that the original code of the Fluent knows the term of the F_FLUX(f,t) for the mixture, which is the mass flow rate in the window Define- User-Define-Scalars-Flux Function.

I just want to multiple that term for some correction factor. Do you know how it could be done?
  Reply With Quote

Old   July 9, 2004, 05:56
Default Re: Define_Uds_Flux and mass flow rate
  #6
kethireddy
Guest
 
Posts: n/a
hi fluent solver will have the value of F_FLUX(f,t). I think u have not understood how udf flux function works. In general uds eqation is solved as in equation 10.2 ( iguess). the complete advective term is present there.If u want fluent have some other different term like only (V instead of V*rho) we divide by rho so that fluent solves the equation with custumorised function. Any way i am very sorry that i coulnot understand your problem exactly. u be very specific and simple.I will try to solve this.. bye kamesh
  Reply With Quote

Old   July 9, 2004, 06:01
Default Re: Define_Uds_Flux and mass flow rate
  #7
paulina
Guest
 
Posts: n/a
Hi Kamesh,

Thanks for your commentary. Paulina
  Reply With Quote

Old   July 9, 2004, 06:07
Default Re: Define_Uds_Flux and mass flow rate
  #8
kethireddy
Guest
 
Posts: n/a
what!!
  Reply With Quote

Old   July 9, 2004, 07:03
Default Re: Define_Uds_Flux and mass flow rate
  #9
paulina
Guest
 
Posts: n/a
Hi again,

What does it mean: "what"!!I just want to be polite. Paulina
  Reply With Quote

Old   July 9, 2004, 10:19
Default Re: Define_Uds_Flux and mass flow rate
  #10
kethireddy
Guest
 
Posts: n/a
hi thanks i will continue bye kamesh
  Reply With Quote

Old   July 9, 2004, 10:33
Default Re: Define_Uds_Flux and mass flow rate
  #11
paulina
Guest
 
Posts: n/a
Hi,

Probably now I understood what you have told me before.

I think that I have made some progress with the procedure. Now I am able to start calculation using the mass flow rate from my User Define Functions. But still I am not sure how should I declare the vector of the velocity for the mixture. When I have defined inside the procedure a constant value of the mixture velocity, everything is all right. However, when I have tried to do it by using the definition - it means: F_U(f,t), F_V(f,t) and F_W(f,t) is does not work.

If you have any suggestions, I will be very grateful.

Paulina
  Reply With Quote

Old   July 13, 2004, 05:48
Default Re: Define_Uds_Flux and mass flow rate
  #12
kethireddy
Guest
 
Posts: n/a
Hi PAULINA.. try using F_V(t),it will work out however take care at boundaries otherwise u will end up up with segmentation error. kethireddy
  Reply With Quote

Old   July 13, 2004, 05:56
Default Re: Define_Uds_Flux and mass flow rate
  #13
paulina
Guest
 
Posts: n/a
Hi Kethireddy,

Thank you for your answer. I will try to do it in that way and then I will say if it works.

Regards Paulina
  Reply With Quote

Old   July 13, 2004, 18:04
Default Re: Define_Uds_Flux and mass flow rate
  #14
Hulio
Guest
 
Posts: n/a
Do you thiunk this is used to customurise your flux function. yes ofcourse NV_DOT(psi_vec, A) is theoritically correct and returns mass flow rate. Did u try this example. I think you should get errror with overloading of arguments in thread ,i guess u r using fluent 6.1. Any way if it works out wrire me bye kethireddy. If you are check http://www.handymate.co.uk
  Reply With Quote

Old   July 14, 2004, 11:13
Default Re: Define_Uds_Flux and mass flow rate
  #15
kethireddy
Guest
 
Posts: n/a
hi Haulio i guess overloading is not NV_DOT(psi_vec, A),but it is with the thread(t,f).I guess thread(t)is right one.I think it works out. regards kethireddy
  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 15:43.