# How to solve "invalid type for binary expression: double* function returning double"?

 User Name Remember Me Password
 Register Blogs Members List Search Today's Posts Mark Forums Read

 LinkBack Thread Tools Display Modes
 August 15, 2014, 14:54 How to solve "invalid type for binary expression: double* function returning double"? #1 Member   Mohamed Join Date: Jan 2011 Location: Algeria Posts: 44 Rep Power: 7 hi friends I write this UDF to represent unsteady heat flux, but an error appear, I can not understand how to solve it in the 13th line. Error: line 13: invalid type for binary expression: double * function returning double. Code: ```#include "udf.h" DEFINE_PROFILE(unsteady_flux, thread, position) { face_t f; real t = CURRENT_TIME; real Trise = 0; real Tset = 48600; real Tmax = 21900; real Gs = 500; begin_f_loop(f, thread) { if((temp>=Trise) && (temp=Tmax) && (temp

 August 22, 2014, 10:45 #2 Member   Join Date: Jul 2013 Posts: 74 Rep Power: 5 You used the sine function wrong, so your code should be: #include "udf.h" DEFINE_PROFILE(unsteady_flux, thread, position) { face_t f; real t = CURRENT_TIME; real Trise = 0.0; real Tset = 48600.0; real Tmax = 21900.0; real Gs = 500.0; begin_f_loop(f, thread) { if((temp>=Trise) && (temp=Tmax) && (temp

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post aeroman FLUENT 6 April 8, 2016 03:34 martyn88 OpenFOAM 22 April 17, 2015 06:00 NickG OpenFOAM Installation 2 August 30, 2013 07:42 Sebaj OpenFOAM 7 October 31, 2012 15:16 brian FLUENT 6 September 11, 2006 08:23

All times are GMT -4. The time now is 19:11.

 Contact Us - CFD Online - Top