|
[Sponsors] |
invalid type conversion: double -> pointer to char. |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#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. |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26 ![]() |
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 |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
reactingMultiphaseEulerFoam | tonnykz | OpenFOAM Running, Solving & CFD | 2 | June 15, 2020 02:09 |
[OpenFOAM.org] compile error in dynamicMesh and thermophysicalModels libraries | NickG | OpenFOAM Installation | 3 | December 30, 2019 00:21 |
Floating point exception error | lpz_michele | OpenFOAM Running, Solving & CFD | 53 | October 19, 2015 02:50 |
Divergent temperature in chtMultiRegion(Simple)Foam | akrasemann | OpenFOAM Running, Solving & CFD | 13 | March 24, 2014 02:54 |
Missing math.h header | Travis | FLUENT | 4 | January 15, 2009 11:48 |