CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Accessing neighbouring nodes values

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 10, 2017, 13:26
Default Accessing neighbouring nodes values
  #1
Member
 
sebastian bergman
Join Date: Mar 2017
Location: seattle
Posts: 52
Rep Power: 9
Tushar_Telmasre is on a distinguished road
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?
Tushar_Telmasre is offline   Reply With Quote

Old   May 12, 2017, 04:16
Default
  #2
Member
 
KirMaks
Join Date: Aug 2016
Posts: 34
Rep Power: 9
kirmaks is on a distinguished road
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
kirmaks is offline   Reply With Quote

Old   May 12, 2017, 06:48
Default
  #3
Member
 
sebastian bergman
Join Date: Mar 2017
Location: seattle
Posts: 52
Rep Power: 9
Tushar_Telmasre is on a distinguished road
Thanks a lot.

That did solve the gradient problem.
Tushar_Telmasre is offline   Reply With Quote

Reply

Tags
nodes coordinates, temperature gradient


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
TimeVaryingMappedFixedValue irishdave OpenFOAM Running, Solving & CFD 32 June 16, 2021 06:55
F_NNODE returns double number of nodes falkon Fluent UDF and Scheme Programming 0 March 8, 2014 06:58
Create some nodes into an existing mesh and accessing to those nodes ooo OpenFOAM Programming & Development 0 November 2, 2013 18:03
Accessing Values of U_general questions harly OpenFOAM 3 December 8, 2008 14:14
Accessing Shear Rate Values in Subroutines Daniel Lattin Siemens 0 January 10, 2007 17:59


All times are GMT -4. The time now is 04:24.