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

Varying speed of disk through UDF Fluent

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 27, 2016, 05:01
Default Varying speed of disk through UDF Fluent
  #1
Senior Member
 
AH
Join Date: Apr 2014
Posts: 287
Rep Power: 0
visitor is on a distinguished road
Hello everyone

Tried to vary speed of disk in Fluent using this code

#include "udf.h"
DEFINE_PROFILE(inlet_mf,thread,i)
{
float t = CURRENT_TIME;
face_t f;
begin_f_loop(f, thread)
{
F_PROFILE(f,thread,i) = t*5;
}
end_f_loop(f,thread)
}
------
error message
" ... inlet-mf : wrong return type: double udf function expected". Yes the inlet_mf is for inlet mass flow rate, but why wouldn't this work. What is the correct alternative? Please, thanks.
visitor is offline   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
Fluent rp var to modify rotation speed of a boundary QBeast FLUENT 2 August 12, 2015 16:58
solving a conduction problem in FLUENT using UDF Avin2407 Fluent UDF and Scheme Programming 1 March 13, 2015 03:02
LSR (Land speed record) car simulation on FLUENT Maxime31850 FLUENT 2 May 1, 2013 12:15
fluent UDF external library lapack problem Rick FLUENT 0 May 7, 2008 11:16
UDF of Zimont model in fluent Z Main CFD Forum 0 February 17, 2005 04:07


All times are GMT -4. The time now is 20:06.