|
[Sponsors] |
February 14, 2021, 14:42 |
UDF error: Double udf function expected
|
#1 |
New Member
Andrew Bickerdike
Join Date: Feb 2021
Posts: 6
Rep Power: 5 |
Hi,
I'm doing a project where I am simulating blood flow in the aorta and I've got a UDF for the pulsatile flow: /* PULSATILE FLOW DEFINITION UDF */ #include "udf.h" #define PI 3.141592654 DEFINE_PROFILE(inlet_x_velocity,th, i) { face_t f; real t = CURRENT_TIME; begin_f_loop(f,th) { F_PROFILE(f,th,i) = (4700.000000/(0.064731*60.0*437.435361))*pow(sin(3.141593*t),13 .0)*(cos((3.141593*t)-(PI/10.0))); } end_f_loop(f,th) } the problem being that I always get the error: "chip-exec: inlet_x_velocity: wrong return type: double udf function expected" Any suggestions about this? Thanks. |
|
February 15, 2021, 01:31 |
|
#2 | |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
Quote:
But it looks distracting. One way to remove it: F_PROFILE(f,th,i) = (real) (4700.000000/(0.064731*60.0*437.435361))*pow(sin(3.141593*t),13 .0)*(cos((3.141593*t)-(PI/10.0))); |
||
Tags |
ansys, fluent, fluent - udf, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem About Running Fluent In Linux | mitra | FLUENT | 18 | June 20, 2019 03:11 |
long error when using make-install SU2_AD. | tomp1993 | SU2 Installation | 3 | March 17, 2018 07:25 |
[blockMesh] Errors during blockMesh meshing | Madeleine P. Vincent | OpenFOAM Meshing & Mesh Conversion | 51 | May 30, 2016 11:51 |
[blockMesh] Axisymmetrical mesh | Rasmus Gjesing (Gjesing) | OpenFOAM Meshing & Mesh Conversion | 10 | April 2, 2007 15:00 |
Droplet Evaporation | Christian | Main CFD Forum | 2 | February 27, 2007 07:27 |