CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   easy UDF question (http://www.cfd-online.com/Forums/fluent/47622-easy-udf-question.html)

Oleg March 15, 2008 01:15

easy UDF question
 
Hello Everyone ,

I have a text file that contains a matrix of size 1000 X 1 I would like to import this text file to C as an array So that I can define my boundary that has this profile . I have no idea how to write this C code .

Please Help me in writing this UDF .

Thank you .

Oleg Adams

lurk March 16, 2008 16:48

Re: easy UDF question
 
look in the UDF manual and find an example for define boundary -Lurk

bohis March 17, 2008 06:29

Re: easy UDF question
 
if you have just points, no function, then there is nothing easier than using profile import directly! You do not need udf for that

Oleg March 17, 2008 07:49

Re: easy UDF question
 
Hello Mr. Bohis ,

Could you please explain the steps ? yes I have a file where it contains the values of the velocity and the time . So I have just points .

Thank you In Advance

Oleg

bohis March 17, 2008 08:07

Re: easy UDF question
 
(( point your_profile NUMBER_OF_POINTS (x-coordinate . . . ) (y-coordinate . . . ) (z- coordinate . . . ) (x-velocity . . . ) (y-velocity

. . . ) (z- velocity

. . . ) ) save it as myprofile.prof, then file\read\profile

then choose each component in velocity panel maybe, you have pressure or tke, tdr, vof to import, then do it same way!!

good luck, it is very easy


All times are GMT -4. The time now is 10:57.