problems compiling udf
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:):):D |
I need a solution.
My project can not move forward if you do not solve the problem can someone help me? |
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. |
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 |
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. |
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 |
|
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? :) |
Maybe you can type your code here, maybe i can give you some help.
|
All times are GMT -4. The time now is 03:38. |