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

Compile udf error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 13, 2015, 23:30
Default Compile udf error
  #1
New Member
 
Join Date: Dec 2015
Posts: 10
Rep Power: 11
Cfdbug is on a distinguished road
Hello,everyone. My softwares are Windows Xp 64bites, ansys 14.0 and Microsoft visual studio 2010.
When I compile a simple udf. The messages are as followed.ImageUploadedByCFD Online Forum1450063284.256780.jpg. No error shows. But I find that no libudf is produced.
When I click load,there shows a message that the udf library you are trying to load (libudf)is not compiled…….
there is no any wrong when I interpreted the udf and the udf work well when interpreted.
Any one can help me with the compile udf error?
thank you very much
Cfdbug is offline   Reply With Quote

Old   December 15, 2015, 09:03
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
Does this happen with all UDF's or with one specific file?

Can you compile the following code:

Code:
#include "udf.h"
 
DEFINE_PROFILE(inlet_x_velocity, thread, position)
 {
    face_t f;
    begin_f_loop(f,thread)
      {
        F_PROFILE(f, thread, position) = 0;
      }
    end_f_loop(f, thread)
}
If this works for you, the problem is in your code, and you will have to share your code to get an answer.
pakk is offline   Reply With Quote

Old   December 17, 2015, 20:03
Default
  #3
New Member
 
Join Date: Dec 2015
Posts: 10
Rep Power: 11
Cfdbug is on a distinguished road
Thank u very much。I reinstalled the ansys 14.0 and vs 2010 in default folder,it works well now.
Cfdbug 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
Compiling dynamicTopoFvMesh for OpenFOAM 2.1.x Saxwax OpenFOAM Installation 25 November 29, 2013 06:34
UDF: DEFINE_CG_MOTION for vertical jump motion of an electrode! alban Fluent UDF and Scheme Programming 2 June 8, 2010 19:54
compile errors of boundary condition "expDirectionMixed" liying02ts OpenFOAM Bugs 2 February 1, 2010 21:11
How to get the max value of the whole field waynezw0618 OpenFOAM Running, Solving & CFD 4 June 17, 2008 06:07
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51


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