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/)
-   -   Accessing neighbouring nodes values (https://www.cfd-online.com/Forums/fluent-udf/187598-accessing-neighbouring-nodes-values.html)

Tushar_Telmasre May 10, 2017 13:26

Accessing neighbouring nodes values
 
Dear Friends,

Is there any macro or variable to access the neighbouring node data. like _M1 will give you value at previous time step.

I need temperature data at neighbouring nodes to calculate gradient.

Can anybody comment?

kirmaks May 12, 2017 04:16

Hallo,

I think it's easier to set the expert parameter to store the temporary variable values and the FLUENT will make the work for You. You can use C_T_G(c,t)[0..2] directly then.

There is an example for UDS gradient in help: https://www.sharcnet.ca/Software/Flu...udf/node96.htm

Best regards, Maks

Tushar_Telmasre May 12, 2017 06:48

Thanks a lot.

That did solve the gradient problem.


All times are GMT -4. The time now is 10:38.