CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   RP_Set_Real("variable-name", variable name) (https://www.cfd-online.com/Forums/fluent/50788-rp_set_real-variable-name-variable-name.html)

bohis March 6, 2009 14:07

RP_Set_Real("variable-name", variable name)
 
Hi there,

I have the following problem. I have a compiled UDF (DEFINE_ON_DEMAND) with macro RP_Set_Real("variable-name", variable name) included. In serial process it works normaly, however, when running in parallel it doesnt set new value of "variable name". Does anybody know where the problem is??? thanks in advance!!!!


max March 9, 2009 07:44

Re: RP_Set_Real("variable-name", variable name)
 
Hello Bohis,

in parallel mode, only your host process but no compute nodes can communicate directly with fluent cortex which manages all scheme variables. Thus, when your DEFINE_ON_DEMAND is executed, the host actually manipulates your rp-variable, but your compute-nodes do not recognize the changes at all. The workaround is to use fluents host_to_node macros, have a look at the udf-guide section 7.5.2.

cheers max



All times are GMT -4. The time now is 20:34.