|
[Sponsors] |
February 21, 2016, 03:32 |
UDF to change speed of fan
|
#1 |
Senior Member
AH
Join Date: Apr 2014
Posts: 287
Rep Power: 0 |
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) } |
|
February 29, 2016, 18:21 |
|
#2 |
Senior Member
Join Date: Mar 2015
Posts: 892
Rep Power: 18 |
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?
|
|
|
|
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 04:44 |
Phase change UDF | rampal | Fluent UDF and Scheme Programming | 7 | January 28, 2017 00:00 |
Use UDF to change the attack angle of flow over 3D wing | nvtrieu | Fluent UDF and Scheme Programming | 8 | June 26, 2016 06:53 |
UDF pressure jump over a fan | Bell X | Fluent UDF and Scheme Programming | 1 | April 13, 2015 05:05 |
I want to Change Values in Existing UDF to Match my Model | mamkol | Fluent UDF and Scheme Programming | 1 | April 26, 2013 03:57 |