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

Receiving errors while building UDF, but it loads just fine

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 29, 2017, 13:18
Default Receiving errors while building UDF, but it loads just fine
  #1
Senior Member
 
ali
Join Date: Oct 2009
Posts: 318
Rep Power: 18
alinik is on a distinguished road
Hi all,

I receive numerous errors when I compile and build my UDF codes but I have no problem loading them and using them.

Some of the errors are:

error: Domain undeclared (first use in this function)
error: (Each undeclared identifier is reported only once
error: for each function it appears in.)

Why is that?

Thanks,
Ali
alinik is offline   Reply With Quote

Old   August 30, 2017, 06:13
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
The error "Domain undeclared" means that you use the variable "Domain", but you did not declare this variable. Without seeing your code, I can not give more detailed information.

And when you load and use the udf anyway, you will get results for the most recent udf code that worked. So the code that you wrote, and the code that Fluent uses, will not be the same. Avoid this!
pakk is offline   Reply With Quote

Old   August 30, 2017, 14:41
Default
  #3
Senior Member
 
ali
Join Date: Oct 2009
Posts: 318
Rep Power: 18
alinik is on a distinguished road
Understood,
Thank you so much Pakk
alinik is offline   Reply With Quote

Reply


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
pimpleDyMFoam computation randomly stops babapeti OpenFOAM Running, Solving & CFD 5 January 24, 2018 06:28
Errors in melting of ice-particles in ice-slurry flow UDF devshi Fluent UDF and Scheme Programming 3 November 28, 2016 13:45
Stuck in a Rut- interDyMFoam! xoitx OpenFOAM Running, Solving & CFD 14 March 25, 2016 08:09
AMI interDyMFoam for mixer nu problem danny123 OpenFOAM Programming & Development 8 September 6, 2013 03:34
Compilation error OF1.5-dev on Suse10.3 darenyang OpenFOAM Installation 0 April 29, 2009 05:55


All times are GMT -4. The time now is 16:20.