![]() |
(ask) how to create UDF for inlet velocity profile
hi all
i have a question what should i do if i wanna go to use UDF for my inlet velocity profile 3D case how can i define it just a simple question, hope it will be answered by you.regards |
Hi,
refer to DEFINE_PROFILE macro in UDF-manual. |
hi amir thanks for attention
actually the UDF manual is not helping me at all because i want to create UDf for 3D case inlet velocity profile, but i dont know how to define the velocity function in 3D vector (x,y,z) maybe you have some tutorial or case example??regards. |
Hi Wibi,
here's a example for fully developed flow in a pipe: Code:
#include "udf.h" |
mmm...is it UDF for 3D case amir??
|
Quote:
you can also define three UDFs for each velocity components that are similar to above. it depends on the method that you want to set velocity in B.C. panel; magnitude normal or components. |
amir my friend,
i am very confuse about what were you talking about, since i'm new user for UDF so i hope you have more time to explain about this topic. amir in defining UDF should i plot my velocity data first to get the function or just go straight use your UDF example that you gave to me? please answer.regards |
Ok,
first you should decide what kind of velocity declaration you want to use.(in B.C. panel) e.g. you can use velocity magnitude normal to plane or setting individual velocity components. without UDF, you can set constant values for them in GUI. but for your case that three components change with coordinates(I think), you should write 3 UDF for velocity components and declare them as functions of x,y,z and hook them in respective places. it's obvious that you should have velocities as functions of x,y,z. if you post your velocity function, I may help you more. regards, Amir |
its going converging.. my question is i have no idea about that velocity function, that's what i want to talk about you. how can i extract my own velocity function, especially in my 3D case??
|
if your inlet velocity profile is obtained from another FLUENT calculation, it's easy to handle. else you need to use other post processing softwares like MATLAB or others to fit functions to them and then use obtained functions in UDFs.
|
could i just adapting the function from another velocity function and put it on my UDF??maybe your function? or maybe any general form of function that i could use
|
you can use any forms of explicit functions in UDfs.
e.g.: V_x=V_x(x,y,z),.... |
Quote:
|
Quote:
you can use (file->write->profile) in your previous results and the use (file->read->profile) in new case. (for more info, refer to manual) Bests, |
Hi,
My project is to perform CFD analysis on dissecting aneurismal aorta. I have to create pulsatile inlet velocity and pulsatile outlet pressure waveform at inlet and outlet of the aorta respectively. The example of pulsatile inlet velocity is as shown in the link below http://www.google.com.my/imgres?q=Ti...Wl_WbBw&zoom=1 May I know how to define this type of graph using UDF? Thank you so much |
Quote:
you have 2 choices: 1) you can prepare a file with special format which defines desires parameter at different time; it this method, you cannot specify spacial variation. (you can find further explanation in manual in setting unsteady BCs) 2) you can fit functions for different segments and write a UDF for it; this method doesn't have ant restrictions in special declaration. Bests, |
2) you can fit functions for different segments and write a UDF for it; this method doesn't have ant restrictions in special declaration.
May I know in details what is mean by fir functions for different segments and write a UDF for it? Thank you. REgards, Naimah |
Quote:
Bests, |
Hi Amir,
May I know how to do post processing in FLUENT? For example I would like to see the plotted graph (pressure/velocity) vs time. Besides, how to get the data for cross sectional area at certain parts of geometry at certain time? Thank you. Regards, Naimah |
Quote:
It depends, e.g. if you want to have pressure or velocity in a specified point, you can use "solve->monitor->surface ...."; if you didn't activate it before iteration, you have to write a simple journal file for this purpose. For extracting data of cross-sections; firstly you need to generate these cross-sections in "surface->quadratic or plane" then you can export desired data to other post processors in "file->export". But if you want to export these data for successive time steps; you have to choices: 1) there is such capability in ver. 13 in "file-> export" I think. 2) you can write a journal file to do what you want during iteration. Bests, |
All times are GMT -4. The time now is 18:55. |