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

RE: UDF int expectedchip-exec type error

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By yashganatra
  • 1 Post By AlexanderZ

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 7, 2013, 07:41
Default RE: UDF int expectedchip-exec type error
  #1
Member
 
Yash Ganatra
Join Date: Mar 2013
Posts: 67
Rep Power: 13
yashganatra is on a distinguished road
Attached is the UDF - I have combined two UDF's from the tutorial regarding giving an inlet velocity profile and a source term in the X-momentum eqn. Separately they are working fine but when I combine them by interpreting, this the error:

Error
chip-exec: combined: wrong return type:
float udf function expectedchip-exec: combined: argument 1:
incorrect type (38): int expectedchip-exec: combined:
argument 2: incorrect type (5): pointer expectedchip-exec: combined:
argument 3: incorrect type (0): pointer expectedchip-exec: combined:
argument 4: incorrect type (0): int expected

Also I have a fundamental doubt:
In a UDF like this where I have inlet velocity variable and also a source term, I will hook the UDF in Inlet velocity and Sources ; the same UDF is attached to inlet velocity and momentum eqn ; but how does FLUENT distinguish between the application of these two? What if it confuses between the condition?

I hope I have made my point clear. I am a beginner and learning about UDF


Thanks,
Yash
Attached Files
File Type: c combined.c (659 Bytes, 24 views)
yashganatra is offline   Reply With Quote

Old   June 7, 2013, 09:33
Default
  #2
Member
 
Yash Ganatra
Join Date: Mar 2013
Posts: 67
Rep Power: 13
yashganatra is on a distinguished road
I got the solution after scouting around earlier threads.


Yash
dagang likes this.
yashganatra is offline   Reply With Quote

Old   April 15, 2015, 20:42
Default having the same problem
  #3
New Member
 
Join Date: Mar 2014
Posts: 3
Rep Power: 12
HPUR is on a distinguished road
Hi,

I'm getting the same error .Could you please let me know how did you figure out to eliminate this error?

Thanks
HPUR is offline   Reply With Quote

Old   January 5, 2020, 06:25
Default
  #4
New Member
 
Join Date: Sep 2018
Posts: 8
Rep Power: 8
dagang is on a distinguished road
Quote:
Originally Posted by yashganatra View Post
I got the solution after scouting around earlier threads.


Yash
Can you share your solution with us? I have the same problem.Thanks.
dagang is offline   Reply With Quote

Old   January 5, 2020, 22:51
Default
  #5
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
in code above was
Code:
source = dS[eqn] = 0. ;
to be
Code:
{source = 0. ;
dS[eqn] = 0. ;}
dagang likes this.
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Reply

Tags
error udf, fluent - udf, source terms, udf and programming


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
error compiling modified applications yvyan OpenFOAM Programming & Development 21 March 1, 2016 05:53
Compiling dynamicTopoFvMesh for OpenFOAM 2.1.x Saxwax OpenFOAM Installation 25 November 29, 2013 06:34
Errors in UDF shashank312 Fluent UDF and Scheme Programming 6 May 30, 2013 21:30
CGNS lib and Fortran compiler manaliac Main CFD Forum 2 November 29, 2010 07:25
UDF: DEFINE_CG_MOTION for vertical jump motion of an electrode! alban Fluent UDF and Scheme Programming 2 June 8, 2010 19:54


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