CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Error of UDF paralization (libudf.dll : fatal error LNK1120: 4 )

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 11, 2020, 09:43
Default
  #21
New Member
 
Steve
Join Date: Mar 2020
Location: Beijing
Posts: 17
Rep Power: 6
nimadeCFD is on a distinguished road
Dear Vinerm,
Thank you. I don't find Developer or x64 or x86 command prompt. Neither do I find it when I search the install folder of VS2010.
nimadeCFD is offline   Reply With Quote

Old   March 11, 2020, 09:49
Default Version
  #22
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
This might also be version dependent. Search by command or vs and then look within the results if it shows anything that is command prompt from VS.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   March 11, 2020, 09:58
Default Try the code attached
  #23
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
Try compiling the usual way with the file that I have attached. Its the same file with minor modifications.
Attached Files
File Type: c test.c (417 Bytes, 5 views)
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   March 11, 2020, 10:02
Default
  #24
New Member
 
Steve
Join Date: Mar 2020
Location: Beijing
Posts: 17
Rep Power: 6
nimadeCFD is on a distinguished road
Dear Vinerm,
I got the developer command prompt and opened it in 64bit. But I couldn't cd the path to the folder containing the fluent.exe.
Thank you very much.
nimadeCFD is offline   Reply With Quote

Old   March 11, 2020, 10:07
Default Commands
  #25
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
In Windows, you cannot cd to a path directly if it is in a different drive. First, you need to change drive. Best would be to go the directory where you have your UDF source and case file. If it is F:, then simply use cd. If not, then use the name of the drive. E.g., if you want to change to drive c, then give command c:. Once in the directory where you have the file, use full path to start Fluent, i.e., C:\Program Files\Ansys Inc\v180\fluent\ntbin\win64\fluent.exe
Yu Sai likes this.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   March 11, 2020, 10:36
Default
  #26
New Member
 
Steve
Join Date: Mar 2020
Location: Beijing
Posts: 17
Rep Power: 6
nimadeCFD is on a distinguished road
Dear Vinerm,
I have tried both methods you mentioned. Unfortunately, both failed eventually. Still puzzled.
Thank you.
nimadeCFD is offline   Reply With Quote

Old   March 11, 2020, 10:39
Default Try a simple one
  #27
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
Try with a very simple program

Code:
#include "udf.h"

DEFINE_EXECUTE_ON_LOADING(test, libtest)
{
#if !RP_HOST
    Message0("This one works\n Hopefully\n");
#endif
}
nimadeCFD and Yu Sai like this.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   March 11, 2020, 11:05
Default
  #28
New Member
 
Steve
Join Date: Mar 2020
Location: Beijing
Posts: 17
Rep Power: 6
nimadeCFD is on a distinguished road
Dear Vinerm,
The simple code is successful. Then the former UDF success too. It is really amazing!!!
Thank you very very very much from my deep heart. Salute!!!
nimadeCFD is offline   Reply With Quote

Old   March 11, 2020, 12:06
Default Good
  #29
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
Nice to know that it finally worked.
nimadeCFD likes this.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   March 12, 2020, 00:10
Default
  #30
New Member
 
Steve
Join Date: Mar 2020
Location: Beijing
Posts: 17
Rep Power: 6
nimadeCFD is on a distinguished road
Dear Vinerm,
Thank you. It is my first time that I posted a thread here and received your nice respond. It is no exaggeration to say this is an awesome experience. Now I am attempting to do simulation in HPC environment.
Thank you again.
nimadeCFD is offline   Reply With Quote

Old   March 12, 2020, 06:51
Default Welcome
  #31
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
Welcome to the Party
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Reply

Tags
error, libudf, paralization, udf


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic Mesh UDF Qureshi FLUENT 7 March 23, 2017 07:37
How to add a UDF to a compiled UDF library kim FLUENT 3 October 26, 2011 21:38
UDF problems...FATAL ERROR! Paolo Lampitella FLUENT 1 September 8, 2005 10:07
UDF...UDF...UDF...UDF Luc SEMINEL FLUENT 0 November 25, 2002 04:03
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 04:01


All times are GMT -4. The time now is 02:40.