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

Help: user defined function

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 20, 2000, 04:37
Default Help: user defined function
  #1
alice
Guest
 
Posts: n/a
Hi,

I'm using user defined function as boundary condition at velocity inlet. I try to define a periodic velocity profile such as: v=V*(1+Asinwt) where t=n*dt and dt is the step time value, n the iteration number (sum(n)=total number of iterations).

Can anyone of you tell me what are the pointers for this variables in Fluent5.3?

Thanks for help.

Alice
  Reply With Quote

Old   November 20, 2000, 20:00
Default Re: Help: user defined function
  #2
Greg Perkins
Guest
 
Posts: n/a
time = RP_Get_Real("flow-time") is current time in seconds

niter = (nres == 0) ? (0) : ((int) count2[nres - 1]); returns current iteration number in niter.

Regards

Greg

  Reply With Quote

Old   November 21, 2000, 03:50
Default Re: Help: user defined function
  #3
alice
Guest
 
Posts: n/a
Thanks for help.

Alice
  Reply With Quote

Old   December 13, 2000, 01:10
Default Re: Help: user defined function
  #4
Dan Williams
Guest
 
Posts: n/a
Unbelievable. You actually have to use a user defined function and recompile the code to do this?? Bizzare. Get a copy of CFX5.

Dan.
  Reply With Quote

Reply


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
LiencubiclowRemodel nzy102 OpenFOAM Bugs 14 January 10, 2012 09:53
channelFoam for a 3D pipe AlmostSurelyRob OpenFOAM 3 June 24, 2011 14:06
OpenFOAM static build on Cray XT5 asaijo OpenFOAM Installation 9 April 6, 2011 13:21
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 07:42
User defined function - CO level hari FLUENT 0 October 24, 2007 01:11


All times are GMT -4. The time now is 18:38.