CFD Online Logo CFD Online URL
Home > Forums > Fluent UDF and Scheme Programming

Creating a user-defined funtion

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

Like Tree1Likes
  • 1 Post By Vitaly

LinkBack Thread Tools Display Modes
Old   February 4, 2012, 11:54
Question Creating a user-defined funtion
New Member
Join Date: Feb 2012
Posts: 1
Rep Power: 0
mathewg is on a distinguished road
I'm simulating a flow in a T-junction. So for the inlet flow at a branch I have to add an oscillation with the velocity. I'm fairly new to FLUENT.

The oscillation function is as follows:


How would I go about creating a UDF to implement that?
mathewg is offline   Reply With Quote

Old   February 14, 2012, 18:36
Join Date: Jan 2012
Posts: 32
Rep Power: 6
Vitaly is on a distinguished road
You need to do some of the basics tutorials on UDF's to get a fee for it.

Try this one:

Then, the only difference with yours is that you will need to get the "time" every instance you call the UDF. You can do that with...

real t_glob = RP_Get_Real("flow-time");

Good Luck!
PranjalNewton likes this.
Vitaly is offline   Reply With Quote


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
User Defined function for scalar gradient caculation with Star ccm+ V4 coolio CD-adapco 3 December 21, 2011 18:13
user defined sourcen term xck1986 CFX 1 July 8, 2010 08:35
Question about user defined function. universez OpenFOAM Running, Solving & CFD 0 January 14, 2010 21:52
user defined turbulence model manuutin STAR-CD 5 October 14, 2009 05:29
Gradient of a User defined Variable Ramadas CFX 2 August 21, 2007 09:19

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