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

UDF to change speed of fan

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 21, 2016, 02:32
Default UDF to change speed of fan
  #1
Senior Member
 
AH
Join Date: Apr 2014
Posts: 282
Rep Power: 13
visitor is on a distinguished road
Dear sirs/madams

Tried to use the following code to increment fan speed. I did not think that the inlet_mf matters, but it sounds like it does. Entered in cell-zone, mesh motion, speed field; inlet_mf.

Error message; shaftchip-exec: inlet_mf: wrong return type: double udf function expectedchip-exec: ...

Any suggestions please? Thanks in advance.

#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)
}
visitor is offline   Reply With Quote

Old   February 29, 2016, 17:21
Default
  #2
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 892
Rep Power: 18
`e` is on a distinguished road
Are you using the moving/deforming mesh model? The DEFINE_PROFILE macro is for specifying a boundary condition such as a developed inlet velocity. Are you modelling the fan or are you simply altering the inlet conditions of a boundary face?
`e` 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
UDF to change heat transfer coefficient with wall temperature emmkell Fluent UDF and Scheme Programming 18 August 7, 2018 03:44
Phase change UDF rampal Fluent UDF and Scheme Programming 7 January 27, 2017 23:00
Use UDF to change the attack angle of flow over 3D wing nvtrieu Fluent UDF and Scheme Programming 8 June 26, 2016 05:53
UDF pressure jump over a fan Bell X Fluent UDF and Scheme Programming 1 April 13, 2015 04:05
I want to Change Values in Existing UDF to Match my Model mamkol Fluent UDF and Scheme Programming 1 April 26, 2013 02:57


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