CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   CFX (http://www.cfd-online.com/Forums/cfx/)
-   -   Udf (http://www.cfd-online.com/Forums/cfx/73257-udf.html)

 elsa March 3, 2010 05:11

Udf

how can I define a function (UDF) in cfx? I have a specific thermal function (Pennes equation) for a hemisphere.

 ghorrocks March 3, 2010 06:51

I have no idea what Penne equation is. This link tells me it is a heat transfer model used in physiology - http://jap.physiology.org/cgi/content/full/85/1/35 - I assume this is what you are talking about.

Looks like you will be able to implement this using source terms on the temperature/heat equation. I don't think you will need fortran. CEL expressions should work fine and they are MUCH easier.

 elsa March 3, 2010 14:22

Cel

yeah pennes is a bioheat equation.
thanks

 ghorrocks March 3, 2010 17:58

CFX documentation, reference manual - CEL Expression language.

 elsa March 3, 2010 23:07

heat flux

I have simulated a duct with constant walls temperature and air flow inside; how can I get the heat flux from one section of the duct to the other section? or is it possible to get the Nusselt number at one point in fully developed area?

 ghorrocks March 4, 2010 06:41

Nusselt number - Yes, define a new variable with an expression with the equation for Nusselt number in CFD-Post. Then you can view it, make contours of it and anything else you can do with variables.

Do you mean the heat flux from the air to the wall (look at the wall heat flux variable) or do you mean the heat flux from the convection of the air (make a surface which intersects the flow and define a new variable of density*Cp*normal velocity or something like that.)

 elsa March 4, 2010 14:18

Thank you
actually, I'm looking for hat flux to find the convection coefficient or Nusselt number. if I can define the Nusselt number, there will be no necessity to calculate the heat flux.
the problem is I don't know how I can define the Nusselt number.

 ghorrocks March 4, 2010 16:45

As I said, in CFD-Post you need to define a new variable which is an equation to define Nusselt number. Then you can view it in CFD-Post. Have a look at the CFX tutorials, some of them will define variables in CFD-Post for post-processing.

 elsa March 11, 2010 00:05

I already have written the Pennes equation by Fortran, how can I apply it in CFX?

 ghorrocks March 12, 2010 00:53

As I said, define a variable in CFD-Post and you can get it from there. If you are doing it in the solver then have a look in the CEL reference guide for the list of available variables - you will find wall heat transfer to be useful for you.

 All times are GMT -4. The time now is 13:26.