CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > 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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 4, 2012, 11:54
Question Creating a user-defined funtion
  #1
New Member
 
GM
Join Date: Feb 2012
Posts: 1
Rep Power: 0
mathewg is on a distinguished road
Hi,
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:

aSin(\omegat)

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

Old   February 14, 2012, 18:36
Default
  #2
Member
 
Vitaly
Join Date: Jan 2012
Posts: 32
Rep Power: 14
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: http://202.118.250.111:8080/fluent/F...udf/node15.htm

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

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
User Defined function for scalar gradient caculation with Star ccm+ V4 coolio STAR-CCM+ 4 August 11, 2023 06:38
user defined sourcen term xck1986 CFX 1 July 8, 2010 09: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 06:29
Gradient of a User defined Variable Ramadas CFX 2 August 21, 2007 10:19


All times are GMT -4. The time now is 11:15.