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/)
-   -   UDF compilation/ platform issue! Help!! :s (https://www.cfd-online.com/Forums/fluent-udf/132859-udf-compilation-platform-issue-help-s.html)

lmarf88 April 7, 2014 08:44

UDF compilation/ platform issue! Help!! :s
 
3 Attachment(s)
Hi,

I am currently modelling a 2D open pipe flow model, simulating the motion of a piston in a rapid compression machine.

I want to use dynamic meshing to move the "piston wall" to analyse the effects this has on the flow. In order to create dynamic meshing zones, I have created a UDF, define_geom macro, using a sin function to define the motion.

However when I try to compile this UDF to the model, I get an error message stating "The UDF library you are trying to load (libudf) is notpiled for 2ddp on the current platform (win64). The system cannot find the file specified."

The source .c file is in the same folder as the case file, so I cannot think why it cannot find the file. :confused:

I have attached a screen shot of my issue, case file and also included the code I have written.

Attachment 29944

Attachment 29945

Attachment 29946

If anybody could help at all, I would be extremely grateful!

Thanks in advance,
Lisa :D

yashganatra April 9, 2014 04:17

Try to start FLUENT from Windows SDK command prompt (for 64-bit Windows OS) or through Visual Studio command prompt (for 32 bit windows OS)
Refer:
http://www.cfd-online.com/Wiki/Fluent_FAQ

Regards,
Yash Ganatra

lmarf88 April 9, 2014 09:27

Yash,

Thank you for your reply! Is windows SDK something that needs downloading? Because I am using computers at university so do not have administration access.

Lisa

yashganatra April 9, 2014 09:52

Yes. it requires downloading. For 64 bit windows you need to have both Visual C++ 2008/2010 (either express or full edition) and Windows SDK (6 or 7). Then you have to set Path in Environment variables in My Computer-->System Properties--> Advanced system settings-->Environment Variables-->System Variables-->Path.
See the FAQ link for the entry that you need to make.

Regards,
Yash Ganatra

lmarf88 April 11, 2014 13:11

Thank you for your help!


All times are GMT -4. The time now is 09:03.