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

User defined functions

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 3, 2013, 06:36
Post User defined functions
  #1
New Member
 
Sudarshan D Pangavhane
Join Date: Mar 2013
Posts: 2
Rep Power: 0
Sudarshan D Pangavhane is on a distinguished road
Kindly help me building a user defined function for following inlet velocity conditions....

"The velocity inlet has a time varying velocity imposed at the start of the solution in the form of a full period sinusoid with an amplitude of 0.05m/s and frequency of 3200Hz. After the sinusoid is complete the velocity remains zero at the inlet for remainder of solution."
Sudarshan D Pangavhane is offline   Reply With Quote

Old   March 7, 2013, 09:35
Default
  #2
Senior Member
 
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,188
Rep Power: 23
evcelica is on a distinguished road
Depends on what software and language you have to use are using:

CFX CEL:
0[m/s] + step((1/3200)-t/1[s])*0.05[m/s]*sin(2*3.14159265*3200*t)

C++:
IF
t <= (1/3200)s
Velocity:=0.05*sin(2*3.14159265*3200*t);
ELSE
Velocity:=0;
evcelica is offline   Reply With Quote

Reply

Tags
udf


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 SCALARS yann Phoenics 6 November 14, 2013 09:46
Wall Treatment of User defined Turbulence Model Yang Chung FLUENT 0 August 23, 2008 12:31
User Defined Scalars - Returning Values Carlos V. FLUENT 0 April 19, 2006 19:18
Source term for user defined scalars Mech.eng. Siemens 0 March 16, 2006 07:15
User defined functions Tuomas Koiranen FLUENT 2 December 29, 1999 08:41


All times are GMT -4. The time now is 19:49.