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/)
-   -   Problems with RP_Get_Input_Parameter (https://www.cfd-online.com/Forums/fluent-udf/147752-problems-rp_get_input_parameter.html)

jortega January 28, 2015 12:31

Problems with RP_Get_Input_Parameter
 
Dear fluent-users,

I am using Ansys-fluent 15.0.0 to carry out a parametric simulation with design explorer and surface response. I need to pass two of the parameters to an UDF and I define them as "Use in UDF" in the parameter window. Then, in the UDF file I read them by


real k=RP_Get_Input_Parameter("real-1");


This works, and the value of the parameter can be read in the UDF.

But when I define a second parameter and try to read it too by


real n=RP_Get_Input_Parameter("real-2");


after running the udf, fluent says


Error: received a fatal signal (Segmentation fault).

Did anybody have this problem before?
If so, or you have any idea to solve it, please, let me know it.

Thanks in advance.

Regards.

jortega February 3, 2015 02:53

SOLVED: Problems with RP_Get_Input_Parameter
 
Thanks to this page:

http://www.computationalfluiddynamic...sys-workbench/


I finally solved my problem.




Quote:

Originally Posted by jortega (Post 529411)
Dear fluent-users,

I am using Ansys-fluent 15.0.0 to carry out a parametric simulation with design explorer and surface response. I need to pass two of the parameters to an UDF and I define them as "Use in UDF" in the parameter window. Then, in the UDF file I read them by


real k=RP_Get_Input_Parameter("real-1");


This works, and the value of the parameter can be read in the UDF.

But when I define a second parameter and try to read it too by


real n=RP_Get_Input_Parameter("real-2");


after running the udf, fluent says


Error: received a fatal signal (Segmentation fault).

Did anybody have this problem before?
If so, or you have any idea to solve it, please, let me know it.

Thanks in advance.

Regards.


MSNJ3 February 16, 2015 12:39

RP_Get_Input_Parameter not working
 
Hi jortega,

I have the same problem. Would you please tell us about the step-by-step process of how you solved it. I couldn't get the procedure in the link to work.

Also I wanted to know if you have contacted Ansys tech support about this?

Thanks,
MSNJ3

jortega February 27, 2015 02:43

Hi MSNJ3,

I just followed the steps given in the link and it worked.

I didn't contact with ANSYS tech. support. Maybe you should do it. If so, please, let us know what they say.

Regards.

myaghoobi2 September 5, 2017 02:30

Hi all This will work for using parameter in UDF just do what he says:
https://www.cfd-online.com/Forums/members/jortega.html


All times are GMT -4. The time now is 12:47.