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

How can I globally reduce to any value?

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 11, 2016, 09:06
Default How can I globally reduce to any value?
  #1
New Member
 
lconstantin's Avatar
 
Join Date: Sep 2016
Posts: 9
Rep Power: 7
lconstantin is on a distinguished road
I understand that there are global reduction macros for parallel computing, which can make all the nodes have a minimum/ maximum/ boolean value. But I do not want to reduce to a minimum/ maximum.

Instead, say I have a vector [a1, a2, a3]. Each node has a copy of this vector, and the values differ from node to node. I want all nodes to take the values from the node which has minimum a1. e.g:
NODE0: [0.21, 5, 8]
NODE1: [0.1, 4, 10]
NODE2: [0.15, 0, -5]

I want all nodes to have the vector corresponding to minimum a1. In other words, after reduction, I want my data to look like this:
NODE0: [0.1, 4, 10]
NODE1: [0.1, 4, 10]
NODE2: [0.1, 4, 10]

Does anyone have any idea if this is possible?

Thank you!
lconstantin is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to reduce reducing rpvar dpm/parallel/loop-factor Tarantino FLUENT 13 December 5, 2017 10:39
Hi Do mesh have to do to reduce the temperature at the outlet? i need the reduce temp reslan FLUENT 0 March 16, 2016 03:10
to reduce overall cells using snappy vishnunitro Main CFD Forum 0 February 24, 2014 11:41
openfoam reduce() and MPI_barrier mechy OpenFOAM Programming & Development 3 October 7, 2013 10:11
Very Urgent: How to reduce no of cell types? Harendra Siemens 3 December 14, 2004 17:13


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