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

Search Results

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

Showing results 1 to 2 of 2
Search took 0.00 seconds.
Search: Posts Made By: MartinB
Forum: OpenFOAM Programming & Development August 19, 2011, 09:58
Replies: 5
Views: 1,371
Posted By MartinB
Hi Yusik, you can manipulate the field...

Hi Yusik,

you can manipulate the field within the loop:
forAll(cells, celli)
{
i++;
// your manipulation here, each processor will manipulate
// its part of the field.
}
Forum: OpenFOAM Programming & Development December 9, 2010, 10:14
Replies: 5
Views: 1,371
Posted By MartinB
Hi Markus, you must gather the information...

Hi Markus,

you must gather the information to the master:

const cellList& cells = mesh.cells();
label nCells = 0;
nCells = cells.size();
reduce(nCells, sumOp<label>());
Info << " no cells:...
Showing results 1 to 2 of 2

 
Forum Jump

All times are GMT -4. The time now is 07:27.