CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

invalid type conversion: double -> pointer to char.

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   July 4, 2021, 21:24
Default invalid type conversion: double -> pointer to char.
New Member
Select county
Join Date: Jul 2021
Posts: 3
Rep Power: 3
Boyan is on a distinguished road
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;

F_PROFILE(f,t,i) = 0.4*sin(9*t)+0.02;

Thank you very much.
Boyan is offline   Reply With Quote

Old   July 5, 2021, 00:46
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 25
pakk will become famous soon enough
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".
pakk is offline   Reply With Quote


coding, errors, udf

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
reactingMultiphaseEulerFoam tonnykz OpenFOAM Running, Solving & CFD 2 June 15, 2020 02:09
[] 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

All times are GMT -4. The time now is 13:27.