• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

non compila le udf

  • Thread starter Thread starter Brick
  • Start date Start date

Brick

Guest
Hello everyone,
I have to find the non stationary motion field, the portance and the resistance for an oscillating wing profile in a sinusoidal way around an average inclination of 15° and invested by a constant air flow. I am doing a thesis inherent in the operation of vertical axis wind turbines (vawt) called darrieus. This part of work I need to compare the experimental data I found in literature with the results of the solutor I decided to use (k-omega model).
I have a problem with compiling udfs http://www.cad3d.it/forum1/images/smilies/confused.gif... and before writing this post I really tried them all! I need the udf to impose on mesh content the desired oscillation.

I go to "define-->user define-->functions-->compiled"
first load the file "meshrotante.c" I wrote, then click "build", and I get the following message:
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")()

done.
Then I click "load" to upload the library I thought I created correctly (see that in the above message there does not seem to be any errorhttp://www.cad3d.it/forum1/images/gianni/finger002.gif), but unfortunately it appears:http://www.cad3d.it/forum1/images/smilies/eek.gif"c:/users/riccardo/desktop/tesi 5/simulations/3 profile isolated naca0015"

opening library "libudf". . .
error: open_udf_library: impossible to find the specified file.
in the folder that was created there is the .log file, and inside it is written:"cl" is not recognized as internal or external command,
an executable program or a batch file.
nmake : u1077: 'c:\windows\system32\cmd.exe': return code '0x1'
Stop.
further information:
-The errors are present even if I use the sample program lines found in the online guide, so the bug should not be charged to the code, written by me, which I try to compile.
-the external compiler I use is "microsoft visual studio professional 2010 beta 2", but before that I used "microsoft visual c++ 2008 express edition" getting the same errors.
- to "connect" fluent to microsoft visual," inside the latter I go on "tools-->attach to process... "
-the .cas and .c file are contained in the same folder, so the error is not even here.

thank you in advance for anyone who wants to help me.http://www.cad3d.it/forum1/images/smilies/smile.gif
 
I partially solved the problem:
in visual studio I go on "tools-->visual study command prompt", opens the prompt of dos emulator commands, and from I start the fluent.

now the error that appears to me is the following

I do "build"
deleted old libudf\ntx86\2ddp\libudf.dll
1 file copiati.
1 file copiati.
(system "copy c:\fluent.inc\fluent6.3.26\src\makefile_nt.udf libudf\ntx86\2ddp\makefile")
1 file copiati.
(chdir "libudf")()
(chdir "ntx86\2ddp")()
meshrotante.c
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'
so now actually error is being compiled

then I try to do "load", and naturally gives me:"c:/users/riccardo/desktop/tesi 5/simulations/3 profile isolated naca0015"

opening library "libudf". . .
error: open_udf_library: impossible to find the specified file.

error object: ()
What can I do?
Thank you! !
 
ho trovato la soluzione, copiata da cfd online.com

the warning mess was coming since in the header file of machine.h in the scr folder of fluent, the
#define stdout
#define stderr
#define stdin
were redifined.
so i made them as comments in the machine.h
then the warning message was not coming.
and udf ware build and loaded properly.
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top