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

discretet BC and UDF

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 25, 2010, 21:16
Question discretet BC and UDF
  #1
Member
 
Kasra
Join Date: Jun 2010
Location: USA
Posts: 42
Rep Power: 7
gary7 is on a distinguished road
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,
gary7 is offline   Reply With Quote

Old   June 26, 2010, 09:42
Default
  #2
Member
 
Hongjin Wang
Join Date: Mar 2010
Posts: 37
Rep Power: 7
sosososo1114 is on a distinguished road
hi! you can write a scheme file to ask fluent to load the profile file and load this scheme file in your case.
sosososo1114 is offline   Reply With Quote

Old   June 26, 2010, 11:05
Default
  #3
Member
 
Kasra
Join Date: Jun 2010
Location: USA
Posts: 42
Rep Power: 7
gary7 is on a distinguished road
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)
gary7 is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 04:27.