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

Summation of all field values

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 1, 2014, 08:14
Default Summation of all field values
  #1
Senior Member
 
Join Date: Jan 2012
Posts: 159
Rep Power: 5
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: 159
Rep Power: 5
maybee is on a distinguished road
Ok,

I guess I found a solution here:

How to sum up a volScalarField

I will try this later
maybee is offline   Reply With Quote

Reply

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
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 13:04
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51
Phase locked average in run time panara OpenFOAM 2 February 20, 2008 15:37


All times are GMT -4. The time now is 15:25.