help calculate a function
1 Attachment(s)
I work on a problem of natural convection in fluent
I would like to compute a function as follows:see attached file how to do this please 
:confused::confused::confused::confused::confused: please help

hi,
If you want to define such a function in udf, first you should Keep temporary solver memory from being freed in solveset in text mode of fluent. then use suffix _G or _RG for each variable and use any coordinate of gradient vector you want. take a look at page 265 of udf help manual pdf of fluent or find "Flow Variable Macros for Cells" in html mode. it has almost complete instruction. yours, mohammad 
hank you very much mohammad
but I new to programming in fluent it will be very nice of you if you help me in developing this udf 
hi,
first of all tell me that you want this function to be calculated for postprocessing or you want to use it inside solution algorithm? if you want it for post processing, simply use define>custom field function and use derivatives of velocity and temprature and .... but if you want to use it in equations that fluent solve, you must write a udf and compile it. so be more clear. yours, mohammad 
yes i want it to be calculated postprocessing
can you give me more detail how to do it thank you very much for your help 
hello Mr. mohammad
I hope that I does not bother you can you please help me I really need to have the steps to calculate this function thank you in advance 
hi,
if you want to calculate this function for postproccessing, just go to define>custom field function and use the menus in it and buttons to define any function you want. if something went wrong or any other problem ask it...! yours, mohammad 
thank you mohammad
I'll try to do it 
You can do it with custom field functions.
But the variables you want are not available (the derivatives). In order to make them available In the text promt: solve> set > expert and answer YES [in Keep temporary solver memory from being freed?] Aris 
thank you very much, aris, for your help
juste i want to know one more thing if the component of the velocity vector is (u, v, w) dxvelocity/dx mean du/dx ?????????????? dyvelocity/dx mean dv/dx ????????????? dzvelocity/dx mean dw/dx ??????????? walid http://www.cfdonline.com/Forums/dat...AAAElFTkSuQmCC 
yes
dxvelocity /dx is du/dx and so on! 
I tried but I got this message
"SEGMENTATION VIOLATION":confused::confused::confused::confused: 
hi,
in which state you got errors? did you set fluent to keep the temporary? first check defining a very simple function, does it returns error too? then a simple fuction containing velocity derivatives may be a good choice for checking, does it returns error too? you should do these just as you are debugging a program! yours, mohammad 
can any1 tell me how to apply du/dy=0 at the boundary condition
I am confused between differentiating between du/dx=0 and du/dy=0 in the UDF Thank you 
All times are GMT 4. The time now is 03:08. 