Floating point exception error in finding Drag force over solar panel using udf log inlet velocity

  • 15 Views
  • Last Post 26 February 2019
imransheikh posted this 26 February 2019

Hello,

i am getting Floating point exception error in finding Drag force over solar panel using udf log inlet velocity, during the initial start of the iterations. I am using kw sst model, and the panel(2.4mx7.2mx50mm) is at inclination of 45 Degree in a domain(32mx16mx10m).My inlet log velocty udf is as follows:

#include "udf.h" 

 

DEFINE_PROFILE(log_velocity,thread,index)

{

real y[ND_ND]; 

real x;

face_t f;

 

begin_f_loop(f,thread) 

{

F_CENTROID(y,f,thread);

x = y[1];

F_PROFILE(f,thread,index) = 17.5*log(x/0.03)/log(10/0.03);

}

end_f_loop(f,thread)

}

 

Error: floating point exception

Error Object: #f

Registering ReportDefFiles, ()

Registering Udf, ("C:\Users\User\Desktop\Jubayer\profile.c")

 

Error: WorkBench Error: Could not handle event: ParameterEvent

Error Object: #f

 

Error: WorkBench Error: Could not handle event: ParameterEvent

Error Object: #f

 

Error: WorkBench Error: Could not handle event: ParameterEvent

Error Object: #f

 

Error: WorkBench Error: Could not handle event: ParameterEvent

Error Object: #f

 

 

Order By: Standard | Newest | Votes
rwoolhou posted this 26 February 2019

You'd be better asking this in the fluids section. Check the UDF against the example in the documentation and also check the model y axis range: ie is y always positive?

  • Liked by
  • imransheikh
imransheikh posted this 26 February 2019

Thanks for reply,

model y-axis is positive, and the UDF posted above is also correct.

But, why the UDF not read by Fluent, i dont understand!

rwoolhou posted this 26 February 2019

 The error doesn't say anything about the UDF not being read. Please can you post an image of the inlet bc panel?

Close