Need an array with cell height values
What is it mean?
4:16: error: request for member 'component' in '((const Foam::dimensioned<double>*)this)->Foam::dimensioned<double>::value_', which is of non-class type 'const double' value_.component(d) ~~~~~~~^~~~~~~~~ Here is the problem code: forAll ( mesh.C(), celli) { const cell & cc = mesh.cells()[celli]; labelList pLabels(cc.labels(ff)); pointField pLocal(pLabels.size(), vector::zero); forAll (pLabels, pointi) pLocal[pointi] = pp[pLabels[pointi]]; scalar y1Dim = Foam::max(pLocal & vector(0,1,0)) - Foam::min(pLocal & vector(0,1,0)); yDim[celli]= y1Dim; } This code from the thread https://www.cfd-online.com/Forums/op...ize-x-y-z.html. Thanks for Niels. I need an array with cell height values. yDim is the dimentioned scalar. Any help will be greatly appreciated. Thanks, |
Quote:
Without the dimensions, you could simply try with the following: Code:
scalarList yDims(mesh.nCells()); Code:
for (const celli < mesh.nCells(); ++celli) Code:
scalarList yDims(mesh.nCells()); |
All times are GMT -4. The time now is 19:10. |