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

Compile Paralel UDF (.NET Framework 4.5.1)

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 16, 2016, 04:47
Default Compile Paralel UDF (.NET Framework 4.5.1)
  #1
New Member
 
Bramantyo
Join Date: May 2016
Location: Java
Posts: 11
Rep Power: 7
brams is on a distinguished road
Hi there

Can anyone give me a recommendation about what software i should install in my computer, so I can compile my UDF in parallel mode?

My computer (Win 64bit) is already installed with .NET Framework 4.5.1, and I don't think I can change it due to its compatibility for other programs.

I've tried MSVS 2010 + SDK 7.1., but they are not working

Any recommendation would be really helpful

Thanks!
brams is offline   Reply With Quote

Old   June 16, 2016, 04:55
Default
  #2
Senior Member
 
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 10
Bruno Machado is on a distinguished road
Quote:
Originally Posted by brams View Post
Hi there

Can anyone give me a recommendation about what software i should install in my computer, so I can compile my UDF in parallel mode?

My computer (Win 64bit) is already installed with .NET Framework 4.5.1, and I don't think I can change it due to its compatibility for other programs.

I've tried MSVS 2010 + SDK 7.1., but they are not working

Any recommendation would be really helpful

Thanks!
the software that compiles the UDF is fluent, regardless of being serial or parallel. can you compile serial UDFs? have you created your UDF as parallel or adapted it to parallel?
Bruno Machado is offline   Reply With Quote

Old   June 16, 2016, 06:56
Default
  #3
New Member
 
Bramantyo
Join Date: May 2016
Location: Java
Posts: 11
Rep Power: 7
brams is on a distinguished road
Quote:
Originally Posted by Bruno Machado View Post
the software that compiles the UDF is fluent, regardless of being serial or parallel. can you compile serial UDFs? have you created your UDF as parallel or adapted it to parallel?
Dear Bruno

Thank you for the response

Yes, actually I've compiled this parallel UDF in FLUENT at my computer. Compile was successful, and worked fine. My computer is 32Bit, and has MSVC++ 2010 Express in it.

But, every time I try to compile this same UDF in lab's computer, it is always showing error message. Lab's computer is 64Bit, and has MSVC++ 2010 Express too.

Maybe my problem is because .NET Framework 4.5.1 is not compatible with MSVC++ 2010, am I wrong?
brams is offline   Reply With Quote

Old   June 16, 2016, 07:09
Default
  #4
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 892
Rep Power: 15
`e` is on a distinguished road
Are both systems running the same revision of ANSYS Fluent? You can't run older versions of Fluent with newer builds of visual studio (can only go the other direction). What's the error message?
`e` is offline   Reply With Quote

Old   June 16, 2016, 07:15
Default
  #5
New Member
 
Bramantyo
Join Date: May 2016
Location: Java
Posts: 11
Rep Power: 7
brams is on a distinguished road
Quote:
Originally Posted by `e` View Post
Are both systems running the same revision of ANSYS Fluent? You can't run older versions of Fluent with newer builds of visual studio (can only go the other direction). What's the error message?
Dear 'e'

Thank you for the response

The error message is:
libudf.dll : fatal error LNK1120: 8 unresolved externals

My computer (32 bit) FLUENT version is 15.0.7, and lab's computer (64 bit) is FLUENT 16.0.0
brams is offline   Reply With Quote

Old   June 16, 2016, 07:57
Default
  #6
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 892
Rep Power: 15
`e` is on a distinguished road
What is the UDF? Ensure you're recompiling correctly by checking my compiling process for Fluent UDFs with an existing library loaded.
`e` is offline   Reply With Quote

Old   June 16, 2016, 08:42
Default
  #7
New Member
 
Bramantyo
Join Date: May 2016
Location: Java
Posts: 11
Rep Power: 7
brams is on a distinguished road
Quote:
Originally Posted by `e` View Post
What is the UDF? Ensure you're recompiling correctly by checking my compiling process for Fluent UDFs with an existing library loaded.
Thank you for the information,

It's an UDF for parallel runs, and I think it's not the syntax problem. I've compiled this UDF just now in my computer, and it works fine, not showing any error.

Then, I moved to lab's computer. I've tried to run Fluent from MSVS command prompt, and the error keep showing when I click "Build" button. Could you please explain to me, what's the cause of "libudf.dll : fatal error LNK1120: 8 unresolved externals" error?
brams is offline   Reply With Quote

Old   June 17, 2016, 03:14
Default
  #8
New Member
 
Bramantyo
Join Date: May 2016
Location: Java
Posts: 11
Rep Power: 7
brams is on a distinguished road
Greetings everyone

So, I've managed to solve my problem

Actually there's nothing wrong about compatibility of NET Framework 4.5.1 and MSVC ++ 2010 as I stated earlier

I followed the step in this link:
http://www.cfd-online.com/Forums/att...using-sdkx.pdf

It seems like my SDK 7.1. was corrupted because of MSVC++ 2010 Redistributable had been installed before installing the SDK 7.1.

Now, the UDF runs smoothly in parallel processing

Cheers
brams is offline   Reply With Quote

Reply

Tags
compile error, parallel code, udf compilation

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
I receive "temperature limited to ... " after I Compile and Hook my UDF nsaeidi Fluent UDF and Scheme Programming 11 March 15, 2019 08:59
Compile udf error Cfdbug Fluent UDF and Scheme Programming 2 December 17, 2015 19:03
Compile c99 standard UDF in Cluster darsonli Fluent UDF and Scheme Programming 0 July 7, 2015 02:58
looking for instructions on how to compile an udf in windows OS Srinivasa Rao Fluent UDF and Scheme Programming 2 May 22, 2015 10:00
Error compile file udf czfluent Fluent UDF and Scheme Programming 24 September 26, 2009 13:24


All times are GMT -4. The time now is 20:49.