CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

easy UDF question

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 15, 2008, 01:15
Default easy UDF question
  #1
Oleg
Guest
 
Posts: n/a
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
  Reply With Quote

Old   March 16, 2008, 16:48
Default Re: easy UDF question
  #2
lurk
Guest
 
Posts: n/a
look in the UDF manual and find an example for define boundary -Lurk
  Reply With Quote

Old   March 17, 2008, 06:29
Default Re: easy UDF question
  #3
bohis
Guest
 
Posts: n/a
if you have just points, no function, then there is nothing easier than using profile import directly! You do not need udf for that
  Reply With Quote

Old   March 17, 2008, 07:49
Default Re: easy UDF question
  #4
Oleg
Guest
 
Posts: n/a
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
  Reply With Quote

Old   March 17, 2008, 08:07
Default Re: easy UDF question
  #5
bohis
Guest
 
Posts: n/a
(( 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
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Quick and easy QUESTION Freeman Main CFD Forum 12 December 13, 2005 16:00
Quick and easy QUESTION Freeman FLUENT 0 December 9, 2005 18:39
easy question toni Siemens 4 July 12, 2004 06:29
Easy question Confused Main CFD Forum 4 May 22, 2004 03:14
Easy Question chacha Main CFD Forum 1 February 27, 2004 04:07


All times are GMT -4. The time now is 09:29.