CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   Compile Paralel UDF (.NET Framework 4.5.1) (https://www.cfd-online.com/Forums/fluent-udf/173247-compile-paralel-udf-net-framework-4-5-1-a.html)

brams June 16, 2016 05:47

Compile Paralel UDF (.NET Framework 4.5.1)
 
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 :confused:

Any recommendation would be really helpful

Thanks!

Bruno Machado June 16, 2016 05:55

Quote:

Originally Posted by brams (Post 605134)
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 :confused:

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?

brams June 16, 2016 07:56

Quote:

Originally Posted by Bruno Machado (Post 605137)
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?

`e` June 16, 2016 08:09

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?

brams June 16, 2016 08:15

Quote:

Originally Posted by `e` (Post 605156)
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

`e` June 16, 2016 08:57

What is the UDF? Ensure you're recompiling correctly by checking my compiling process for Fluent UDFs with an existing library loaded.

brams June 16, 2016 09:42

Quote:

Originally Posted by `e` (Post 605174)
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 June 17, 2016 04:14

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


All times are GMT -4. The time now is 08:44.