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

how to put udf inlet velocity and udf outlet pressure in fluent

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

Like Tree3Likes
  • 1 Post By D.M
  • 1 Post By raminostadi
  • 1 Post By KaLium

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 11, 2016, 10:35
Red face how to put udf inlet velocity and udf outlet pressure in fluent
  #1
Member
 
ramin
Join Date: Jul 2016
Posts: 41
Rep Power: 9
raminostadi is on a distinguished road
hello experts
I am beginer in ansys fluent

I am working on pulse blood flow in an artery. my boundry conditions are

parabolic velocity in inlet and parabolic pressure in outlet.

when I want to interpret my udfs for velocity and pressure, I can not put both

of them simultaneously and fluent considere my last imput file.

now I want to know how can I put udf inlet velocity and udf outlet pressure in

fluent simultaneously؟

best regards
raminostadi is offline   Reply With Quote

Old   September 12, 2016, 00:40
Default
  #2
D.M
Member
 
Davoud Malekian
Join Date: Jan 2016
Posts: 53
Rep Power: 10
D.M is on a distinguished road
Hello Ramin,
when you want to compile udfs, it is possible to compile your c files seperately,
but in the case of interpreting you can interpret just 1 c file!, so write all of your udfs in 1 c file and then interpret your c file.
raminostadi likes this.
D.M is offline   Reply With Quote

Old   September 12, 2016, 04:12
Default
  #3
Member
 
ramin
Join Date: Jul 2016
Posts: 41
Rep Power: 9
raminostadi is on a distinguished road
Quote:
Originally Posted by D.M View Post
Hello Ramin,
when you want to compile udfs, it is possible to compile your c files seperately,
but in the case of interpreting you can interpret just 1 c file!, so write all of your udfs in 1 c file and then interpret your c file.
Thank you so much
D.M likes this.
raminostadi is offline   Reply With Quote

Old   June 29, 2017, 14:37
Default
  #4
New Member
 
ashraf elkotb
Join Date: Jun 2017
Posts: 2
Rep Power: 0
ashraf elkotb is on a distinguished road
can I write simple C code definning pressure function without udf.h and use it in fluid solution as a boundary condition ???
ashraf elkotb is offline   Reply With Quote

Old   July 3, 2017, 06:43
Default
  #5
Senior Member
 
KaLium's Avatar
 
Kal-El
Join Date: Apr 2017
Location: Finland
Posts: 150
Rep Power: 9
KaLium is on a distinguished road
Fluent always has the udf.h. You don't need to add it to your lib/folder.

Just add the #include udf.h
in your code.
ATIKADAR likes this.
KaLium is offline   Reply With Quote

Reply

Tags
problem with udf

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
UDF inlet velocity profile mismatch with Fluent ChristineL Fluent UDF and Scheme Programming 15 November 25, 2016 06:45
negative input for velocity inlet to make an outlet? Sipher FLUENT 1 June 24, 2015 02:51
UDF: Change boundary condition. Velocity inlet to pressure inlet at time "t" jpina FLUENT 10 April 11, 2015 14:19
UDF profile: Fluent method for coupling inlet and outlet I-mech Fluent UDF and Scheme Programming 0 May 10, 2014 10:36
UDF to set velocity and pressure in inlet GerardX89 Fluent UDF and Scheme Programming 0 July 16, 2012 10:15


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