|
[Sponsors] |
December 16, 2012, 01:51 |
question about pointScalarField.
|
#1 |
Member
yijin Mao
Join Date: May 2010
Location: Columbia, MO
Posts: 64
Rep Power: 16 |
volScalarField can do this work successfully.
//- pesudo code volScalarField T; Info << T.boundaryField()[patchID][i] << endl; but, for pointScalarField, it failed volScalarField T; fvMesh bMesh(mesh); volPointInterpolation pT(bMesh); pointScalarField ppT(pT.interpolate(T)()); Info << ppT.boundaryField()[patchID][i] << endl; I wonder why it failed. why OpenFOAM don't make pointScalarField has the same feature that volScalarField has. Any suggestion is welcome! |
|
December 16, 2012, 16:37 |
|
#2 |
Senior Member
Lieven
Join Date: Dec 2011
Location: Leuven, Belgium
Posts: 299
Rep Power: 22 |
Can you post the error you get so we can see what's going wrong exactly?
Regards, L |
|
December 16, 2012, 20:39 |
|
#3 | |
Member
yijin Mao
Join Date: May 2010
Location: Columbia, MO
Posts: 64
Rep Power: 16 |
Quote:
error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript It seems pointScalarField does not support this feature, but for volScalarField work fine. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Writing scalarField values into a pointScalarField | Arnoldinho | OpenFOAM Programming & Development | 6 | October 22, 2019 04:38 |
const_cast and pointScalarField | myheroisalex | OpenFOAM Programming & Development | 3 | April 26, 2016 12:02 |
Question Re Engineering Data Source | imnull | ANSYS | 0 | March 5, 2012 14:51 |
internal field question - PitzDaily Case | atareen64 | OpenFOAM Running, Solving & CFD | 2 | January 26, 2011 16:26 |
Poisson Solver question | Suresh | Main CFD Forum | 3 | August 12, 2005 05:37 |