TAGGED: ansys-fluent
-
-
January 31, 2021 at 11:50 amswapnil13Subscriber
Respected 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 RemellaAdministratorHello,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 pmKonstantinAnsys 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 amswapnil13SubscriberRespected 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 pmRobForum 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 amswapnil13SubscriberRespected 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 outnFebruary 5, 2021 at 11:00 amRobForum 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 discussions- Non-Intersected faces found for matching interface periodic-walls
- Unburnt Hydrocarbons contour in ANSYS FORTE for sector mesh
- Help: About the expression of turbulent viscosity in Realizable k-e model
- Script error Code: 800a000d
- Cyclone (Stairmand) simulation using RSM
- Fluent fails with Intel MPI protocol on 2 nodes
- error udf
- Diesel with Ammonia/Hydrogen blend combustion
- Mass Conservation Issue in Methane Pyrolysis Shock Tube Simulation
- Script Error
Top Contributors-
1241
-
543
-
523
-
225
-
209
Top Rated Tags© 2024 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.