Fluids

Fluids

Topics relate to Fluent, CFX, Turbogrid and more

basics UDF loading into Polyflow

    • bn90
      Subscriber

      Hello,


      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.


      Thank you.


       


       


       

    • Rob
      Ansys 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. 

    • bn90
      Subscriber

      Dear Rwoolhou,


      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.


       


       

    • Rob
      Ansys 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. 

    • Benjamin Ducoeur
      Ansys 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.

    • bn90
      Subscriber

      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.

    • Benjamin Ducoeur
      Ansys 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

    • bn90
      Subscriber

      bducoeur, 


      Thank you very much for your help.

Viewing 7 reply threads
  • You must be logged in to reply to this topic.