CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   discretet BC and UDF (https://www.cfd-online.com/Forums/fluent/77537-discretet-bc-udf.html)

gary7 June 25, 2010 21:16

discretet BC and UDF
 
Hi all, I have a data file (and it is provided by an external program) I need to load these values as inlet velocity boundary condition and run the simulation a few time steps and again read the renewed data file when it becomes ready.
I know that I can read in a discrete set of points on boundary through *.prof files but since it's a repeatedly process I need to use UDF for doing this.
How can I develop a UDF in which I can read boundary conditions from a data on the required points of the geometry boundary (data file has the coordinates of the center of the boundary faces together with their respective velocity components) ?

Thanks,

sosososo1114 June 26, 2010 09:42

hi! you can write a scheme file to ask fluent to load the profile file and load this scheme file in your case.

gary7 June 26, 2010 11:05

Thanks for the reply, but the problem is that I need to load this data file (boundary conditions) when it becomes ready by an external program and so I need to check through an infinite loop for the existence of the new data file and during this loop actually Fluent is doing nothing and it's waiting just for the BC file to be ready. So there is no specific time interval to read the *.profile file through scheme file...can I program such a procedure as I explained in an scheme file? (I'm not familiar with scheme file that much)


All times are GMT -4. The time now is 23:01.