January 31, 2021 at 11:50 amswapnil13Subscriber
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 RAdministratorHello,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 pmRobAnsys EmployeeThe 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 amRobAnsys EmployeeYou've set the code to return vel, which means the x-direction in C language.  is y and  is z. Remember C starts at 0 when counting. Don't worry, nearly everyone either makes the mistake or asks why up is x. nViewing 6 reply threads
Ansys Innovation Space
- You must be logged in to reply to this topic.
Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.
Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.Trending discussions
- Suppress Fluent to open with GUI while performing in journal file
- Floating point exception in Fluent
- What are the differences between CFX and Fluent?
- Heat transfer coefficient
- Getting graph and tabular data from result in workbench mechanical
- Difference between K-epsilon and K-omega Turbulence Model
- The solver failed with a non-zero exit code of : 2
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error: Received signal SIGSEGV
Top Rated Tags
© 2023 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.