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

Search Results

Register Blogs Community New Posts Updated Threads Search

Showing results 1 to 2 of 2
Search took 0.00 seconds.
Search: Posts Made By: niklas
Forum: OpenFOAM February 12, 2013, 01:28
Replies: 4
Views: 1,633
Posted By niklas
just try my code. Did you try it? Did you...

just try my code. Did you try it?

Did you notise the g in front of sum, gSum.
Can you guess what the g stands for.

The Info stream is only for processor 0, you also have an Sout stream, then...
Forum: OpenFOAM February 9, 2013, 15:16
Replies: 4
Views: 1,633
Posted By niklas
const volScalarField& p =...

const volScalarField& p = mesh().lookupObject<volScalarField>("p");
const scalarField& vols = mesh().V();
scalar pSum = gSum(vols*p);
scalar volTot =...
Showing results 1 to 2 of 2

 
Forum Jump

All times are GMT -4. The time now is 23:57.