CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

invalid type conversion: double -> pointer to char.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 4, 2021, 22:24
Default invalid type conversion: double -> pointer to char.
  #1
New Member
 
Select county
Join Date: Jul 2021
Posts: 3
Rep Power: 5
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;


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.
Boyan is offline   Reply With Quote

Old   July 5, 2021, 01:46
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
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

Reply

Tags
coding, errors, udf


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 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


All times are GMT -4. The time now is 00:45.