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

Accessing neighbouring nodes values

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools 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: 2
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: 3
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: 2
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

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 06:27.