CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   Error in UDF calling parameters from ANSYS WorkBench (https://www.cfd-online.com/Forums/fluent-udf/200576-error-udf-calling-parameters-ansys-workbench.html)

anand32 April 6, 2018 19:52

Error in UDF calling parameters from ANSYS WorkBench
 
1 Attachment(s)
Hi Everyone

I require some help .

I am simulating FSI in ANSYS WorkBench for fluid flow inside a micro-tube. The velocity boundary condition at inlet is a fully developed flow corresponding to a particular flow rate. This boundary condition is realized by writing a UDF while the flow rate is passed on to the FLUENT as a parameter from WorkBench. (The UDF is attached).
1. When I run the simulation in Windows, I "interpret" the UDF and it works fine.
2. However, when I transfer files to a Linux machine, then interpreter gives error: cpp: output pipe has been closed.
3. I found from internet that compiling the file (as opposed to interpreting it) will solve the problem.
4. However, I am a little lost on how to compile a udf which takes parameters from the WorkBench. Should the source file be compiled at every design point (because at every design point, the value of the parameter changes). Or should the compilation be done only one? And where should the source file be kept actually? Do I need to take into account anything else, considering that I need to run on parallel nodes.
Please advice.


All times are GMT -4. The time now is 16:36.