CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > FLUENT

problems compiling udf

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   January 1, 2014, 12:31
Exclamation problems compiling udf
  #1
New Member
 
Join Date: Jan 2014
Posts: 5
Rep Power: 3
Spartacus1 is on a distinguished road
Hello everyone I am new in this forum and I hope you can help me with my problem.
I'm trying to crare a motion of sloshing, with Fluent, in a rectangular tank through dynamic mesh.
I have a problem of compilation of the UDF, in particular the library is not created and load by fluent showing the following error:

Deleted old libudf \ ntx86 \ 2ddp \ libudf.dll
******** 1 file copied.
(system "copy C: \ Fluent.Inc \ fluent6.3.26 \ src \ makefile_nt.udf libudf \ ntx86 \ 2ddp \ makefile")
******** 1 file copied.
(chdir "libudf") ()
(chdir "ntx86 \ 2ddp") ()
velocitax.c
# Udf_names.c Because Of Generating makefile velocitax.obj

Done.
"c :/ users / manna / desktop / exercises with vx"

Opening library "libudf" ...
Error: open_udf_library: Could not find the file specified.

Error Object: ()

can someone help me??
thanks

Last edited by Spartacus1; January 3, 2014 at 06:36.
Spartacus1 is offline   Reply With Quote

Old   January 3, 2014, 06:46
Default
  #2
New Member
 
Join Date: Jan 2014
Posts: 5
Rep Power: 3
Spartacus1 is on a distinguished road
I need a solution.
My project can not move forward if you do not solve the problem
can someone help me?
Spartacus1 is offline   Reply With Quote

Old   January 3, 2014, 09:17
Default
  #3
Senior Member
 
Join Date: Nov 2013
Posts: 670
Rep Power: 9
pakk is on a distinguished road
It could be because you have spaces in your folder name.

"c :/ users / manna / desktop / exercises with vx"

Try changing them to underscores (exercises_with_vx), it might help.
pakk is offline   Reply With Quote

Old   January 3, 2014, 09:45
Default
  #4
New Member
 
Join Date: Jan 2014
Posts: 5
Rep Power: 3
Spartacus1 is on a distinguished road
Quote:
Originally Posted by pakk View Post
It could be because you have spaces in your folder name.

"c :/ users / manna / desktop / exercises with vx"

Try changing them to underscores (exercises_with_vx), it might help.

hello Pakk
I tried to change the name of the folder, but I have not solved.
the problem that appears in the log file is as follows:

Microsoft (R) 32-bit C / C + + Optimizing Compiler version 16.00.30319.01 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.

"sed" not recognized as an internal or external command,
* operable program or batch file.
NMAKE: U1077: 'sed': return code '0 x1 '
Stop.

can you help me?
If you really want I can send you the code c that I have written
Spartacus1 is offline   Reply With Quote

Old   January 3, 2014, 10:37
Default
  #5
Senior Member
 
Join Date: Nov 2013
Posts: 670
Rep Power: 9
pakk is on a distinguished road
I don't think your udf is giving the problems, that would give different kinds of error messages. You are probably not able to compile any udf at all (am I right?)

It may have to do with your systems settings, or with the way you are trying to compile them. Are you starting Fluent from the SDK command prompt? I am no expert on these things: it works on my computer, but I didn't install it.
pakk is offline   Reply With Quote

Old   January 3, 2014, 11:15
Default
  #6
New Member
 
Join Date: Jan 2014
Posts: 5
Rep Power: 3
Spartacus1 is on a distinguished road
Quote:
Originally Posted by pakk View Post
I don't think your udf is giving the problems, that would give different kinds of error messages. You are probably not able to compile any udf at all (am I right?)

It may have to do with your systems settings, or with the way you are trying to compile them. Are you starting Fluent from the SDK command prompt? I am no expert on these things: it works on my computer, but I didn't install it.
Dear Pakk
I created a folder on the desktop where I put mesh files and code c. than
i start fluent 6.3.26 from the command prompt Visual Studio 2010 and I adopt the compilation process of the interface Fluent:
*


Define> user defined> function> compiled> add surce> build library> load

this is my procedure ..

Something wrong in your opinion?
if it is something that concerns the settings of the system you can tell me what i have to make
thanks for your answers
Spartacus1 is offline   Reply With Quote

Old   January 4, 2014, 22:31
Default
  #7
New Member
 
CAO Liushuai
Join Date: Apr 2012
Posts: 26
Rep Power: 5
shuai_manlou is on a distinguished road
UDF
shuai_manlou is offline   Reply With Quote

Old   January 5, 2014, 05:54
Default
  #8
New Member
 
Join Date: Jan 2014
Posts: 5
Rep Power: 3
Spartacus1 is on a distinguished road
thanks I solved the problem of compilation ,
it concerned the setting of environmental variables , I can now load the librer .
I still remain two problems :
1 . fluent shows some worning :


c: \ fluent.inc \ fluent6.3.26 \ src \ machine.h (114) : warning C4005 : ' stdout ' : macro redefinition
********C: \ Program Files \ Microsoft Visual Studio 10.0 \ VC \ INCLUDE \ stdio.h (158) : see previous definition of ' stdout '
c: \ fluent.inc \ fluent6.3.26 \ src \ machine.h (115) : warning C4005 : ' stderr ' : macro redefinition
********C: \ Program Files \ Microsoft Visual Studio 10.0 \ VC \ INCLUDE \ stdio.h (159) : see previous definition of ' stderr '
c: \ fluent.inc \ fluent6.3.26 \ src \ machine.h (116) : warning C4005 : ' stdin ' : macro redefinition
********C: \ Program Files \ Microsoft Visual Studio 10.0 \ VC \ INCLUDE \ stdio.h (157) : see previous definition of ' stdin '
# Linking libudf.dll Because Of makefile user_nt.udf udf_names.obj velocitax.obj
Microsoft (R) Incremental Linker Version 10.00.30319.01
Copyright (C ) Microsoft Corporation. All rights reserved.

***Creating the library and object libudf.lib libudf.exp in progress ...

Done .
"c :/ users / manna / desktop / exercises "

Opening library " libudf " ...
Library " libudf \ ntx86 \ 2ddp \ libudf.dll " opened
velocitax
Done .

I can neglect them ? ?

2 . I have to simulate a motion of sloshing in a rectangular tank in particular I have to give the fluid a rate of oscillation of the type :

vx = A * f * sin ( f * t)

I have created a UDF ufilizzando the following function:

DEFINE_CG_MOTION

so as to assign the speed vx to the center of gravity.
then hooking this function by activating dynamic mesh and applying in zone> rigid body> udf motion.
my question is the following:
is it right to use dynamic mesh to create an oscillatory motion of the fluid?
there are other methods to assign the vx fluid?

Spartacus1 is offline   Reply With Quote

Old   January 5, 2014, 10:48
Default
  #9
New Member
 
CAO Liushuai
Join Date: Apr 2012
Posts: 26
Rep Power: 5
shuai_manlou is on a distinguished road
Maybe you can type your code here, maybe i can give you some help.
shuai_manlou is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
About UDF compiling issues: 'nmake' Haoyin Shan Fluent UDF and Scheme Programming 7 January 2, 2013 11:49
Errors when Compiling UDF: error C2040/error C2099 Julian K. FLUENT 1 December 21, 2008 01:23
UDF problems 2 Paolo Lampitella FLUENT 2 September 7, 2005 19:05
Compiling UDF on SUSE 8.0 L-P FLUENT 0 September 23, 2003 07:43
DEFINE_GEOM UDF Problems Pat FLUENT 0 August 14, 2003 13:16


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