TAGGED: ansys-fluent
-
-
January 31, 2021 at 11:50 am
swapniljagadale505
SubscriberRespected sir,
I am try to do same simulation which is as given ,I am unable to interpret udf , it is given error as" Parse error in line 2'" . I am attaching photo of udf also . I am using fluent in series only but while compiling it gives error as '"The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform (win64),The system cannot find the file specified."
February 1, 2021 at 4:09 pmKarthik Remella
AdministratorHello,nUDFs with DEFINE_CF_MOTION macro can only be executed as Complied UDFs. You cannot interpret these.nIf you are indeed compiling this UDF, could you please share a screenshot of the error message?nThank you.nKarthiknFebruary 1, 2021 at 4:27 pmKonstantine Kourbatski
Ansys Employeeto add to Karthik's comment, you should not modify a static variable in a C code. Define velx as real inside the macro.nFebruary 2, 2021 at 5:32 amswapniljagadale505
SubscriberRespected sir,n I am using fluent in series only but while compiling it gives error as 'The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform (win64),The system cannot find the file specified.nFor that I had installed visual basic studio 2017, started ANSYS fluent from its command line but it is giving same error as above.nUdf as I had mentioned in video uploaded in your YouTube channel.I had not changed anything. Everything is as per given in video.nPlease help me nThank you,nSwapnilnnFebruary 2, 2021 at 12:29 pmRob
Forum ModeratorThe error means you've not got the compiler hooked up so that Fluent can see it. It's also that Fluent is now parallel most of the time, but you only need to parallelise UDFs if running on multiple cores and the macros require it. nPlease use 2020R2 or 2021R1 as there's an inbuilt CLANG compiler which removes the need to figure out which bit of MS Studio has been hidden/moved/changed on the Microsoft download page. nFebruary 5, 2021 at 8:08 amswapniljagadale505
SubscriberRespected sir,nThank you for your help.I had solved my problem now it is working fine.I have problem in motion of object .I want vertical motion of object .So I changed UDF but it is not working .Still its motion is in horizontal direction. I nhad done changes which mentioned above.nnPlease help me outn
February 5, 2021 at 11:00 amRob
Forum ModeratorYou've set the code to return vel[0], which means the x-direction in C language. [1] is y and [2] is z. Remember C starts at 0 when counting. Don't worry, nearly everyone either makes the mistake or asks why up is x[1]. nViewing 6 reply threads- The topic ‘Regarding error while interpreting udf file’ is closed to new replies.
Ansys Innovation SpaceTrending discussionsTop Contributors-
3492
-
1057
-
1051
-
965
-
942
Top Rated Tags© 2025 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.
-
The Ansys Learning Forum is a public forum. You are prohibited from providing (i) information that is confidential to You, your employer, or any third party, (ii) Personal Data or individually identifiable health information, (iii) any information that is U.S. Government Classified, Controlled Unclassified Information, International Traffic in Arms Regulators (ITAR) or Export Administration Regulators (EAR) controlled or otherwise have been determined by the United States Government or by a foreign government to require protection against unauthorized disclosure for reasons of national security, or (iv) topics or information restricted by the People's Republic of China data protection and privacy laws.