CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   RE: UDF int expectedchip-exec type error (https://www.cfd-online.com/Forums/fluent-udf/118961-re-udf-int-expectedchip-exec-type-error.html)

yashganatra June 7, 2013 06:41

RE: UDF int expectedchip-exec type error
 
1 Attachment(s)
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

yashganatra June 7, 2013 08:33

I got the solution after scouting around earlier threads.


Yash

HPUR April 15, 2015 19:42

having the same problem
 
Hi,

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

Thanks

dagang January 5, 2020 05:25

Quote:

Originally Posted by yashganatra (Post 432647)
I got the solution after scouting around earlier threads.


Yash

Can you share your solution with us? I have the same problem.Thanks.

AlexanderZ January 5, 2020 21:51

in code above was
Code:

source = dS[eqn] = 0. ;
to be
Code:

{source = 0. ;
dS[eqn] = 0. ;}



All times are GMT -4. The time now is 03:07.