|
[Sponsors] |
September 6, 2016, 05:53 |
reduce an equal operation
|
#1 |
Senior Member
Join Date: Sep 2010
Posts: 226
Rep Power: 16 |
Dear Foamers,
I am looking for a "reduce" function but on an "equal operation". For example, we know that reduce function is already Ok for: sumOp, minOp and maxOp How to do it (or extend it) for an "equal operation" and a "pow operation". I need to make the following code to work also in parallel: Code:
forAll(mesh.C(),celli) { Sens[celli] = Foam::pow(SSS[celli], 0.5) ; } // Sens and SSS are both volScalarField type T.D. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
loading issue libraries:libsimpleFunctionObjects.so libsimpleSwakFunctionObjects.so | immortality | OpenFOAM Pre-Processing | 15 | April 7, 2024 12:35 |
Reduce operation for an array | xiao | OpenFOAM Running, Solving & CFD | 10 | June 21, 2022 10:01 |
Hi Do mesh have to do to reduce the temperature at the outlet? i need the reduce temp | reslan | FLUENT | 0 | March 16, 2016 02:10 |
Incompatible dimensions for operation | ruben23 | OpenFOAM Running, Solving & CFD | 2 | June 12, 2015 04:14 |
openfoam reduce() and MPI_barrier | mechy | OpenFOAM Programming & Development | 3 | October 7, 2013 09:11 |