CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   Dynamic mesh (http://www.cfd-online.com/Forums/fluent/31921-dynamic-mesh.html)

Big Stone August 1, 2003 23:06

Dynamic mesh
 
Hi, Guys

Does anybody practise the tutorial "dynamic mesh valve " in Fluent 6.1.18 Win XP ? I can not compile the UDF. Even I exactly follow the direction Mr. Alex gives in prevous posts. There are still have some errors as follows: I hope anyone can give me a clue. Thnaks in advance.

1 file(s) copied. (system "move user_nt.udf libudf\ntx86\2d")0 (system "copy C:\FLUENT.INC\fluent6.1\src\makefile_nt.udf libudf\ntx86\2d\makefile") 1 file(s) copied. 0 (chdir "libudf")() (chdir "ntx86\2d")()

Done.

Opening library "libudf"... Error: open_udf_library: The system cannot find the file specified.

Error Object: ()

Prasad Laxman Kane August 2, 2003 03:03

Re: Dynamic mesh
 
Hi,

I faced similar problem. When I loaded VC++ ver. 6.0 on my compi, this err message vanished, and i could compile the udf properly. You can try this.

Bye, Prasad Laxman Kane

Big Stone August 2, 2003 11:35

Re: Dynamic mesh
 
Hi, Prasad

Thank you very much. I load VC++ on my computer but I still can not compile UDF. Could you show me the procedures you complied UDF. Thank you again.

Big Stone


ccc August 3, 2003 10:36

Re: Dynamic mesh
 
hi, Big Stone

I think you should try to give the full path of the *.dll file, such as D:/.../../udf/ntx86/2d/libudf.dll.

good luck.

Big Stone August 3, 2003 11:04

Re: Dynamic mesh
 
Hi, CCC

Thank you very much . You know, I can not compile UDF, so I could not get libudf.ill file. In FLuent6.1, you don't need to set path. I only set Fluent and C++ compiler in the same working directory. I don't any idea for my problem.

ccc August 3, 2003 13:42

Re: Dynamic mesh
 
hi, big stone:

i think i have misunderstand your meanings. I am not sure that the erro messages you have posted are integral or you have omitted some parts.

At the current stage, I suggest you to run vcvars32.bat in a dos windows. this file is located in the directory \Program Files\Microsoft Visual Studio\VC98\BIN if you have VC installed. Moreover, pls check all the environment variables for Fluent have been set proper.

if it does not work still, pls check if all the files necessary for compiling exsits, for example, makefile, user_nt and etc. To track down the erro, I think, the best way is to run the command nmake. good luck.

Big Stone August 3, 2003 15:23

Re: Dynamic mesh
 
Hi, CCC

Thanks again. I think you are right.The problem is in the C++ compiler environment setting . I install higher vesion C++ in my computer. I followed your direction to run vcvars32 , in CP there apppears following information. it looks the C++ is not woking. I don't know Why? BTW in Fluent6.1, the makefile and user_nt is automatically generated when compiled.

Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp.

C:\Program Files\Microsoft Visual Studio .NET\Vc7\bin>vcvars32

C:\Program Files\Microsoft Visual Studio .NET\Vc7\bin>"C:\Program Files\Microsof t Visual Studio .NET\Common7\Tools\"vsvars32.bat Setting environment for using Microsoft Visual Studio .NET tools. (If you also have Visual C++ 6.0 installed and wish to use its tools from the command line, run vcvars32.bat for Visual C++ 6.0.)


ccc August 3, 2003 23:21

Re: Dynamic mesh
 
hi, big stone

have you tried to run the command "nmake" in the directory "ntx86/2d/"? what's the erro messages?

Big Stone August 4, 2003 09:23

Re: Dynamic mesh
 
Hi, CCC

Finally I got it with your great help. Your are really appreciated. Thanks

Wei

Pat August 4, 2003 21:39

Re: Dynamic mesh
 
I have been having the same problems with the tutorial and your discussion has been quite helpful. I'm still getting one error message when compiling the UDF, the file LIBC.LIB is not being opened properly. I have tried to set the path, should I copy the LIBC.LIB file to a certain directory?

Here is the error message in fluent:

1 file(s) copied.

(system "move user_nt.udf libudf\ntx86\2d")0 (system "copy c:\fluent.inc\fluent6.1\src\makefile_nt.udf libudf\ntx86\2d\makefile") 1 file(s) copied.

0

(chdir "libudf")()

(chdir "ntx86\2d")()

valve.c

# Generating udf_names.c because of makefile valve.obj

udf_names.c

# Linking libudf.dll because of makefile user_nt.udf udf_names.obj valve.obj

Microsoft (R) Incremental Linker Version 6.00.8447

Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

LINK : fatal error LNK1104: cannot open file "LIBC.lib"

Done.

Thank you for any help, Pat

Big Stone August 4, 2003 22:47

Re: Dynamic mesh
 
Hi, Pat

I think you may run nmake in Dos between building and loading .

Big Stone


Pat August 5, 2003 02:26

Re: Dynamic mesh
 
Thank you, I believe that was the problem.

-Pat

Prasad Laxman Kane August 5, 2003 11:12

Re: Dynamic mesh
 
Hi,

If U install VC++ & the service pack 5, all the problem will be solved. There are 4 variables as include, MSDevDir,lib and path.

Include has 3 paths, MSDevDir has 1, lib has 2 and path has 4/5 ( I am not sure). Check this by Right clicking on My Comp. icon->properties->advanced->Environment variables. ( I hope u r working on Windows).. Thats it..

Bye

Big Stone August 5, 2003 13:34

Re: Dynamic mesh
 
Hi, Prasad

Can you show more details in setting 3 path? Thanks

Big Stone


All times are GMT -4. The time now is 10:04.