CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Summation of all field values

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 1, 2014, 08:14
Default Summation of all field values
  #1
Senior Member
 
Join Date: Jan 2012
Posts: 166
Rep Power: 14
maybee is on a distinguished road
hi,

I want to create a dimensionedScalar by the summation of all values of a geometricScalarField. How can I sum up all the field values most efficiently?

Edit: I guess a forAllIter (...) do the job, but perhaps there is a less time consuming method?

greetings
streight
maybee is offline   Reply With Quote

Old   April 1, 2014, 08:20
Default
  #2
Senior Member
 
Join Date: Jan 2012
Posts: 166
Rep Power: 14
maybee is on a distinguished road
Ok,

I guess I found a solution here:

http://www.cfd-online.com/Forums/ope...alarfield.html

I will try this later
maybee is offline   Reply With Quote

Reply


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 define a field on a patch Aleksey_R OpenFOAM Programming & Development 1 July 9, 2012 11:23
Access Field values at certain time andrea OpenFOAM Running, Solving & CFD 0 August 31, 2009 06:24
strange node values @ solid/fluid interface - help JB FLUENT 2 November 1, 2008 12:04
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 06:51
Phase locked average in run time panara OpenFOAM 2 February 20, 2008 14:37


All times are GMT -4. The time now is 00:53.