|
[Sponsors] |
January 1, 2014, 11:31 |
problems compiling udf
|
#1 |
New Member
Join Date: Jan 2014
Posts: 5
Rep Power: 12 |
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 05:36. |
|
January 3, 2014, 05:46 |
|
#2 |
New Member
Join Date: Jan 2014
Posts: 5
Rep Power: 12 |
I need a solution.
My project can not move forward if you do not solve the problem can someone help me? |
|
January 3, 2014, 08:17 |
|
#3 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26 |
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. |
|
January 3, 2014, 08:45 |
|
#4 | |
New Member
Join Date: Jan 2014
Posts: 5
Rep Power: 12 |
Quote:
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 |
||
January 3, 2014, 09:37 |
|
#5 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26 |
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. |
|
January 3, 2014, 10:15 |
|
#6 | |
New Member
Join Date: Jan 2014
Posts: 5
Rep Power: 12 |
Quote:
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 |
||
January 4, 2014, 21:31 |
|
#7 |
Member
CAO Liushuai
Join Date: Apr 2012
Posts: 30
Rep Power: 14 |
||
January 5, 2014, 04:54 |
|
#8 |
New Member
Join Date: Jan 2014
Posts: 5
Rep Power: 12 |
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? |
|
January 5, 2014, 09:48 |
|
#9 |
Member
CAO Liushuai
Join Date: Apr 2012
Posts: 30
Rep Power: 14 |
Maybe you can type your code here, maybe i can give you some help.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
About UDF compiling issues: 'nmake' | Haoyin Shan | Fluent UDF and Scheme Programming | 15 | November 4, 2019 18:05 |
Errors when Compiling UDF: error C2040/error C2099 | Julian K. | FLUENT | 1 | December 21, 2008 00: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 |