|
[Sponsors] |
invalid type conversion: double -> pointer to char. |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 4, 2021, 22:24 |
invalid type conversion: double -> pointer to char.
|
#1 |
New Member
Select county
Join Date: Jul 2021
Posts: 3
Rep Power: 5 |
Hi, I was trying to create a udf file for a sinusoidal velocity at the inlet, but error after interpreting shows "invalid type conversion: double -> pointer to char." at line 11.
Please help me with this problem, I'm new to fluent. The following is my code #include "udf.h" DEFINE_PROFILE(velocity_magnitude, t, i) { real t = CURRENT_TIME; begin_f_loop(f,t) { F_PROFILE(f,t,i) = 0.4*sin(9*t)+0.02; } end_f_loop(f,t) } Thank you very much. |
|
July 5, 2021, 01:46 |
|
#2 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
Try to compile.
__________________
"The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform" is NOT the error after compiling. It is the error after loading. To see compiler errors, look at your screen after you click "build". |
|
Tags |
coding, errors, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
reactingMultiphaseEulerFoam | tonnykz | OpenFOAM Running, Solving & CFD | 2 | June 15, 2020 03:09 |
[OpenFOAM.org] compile error in dynamicMesh and thermophysicalModels libraries | NickG | OpenFOAM Installation | 3 | December 30, 2019 01:21 |
Floating point exception error | lpz_michele | OpenFOAM Running, Solving & CFD | 53 | October 19, 2015 03:50 |
Divergent temperature in chtMultiRegion(Simple)Foam | akrasemann | OpenFOAM Running, Solving & CFD | 13 | March 24, 2014 03:54 |
Missing math.h header | Travis | FLUENT | 4 | January 15, 2009 12:48 |