November 8, 2019 at 12:40 ambn90Subscriber
I just need help with the basics of loading a UDF into Polyflow. I am using an example UDF about strain hardening but I keep getting error about invalid argument and the solver fails with a non-zero exit code of:1.
Can you help me about solving this error?
Your guidance and any information will be very helpful.
November 21, 2019 at 10:03 amRobAnsys Employee
Have you tried one of the examples from manual/training materials? The code could be wrong, correct but not suitable for Polyflow or there's a problem with the compiler: once you know which it's (usually) easier to fix.
November 22, 2019 at 12:49 ambn90Subscriber
Thank you very much for your answer. I tried to follow Ex. 99, which is also about elongational viscosity, using a udf from training materials and I modified the VS after your suggestions. I am still getting error about the udf file. In the listing viewer it says "This file does not exist or has not read access. Please, relaunch Polyflow with a valid syntax and/or correct values." although I loaded the udf file and executed Polyflow with the -f option. How can I solve this problem?
I appreciate your guidance. Thank you.
November 22, 2019 at 11:29 amRobAnsys Employee
If you copied the file from documentation check for white space characters: they cause problems in Fluent so I'd be surprised if Polyflow was any different.
November 25, 2019 at 1:04 pmBenjamin DucoeurAnsys Employee
Example 12 explains how to use User Defined Functions with Polyflow. Have you tested it already? Please also note that those example show Polyflow usage in stand alone. Not within ANSYS Workbench.
November 27, 2019 at 2:23 ambn90Subscriber
Hello rwoolhou and bducoeur,
Thank you very much. I appreciate your help and guidance about this issue. I solved the problem. It is related with the pathway of the udf file. I realized that the pathway on the command line is different from the pathway that udf has. When I import the udf, it goes directly to the inputs however on the command line the pathway shows the file of the simulation. When I moved the udf file, the computation succeeded.
I would like to ask you one more question. Is there a way to execute the Polyflow with the -f option within the ANSYS Workbench?
Thank you for your help.
November 27, 2019 at 9:45 amBenjamin DucoeurAnsys Employee
You’re welcome and thanks for the feedback.
Using udf in Workbench in a bit different. Here is the procedure in Workbench:
-Right click on Setup/ then Import UDF and select the udf you wish to use.
-Right click on solution then preference/Polyflow
-Activate “Use a UDF” (this is the equivalent of using the -f)
-Select the udf you wish to use
November 27, 2019 at 10:57 pmbn90Subscriber
Thank you very much for your help.
- 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.
- 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
© 2023 Copyright ANSYS, Inc. All rights reserved.