|
[Sponsors] |
June 1, 2018, 02:45 |
Partial Summation of a Field
|
#1 |
New Member
javad haqqani
Join Date: Dec 2017
Posts: 16
Rep Power: 8 |
Hi. I'm in need of summing up the values of a specific part of a scalar field. I've tried a for loop. The statement is as follows:
sum+=field[celli]; but I need the sum to be dimensioned and the above statement doesn't do that. is there a way I can use sum() or gSum for this purpose? |
|
Tags |
sum |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Foam::error::PrintStack | almir | OpenFOAM Running, Solving & CFD | 92 | May 21, 2024 07:56 |
problems after decomposing for running | alessio.nz | OpenFOAM | 7 | March 5, 2021 04:49 |
creating an internal field? | maybee | OpenFOAM Programming & Development | 2 | February 4, 2021 17:15 |
Steady simulation does not iterate in Time=1 | agustinvo | OpenFOAM Running, Solving & CFD | 3 | November 19, 2015 04:57 |
Summation of all field values | maybee | OpenFOAM Programming & Development | 1 | April 1, 2014 08:20 |